From affc19cabf557c73c78a1197feec22698b2d6b03 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 7 Feb 2024 07:02:49 +0000 Subject: [PATCH] fix: Temporarily restoring storage_grpc_service_config.json to fix broken test PiperOrigin-RevId: 604727220 Source-Link: https://github.com/googleapis/googleapis/commit/0518a59bcaffcbc5879eef517c7c90174a54ab05 Source-Link: https://github.com/googleapis/googleapis-gen/commit/69f6d614d76e9cac2f637adf446c644db2d05db9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjlmNmQ2MTRkNzZlOWNhYzJmNjM3YWRmNDQ2YzY0NGRiMmQwNWRiOSJ9 chore: set packed = false on field_behavior extension PiperOrigin-RevId: 604675854 Source-Link: https://github.com/googleapis/googleapis/commit/42c04fea4338ba626095ec2cde5ea75827191581 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1ed8a97a00d02fe456f6ebd4160c5b2b000ad75 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTFlZDhhOTdhMDBkMDJmZTQ1NmY2ZWJkNDE2MGM1YjJiMDAwYWQ3NSJ9 fix(deps): Update the Java code generator (gapic-generator-java) to 2.34.0 PiperOrigin-RevId: 603372971 Source-Link: https://github.com/googleapis/googleapis/commit/805cfaac214342323b5daefdb05d72fd6d77ac63 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cc9007333935fd3fd221b97032916ebf737409b7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2M5MDA3MzMzOTM1ZmQzZmQyMjFiOTcwMzI5MTZlYmY3Mzc0MDliNyJ9 build: Update protobuf to 25.2 in WORKSPACE build: Update grpc to 1.60.0 in WORKSPACE build: Remove pin for boringssl in WORKSPACE build: Update bazel to 6.3.0 in .bazeliskrc PiperOrigin-RevId: 603226138 Source-Link: https://github.com/googleapis/googleapis/commit/2aec9e178dab3427c0ad5654c94a069e0bc7224c Source-Link: https://github.com/googleapis/googleapis-gen/commit/e9a5c2ef37b4d69c93e39141d87aae0b193c00b1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTlhNWMyZWYzN2I0ZDY5YzkzZTM5MTQxZDg3YWFlMGIxOTNjMDBiMSJ9 docs: Proto field comment updates, edit general gRPC API warning fix: Clear storage_grpc_service_config.json to avoid nested retry strategies PiperOrigin-RevId: 602881263 Source-Link: https://github.com/googleapis/googleapis/commit/f42edbe352a54ee4a96367cdf766ef0b6a28fb6a Source-Link: https://github.com/googleapis/googleapis-gen/commit/0f24a129ced3201a4e2a3f1322fca3c30d61be73 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGYyNGExMjljZWQzMjAxYTRlMmEzZjEzMjJmY2EzYzMwZDYxYmU3MyJ9 fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 PiperOrigin-RevId: 599914188 Source-Link: https://github.com/googleapis/googleapis/commit/17e6661f8bf43374633adf950454ed8e69bdcee1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d86ba5be537e489435105ca85566cc4103301aba Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 --- .../control/v2/StorageControlGrpc.java | 947 -- .../com/google/storage/v2/StorageClient.java | 642 +- .../google/storage/v2/StorageSettings.java | 1 + .../com/google/storage/v2/gapic_metadata.json | 0 .../com/google/storage/v2/package-info.java | 0 .../v2/stub/GrpcStorageCallableFactory.java | 0 .../storage/v2/stub/GrpcStorageStub.java | 7 +- .../google/storage/v2/stub/StorageStub.java | 0 .../storage/v2/stub/StorageStubSettings.java | 19 +- .../com.google.storage.v2/reflect-config.json | 135 + .../com/google/storage/v2/gapic_metadata.json | 114 + .../com/google/storage/v2/MockStorage.java | 0 .../google/storage/v2/MockStorageImpl.java | 0 .../google/storage/v2/StorageClientTest.java | 0 .../control/v2/StorageControlClient.java | 125 + .../control/v2/StorageControlSettings.java | 1 + .../storage/control/v2/gapic_metadata.json | 0 .../storage/control/v2/package-info.java | 0 .../GrpcStorageControlCallableFactory.java | 0 .../v2/stub/GrpcStorageControlStub.java | 43 + .../control/v2/stub/StorageControlStub.java | 0 .../v2/stub/StorageControlStubSettings.java | 19 +- .../reflect-config.json | 135 + .../storage/control/v2/gapic_metadata.json | 0 .../control/v2/MockStorageControl.java | 0 .../control/v2/MockStorageControlImpl.java | 0 .../control/v2/StorageControlClientTest.java | 0 .../control/v2/StorageControlGrpc.java | 761 ++ .../com/google/storage/v2/StorageGrpc.java | 2990 ++--- .../google/storage/control/v2/BucketName.java | 0 .../CommonLongRunningOperationMetadata.java | 853 +- ...LongRunningOperationMetadataOrBuilder.java | 85 +- .../control/v2/CreateFolderRequest.java | 703 +- .../v2/CreateFolderRequestOrBuilder.java | 82 +- .../control/v2/DeleteFolderRequest.java | 528 +- .../v2/DeleteFolderRequestOrBuilder.java | 65 +- .../com/google/storage/control/v2/Folder.java | 808 +- .../google/storage/control/v2/FolderName.java | 0 .../storage/control/v2/FolderOrBuilder.java | 85 +- .../storage/control/v2/GetFolderRequest.java | 521 +- .../control/v2/GetFolderRequestOrBuilder.java | 65 +- .../control/v2/GetStorageLayoutRequest.java | 523 +- .../v2/GetStorageLayoutRequestOrBuilder.java | 62 +- .../control/v2/ListFoldersRequest.java | 841 +- .../v2/ListFoldersRequestOrBuilder.java | 101 +- .../control/v2/ListFoldersResponse.java | 480 +- .../v2/ListFoldersResponseOrBuilder.java | 47 +- .../storage/control/v2/PendingRenameInfo.java | 316 +- .../v2/PendingRenameInfoOrBuilder.java | 28 +- .../control/v2/RenameFolderMetadata.java | 553 +- .../v2/RenameFolderMetadataOrBuilder.java | 48 +- .../control/v2/RenameFolderRequest.java | 600 +- .../v2/RenameFolderRequestOrBuilder.java | 74 +- .../control/v2/StorageControlProto.java | 336 + .../storage/control/v2/StorageLayout.java | 1541 +-- .../storage/control/v2/StorageLayoutName.java | 0 .../control/v2/StorageLayoutOrBuilder.java | 92 +- .../storage/control/v2/storage_control.proto | 0 .../storage/v2/BidiWriteObjectRequest.java | 1012 +- .../v2/BidiWriteObjectRequestOrBuilder.java | 82 +- .../storage/v2/BidiWriteObjectResponse.java | 434 +- .../v2/BidiWriteObjectResponseOrBuilder.java | 33 +- .../java/com/google/storage/v2/Bucket.java | 11089 ++++++---------- .../storage/v2/BucketAccessControl.java | 939 +- .../v2/BucketAccessControlOrBuilder.java | 99 +- .../com/google/storage/v2/BucketName.java | 0 .../google/storage/v2/BucketOrBuilder.java | 335 +- .../v2/CancelResumableWriteRequest.java | 320 +- .../CancelResumableWriteRequestOrBuilder.java | 28 +- .../v2/CancelResumableWriteResponse.java | 246 +- ...CancelResumableWriteResponseOrBuilder.java | 10 + .../google/storage/v2/ChecksummedData.java | 307 +- .../storage/v2/ChecksummedDataOrBuilder.java | 28 +- .../storage/v2/CommonObjectRequestParams.java | 391 +- .../CommonObjectRequestParamsOrBuilder.java | 34 +- .../storage/v2/ComposeObjectRequest.java | 2057 ++- .../v2/ComposeObjectRequestOrBuilder.java | 97 +- .../com/google/storage/v2/ContentRange.java | 355 +- .../storage/v2/ContentRangeOrBuilder.java | 40 + .../storage/v2/CreateBucketRequest.java | 668 +- .../v2/CreateBucketRequestOrBuilder.java | 71 +- .../storage/v2/CreateHmacKeyRequest.java | 413 +- .../v2/CreateHmacKeyRequestOrBuilder.java | 45 +- .../storage/v2/CreateHmacKeyResponse.java | 393 +- .../v2/CreateHmacKeyResponseOrBuilder.java | 30 +- .../v2/CreateNotificationConfigRequest.java | 523 +- ...ateNotificationConfigRequestOrBuilder.java | 57 + .../com/google/storage/v2/CryptoKeyName.java | 0 .../google/storage/v2/CustomerEncryption.java | 343 +- .../v2/CustomerEncryptionOrBuilder.java | 31 +- .../storage/v2/DeleteBucketRequest.java | 421 +- .../v2/DeleteBucketRequestOrBuilder.java | 48 +- .../storage/v2/DeleteHmacKeyRequest.java | 413 +- .../v2/DeleteHmacKeyRequestOrBuilder.java | 45 +- .../v2/DeleteNotificationConfigRequest.java | 354 +- ...eteNotificationConfigRequestOrBuilder.java | 30 + .../storage/v2/DeleteObjectRequest.java | 743 +- .../v2/DeleteObjectRequestOrBuilder.java | 80 +- .../google/storage/v2/GetBucketRequest.java | 502 +- .../storage/v2/GetBucketRequestOrBuilder.java | 56 +- .../google/storage/v2/GetHmacKeyRequest.java | 410 +- .../v2/GetHmacKeyRequestOrBuilder.java | 45 +- .../v2/GetNotificationConfigRequest.java | 348 +- ...GetNotificationConfigRequestOrBuilder.java | 34 + .../google/storage/v2/GetObjectRequest.java | 866 +- .../storage/v2/GetObjectRequestOrBuilder.java | 94 +- .../storage/v2/GetServiceAccountRequest.java | 341 +- .../v2/GetServiceAccountRequestOrBuilder.java | 32 + .../google/storage/v2/HmacKeyMetadata.java | 1001 +- .../storage/v2/HmacKeyMetadataOrBuilder.java | 115 +- .../google/storage/v2/ListBucketsRequest.java | 601 +- .../v2/ListBucketsRequestOrBuilder.java | 65 +- .../storage/v2/ListBucketsResponse.java | 475 +- .../v2/ListBucketsResponseOrBuilder.java | 47 +- .../storage/v2/ListHmacKeysRequest.java | 552 +- .../v2/ListHmacKeysRequestOrBuilder.java | 60 +- .../storage/v2/ListHmacKeysResponse.java | 470 +- .../v2/ListHmacKeysResponseOrBuilder.java | 46 +- .../v2/ListNotificationConfigsRequest.java | 454 +- ...stNotificationConfigsRequestOrBuilder.java | 48 +- .../v2/ListNotificationConfigsResponse.java | 465 +- ...tNotificationConfigsResponseOrBuilder.java | 46 +- .../google/storage/v2/ListObjectsRequest.java | 993 +- .../v2/ListObjectsRequestOrBuilder.java | 110 +- .../storage/v2/ListObjectsResponse.java | 583 +- .../v2/ListObjectsResponseOrBuilder.java | 65 +- .../v2/LockBucketRetentionPolicyRequest.java | 388 +- ...BucketRetentionPolicyRequestOrBuilder.java | 41 + .../google/storage/v2/NotificationConfig.java | 939 +- .../storage/v2/NotificationConfigName.java | 0 .../v2/NotificationConfigOrBuilder.java | 112 +- .../java/com/google/storage/v2/Object.java | 2843 ++-- .../storage/v2/ObjectAccessControl.java | 939 +- .../v2/ObjectAccessControlOrBuilder.java | 99 +- .../google/storage/v2/ObjectChecksums.java | 307 +- .../storage/v2/ObjectChecksumsOrBuilder.java | 28 +- .../google/storage/v2/ObjectOrBuilder.java | 309 +- .../java/com/google/storage/v2/Owner.java | 363 +- .../com/google/storage/v2/OwnerOrBuilder.java | 37 +- .../com/google/storage/v2/ProjectName.java | 0 .../com/google/storage/v2/ProjectTeam.java | 378 +- .../storage/v2/ProjectTeamOrBuilder.java | 37 +- .../storage/v2/QueryWriteStatusRequest.java | 452 +- .../v2/QueryWriteStatusRequestOrBuilder.java | 36 +- .../storage/v2/QueryWriteStatusResponse.java | 434 +- .../v2/QueryWriteStatusResponseOrBuilder.java | 33 +- .../google/storage/v2/ReadObjectRequest.java | 898 +- .../v2/ReadObjectRequestOrBuilder.java | 94 +- .../google/storage/v2/ReadObjectResponse.java | 676 +- .../v2/ReadObjectResponseOrBuilder.java | 51 +- .../storage/v2/RestoreObjectRequest.java | 783 +- .../v2/RestoreObjectRequestOrBuilder.java | 86 +- .../storage/v2/RewriteObjectRequest.java | 1828 +-- .../v2/RewriteObjectRequestOrBuilder.java | 199 +- .../google/storage/v2/RewriteResponse.java | 516 +- .../storage/v2/RewriteResponseOrBuilder.java | 45 +- .../com/google/storage/v2/ServiceAccount.java | 306 +- .../storage/v2/ServiceAccountOrBuilder.java | 30 + .../google/storage/v2/ServiceConstants.java | 416 +- .../storage/v2/ServiceConstantsOrBuilder.java | 10 + .../v2/StartResumableWriteRequest.java | 656 +- .../StartResumableWriteRequestOrBuilder.java | 55 +- .../v2/StartResumableWriteResponse.java | 320 +- .../StartResumableWriteResponseOrBuilder.java | 28 +- .../com/google/storage/v2/StorageProto.java | 1515 +++ .../storage/v2/UpdateBucketRequest.java | 726 +- .../v2/UpdateBucketRequestOrBuilder.java | 74 +- .../storage/v2/UpdateHmacKeyRequest.java | 506 +- .../v2/UpdateHmacKeyRequestOrBuilder.java | 47 +- .../storage/v2/UpdateObjectRequest.java | 873 +- .../v2/UpdateObjectRequestOrBuilder.java | 85 +- .../google/storage/v2/WriteObjectRequest.java | 911 +- .../v2/WriteObjectRequestOrBuilder.java | 69 +- .../storage/v2/WriteObjectResponse.java | 434 +- .../v2/WriteObjectResponseOrBuilder.java | 33 +- .../google/storage/v2/WriteObjectSpec.java | 674 +- .../storage/v2/WriteObjectSpecOrBuilder.java | 66 +- .../proto/google/storage/v2/storage.proto | 29 +- .../control/v2/StorageControlProto.java | 392 - ...CancelResumableWriteResponseOrBuilder.java | 24 - .../storage/v2/ContentRangeOrBuilder.java | 64 - ...ateNotificationConfigRequestOrBuilder.java | 95 - ...eteNotificationConfigRequestOrBuilder.java | 54 - ...GetNotificationConfigRequestOrBuilder.java | 58 - .../v2/GetServiceAccountRequestOrBuilder.java | 56 - ...BucketRetentionPolicyRequestOrBuilder.java | 68 - .../storage/v2/ServiceAccountOrBuilder.java | 50 - .../storage/v2/ServiceConstantsOrBuilder.java | 24 - .../com/google/storage/v2/StorageProto.java | 1872 --- 189 files changed, 27328 insertions(+), 43187 deletions(-) delete mode 100644 grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StorageClient.java (85%) rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StorageSettings.java (99%) rename {gapic-google-cloud-storage-v2/src/main/resources => owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java}/com/google/storage/v2/gapic_metadata.json (100%) rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/package-info.java (100%) rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java (100%) rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java (99%) rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/stub/StorageStub.java (100%) rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java (99%) rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json (95%) create mode 100644 owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/test/java/com/google/storage/v2/MockStorage.java (100%) rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/test/java/com/google/storage/v2/MockStorageImpl.java (100%) rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/test/java/com/google/storage/v2/StorageClientTest.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/StorageControlClient.java (89%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/StorageControlSettings.java (99%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/gapic_metadata.json (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/package-info.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java (88%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java (97%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json (91%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/resources/com/google/storage/control/v2/gapic_metadata.json (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/test/java/com/google/storage/control/v2/MockStorageControl.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java (100%) create mode 100644 owl-bot-staging/v2/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java rename {grpc-google-cloud-storage-v2 => owl-bot-staging/v2/grpc-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StorageGrpc.java (50%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/BucketName.java (100%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java (65%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java (72%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java (68%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java (66%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java (68%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java (64%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/Folder.java (65%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/FolderName.java (100%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java (71%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetFolderRequest.java (68%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java (63%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java (65%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java (54%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java (72%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java (74%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java (71%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java (66%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java (66%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java (50%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java (67%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java (67%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java (70%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java (67%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/StorageLayout.java (65%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/StorageLayoutName.java (100%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java (63%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/proto/google/storage/control/v2/storage_control.proto (100%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java (75%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java (88%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java (70%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/Bucket.java (75%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketAccessControl.java (74%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java (81%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketName.java (100%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketOrBuilder.java (87%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java (67%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java (55%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java (62%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ChecksummedData.java (68%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java (56%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java (70%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java (63%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ComposeObjectRequest.java (70%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java (85%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ContentRange.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateBucketRequest.java (73%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java (77%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java (66%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java (55%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java (66%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java (61%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java (59%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CryptoKeyName.java (100%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CustomerEncryption.java (68%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java (54%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteBucketRequest.java (68%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java (60%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java (65%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java (53%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java (61%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteObjectRequest.java (73%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java (81%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetBucketRequest.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java (66%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java (53%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetObjectRequest.java (74%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java (83%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/HmacKeyMetadata.java (68%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java (72%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListBucketsRequest.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListBucketsResponse.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java (63%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java (69%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java (63%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java (67%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java (67%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java (60%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java (72%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java (67%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsRequest.java (76%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java (82%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsResponse.java (72%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/NotificationConfig.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/NotificationConfigName.java (100%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java (77%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/Object.java (73%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectAccessControl.java (74%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java (81%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectChecksums.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java (68%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectOrBuilder.java (84%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/Owner.java (68%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/OwnerOrBuilder.java (53%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ProjectName.java (100%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ProjectTeam.java (66%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java (51%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java (67%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java (69%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java (70%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java (73%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ReadObjectRequest.java (76%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java (85%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ReadObjectResponse.java (73%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java (85%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RestoreObjectRequest.java (73%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java (81%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteObjectRequest.java (77%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java (86%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteResponse.java (72%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java (76%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ServiceAccount.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ServiceConstants.java (71%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java (66%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java (73%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java (66%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java (52%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateBucketRequest.java (75%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java (82%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java (67%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java (67%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateObjectRequest.java (76%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java (87%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectRequest.java (74%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java (87%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectResponse.java (69%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectSpec.java (77%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java (86%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/proto/google/storage/v2/storage.proto (99%) delete mode 100644 proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java diff --git a/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java b/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java deleted file mode 100644 index a7d9ab9e01..0000000000 --- a/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java +++ /dev/null @@ -1,947 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.storage.control.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * StorageControl service includes selected control plane operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/storage/control/v2/storage_control.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class StorageControlGrpc { - - private StorageControlGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.storage.control.v2.StorageControl"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.CreateFolderRequest, com.google.storage.control.v2.Folder> - getCreateFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFolder", - requestType = com.google.storage.control.v2.CreateFolderRequest.class, - responseType = com.google.storage.control.v2.Folder.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.CreateFolderRequest, com.google.storage.control.v2.Folder> - getCreateFolderMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.CreateFolderRequest, com.google.storage.control.v2.Folder> - getCreateFolderMethod; - if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { - StorageControlGrpc.getCreateFolderMethod = - getCreateFolderMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.CreateFolderRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.Folder.getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("CreateFolder")) - .build(); - } - } - } - return getCreateFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty> - getDeleteFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFolder", - requestType = com.google.storage.control.v2.DeleteFolderRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty> - getDeleteFolderMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty> - getDeleteFolderMethod; - if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { - StorageControlGrpc.getDeleteFolderMethod = - getDeleteFolderMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.DeleteFolderRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("DeleteFolder")) - .build(); - } - } - } - return getDeleteFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetFolderRequest, com.google.storage.control.v2.Folder> - getGetFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFolder", - requestType = com.google.storage.control.v2.GetFolderRequest.class, - responseType = com.google.storage.control.v2.Folder.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetFolderRequest, com.google.storage.control.v2.Folder> - getGetFolderMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetFolderRequest, com.google.storage.control.v2.Folder> - getGetFolderMethod; - if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { - StorageControlGrpc.getGetFolderMethod = - getGetFolderMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.GetFolderRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.Folder.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("GetFolder")) - .build(); - } - } - } - return getGetFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.ListFoldersRequest, - com.google.storage.control.v2.ListFoldersResponse> - getListFoldersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFolders", - requestType = com.google.storage.control.v2.ListFoldersRequest.class, - responseType = com.google.storage.control.v2.ListFoldersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.ListFoldersRequest, - com.google.storage.control.v2.ListFoldersResponse> - getListFoldersMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.ListFoldersRequest, - com.google.storage.control.v2.ListFoldersResponse> - getListFoldersMethod; - if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { - StorageControlGrpc.getListFoldersMethod = - getListFoldersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFolders")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ListFoldersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ListFoldersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("ListFolders")) - .build(); - } - } - } - return getListFoldersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.RenameFolderRequest, com.google.longrunning.Operation> - getRenameFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RenameFolder", - requestType = com.google.storage.control.v2.RenameFolderRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.RenameFolderRequest, com.google.longrunning.Operation> - getRenameFolderMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.RenameFolderRequest, com.google.longrunning.Operation> - getRenameFolderMethod; - if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { - StorageControlGrpc.getRenameFolderMethod = - getRenameFolderMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RenameFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.RenameFolderRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("RenameFolder")) - .build(); - } - } - } - return getRenameFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetStorageLayoutRequest, - com.google.storage.control.v2.StorageLayout> - getGetStorageLayoutMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStorageLayout", - requestType = com.google.storage.control.v2.GetStorageLayoutRequest.class, - responseType = com.google.storage.control.v2.StorageLayout.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetStorageLayoutRequest, - com.google.storage.control.v2.StorageLayout> - getGetStorageLayoutMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetStorageLayoutRequest, - com.google.storage.control.v2.StorageLayout> - getGetStorageLayoutMethod; - if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { - StorageControlGrpc.getGetStorageLayoutMethod = - getGetStorageLayoutMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStorageLayout")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.GetStorageLayoutRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.StorageLayout.getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("GetStorageLayout")) - .build(); - } - } - } - return getGetStorageLayoutMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static StorageControlStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public StorageControlStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlStub(channel, callOptions); - } - }; - return StorageControlStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static StorageControlBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public StorageControlBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlBlockingStub(channel, callOptions); - } - }; - return StorageControlBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static StorageControlFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public StorageControlFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlFutureStub(channel, callOptions); - } - }; - return StorageControlFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * StorageControl service includes selected control plane operations.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates a new folder.
-     * 
- */ - default void createFolder( - com.google.storage.control.v2.CreateFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFolderMethod(), responseObserver); - } - - /** - * - * - *
-     * Permanently deletes an empty folder.
-     * 
- */ - default void deleteFolder( - com.google.storage.control.v2.DeleteFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFolderMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns metadata for the specified folder.
-     * 
- */ - default void getFolder( - com.google.storage.control.v2.GetFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFolderMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves a list of folders for a given bucket.
-     * 
- */ - default void listFolders( - com.google.storage.control.v2.ListFoldersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFoldersMethod(), responseObserver); - } - - /** - * - * - *
-     * Renames a source folder to a destination folder. During a rename, the
-     * source and destination folders are locked until the long running operation
-     * completes.
-     * 
- */ - default void renameFolder( - com.google.storage.control.v2.RenameFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRenameFolderMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the storage layout configuration for a given bucket.
-     * 
- */ - default void getStorageLayout( - com.google.storage.control.v2.GetStorageLayoutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetStorageLayoutMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service StorageControl. - * - *
-   * StorageControl service includes selected control plane operations.
-   * 
- */ - public abstract static class StorageControlImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return StorageControlGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service StorageControl. - * - *
-   * StorageControl service includes selected control plane operations.
-   * 
- */ - public static final class StorageControlStub - extends io.grpc.stub.AbstractAsyncStub { - private StorageControlStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected StorageControlStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new folder.
-     * 
- */ - public void createFolder( - com.google.storage.control.v2.CreateFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFolderMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Permanently deletes an empty folder.
-     * 
- */ - public void deleteFolder( - com.google.storage.control.v2.DeleteFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns metadata for the specified folder.
-     * 
- */ - public void getFolder( - com.google.storage.control.v2.GetFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFolderMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Retrieves a list of folders for a given bucket.
-     * 
- */ - public void listFolders( - com.google.storage.control.v2.ListFoldersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFoldersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Renames a source folder to a destination folder. During a rename, the
-     * source and destination folders are locked until the long running operation
-     * completes.
-     * 
- */ - public void renameFolder( - com.google.storage.control.v2.RenameFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRenameFolderMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the storage layout configuration for a given bucket.
-     * 
- */ - public void getStorageLayout( - com.google.storage.control.v2.GetStorageLayoutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service StorageControl. - * - *
-   * StorageControl service includes selected control plane operations.
-   * 
- */ - public static final class StorageControlBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private StorageControlBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected StorageControlBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new folder.
-     * 
- */ - public com.google.storage.control.v2.Folder createFolder( - com.google.storage.control.v2.CreateFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFolderMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Permanently deletes an empty folder.
-     * 
- */ - public com.google.protobuf.Empty deleteFolder( - com.google.storage.control.v2.DeleteFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFolderMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns metadata for the specified folder.
-     * 
- */ - public com.google.storage.control.v2.Folder getFolder( - com.google.storage.control.v2.GetFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFolderMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves a list of folders for a given bucket.
-     * 
- */ - public com.google.storage.control.v2.ListFoldersResponse listFolders( - com.google.storage.control.v2.ListFoldersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFoldersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Renames a source folder to a destination folder. During a rename, the
-     * source and destination folders are locked until the long running operation
-     * completes.
-     * 
- */ - public com.google.longrunning.Operation renameFolder( - com.google.storage.control.v2.RenameFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRenameFolderMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the storage layout configuration for a given bucket.
-     * 
- */ - public com.google.storage.control.v2.StorageLayout getStorageLayout( - com.google.storage.control.v2.GetStorageLayoutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStorageLayoutMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service StorageControl. - * - *
-   * StorageControl service includes selected control plane operations.
-   * 
- */ - public static final class StorageControlFutureStub - extends io.grpc.stub.AbstractFutureStub { - private StorageControlFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected StorageControlFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new folder.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createFolder(com.google.storage.control.v2.CreateFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Permanently deletes an empty folder.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns metadata for the specified folder.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getFolder(com.google.storage.control.v2.GetFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFolderMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves a list of folders for a given bucket.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.control.v2.ListFoldersResponse> - listFolders(com.google.storage.control.v2.ListFoldersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFoldersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Renames a source folder to a destination folder. During a rename, the
-     * source and destination folders are locked until the long running operation
-     * completes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - renameFolder(com.google.storage.control.v2.RenameFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRenameFolderMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the storage layout configuration for a given bucket.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.control.v2.StorageLayout> - getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_FOLDER = 0; - private static final int METHODID_DELETE_FOLDER = 1; - private static final int METHODID_GET_FOLDER = 2; - private static final int METHODID_LIST_FOLDERS = 3; - private static final int METHODID_RENAME_FOLDER = 4; - private static final int METHODID_GET_STORAGE_LAYOUT = 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_FOLDER: - serviceImpl.createFolder( - (com.google.storage.control.v2.CreateFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FOLDER: - serviceImpl.deleteFolder( - (com.google.storage.control.v2.DeleteFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FOLDER: - serviceImpl.getFolder( - (com.google.storage.control.v2.GetFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FOLDERS: - serviceImpl.listFolders( - (com.google.storage.control.v2.ListFoldersRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RENAME_FOLDER: - serviceImpl.renameFolder( - (com.google.storage.control.v2.RenameFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_STORAGE_LAYOUT: - serviceImpl.getStorageLayout( - (com.google.storage.control.v2.GetStorageLayoutRequest) 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) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.CreateFolderRequest, - com.google.storage.control.v2.Folder>(service, METHODID_CREATE_FOLDER))) - .addMethod( - getDeleteFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_FOLDER))) - .addMethod( - getGetFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.GetFolderRequest, - com.google.storage.control.v2.Folder>(service, METHODID_GET_FOLDER))) - .addMethod( - getListFoldersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.ListFoldersRequest, - com.google.storage.control.v2.ListFoldersResponse>( - service, METHODID_LIST_FOLDERS))) - .addMethod( - getRenameFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.RenameFolderRequest, - com.google.longrunning.Operation>(service, METHODID_RENAME_FOLDER))) - .addMethod( - getGetStorageLayoutMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.GetStorageLayoutRequest, - com.google.storage.control.v2.StorageLayout>( - service, METHODID_GET_STORAGE_LAYOUT))) - .build(); - } - - private abstract static class StorageControlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - StorageControlBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.storage.control.v2.StorageControlProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("StorageControl"); - } - } - - private static final class StorageControlFileDescriptorSupplier - extends StorageControlBaseDescriptorSupplier { - StorageControlFileDescriptorSupplier() {} - } - - private static final class StorageControlMethodDescriptorSupplier - extends StorageControlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - StorageControlMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (StorageControlGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new StorageControlFileDescriptorSupplier()) - .addMethod(getCreateFolderMethod()) - .addMethod(getDeleteFolderMethod()) - .addMethod(getGetFolderMethod()) - .addMethod(getListFoldersMethod()) - .addMethod(getRenameFolderMethod()) - .addMethod(getGetStorageLayoutMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java similarity index 85% rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java index 7278c8da60..4034eb12f0 100644 --- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java +++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java @@ -79,19 +79,595 @@ *

Note: close() needs to be called on the StorageClient object to clean up resources such as * threads. In the example above, try-with-resources is used, which automatically calls close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

DeleteBucket

Permanently deletes an empty bucket.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteBucket(DeleteBucketRequest request) + *

+ *

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

+ *
    + *
  • deleteBucket(BucketName name) + *

  • deleteBucket(String name) + *

+ *

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

+ *
    + *
  • deleteBucketCallable() + *

+ *

GetBucket

Returns metadata for the specified bucket.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getBucket(GetBucketRequest request) + *

+ *

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

+ *
    + *
  • getBucket(BucketName name) + *

  • getBucket(String name) + *

+ *

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

+ *
    + *
  • getBucketCallable() + *

+ *

CreateBucket

Creates a new bucket.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createBucket(CreateBucketRequest request) + *

+ *

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

+ *
    + *
  • createBucket(ProjectName parent, Bucket bucket, String bucketId) + *

  • createBucket(String parent, Bucket bucket, String bucketId) + *

+ *

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

+ *
    + *
  • createBucketCallable() + *

+ *

ListBuckets

Retrieves a list of buckets for a given project.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listBuckets(ListBucketsRequest request) + *

+ *

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

+ *
    + *
  • listBuckets(ProjectName parent) + *

  • listBuckets(String parent) + *

+ *

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

+ *
    + *
  • listBucketsPagedCallable() + *

  • listBucketsCallable() + *

+ *

LockBucketRetentionPolicy

Locks retention policy on a bucket.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest request) + *

+ *

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

+ *
    + *
  • lockBucketRetentionPolicy(BucketName bucket) + *

  • lockBucketRetentionPolicy(String bucket) + *

+ *

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

+ *
    + *
  • lockBucketRetentionPolicyCallable() + *

+ *

GetIamPolicy

Gets the IAM policy for a specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}`.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getIamPolicy(GetIamPolicyRequest request) + *

+ *

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

+ *
    + *
  • getIamPolicy(ResourceName resource) + *

  • getIamPolicy(String resource) + *

+ *

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

+ *
    + *
  • getIamPolicyCallable() + *

+ *

SetIamPolicy

Updates an IAM policy for the specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}`.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • setIamPolicy(SetIamPolicyRequest request) + *

+ *

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

+ *
    + *
  • setIamPolicy(ResourceName resource, Policy policy) + *

  • setIamPolicy(String resource, Policy policy) + *

+ *

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

+ *
    + *
  • setIamPolicyCallable() + *

+ *

TestIamPermissions

Tests a set of permissions on the given bucket or object to see which, if any, are held by the caller. The `resource` field in the request should be `projects/_/buckets/{bucket}` for a bucket or `projects/_/buckets/{bucket}/objects/{object}` for an object.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • testIamPermissions(TestIamPermissionsRequest request) + *

+ *

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

+ *
    + *
  • testIamPermissions(ResourceName resource, List<String> permissions) + *

  • testIamPermissions(String resource, List<String> permissions) + *

+ *

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

+ *
    + *
  • testIamPermissionsCallable() + *

+ *

UpdateBucket

Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateBucket(UpdateBucketRequest request) + *

+ *

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

+ *
    + *
  • updateBucket(Bucket bucket, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateBucketCallable() + *

+ *

DeleteNotificationConfig

Permanently deletes a NotificationConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteNotificationConfig(DeleteNotificationConfigRequest request) + *

+ *

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

+ *
    + *
  • deleteNotificationConfig(NotificationConfigName name) + *

  • deleteNotificationConfig(String name) + *

+ *

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

+ *
    + *
  • deleteNotificationConfigCallable() + *

+ *

GetNotificationConfig

View a NotificationConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getNotificationConfig(GetNotificationConfigRequest request) + *

+ *

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

+ *
    + *
  • getNotificationConfig(NotificationConfigName name) + *

  • getNotificationConfig(String name) + *

+ *

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

+ *
    + *
  • getNotificationConfigCallable() + *

+ *

CreateNotificationConfig

Creates a NotificationConfig for a given bucket. These NotificationConfigs, when triggered, publish messages to the specified Pub/Sub topics. See https://cloud.google.com/storage/docs/pubsub-notifications.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createNotificationConfig(CreateNotificationConfigRequest request) + *

+ *

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

+ *
    + *
  • createNotificationConfig(BucketName parent, NotificationConfig notificationConfig) + *

  • createNotificationConfig(String parent, NotificationConfig notificationConfig) + *

+ *

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

+ *
    + *
  • createNotificationConfigCallable() + *

+ *

ListNotificationConfigs

Retrieves a list of NotificationConfigs for a given bucket.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listNotificationConfigs(ListNotificationConfigsRequest request) + *

+ *

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

+ *
    + *
  • listNotificationConfigs(BucketName parent) + *

  • listNotificationConfigs(String parent) + *

+ *

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

+ *
    + *
  • listNotificationConfigsPagedCallable() + *

  • listNotificationConfigsCallable() + *

+ *

ComposeObject

Concatenates a list of existing objects into a new object in the same bucket.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • composeObject(ComposeObjectRequest request) + *

+ *

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

+ *
    + *
  • composeObjectCallable() + *

+ *

DeleteObject

Deletes an object and its metadata. + *

Deletions are normally permanent when versioning is disabled or whenever the generation parameter is used. However, if soft delete is enabled for the bucket, deleted objects can be restored using RestoreObject until the soft delete retention period has passed.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteObject(DeleteObjectRequest request) + *

+ *

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

+ *
    + *
  • deleteObject(BucketName bucket, String object) + *

  • deleteObject(String bucket, String object) + *

  • deleteObject(BucketName bucket, String object, long generation) + *

  • deleteObject(String bucket, String object, long generation) + *

+ *

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

+ *
    + *
  • deleteObjectCallable() + *

+ *

RestoreObject

Restores a soft-deleted object.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • restoreObject(RestoreObjectRequest request) + *

+ *

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

+ *
    + *
  • restoreObject(BucketName bucket, String object, long generation) + *

  • restoreObject(String bucket, String object, long generation) + *

+ *

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

+ *
    + *
  • restoreObjectCallable() + *

+ *

CancelResumableWrite

Cancels an in-progress resumable upload. + *

Any attempts to write to the resumable upload after cancelling the upload will fail. + *

The behavior for currently in progress write operations is not guaranteed - they could either complete before the cancellation or fail if the cancellation completes first.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • cancelResumableWrite(CancelResumableWriteRequest request) + *

+ *

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

+ *
    + *
  • cancelResumableWrite(String uploadId) + *

+ *

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

+ *
    + *
  • cancelResumableWriteCallable() + *

+ *

GetObject

Retrieves an object's metadata.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getObject(GetObjectRequest request) + *

+ *

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

+ *
    + *
  • getObject(BucketName bucket, String object) + *

  • getObject(String bucket, String object) + *

  • getObject(BucketName bucket, String object, long generation) + *

  • getObject(String bucket, String object, long generation) + *

+ *

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

+ *
    + *
  • getObjectCallable() + *

+ *

ReadObject

Reads an object's data.

+ *

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

+ *
    + *
  • readObjectCallable() + *

+ *

UpdateObject

Updates an object's metadata. Equivalent to JSON API's storage.objects.patch.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateObject(UpdateObjectRequest request) + *

+ *

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

+ *
    + *
  • updateObject(Object object, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateObjectCallable() + *

+ *

WriteObject

Stores a new object and metadata. + *

An object can be written either in a single message stream or in a resumable sequence of message streams. To write using a single stream, the client should include in the first message of the stream an `WriteObjectSpec` describing the destination bucket, object, and any preconditions. Additionally, the final message must set 'finish_write' to true, or else it is an error. + *

For a resumable write, the client should instead call `StartResumableWrite()`, populating a `WriteObjectSpec` into that request. They should then attach the returned `upload_id` to the first message of each following call to `WriteObject`. If the stream is closed before finishing the upload (either explicitly by the client or due to a network error or an error response from the server), the client should do as follows: - Check the result Status of the stream, to determine if writing can be resumed on this stream or must be restarted from scratch (by calling `StartResumableWrite()`). The resumable errors are DEADLINE_EXCEEDED, INTERNAL, and UNAVAILABLE. For each case, the client should use binary exponential backoff before retrying. Additionally, writes can be resumed after RESOURCE_EXHAUSTED errors, but only after taking appropriate measures, which may include reducing aggregate send rate across clients and/or requesting a quota increase for your project. - If the call to `WriteObject` returns `ABORTED`, that indicates concurrent attempts to update the resumable write, caused either by multiple racing clients or by a single client where the previous request was timed out on the client side but nonetheless reached the server. In this case the client should take steps to prevent further concurrent writes (e.g., increase the timeouts, stop using more than one process to perform the upload, etc.), and then should follow the steps below for resuming the upload. - For resumable errors, the client should call `QueryWriteStatus()` and then continue writing from the returned `persisted_size`. This may be less than the amount of data the client previously sent. Note also that it is acceptable to send data starting at an offset earlier than the returned `persisted_size`; in this case, the service will skip data at offsets that were already persisted (without checking that it matches the previously written data), and write only the data starting from the persisted offset. Even though the data isn't written, it may still incur a performance cost over resuming at the correct write offset. This behavior can make client-side handling simpler in some cases. - Clients must only send data that is a multiple of 256 KiB per message, unless the object is being finished with `finish_write` set to `true`. + *

The service will not view the object as complete until the client has sent a `WriteObjectRequest` with `finish_write` set to `true`. Sending any requests on a stream after sending a request with `finish_write` set to `true` will cause an error. The client **should** check the response it receives to determine how much data the service was able to commit and whether the service views the object as complete. + *

Attempting to resume an already finalized object will result in an OK status, with a WriteObjectResponse containing the finalized object's metadata. + *

Alternatively, the BidiWriteObject operation may be used to write an object with controls over flushing and the ability to fetch the ability to determine the current persisted size.

+ *

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

+ *
    + *
  • writeObjectCallable() + *

+ *

BidiWriteObject

Stores a new object and metadata. + *

This is similar to the WriteObject call with the added support for manual flushing of persisted state, and the ability to determine current persisted size without closing the stream. + *

The client may specify one or both of the `state_lookup` and `flush` fields in each BidiWriteObjectRequest. If `flush` is specified, the data written so far will be persisted to storage. If `state_lookup` is specified, the service will respond with a BidiWriteObjectResponse that contains the persisted size. If both `flush` and `state_lookup` are specified, the flush will always occur before a `state_lookup`, so that both may be set in the same request and the returned state will be the state of the object post-flush. When the stream is closed, a BidiWriteObjectResponse will always be sent to the client, regardless of the value of `state_lookup`.

+ *

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

+ *
    + *
  • bidiWriteObjectCallable() + *

+ *

ListObjects

Retrieves a list of objects matching the criteria.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listObjects(ListObjectsRequest request) + *

+ *

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

+ *
    + *
  • listObjects(BucketName parent) + *

  • listObjects(String parent) + *

+ *

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

+ *
    + *
  • listObjectsPagedCallable() + *

  • listObjectsCallable() + *

+ *

RewriteObject

Rewrites a source object to a destination object. Optionally overrides metadata.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • rewriteObject(RewriteObjectRequest request) + *

+ *

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

+ *
    + *
  • rewriteObjectCallable() + *

+ *

StartResumableWrite

Starts a resumable write. How long the write operation remains valid, and what happens when the write operation becomes invalid, are service-dependent.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • startResumableWrite(StartResumableWriteRequest request) + *

+ *

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

+ *
    + *
  • startResumableWriteCallable() + *

+ *

QueryWriteStatus

Determines the `persisted_size` for an object that is being written, which can then be used as the `write_offset` for the next `Write()` call. + *

If the object does not exist (i.e., the object has been deleted, or the first `Write()` has not yet reached the service), this method returns the error `NOT_FOUND`. + *

The client **may** call `QueryWriteStatus()` at any time to determine how much data has been processed for this object. This is useful if the client is buffering data and needs to know which data can be safely evicted. For any sequence of `QueryWriteStatus()` calls for a given object name, the sequence of returned `persisted_size` values will be non-decreasing.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • queryWriteStatus(QueryWriteStatusRequest request) + *

+ *

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

+ *
    + *
  • queryWriteStatus(String uploadId) + *

+ *

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

+ *
    + *
  • queryWriteStatusCallable() + *

+ *

GetServiceAccount

Retrieves the name of a project's Google Cloud Storage service account.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getServiceAccount(GetServiceAccountRequest request) + *

+ *

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

+ *
    + *
  • getServiceAccount(ProjectName project) + *

  • getServiceAccount(String project) + *

+ *

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

+ *
    + *
  • getServiceAccountCallable() + *

+ *

CreateHmacKey

Creates a new HMAC key for the given service account.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createHmacKey(CreateHmacKeyRequest request) + *

+ *

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

+ *
    + *
  • createHmacKey(ProjectName project, String serviceAccountEmail) + *

  • createHmacKey(String project, String serviceAccountEmail) + *

+ *

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

+ *
    + *
  • createHmacKeyCallable() + *

+ *

DeleteHmacKey

Deletes a given HMAC key. Key must be in an INACTIVE state.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteHmacKey(DeleteHmacKeyRequest request) + *

+ *

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

+ *
    + *
  • deleteHmacKey(String accessId, ProjectName project) + *

  • deleteHmacKey(String accessId, String project) + *

+ *

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

+ *
    + *
  • deleteHmacKeyCallable() + *

+ *

GetHmacKey

Gets an existing HMAC key metadata for the given id.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getHmacKey(GetHmacKeyRequest request) + *

+ *

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

+ *
    + *
  • getHmacKey(String accessId, ProjectName project) + *

  • getHmacKey(String accessId, String project) + *

+ *

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

+ *
    + *
  • getHmacKeyCallable() + *

+ *

ListHmacKeys

Lists HMAC keys under a given project with the additional filters provided.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listHmacKeys(ListHmacKeysRequest request) + *

+ *

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

+ *
    + *
  • listHmacKeys(ProjectName project) + *

  • listHmacKeys(String project) + *

+ *

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

+ *
    + *
  • listHmacKeysPagedCallable() + *

  • listHmacKeysCallable() + *

+ *

UpdateHmacKey

Updates a given HMAC key state between ACTIVE and INACTIVE.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateHmacKey(UpdateHmacKeyRequest request) + *

+ *

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

+ *
    + *
  • updateHmacKey(HmacKeyMetadata hmacKey, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateHmacKeyCallable() + *

+ *
* *

See the individual methods for example code. * @@ -834,9 +1410,8 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Gets the IAM policy for a specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *

Sample code: * @@ -867,9 +1442,8 @@ public final Policy getIamPolicy(ResourceName resource) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Gets the IAM policy for a specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *

Sample code: * @@ -897,9 +1471,8 @@ public final Policy getIamPolicy(String resource) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Gets the IAM policy for a specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *

Sample code: * @@ -930,9 +1503,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Gets the IAM policy for a specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *

Sample code: * @@ -962,9 +1534,8 @@ public final UnaryCallable getIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an IAM policy for the specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Updates an IAM policy for the specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *

Sample code: * @@ -1000,9 +1571,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an IAM policy for the specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Updates an IAM policy for the specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *

Sample code: * @@ -1035,9 +1605,8 @@ public final Policy setIamPolicy(String resource, Policy policy) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an IAM policy for the specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Updates an IAM policy for the specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *

Sample code: * @@ -1069,9 +1638,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an IAM policy for the specified bucket or object. The `resource` field in the request - * should be `projects/_/buckets/{bucket}` for a bucket or - * `projects/_/buckets/{bucket}/objects/{object}` for an object. + * Updates an IAM policy for the specified bucket. The `resource` field in the request should be + * `projects/_/buckets/{bucket}`. * *

Sample code: * diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java similarity index 99% rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java index 9a8b62b782..15c4a5abf7 100644 --- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java +++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; 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.iam.v1.GetIamPolicyRequest; diff --git a/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/gapic_metadata.json similarity index 100% rename from gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/gapic_metadata.json diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java similarity index 100% rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java similarity index 100% rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java similarity index 99% rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java index 27a4e5246a..ca66405545 100644 --- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java +++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java @@ -88,6 +88,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; @@ -475,12 +476,8 @@ public class GrpcStorageStub extends StorageStub { PathTemplate.create("{bucket=**}"); private static final PathTemplate GET_IAM_POLICY_0_PATH_TEMPLATE = PathTemplate.create("{bucket=**}"); - private static final PathTemplate GET_IAM_POLICY_1_PATH_TEMPLATE = - PathTemplate.create("{bucket=projects/*/buckets/*}/objects/**"); private static final PathTemplate SET_IAM_POLICY_0_PATH_TEMPLATE = PathTemplate.create("{bucket=**}"); - private static final PathTemplate SET_IAM_POLICY_1_PATH_TEMPLATE = - PathTemplate.create("{bucket=projects/*/buckets/*}/objects/**"); private static final PathTemplate TEST_IAM_PERMISSIONS_0_PATH_TEMPLATE = PathTemplate.create("{bucket=**}"); private static final PathTemplate TEST_IAM_PERMISSIONS_1_PATH_TEMPLATE = @@ -631,7 +628,6 @@ protected GrpcStorageStub( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add(request.getResource(), "bucket", GET_IAM_POLICY_0_PATH_TEMPLATE); - builder.add(request.getResource(), "bucket", GET_IAM_POLICY_1_PATH_TEMPLATE); return builder.build(); }) .build(); @@ -642,7 +638,6 @@ protected GrpcStorageStub( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add(request.getResource(), "bucket", SET_IAM_POLICY_0_PATH_TEMPLATE); - builder.add(request.getResource(), "bucket", SET_IAM_POLICY_1_PATH_TEMPLATE); return builder.build(); }) .build(); diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java similarity index 100% rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java similarity index 99% rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java index ed16ca270f..a1b9f34d25 100644 --- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java +++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java @@ -626,6 +626,15 @@ public StorageStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -973,7 +982,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1334,6 +1342,15 @@ public UnaryCallSettings.Builder getHmacKeyS return updateHmacKeySettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public StorageStubSettings build() throws IOException { return new StorageStubSettings(this); diff --git a/gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json similarity index 95% rename from gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json index c46acfa081..aedfd2a2da 100644 --- a/gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json +++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json @@ -710,6 +710,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", "queryAllDeclaredConstructors": true, @@ -845,6 +854,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", "queryAllDeclaredConstructors": true, @@ -908,6 +1025,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", "queryAllDeclaredConstructors": true, diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json new file mode 100644 index 0000000000..f3a73a24b2 --- /dev/null +++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json @@ -0,0 +1,114 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.storage.v2", + "libraryPackage": "com.google.storage.v2", + "services": { + "Storage": { + "clients": { + "grpc": { + "libraryClient": "StorageClient", + "rpcs": { + "BidiWriteObject": { + "methods": ["bidiWriteObjectCallable"] + }, + "CancelResumableWrite": { + "methods": ["cancelResumableWrite", "cancelResumableWrite", "cancelResumableWriteCallable"] + }, + "ComposeObject": { + "methods": ["composeObject", "composeObjectCallable"] + }, + "CreateBucket": { + "methods": ["createBucket", "createBucket", "createBucket", "createBucketCallable"] + }, + "CreateHmacKey": { + "methods": ["createHmacKey", "createHmacKey", "createHmacKey", "createHmacKeyCallable"] + }, + "CreateNotificationConfig": { + "methods": ["createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfigCallable"] + }, + "DeleteBucket": { + "methods": ["deleteBucket", "deleteBucket", "deleteBucket", "deleteBucketCallable"] + }, + "DeleteHmacKey": { + "methods": ["deleteHmacKey", "deleteHmacKey", "deleteHmacKey", "deleteHmacKeyCallable"] + }, + "DeleteNotificationConfig": { + "methods": ["deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfigCallable"] + }, + "DeleteObject": { + "methods": ["deleteObject", "deleteObject", "deleteObject", "deleteObject", "deleteObject", "deleteObjectCallable"] + }, + "GetBucket": { + "methods": ["getBucket", "getBucket", "getBucket", "getBucketCallable"] + }, + "GetHmacKey": { + "methods": ["getHmacKey", "getHmacKey", "getHmacKey", "getHmacKeyCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, + "GetNotificationConfig": { + "methods": ["getNotificationConfig", "getNotificationConfig", "getNotificationConfig", "getNotificationConfigCallable"] + }, + "GetObject": { + "methods": ["getObject", "getObject", "getObject", "getObject", "getObject", "getObjectCallable"] + }, + "GetServiceAccount": { + "methods": ["getServiceAccount", "getServiceAccount", "getServiceAccount", "getServiceAccountCallable"] + }, + "ListBuckets": { + "methods": ["listBuckets", "listBuckets", "listBuckets", "listBucketsPagedCallable", "listBucketsCallable"] + }, + "ListHmacKeys": { + "methods": ["listHmacKeys", "listHmacKeys", "listHmacKeys", "listHmacKeysPagedCallable", "listHmacKeysCallable"] + }, + "ListNotificationConfigs": { + "methods": ["listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigsPagedCallable", "listNotificationConfigsCallable"] + }, + "ListObjects": { + "methods": ["listObjects", "listObjects", "listObjects", "listObjectsPagedCallable", "listObjectsCallable"] + }, + "LockBucketRetentionPolicy": { + "methods": ["lockBucketRetentionPolicy", "lockBucketRetentionPolicy", "lockBucketRetentionPolicy", "lockBucketRetentionPolicyCallable"] + }, + "QueryWriteStatus": { + "methods": ["queryWriteStatus", "queryWriteStatus", "queryWriteStatusCallable"] + }, + "ReadObject": { + "methods": ["readObjectCallable"] + }, + "RestoreObject": { + "methods": ["restoreObject", "restoreObject", "restoreObject", "restoreObjectCallable"] + }, + "RewriteObject": { + "methods": ["rewriteObject", "rewriteObjectCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, + "StartResumableWrite": { + "methods": ["startResumableWrite", "startResumableWriteCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateBucket": { + "methods": ["updateBucket", "updateBucket", "updateBucketCallable"] + }, + "UpdateHmacKey": { + "methods": ["updateHmacKey", "updateHmacKey", "updateHmacKeyCallable"] + }, + "UpdateObject": { + "methods": ["updateObject", "updateObject", "updateObjectCallable"] + }, + "WriteObject": { + "methods": ["writeObjectCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java similarity index 100% rename from gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java diff --git a/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java similarity index 100% rename from gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java diff --git a/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java similarity index 100% rename from gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java similarity index 89% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java index 46d7d7627e..10ac2d0900 100644 --- a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java +++ b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java @@ -61,6 +61,131 @@ *

Note: close() needs to be called on the StorageControlClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

CreateFolder

Creates a new folder.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createFolder(CreateFolderRequest request) + *

+ *

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

+ *
    + *
  • createFolder(BucketName parent, Folder folder, String folderId) + *

  • createFolder(String parent, Folder folder, String folderId) + *

+ *

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

+ *
    + *
  • createFolderCallable() + *

+ *

DeleteFolder

Permanently deletes an empty folder.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteFolder(DeleteFolderRequest request) + *

+ *

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

+ *
    + *
  • deleteFolder(FolderName name) + *

  • deleteFolder(String name) + *

+ *

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

+ *
    + *
  • deleteFolderCallable() + *

+ *

GetFolder

Returns metadata for the specified folder.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getFolder(GetFolderRequest request) + *

+ *

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

+ *
    + *
  • getFolder(FolderName name) + *

  • getFolder(String name) + *

+ *

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

+ *
    + *
  • getFolderCallable() + *

+ *

ListFolders

Retrieves a list of folders for a given bucket.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listFolders(ListFoldersRequest request) + *

+ *

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

+ *
    + *
  • listFolders(BucketName parent) + *

  • listFolders(String parent) + *

+ *

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

+ *
    + *
  • listFoldersPagedCallable() + *

  • listFoldersCallable() + *

+ *

RenameFolder

Renames a source folder to a destination folder. During a rename, the source and destination folders are locked until the long running operation completes.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • renameFolderAsync(RenameFolderRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • renameFolderAsync(FolderName name, String destinationFolderId) + *

  • renameFolderAsync(String name, String destinationFolderId) + *

+ *

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

+ *
    + *
  • renameFolderOperationCallable() + *

  • renameFolderCallable() + *

+ *

GetStorageLayout

Returns the storage layout configuration for a given bucket.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getStorageLayout(GetStorageLayoutRequest request) + *

+ *

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

+ *
    + *
  • getStorageLayout(StorageLayoutName name) + *

  • getStorageLayout(String name) + *

+ *

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

+ *
    + *
  • getStorageLayoutCallable() + *

+ *
+ * *

See the individual methods for example code. * *

Many parameters require resource names to be formatted in a particular way. To assist with diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java similarity index 99% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java index fc29f03059..bd367b7224 100644 --- a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java +++ b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.longrunning.Operation; diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json similarity index 100% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java similarity index 100% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java similarity index 100% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java similarity index 88% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java index bd0c7b3202..3c68c26c84 100644 --- a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java +++ b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Strings; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; @@ -43,6 +44,8 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; +import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -184,6 +187,14 @@ protected GrpcStorageControlStub( builder.add(request.getParent(), "bucket", CREATE_FOLDER_0_PATH_TEMPLATE); return builder.build(); }) + .setRequestMutator( + request -> { + CreateFolderRequest.Builder requestBuilder = request.toBuilder(); + if (Strings.isNullOrEmpty(request.getRequestId())) { + requestBuilder.setRequestId(UUID.randomUUID().toString()); + } + return requestBuilder.build(); + }) .build(); GrpcCallSettings deleteFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -194,6 +205,14 @@ protected GrpcStorageControlStub( builder.add(request.getName(), "bucket", DELETE_FOLDER_0_PATH_TEMPLATE); return builder.build(); }) + .setRequestMutator( + request -> { + DeleteFolderRequest.Builder requestBuilder = request.toBuilder(); + if (Strings.isNullOrEmpty(request.getRequestId())) { + requestBuilder.setRequestId(UUID.randomUUID().toString()); + } + return requestBuilder.build(); + }) .build(); GrpcCallSettings getFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -204,6 +223,14 @@ protected GrpcStorageControlStub( builder.add(request.getName(), "bucket", GET_FOLDER_0_PATH_TEMPLATE); return builder.build(); }) + .setRequestMutator( + request -> { + GetFolderRequest.Builder requestBuilder = request.toBuilder(); + if (Strings.isNullOrEmpty(request.getRequestId())) { + requestBuilder.setRequestId(UUID.randomUUID().toString()); + } + return requestBuilder.build(); + }) .build(); GrpcCallSettings listFoldersTransportSettings = GrpcCallSettings.newBuilder() @@ -224,6 +251,14 @@ protected GrpcStorageControlStub( builder.add(request.getName(), "bucket", RENAME_FOLDER_0_PATH_TEMPLATE); return builder.build(); }) + .setRequestMutator( + request -> { + RenameFolderRequest.Builder requestBuilder = request.toBuilder(); + if (Strings.isNullOrEmpty(request.getRequestId())) { + requestBuilder.setRequestId(UUID.randomUUID().toString()); + } + return requestBuilder.build(); + }) .build(); GrpcCallSettings getStorageLayoutTransportSettings = GrpcCallSettings.newBuilder() @@ -234,6 +269,14 @@ protected GrpcStorageControlStub( builder.add(request.getName(), "bucket", GET_STORAGE_LAYOUT_0_PATH_TEMPLATE); return builder.build(); }) + .setRequestMutator( + request -> { + GetStorageLayoutRequest.Builder requestBuilder = request.toBuilder(); + if (Strings.isNullOrEmpty(request.getRequestId())) { + requestBuilder.setRequestId(UUID.randomUUID().toString()); + } + return requestBuilder.build(); + }) .build(); this.createFolderCallable = diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java similarity index 100% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java similarity index 97% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java index 8e0bd15fc8..9b016e0fd8 100644 --- a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java @@ -225,6 +225,15 @@ public StorageControlStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -418,7 +427,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -539,6 +547,15 @@ public UnaryCallSettings.Builder renameFolderSet return getStorageLayoutSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public StorageControlStubSettings build() throws IOException { return new StorageControlStubSettings(this); diff --git a/google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json b/owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json similarity index 91% rename from google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json index 63f27af31d..ed0d3222c3 100644 --- a/google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json +++ b/owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json @@ -656,6 +656,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", "queryAllDeclaredConstructors": true, @@ -791,6 +800,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", "queryAllDeclaredConstructors": true, @@ -854,6 +971,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json similarity index 100% rename from google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json diff --git a/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java b/owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java similarity index 100% rename from google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java diff --git a/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java b/owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java similarity index 100% rename from google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java diff --git a/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java b/owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java similarity index 100% rename from google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java diff --git a/owl-bot-staging/v2/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java new file mode 100644 index 0000000000..8a3d67a872 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java @@ -0,0 +1,761 @@ +package com.google.storage.control.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * StorageControl service includes selected control plane operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/storage/control/v2/storage_control.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class StorageControlGrpc { + + private StorageControlGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.storage.control.v2.StorageControl"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFolder", + requestType = com.google.storage.control.v2.CreateFolderRequest.class, + responseType = com.google.storage.control.v2.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFolderMethod() { + io.grpc.MethodDescriptor getCreateFolderMethod; + if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { + StorageControlGrpc.getCreateFolderMethod = getCreateFolderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.CreateFolderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.Folder.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("CreateFolder")) + .build(); + } + } + } + return getCreateFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFolder", + requestType = com.google.storage.control.v2.DeleteFolderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteFolderMethod() { + io.grpc.MethodDescriptor getDeleteFolderMethod; + if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { + StorageControlGrpc.getDeleteFolderMethod = getDeleteFolderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.DeleteFolderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("DeleteFolder")) + .build(); + } + } + } + return getDeleteFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFolder", + requestType = com.google.storage.control.v2.GetFolderRequest.class, + responseType = com.google.storage.control.v2.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFolderMethod() { + io.grpc.MethodDescriptor getGetFolderMethod; + if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { + StorageControlGrpc.getGetFolderMethod = getGetFolderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.GetFolderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.Folder.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("GetFolder")) + .build(); + } + } + } + return getGetFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFoldersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFolders", + requestType = com.google.storage.control.v2.ListFoldersRequest.class, + responseType = com.google.storage.control.v2.ListFoldersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFoldersMethod() { + io.grpc.MethodDescriptor getListFoldersMethod; + if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { + StorageControlGrpc.getListFoldersMethod = getListFoldersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFolders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ListFoldersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ListFoldersResponse.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("ListFolders")) + .build(); + } + } + } + return getListFoldersMethod; + } + + private static volatile io.grpc.MethodDescriptor getRenameFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RenameFolder", + requestType = com.google.storage.control.v2.RenameFolderRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRenameFolderMethod() { + io.grpc.MethodDescriptor getRenameFolderMethod; + if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { + StorageControlGrpc.getRenameFolderMethod = getRenameFolderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RenameFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.RenameFolderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("RenameFolder")) + .build(); + } + } + } + return getRenameFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetStorageLayoutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStorageLayout", + requestType = com.google.storage.control.v2.GetStorageLayoutRequest.class, + responseType = com.google.storage.control.v2.StorageLayout.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetStorageLayoutMethod() { + io.grpc.MethodDescriptor getGetStorageLayoutMethod; + if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { + StorageControlGrpc.getGetStorageLayoutMethod = getGetStorageLayoutMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStorageLayout")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.GetStorageLayoutRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.StorageLayout.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("GetStorageLayout")) + .build(); + } + } + } + return getGetStorageLayoutMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static StorageControlStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public StorageControlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlStub(channel, callOptions); + } + }; + return StorageControlStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static StorageControlBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public StorageControlBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlBlockingStub(channel, callOptions); + } + }; + return StorageControlBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static StorageControlFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public StorageControlFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlFutureStub(channel, callOptions); + } + }; + return StorageControlFutureStub.newStub(factory, channel); + } + + /** + *
+   * StorageControl service includes selected control plane operations.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Creates a new folder.
+     * 
+ */ + default void createFolder(com.google.storage.control.v2.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFolderMethod(), responseObserver); + } + + /** + *
+     * Permanently deletes an empty folder.
+     * 
+ */ + default void deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFolderMethod(), responseObserver); + } + + /** + *
+     * Returns metadata for the specified folder.
+     * 
+ */ + default void getFolder(com.google.storage.control.v2.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFolderMethod(), responseObserver); + } + + /** + *
+     * Retrieves a list of folders for a given bucket.
+     * 
+ */ + default void listFolders(com.google.storage.control.v2.ListFoldersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFoldersMethod(), responseObserver); + } + + /** + *
+     * Renames a source folder to a destination folder. During a rename, the
+     * source and destination folders are locked until the long running operation
+     * completes.
+     * 
+ */ + default void renameFolder(com.google.storage.control.v2.RenameFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRenameFolderMethod(), responseObserver); + } + + /** + *
+     * Returns the storage layout configuration for a given bucket.
+     * 
+ */ + default void getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStorageLayoutMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service StorageControl. + *
+   * StorageControl service includes selected control plane operations.
+   * 
+ */ + public static abstract class StorageControlImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return StorageControlGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service StorageControl. + *
+   * StorageControl service includes selected control plane operations.
+   * 
+ */ + public static final class StorageControlStub + extends io.grpc.stub.AbstractAsyncStub { + private StorageControlStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StorageControlStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlStub(channel, callOptions); + } + + /** + *
+     * Creates a new folder.
+     * 
+ */ + public void createFolder(com.google.storage.control.v2.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Permanently deletes an empty folder.
+     * 
+ */ + public void deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns metadata for the specified folder.
+     * 
+ */ + public void getFolder(com.google.storage.control.v2.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves a list of folders for a given bucket.
+     * 
+ */ + public void listFolders(com.google.storage.control.v2.ListFoldersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFoldersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Renames a source folder to a destination folder. During a rename, the
+     * source and destination folders are locked until the long running operation
+     * completes.
+     * 
+ */ + public void renameFolder(com.google.storage.control.v2.RenameFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRenameFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the storage layout configuration for a given bucket.
+     * 
+ */ + public void getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service StorageControl. + *
+   * StorageControl service includes selected control plane operations.
+   * 
+ */ + public static final class StorageControlBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private StorageControlBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StorageControlBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new folder.
+     * 
+ */ + public com.google.storage.control.v2.Folder createFolder(com.google.storage.control.v2.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFolderMethod(), getCallOptions(), request); + } + + /** + *
+     * Permanently deletes an empty folder.
+     * 
+ */ + public com.google.protobuf.Empty deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFolderMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns metadata for the specified folder.
+     * 
+ */ + public com.google.storage.control.v2.Folder getFolder(com.google.storage.control.v2.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFolderMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves a list of folders for a given bucket.
+     * 
+ */ + public com.google.storage.control.v2.ListFoldersResponse listFolders(com.google.storage.control.v2.ListFoldersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFoldersMethod(), getCallOptions(), request); + } + + /** + *
+     * Renames a source folder to a destination folder. During a rename, the
+     * source and destination folders are locked until the long running operation
+     * completes.
+     * 
+ */ + public com.google.longrunning.Operation renameFolder(com.google.storage.control.v2.RenameFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRenameFolderMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the storage layout configuration for a given bucket.
+     * 
+ */ + public com.google.storage.control.v2.StorageLayout getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStorageLayoutMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service StorageControl. + *
+   * StorageControl service includes selected control plane operations.
+   * 
+ */ + public static final class StorageControlFutureStub + extends io.grpc.stub.AbstractFutureStub { + private StorageControlFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StorageControlFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new folder.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createFolder( + com.google.storage.control.v2.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request); + } + + /** + *
+     * Permanently deletes an empty folder.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteFolder( + com.google.storage.control.v2.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns metadata for the specified folder.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFolder( + com.google.storage.control.v2.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves a list of folders for a given bucket.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFolders( + com.google.storage.control.v2.ListFoldersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFoldersMethod(), getCallOptions()), request); + } + + /** + *
+     * Renames a source folder to a destination folder. During a rename, the
+     * source and destination folders are locked until the long running operation
+     * completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture renameFolder( + com.google.storage.control.v2.RenameFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRenameFolderMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the storage layout configuration for a given bucket.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getStorageLayout( + com.google.storage.control.v2.GetStorageLayoutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_FOLDER = 0; + private static final int METHODID_DELETE_FOLDER = 1; + private static final int METHODID_GET_FOLDER = 2; + private static final int METHODID_LIST_FOLDERS = 3; + private static final int METHODID_RENAME_FOLDER = 4; + private static final int METHODID_GET_STORAGE_LAYOUT = 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_FOLDER: + serviceImpl.createFolder((com.google.storage.control.v2.CreateFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FOLDER: + serviceImpl.deleteFolder((com.google.storage.control.v2.DeleteFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FOLDER: + serviceImpl.getFolder((com.google.storage.control.v2.GetFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FOLDERS: + serviceImpl.listFolders((com.google.storage.control.v2.ListFoldersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RENAME_FOLDER: + serviceImpl.renameFolder((com.google.storage.control.v2.RenameFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_STORAGE_LAYOUT: + serviceImpl.getStorageLayout((com.google.storage.control.v2.GetStorageLayoutRequest) 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) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.CreateFolderRequest, + com.google.storage.control.v2.Folder>( + service, METHODID_CREATE_FOLDER))) + .addMethod( + getDeleteFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.DeleteFolderRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_FOLDER))) + .addMethod( + getGetFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.GetFolderRequest, + com.google.storage.control.v2.Folder>( + service, METHODID_GET_FOLDER))) + .addMethod( + getListFoldersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.ListFoldersRequest, + com.google.storage.control.v2.ListFoldersResponse>( + service, METHODID_LIST_FOLDERS))) + .addMethod( + getRenameFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.RenameFolderRequest, + com.google.longrunning.Operation>( + service, METHODID_RENAME_FOLDER))) + .addMethod( + getGetStorageLayoutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.GetStorageLayoutRequest, + com.google.storage.control.v2.StorageLayout>( + service, METHODID_GET_STORAGE_LAYOUT))) + .build(); + } + + private static abstract class StorageControlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + StorageControlBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.storage.control.v2.StorageControlProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("StorageControl"); + } + } + + private static final class StorageControlFileDescriptorSupplier + extends StorageControlBaseDescriptorSupplier { + StorageControlFileDescriptorSupplier() {} + } + + private static final class StorageControlMethodDescriptorSupplier + extends StorageControlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + StorageControlMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (StorageControlGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new StorageControlFileDescriptorSupplier()) + .addMethod(getCreateFolderMethod()) + .addMethod(getDeleteFolderMethod()) + .addMethod(getGetFolderMethod()) + .addMethod(getListFoldersMethod()) + .addMethod(getRenameFolderMethod()) + .addMethod(getGetStorageLayoutMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java similarity index 50% rename from grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java rename to owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java index 8963f3815a..b49ea3a8d6 100644 --- a/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.storage.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * ## API Overview and Naming Syntax
  * The Cloud Storage gRPC API allows applications to read and write data through
@@ -52,1394 +35,1043 @@ private StorageGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.storage.v2.Storage";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty>
-      getDeleteBucketMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteBucketMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteBucket",
       requestType = com.google.storage.v2.DeleteBucketRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty>
-      getDeleteBucketMethod() {
-    io.grpc.MethodDescriptor
-        getDeleteBucketMethod;
+  public static io.grpc.MethodDescriptor getDeleteBucketMethod() {
+    io.grpc.MethodDescriptor getDeleteBucketMethod;
     if ((getDeleteBucketMethod = StorageGrpc.getDeleteBucketMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getDeleteBucketMethod = StorageGrpc.getDeleteBucketMethod) == null) {
-          StorageGrpc.getDeleteBucketMethod =
-              getDeleteBucketMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBucket"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.DeleteBucketRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteBucket"))
-                      .build();
+          StorageGrpc.getDeleteBucketMethod = getDeleteBucketMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBucket"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.DeleteBucketRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteBucket"))
+              .build();
         }
       }
     }
     return getDeleteBucketMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.GetBucketRequest, com.google.storage.v2.Bucket>
-      getGetBucketMethod;
+  private static volatile io.grpc.MethodDescriptor getGetBucketMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetBucket",
       requestType = com.google.storage.v2.GetBucketRequest.class,
       responseType = com.google.storage.v2.Bucket.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.GetBucketRequest, com.google.storage.v2.Bucket>
-      getGetBucketMethod() {
-    io.grpc.MethodDescriptor
-        getGetBucketMethod;
+  public static io.grpc.MethodDescriptor getGetBucketMethod() {
+    io.grpc.MethodDescriptor getGetBucketMethod;
     if ((getGetBucketMethod = StorageGrpc.getGetBucketMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getGetBucketMethod = StorageGrpc.getGetBucketMethod) == null) {
-          StorageGrpc.getGetBucketMethod =
-              getGetBucketMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBucket"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.GetBucketRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.Bucket.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetBucket"))
-                      .build();
+          StorageGrpc.getGetBucketMethod = getGetBucketMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBucket"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.GetBucketRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.Bucket.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetBucket"))
+              .build();
         }
       }
     }
     return getGetBucketMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>
-      getCreateBucketMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateBucketMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateBucket",
       requestType = com.google.storage.v2.CreateBucketRequest.class,
       responseType = com.google.storage.v2.Bucket.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>
-      getCreateBucketMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>
-        getCreateBucketMethod;
+  public static io.grpc.MethodDescriptor getCreateBucketMethod() {
+    io.grpc.MethodDescriptor getCreateBucketMethod;
     if ((getCreateBucketMethod = StorageGrpc.getCreateBucketMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getCreateBucketMethod = StorageGrpc.getCreateBucketMethod) == null) {
-          StorageGrpc.getCreateBucketMethod =
-              getCreateBucketMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucket"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.CreateBucketRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.Bucket.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateBucket"))
-                      .build();
+          StorageGrpc.getCreateBucketMethod = getCreateBucketMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucket"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.CreateBucketRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.Bucket.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateBucket"))
+              .build();
         }
       }
     }
     return getCreateBucketMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.ListBucketsRequest, com.google.storage.v2.ListBucketsResponse>
-      getListBucketsMethod;
+  private static volatile io.grpc.MethodDescriptor getListBucketsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListBuckets",
       requestType = com.google.storage.v2.ListBucketsRequest.class,
       responseType = com.google.storage.v2.ListBucketsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.ListBucketsRequest, com.google.storage.v2.ListBucketsResponse>
-      getListBucketsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.ListBucketsRequest, com.google.storage.v2.ListBucketsResponse>
-        getListBucketsMethod;
+  public static io.grpc.MethodDescriptor getListBucketsMethod() {
+    io.grpc.MethodDescriptor getListBucketsMethod;
     if ((getListBucketsMethod = StorageGrpc.getListBucketsMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getListBucketsMethod = StorageGrpc.getListBucketsMethod) == null) {
-          StorageGrpc.getListBucketsMethod =
-              getListBucketsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBuckets"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ListBucketsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ListBucketsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListBuckets"))
-                      .build();
+          StorageGrpc.getListBucketsMethod = getListBucketsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBuckets"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ListBucketsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ListBucketsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListBuckets"))
+              .build();
         }
       }
     }
     return getListBucketsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.LockBucketRetentionPolicyRequest, com.google.storage.v2.Bucket>
-      getLockBucketRetentionPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor getLockBucketRetentionPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "LockBucketRetentionPolicy",
       requestType = com.google.storage.v2.LockBucketRetentionPolicyRequest.class,
       responseType = com.google.storage.v2.Bucket.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.LockBucketRetentionPolicyRequest, com.google.storage.v2.Bucket>
-      getLockBucketRetentionPolicyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.LockBucketRetentionPolicyRequest, com.google.storage.v2.Bucket>
-        getLockBucketRetentionPolicyMethod;
-    if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getLockBucketRetentionPolicyMethod() {
+    io.grpc.MethodDescriptor getLockBucketRetentionPolicyMethod;
+    if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod) == null) {
       synchronized (StorageGrpc.class) {
-        if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod)
-            == null) {
-          StorageGrpc.getLockBucketRetentionPolicyMethod =
-              getLockBucketRetentionPolicyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "LockBucketRetentionPolicy"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.LockBucketRetentionPolicyRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.Bucket.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new StorageMethodDescriptorSupplier("LockBucketRetentionPolicy"))
-                      .build();
+        if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod) == null) {
+          StorageGrpc.getLockBucketRetentionPolicyMethod = getLockBucketRetentionPolicyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LockBucketRetentionPolicy"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.LockBucketRetentionPolicyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.Bucket.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("LockBucketRetentionPolicy"))
+              .build();
         }
       }
     }
     return getLockBucketRetentionPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
-      getGetIamPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy",
       requestType = com.google.iam.v1.GetIamPolicyRequest.class,
       responseType = com.google.iam.v1.Policy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
-      getGetIamPolicyMethod() {
-    io.grpc.MethodDescriptor
-        getGetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor getGetIamPolicyMethod() {
+    io.grpc.MethodDescriptor getGetIamPolicyMethod;
     if ((getGetIamPolicyMethod = StorageGrpc.getGetIamPolicyMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getGetIamPolicyMethod = StorageGrpc.getGetIamPolicyMethod) == null) {
-          StorageGrpc.getGetIamPolicyMethod =
-              getGetIamPolicyMethod =
-                  io.grpc.MethodDescriptor
-                      .newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.Policy.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetIamPolicy"))
-                      .build();
+          StorageGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.Policy.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetIamPolicy"))
+              .build();
         }
       }
     }
     return getGetIamPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
-      getSetIamPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy",
       requestType = com.google.iam.v1.SetIamPolicyRequest.class,
       responseType = com.google.iam.v1.Policy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
-      getSetIamPolicyMethod() {
-    io.grpc.MethodDescriptor
-        getSetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor getSetIamPolicyMethod() {
+    io.grpc.MethodDescriptor getSetIamPolicyMethod;
     if ((getSetIamPolicyMethod = StorageGrpc.getSetIamPolicyMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getSetIamPolicyMethod = StorageGrpc.getSetIamPolicyMethod) == null) {
-          StorageGrpc.getSetIamPolicyMethod =
-              getSetIamPolicyMethod =
-                  io.grpc.MethodDescriptor
-                      .newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.Policy.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("SetIamPolicy"))
-                      .build();
+          StorageGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.Policy.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("SetIamPolicy"))
+              .build();
         }
       }
     }
     return getSetIamPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
-      getTestIamPermissionsMethod;
+  private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions",
       requestType = com.google.iam.v1.TestIamPermissionsRequest.class,
       responseType = com.google.iam.v1.TestIamPermissionsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
-      getTestIamPermissionsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.iam.v1.TestIamPermissionsRequest,
-            com.google.iam.v1.TestIamPermissionsResponse>
-        getTestIamPermissionsMethod;
+  public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() {
+    io.grpc.MethodDescriptor getTestIamPermissionsMethod;
     if ((getTestIamPermissionsMethod = StorageGrpc.getTestIamPermissionsMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getTestIamPermissionsMethod = StorageGrpc.getTestIamPermissionsMethod) == null) {
-          StorageGrpc.getTestIamPermissionsMethod =
-              getTestIamPermissionsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new StorageMethodDescriptorSupplier("TestIamPermissions"))
-                      .build();
+          StorageGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("TestIamPermissions"))
+              .build();
         }
       }
     }
     return getTestIamPermissionsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>
-      getUpdateBucketMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateBucketMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateBucket",
       requestType = com.google.storage.v2.UpdateBucketRequest.class,
       responseType = com.google.storage.v2.Bucket.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>
-      getUpdateBucketMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>
-        getUpdateBucketMethod;
+  public static io.grpc.MethodDescriptor getUpdateBucketMethod() {
+    io.grpc.MethodDescriptor getUpdateBucketMethod;
     if ((getUpdateBucketMethod = StorageGrpc.getUpdateBucketMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getUpdateBucketMethod = StorageGrpc.getUpdateBucketMethod) == null) {
-          StorageGrpc.getUpdateBucketMethod =
-              getUpdateBucketMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucket"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.UpdateBucketRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.Bucket.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateBucket"))
-                      .build();
+          StorageGrpc.getUpdateBucketMethod = getUpdateBucketMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucket"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.UpdateBucketRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.Bucket.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateBucket"))
+              .build();
         }
       }
     }
     return getUpdateBucketMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.DeleteNotificationConfigRequest, com.google.protobuf.Empty>
-      getDeleteNotificationConfigMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteNotificationConfigMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationConfig",
       requestType = com.google.storage.v2.DeleteNotificationConfigRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.DeleteNotificationConfigRequest, com.google.protobuf.Empty>
-      getDeleteNotificationConfigMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.DeleteNotificationConfigRequest, com.google.protobuf.Empty>
-        getDeleteNotificationConfigMethod;
-    if ((getDeleteNotificationConfigMethod = StorageGrpc.getDeleteNotificationConfigMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getDeleteNotificationConfigMethod() {
+    io.grpc.MethodDescriptor getDeleteNotificationConfigMethod;
+    if ((getDeleteNotificationConfigMethod = StorageGrpc.getDeleteNotificationConfigMethod) == null) {
       synchronized (StorageGrpc.class) {
-        if ((getDeleteNotificationConfigMethod = StorageGrpc.getDeleteNotificationConfigMethod)
-            == null) {
-          StorageGrpc.getDeleteNotificationConfigMethod =
-              getDeleteNotificationConfigMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.DeleteNotificationConfigRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new StorageMethodDescriptorSupplier("DeleteNotificationConfig"))
-                      .build();
+        if ((getDeleteNotificationConfigMethod = StorageGrpc.getDeleteNotificationConfigMethod) == null) {
+          StorageGrpc.getDeleteNotificationConfigMethod = getDeleteNotificationConfigMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.DeleteNotificationConfigRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteNotificationConfig"))
+              .build();
         }
       }
     }
     return getDeleteNotificationConfigMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.GetNotificationConfigRequest,
-          com.google.storage.v2.NotificationConfig>
-      getGetNotificationConfigMethod;
+  private static volatile io.grpc.MethodDescriptor getGetNotificationConfigMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetNotificationConfig",
       requestType = com.google.storage.v2.GetNotificationConfigRequest.class,
       responseType = com.google.storage.v2.NotificationConfig.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.GetNotificationConfigRequest,
-          com.google.storage.v2.NotificationConfig>
-      getGetNotificationConfigMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.GetNotificationConfigRequest,
-            com.google.storage.v2.NotificationConfig>
-        getGetNotificationConfigMethod;
+  public static io.grpc.MethodDescriptor getGetNotificationConfigMethod() {
+    io.grpc.MethodDescriptor getGetNotificationConfigMethod;
     if ((getGetNotificationConfigMethod = StorageGrpc.getGetNotificationConfigMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getGetNotificationConfigMethod = StorageGrpc.getGetNotificationConfigMethod) == null) {
-          StorageGrpc.getGetNotificationConfigMethod =
-              getGetNotificationConfigMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "GetNotificationConfig"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.GetNotificationConfigRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.NotificationConfig.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new StorageMethodDescriptorSupplier("GetNotificationConfig"))
-                      .build();
+          StorageGrpc.getGetNotificationConfigMethod = getGetNotificationConfigMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationConfig"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.GetNotificationConfigRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.NotificationConfig.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetNotificationConfig"))
+              .build();
         }
       }
     }
     return getGetNotificationConfigMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.CreateNotificationConfigRequest,
-          com.google.storage.v2.NotificationConfig>
-      getCreateNotificationConfigMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateNotificationConfigMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateNotificationConfig",
       requestType = com.google.storage.v2.CreateNotificationConfigRequest.class,
       responseType = com.google.storage.v2.NotificationConfig.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.CreateNotificationConfigRequest,
-          com.google.storage.v2.NotificationConfig>
-      getCreateNotificationConfigMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.CreateNotificationConfigRequest,
-            com.google.storage.v2.NotificationConfig>
-        getCreateNotificationConfigMethod;
-    if ((getCreateNotificationConfigMethod = StorageGrpc.getCreateNotificationConfigMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getCreateNotificationConfigMethod() {
+    io.grpc.MethodDescriptor getCreateNotificationConfigMethod;
+    if ((getCreateNotificationConfigMethod = StorageGrpc.getCreateNotificationConfigMethod) == null) {
       synchronized (StorageGrpc.class) {
-        if ((getCreateNotificationConfigMethod = StorageGrpc.getCreateNotificationConfigMethod)
-            == null) {
-          StorageGrpc.getCreateNotificationConfigMethod =
-              getCreateNotificationConfigMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.CreateNotificationConfigRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.NotificationConfig.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new StorageMethodDescriptorSupplier("CreateNotificationConfig"))
-                      .build();
+        if ((getCreateNotificationConfigMethod = StorageGrpc.getCreateNotificationConfigMethod) == null) {
+          StorageGrpc.getCreateNotificationConfigMethod = getCreateNotificationConfigMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.CreateNotificationConfigRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.NotificationConfig.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateNotificationConfig"))
+              .build();
         }
       }
     }
     return getCreateNotificationConfigMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.ListNotificationConfigsRequest,
-          com.google.storage.v2.ListNotificationConfigsResponse>
-      getListNotificationConfigsMethod;
+  private static volatile io.grpc.MethodDescriptor getListNotificationConfigsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListNotificationConfigs",
       requestType = com.google.storage.v2.ListNotificationConfigsRequest.class,
       responseType = com.google.storage.v2.ListNotificationConfigsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.ListNotificationConfigsRequest,
-          com.google.storage.v2.ListNotificationConfigsResponse>
-      getListNotificationConfigsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.ListNotificationConfigsRequest,
-            com.google.storage.v2.ListNotificationConfigsResponse>
-        getListNotificationConfigsMethod;
+  public static io.grpc.MethodDescriptor getListNotificationConfigsMethod() {
+    io.grpc.MethodDescriptor getListNotificationConfigsMethod;
     if ((getListNotificationConfigsMethod = StorageGrpc.getListNotificationConfigsMethod) == null) {
       synchronized (StorageGrpc.class) {
-        if ((getListNotificationConfigsMethod = StorageGrpc.getListNotificationConfigsMethod)
-            == null) {
-          StorageGrpc.getListNotificationConfigsMethod =
-              getListNotificationConfigsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ListNotificationConfigsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ListNotificationConfigsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new StorageMethodDescriptorSupplier("ListNotificationConfigs"))
-                      .build();
+        if ((getListNotificationConfigsMethod = StorageGrpc.getListNotificationConfigsMethod) == null) {
+          StorageGrpc.getListNotificationConfigsMethod = getListNotificationConfigsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ListNotificationConfigsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ListNotificationConfigsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListNotificationConfigs"))
+              .build();
         }
       }
     }
     return getListNotificationConfigsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>
-      getComposeObjectMethod;
+  private static volatile io.grpc.MethodDescriptor getComposeObjectMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ComposeObject",
       requestType = com.google.storage.v2.ComposeObjectRequest.class,
       responseType = com.google.storage.v2.Object.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>
-      getComposeObjectMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>
-        getComposeObjectMethod;
+  public static io.grpc.MethodDescriptor getComposeObjectMethod() {
+    io.grpc.MethodDescriptor getComposeObjectMethod;
     if ((getComposeObjectMethod = StorageGrpc.getComposeObjectMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getComposeObjectMethod = StorageGrpc.getComposeObjectMethod) == null) {
-          StorageGrpc.getComposeObjectMethod =
-              getComposeObjectMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComposeObject"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ComposeObjectRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.Object.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ComposeObject"))
-                      .build();
+          StorageGrpc.getComposeObjectMethod = getComposeObjectMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComposeObject"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ComposeObjectRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.Object.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ComposeObject"))
+              .build();
         }
       }
     }
     return getComposeObjectMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.DeleteObjectRequest, com.google.protobuf.Empty>
-      getDeleteObjectMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteObjectMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteObject",
       requestType = com.google.storage.v2.DeleteObjectRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.DeleteObjectRequest, com.google.protobuf.Empty>
-      getDeleteObjectMethod() {
-    io.grpc.MethodDescriptor
-        getDeleteObjectMethod;
+  public static io.grpc.MethodDescriptor getDeleteObjectMethod() {
+    io.grpc.MethodDescriptor getDeleteObjectMethod;
     if ((getDeleteObjectMethod = StorageGrpc.getDeleteObjectMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getDeleteObjectMethod = StorageGrpc.getDeleteObjectMethod) == null) {
-          StorageGrpc.getDeleteObjectMethod =
-              getDeleteObjectMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteObject"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.DeleteObjectRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteObject"))
-                      .build();
+          StorageGrpc.getDeleteObjectMethod = getDeleteObjectMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteObject"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.DeleteObjectRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteObject"))
+              .build();
         }
       }
     }
     return getDeleteObjectMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>
-      getRestoreObjectMethod;
+  private static volatile io.grpc.MethodDescriptor getRestoreObjectMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RestoreObject",
       requestType = com.google.storage.v2.RestoreObjectRequest.class,
       responseType = com.google.storage.v2.Object.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>
-      getRestoreObjectMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>
-        getRestoreObjectMethod;
+  public static io.grpc.MethodDescriptor getRestoreObjectMethod() {
+    io.grpc.MethodDescriptor getRestoreObjectMethod;
     if ((getRestoreObjectMethod = StorageGrpc.getRestoreObjectMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getRestoreObjectMethod = StorageGrpc.getRestoreObjectMethod) == null) {
-          StorageGrpc.getRestoreObjectMethod =
-              getRestoreObjectMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreObject"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.RestoreObjectRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.Object.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("RestoreObject"))
-                      .build();
+          StorageGrpc.getRestoreObjectMethod = getRestoreObjectMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreObject"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.RestoreObjectRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.Object.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("RestoreObject"))
+              .build();
         }
       }
     }
     return getRestoreObjectMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.CancelResumableWriteRequest,
-          com.google.storage.v2.CancelResumableWriteResponse>
-      getCancelResumableWriteMethod;
+  private static volatile io.grpc.MethodDescriptor getCancelResumableWriteMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CancelResumableWrite",
       requestType = com.google.storage.v2.CancelResumableWriteRequest.class,
       responseType = com.google.storage.v2.CancelResumableWriteResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.CancelResumableWriteRequest,
-          com.google.storage.v2.CancelResumableWriteResponse>
-      getCancelResumableWriteMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.CancelResumableWriteRequest,
-            com.google.storage.v2.CancelResumableWriteResponse>
-        getCancelResumableWriteMethod;
+  public static io.grpc.MethodDescriptor getCancelResumableWriteMethod() {
+    io.grpc.MethodDescriptor getCancelResumableWriteMethod;
     if ((getCancelResumableWriteMethod = StorageGrpc.getCancelResumableWriteMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getCancelResumableWriteMethod = StorageGrpc.getCancelResumableWriteMethod) == null) {
-          StorageGrpc.getCancelResumableWriteMethod =
-              getCancelResumableWriteMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "CancelResumableWrite"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.CancelResumableWriteRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.CancelResumableWriteResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new StorageMethodDescriptorSupplier("CancelResumableWrite"))
-                      .build();
+          StorageGrpc.getCancelResumableWriteMethod = getCancelResumableWriteMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelResumableWrite"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.CancelResumableWriteRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.CancelResumableWriteResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CancelResumableWrite"))
+              .build();
         }
       }
     }
     return getCancelResumableWriteMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>
-      getGetObjectMethod;
+  private static volatile io.grpc.MethodDescriptor getGetObjectMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetObject",
       requestType = com.google.storage.v2.GetObjectRequest.class,
       responseType = com.google.storage.v2.Object.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>
-      getGetObjectMethod() {
-    io.grpc.MethodDescriptor
-        getGetObjectMethod;
+  public static io.grpc.MethodDescriptor getGetObjectMethod() {
+    io.grpc.MethodDescriptor getGetObjectMethod;
     if ((getGetObjectMethod = StorageGrpc.getGetObjectMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getGetObjectMethod = StorageGrpc.getGetObjectMethod) == null) {
-          StorageGrpc.getGetObjectMethod =
-              getGetObjectMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetObject"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.GetObjectRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.Object.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetObject"))
-                      .build();
+          StorageGrpc.getGetObjectMethod = getGetObjectMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetObject"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.GetObjectRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.Object.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetObject"))
+              .build();
         }
       }
     }
     return getGetObjectMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.ReadObjectRequest, com.google.storage.v2.ReadObjectResponse>
-      getReadObjectMethod;
+  private static volatile io.grpc.MethodDescriptor getReadObjectMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ReadObject",
       requestType = com.google.storage.v2.ReadObjectRequest.class,
       responseType = com.google.storage.v2.ReadObjectResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.ReadObjectRequest, com.google.storage.v2.ReadObjectResponse>
-      getReadObjectMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.ReadObjectRequest, com.google.storage.v2.ReadObjectResponse>
-        getReadObjectMethod;
+  public static io.grpc.MethodDescriptor getReadObjectMethod() {
+    io.grpc.MethodDescriptor getReadObjectMethod;
     if ((getReadObjectMethod = StorageGrpc.getReadObjectMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getReadObjectMethod = StorageGrpc.getReadObjectMethod) == null) {
-          StorageGrpc.getReadObjectMethod =
-              getReadObjectMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadObject"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ReadObjectRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ReadObjectResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ReadObject"))
-                      .build();
+          StorageGrpc.getReadObjectMethod = getReadObjectMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadObject"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ReadObjectRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ReadObjectResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ReadObject"))
+              .build();
         }
       }
     }
     return getReadObjectMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>
-      getUpdateObjectMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateObjectMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateObject",
       requestType = com.google.storage.v2.UpdateObjectRequest.class,
       responseType = com.google.storage.v2.Object.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>
-      getUpdateObjectMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>
-        getUpdateObjectMethod;
+  public static io.grpc.MethodDescriptor getUpdateObjectMethod() {
+    io.grpc.MethodDescriptor getUpdateObjectMethod;
     if ((getUpdateObjectMethod = StorageGrpc.getUpdateObjectMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getUpdateObjectMethod = StorageGrpc.getUpdateObjectMethod) == null) {
-          StorageGrpc.getUpdateObjectMethod =
-              getUpdateObjectMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateObject"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.UpdateObjectRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.Object.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateObject"))
-                      .build();
+          StorageGrpc.getUpdateObjectMethod = getUpdateObjectMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateObject"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.UpdateObjectRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.Object.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateObject"))
+              .build();
         }
       }
     }
     return getUpdateObjectMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.WriteObjectRequest, com.google.storage.v2.WriteObjectResponse>
-      getWriteObjectMethod;
+  private static volatile io.grpc.MethodDescriptor getWriteObjectMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "WriteObject",
       requestType = com.google.storage.v2.WriteObjectRequest.class,
       responseType = com.google.storage.v2.WriteObjectResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.WriteObjectRequest, com.google.storage.v2.WriteObjectResponse>
-      getWriteObjectMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.WriteObjectRequest, com.google.storage.v2.WriteObjectResponse>
-        getWriteObjectMethod;
+  public static io.grpc.MethodDescriptor getWriteObjectMethod() {
+    io.grpc.MethodDescriptor getWriteObjectMethod;
     if ((getWriteObjectMethod = StorageGrpc.getWriteObjectMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getWriteObjectMethod = StorageGrpc.getWriteObjectMethod) == null) {
-          StorageGrpc.getWriteObjectMethod =
-              getWriteObjectMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteObject"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.WriteObjectRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.WriteObjectResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("WriteObject"))
-                      .build();
+          StorageGrpc.getWriteObjectMethod = getWriteObjectMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteObject"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.WriteObjectRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.WriteObjectResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("WriteObject"))
+              .build();
         }
       }
     }
     return getWriteObjectMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.BidiWriteObjectRequest,
-          com.google.storage.v2.BidiWriteObjectResponse>
-      getBidiWriteObjectMethod;
+  private static volatile io.grpc.MethodDescriptor getBidiWriteObjectMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BidiWriteObject",
       requestType = com.google.storage.v2.BidiWriteObjectRequest.class,
       responseType = com.google.storage.v2.BidiWriteObjectResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.BidiWriteObjectRequest,
-          com.google.storage.v2.BidiWriteObjectResponse>
-      getBidiWriteObjectMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.BidiWriteObjectRequest,
-            com.google.storage.v2.BidiWriteObjectResponse>
-        getBidiWriteObjectMethod;
+  public static io.grpc.MethodDescriptor getBidiWriteObjectMethod() {
+    io.grpc.MethodDescriptor getBidiWriteObjectMethod;
     if ((getBidiWriteObjectMethod = StorageGrpc.getBidiWriteObjectMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getBidiWriteObjectMethod = StorageGrpc.getBidiWriteObjectMethod) == null) {
-          StorageGrpc.getBidiWriteObjectMethod =
-              getBidiWriteObjectMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BidiWriteObject"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.BidiWriteObjectRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.BidiWriteObjectResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("BidiWriteObject"))
-                      .build();
+          StorageGrpc.getBidiWriteObjectMethod = getBidiWriteObjectMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BidiWriteObject"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.BidiWriteObjectRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.BidiWriteObjectResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("BidiWriteObject"))
+              .build();
         }
       }
     }
     return getBidiWriteObjectMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.ListObjectsRequest, com.google.storage.v2.ListObjectsResponse>
-      getListObjectsMethod;
+  private static volatile io.grpc.MethodDescriptor getListObjectsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListObjects",
       requestType = com.google.storage.v2.ListObjectsRequest.class,
       responseType = com.google.storage.v2.ListObjectsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.ListObjectsRequest, com.google.storage.v2.ListObjectsResponse>
-      getListObjectsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.ListObjectsRequest, com.google.storage.v2.ListObjectsResponse>
-        getListObjectsMethod;
+  public static io.grpc.MethodDescriptor getListObjectsMethod() {
+    io.grpc.MethodDescriptor getListObjectsMethod;
     if ((getListObjectsMethod = StorageGrpc.getListObjectsMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getListObjectsMethod = StorageGrpc.getListObjectsMethod) == null) {
-          StorageGrpc.getListObjectsMethod =
-              getListObjectsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListObjects"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ListObjectsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ListObjectsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListObjects"))
-                      .build();
+          StorageGrpc.getListObjectsMethod = getListObjectsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListObjects"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ListObjectsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ListObjectsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListObjects"))
+              .build();
         }
       }
     }
     return getListObjectsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.RewriteObjectRequest, com.google.storage.v2.RewriteResponse>
-      getRewriteObjectMethod;
+  private static volatile io.grpc.MethodDescriptor getRewriteObjectMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RewriteObject",
       requestType = com.google.storage.v2.RewriteObjectRequest.class,
       responseType = com.google.storage.v2.RewriteResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.RewriteObjectRequest, com.google.storage.v2.RewriteResponse>
-      getRewriteObjectMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.RewriteObjectRequest, com.google.storage.v2.RewriteResponse>
-        getRewriteObjectMethod;
+  public static io.grpc.MethodDescriptor getRewriteObjectMethod() {
+    io.grpc.MethodDescriptor getRewriteObjectMethod;
     if ((getRewriteObjectMethod = StorageGrpc.getRewriteObjectMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getRewriteObjectMethod = StorageGrpc.getRewriteObjectMethod) == null) {
-          StorageGrpc.getRewriteObjectMethod =
-              getRewriteObjectMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RewriteObject"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.RewriteObjectRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.RewriteResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("RewriteObject"))
-                      .build();
+          StorageGrpc.getRewriteObjectMethod = getRewriteObjectMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RewriteObject"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.RewriteObjectRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.RewriteResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("RewriteObject"))
+              .build();
         }
       }
     }
     return getRewriteObjectMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.StartResumableWriteRequest,
-          com.google.storage.v2.StartResumableWriteResponse>
-      getStartResumableWriteMethod;
+  private static volatile io.grpc.MethodDescriptor getStartResumableWriteMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "StartResumableWrite",
       requestType = com.google.storage.v2.StartResumableWriteRequest.class,
       responseType = com.google.storage.v2.StartResumableWriteResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.StartResumableWriteRequest,
-          com.google.storage.v2.StartResumableWriteResponse>
-      getStartResumableWriteMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.StartResumableWriteRequest,
-            com.google.storage.v2.StartResumableWriteResponse>
-        getStartResumableWriteMethod;
+  public static io.grpc.MethodDescriptor getStartResumableWriteMethod() {
+    io.grpc.MethodDescriptor getStartResumableWriteMethod;
     if ((getStartResumableWriteMethod = StorageGrpc.getStartResumableWriteMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getStartResumableWriteMethod = StorageGrpc.getStartResumableWriteMethod) == null) {
-          StorageGrpc.getStartResumableWriteMethod =
-              getStartResumableWriteMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "StartResumableWrite"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.StartResumableWriteRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.StartResumableWriteResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new StorageMethodDescriptorSupplier("StartResumableWrite"))
-                      .build();
+          StorageGrpc.getStartResumableWriteMethod = getStartResumableWriteMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartResumableWrite"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.StartResumableWriteRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.StartResumableWriteResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("StartResumableWrite"))
+              .build();
         }
       }
     }
     return getStartResumableWriteMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.QueryWriteStatusRequest,
-          com.google.storage.v2.QueryWriteStatusResponse>
-      getQueryWriteStatusMethod;
+  private static volatile io.grpc.MethodDescriptor getQueryWriteStatusMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "QueryWriteStatus",
       requestType = com.google.storage.v2.QueryWriteStatusRequest.class,
       responseType = com.google.storage.v2.QueryWriteStatusResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.QueryWriteStatusRequest,
-          com.google.storage.v2.QueryWriteStatusResponse>
-      getQueryWriteStatusMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.QueryWriteStatusRequest,
-            com.google.storage.v2.QueryWriteStatusResponse>
-        getQueryWriteStatusMethod;
+  public static io.grpc.MethodDescriptor getQueryWriteStatusMethod() {
+    io.grpc.MethodDescriptor getQueryWriteStatusMethod;
     if ((getQueryWriteStatusMethod = StorageGrpc.getQueryWriteStatusMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getQueryWriteStatusMethod = StorageGrpc.getQueryWriteStatusMethod) == null) {
-          StorageGrpc.getQueryWriteStatusMethod =
-              getQueryWriteStatusMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryWriteStatus"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.QueryWriteStatusRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.QueryWriteStatusResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("QueryWriteStatus"))
-                      .build();
+          StorageGrpc.getQueryWriteStatusMethod = getQueryWriteStatusMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryWriteStatus"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.QueryWriteStatusRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.QueryWriteStatusResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("QueryWriteStatus"))
+              .build();
         }
       }
     }
     return getQueryWriteStatusMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.GetServiceAccountRequest, com.google.storage.v2.ServiceAccount>
-      getGetServiceAccountMethod;
+  private static volatile io.grpc.MethodDescriptor getGetServiceAccountMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetServiceAccount",
       requestType = com.google.storage.v2.GetServiceAccountRequest.class,
       responseType = com.google.storage.v2.ServiceAccount.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.GetServiceAccountRequest, com.google.storage.v2.ServiceAccount>
-      getGetServiceAccountMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.GetServiceAccountRequest, com.google.storage.v2.ServiceAccount>
-        getGetServiceAccountMethod;
+  public static io.grpc.MethodDescriptor getGetServiceAccountMethod() {
+    io.grpc.MethodDescriptor getGetServiceAccountMethod;
     if ((getGetServiceAccountMethod = StorageGrpc.getGetServiceAccountMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getGetServiceAccountMethod = StorageGrpc.getGetServiceAccountMethod) == null) {
-          StorageGrpc.getGetServiceAccountMethod =
-              getGetServiceAccountMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServiceAccount"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.GetServiceAccountRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ServiceAccount.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetServiceAccount"))
-                      .build();
+          StorageGrpc.getGetServiceAccountMethod = getGetServiceAccountMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServiceAccount"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.GetServiceAccountRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ServiceAccount.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetServiceAccount"))
+              .build();
         }
       }
     }
     return getGetServiceAccountMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.CreateHmacKeyRequest, com.google.storage.v2.CreateHmacKeyResponse>
-      getCreateHmacKeyMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateHmacKeyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateHmacKey",
       requestType = com.google.storage.v2.CreateHmacKeyRequest.class,
       responseType = com.google.storage.v2.CreateHmacKeyResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.CreateHmacKeyRequest, com.google.storage.v2.CreateHmacKeyResponse>
-      getCreateHmacKeyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.CreateHmacKeyRequest, com.google.storage.v2.CreateHmacKeyResponse>
-        getCreateHmacKeyMethod;
+  public static io.grpc.MethodDescriptor getCreateHmacKeyMethod() {
+    io.grpc.MethodDescriptor getCreateHmacKeyMethod;
     if ((getCreateHmacKeyMethod = StorageGrpc.getCreateHmacKeyMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getCreateHmacKeyMethod = StorageGrpc.getCreateHmacKeyMethod) == null) {
-          StorageGrpc.getCreateHmacKeyMethod =
-              getCreateHmacKeyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHmacKey"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.CreateHmacKeyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.CreateHmacKeyResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateHmacKey"))
-                      .build();
+          StorageGrpc.getCreateHmacKeyMethod = getCreateHmacKeyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHmacKey"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.CreateHmacKeyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.CreateHmacKeyResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateHmacKey"))
+              .build();
         }
       }
     }
     return getCreateHmacKeyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>
-      getDeleteHmacKeyMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteHmacKeyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteHmacKey",
       requestType = com.google.storage.v2.DeleteHmacKeyRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>
-      getDeleteHmacKeyMethod() {
-    io.grpc.MethodDescriptor
-        getDeleteHmacKeyMethod;
+  public static io.grpc.MethodDescriptor getDeleteHmacKeyMethod() {
+    io.grpc.MethodDescriptor getDeleteHmacKeyMethod;
     if ((getDeleteHmacKeyMethod = StorageGrpc.getDeleteHmacKeyMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getDeleteHmacKeyMethod = StorageGrpc.getDeleteHmacKeyMethod) == null) {
-          StorageGrpc.getDeleteHmacKeyMethod =
-              getDeleteHmacKeyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHmacKey"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.DeleteHmacKeyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteHmacKey"))
-                      .build();
+          StorageGrpc.getDeleteHmacKeyMethod = getDeleteHmacKeyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHmacKey"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.DeleteHmacKeyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteHmacKey"))
+              .build();
         }
       }
     }
     return getDeleteHmacKeyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
-      getGetHmacKeyMethod;
+  private static volatile io.grpc.MethodDescriptor getGetHmacKeyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetHmacKey",
       requestType = com.google.storage.v2.GetHmacKeyRequest.class,
       responseType = com.google.storage.v2.HmacKeyMetadata.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
-      getGetHmacKeyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
-        getGetHmacKeyMethod;
+  public static io.grpc.MethodDescriptor getGetHmacKeyMethod() {
+    io.grpc.MethodDescriptor getGetHmacKeyMethod;
     if ((getGetHmacKeyMethod = StorageGrpc.getGetHmacKeyMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getGetHmacKeyMethod = StorageGrpc.getGetHmacKeyMethod) == null) {
-          StorageGrpc.getGetHmacKeyMethod =
-              getGetHmacKeyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHmacKey"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.GetHmacKeyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetHmacKey"))
-                      .build();
+          StorageGrpc.getGetHmacKeyMethod = getGetHmacKeyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHmacKey"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.GetHmacKeyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetHmacKey"))
+              .build();
         }
       }
     }
     return getGetHmacKeyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.ListHmacKeysRequest, com.google.storage.v2.ListHmacKeysResponse>
-      getListHmacKeysMethod;
+  private static volatile io.grpc.MethodDescriptor getListHmacKeysMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListHmacKeys",
       requestType = com.google.storage.v2.ListHmacKeysRequest.class,
       responseType = com.google.storage.v2.ListHmacKeysResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.ListHmacKeysRequest, com.google.storage.v2.ListHmacKeysResponse>
-      getListHmacKeysMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.ListHmacKeysRequest, com.google.storage.v2.ListHmacKeysResponse>
-        getListHmacKeysMethod;
+  public static io.grpc.MethodDescriptor getListHmacKeysMethod() {
+    io.grpc.MethodDescriptor getListHmacKeysMethod;
     if ((getListHmacKeysMethod = StorageGrpc.getListHmacKeysMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getListHmacKeysMethod = StorageGrpc.getListHmacKeysMethod) == null) {
-          StorageGrpc.getListHmacKeysMethod =
-              getListHmacKeysMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHmacKeys"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ListHmacKeysRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.ListHmacKeysResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListHmacKeys"))
-                      .build();
+          StorageGrpc.getListHmacKeysMethod = getListHmacKeysMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHmacKeys"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ListHmacKeysRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.ListHmacKeysResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListHmacKeys"))
+              .build();
         }
       }
     }
     return getListHmacKeysMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.storage.v2.UpdateHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
-      getUpdateHmacKeyMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateHmacKeyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateHmacKey",
       requestType = com.google.storage.v2.UpdateHmacKeyRequest.class,
       responseType = com.google.storage.v2.HmacKeyMetadata.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.storage.v2.UpdateHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
-      getUpdateHmacKeyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.storage.v2.UpdateHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
-        getUpdateHmacKeyMethod;
+  public static io.grpc.MethodDescriptor getUpdateHmacKeyMethod() {
+    io.grpc.MethodDescriptor getUpdateHmacKeyMethod;
     if ((getUpdateHmacKeyMethod = StorageGrpc.getUpdateHmacKeyMethod) == null) {
       synchronized (StorageGrpc.class) {
         if ((getUpdateHmacKeyMethod = StorageGrpc.getUpdateHmacKeyMethod) == null) {
-          StorageGrpc.getUpdateHmacKeyMethod =
-              getUpdateHmacKeyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHmacKey"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.UpdateHmacKeyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()))
-                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateHmacKey"))
-                      .build();
+          StorageGrpc.getUpdateHmacKeyMethod = getUpdateHmacKeyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHmacKey"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.UpdateHmacKeyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()))
+              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateHmacKey"))
+              .build();
         }
       }
     }
     return getUpdateHmacKeyMethod;
   }
 
-  /** 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 StorageStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public StorageStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new StorageStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public StorageStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new StorageStub(channel, callOptions);
+        }
+      };
     return StorageStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static StorageBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static StorageBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public StorageBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new StorageBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public StorageBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new StorageBlockingStub(channel, callOptions);
+        }
+      };
     return StorageBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static StorageFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static StorageFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public StorageFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new StorageFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public StorageFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new StorageFutureStub(channel, callOptions);
+        }
+      };
     return StorageFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * ## API Overview and Naming Syntax
    * The Cloud Storage gRPC API allows applications to read and write data through
@@ -1464,111 +1096,80 @@ public StorageFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Permanently deletes an empty bucket.
      * 
*/ - default void deleteBucket( - com.google.storage.v2.DeleteBucketRequest request, + default void deleteBucket(com.google.storage.v2.DeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBucketMethod(), responseObserver); } /** - * - * *
      * Returns metadata for the specified bucket.
      * 
*/ - default void getBucket( - com.google.storage.v2.GetBucketRequest request, + default void getBucket(com.google.storage.v2.GetBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBucketMethod(), responseObserver); } /** - * - * *
      * Creates a new bucket.
      * 
*/ - default void createBucket( - com.google.storage.v2.CreateBucketRequest request, + default void createBucket(com.google.storage.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBucketMethod(), responseObserver); } /** - * - * *
      * Retrieves a list of buckets for a given project.
      * 
*/ - default void listBuckets( - com.google.storage.v2.ListBucketsRequest request, + default void listBuckets(com.google.storage.v2.ListBucketsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBucketsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBucketsMethod(), responseObserver); } /** - * - * *
      * Locks retention policy on a bucket.
      * 
*/ - default void lockBucketRetentionPolicy( - com.google.storage.v2.LockBucketRetentionPolicyRequest request, + default void lockBucketRetentionPolicy(com.google.storage.v2.LockBucketRetentionPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getLockBucketRetentionPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLockBucketRetentionPolicyMethod(), responseObserver); } /** - * - * *
-     * Gets the IAM policy for a specified bucket or object.
+     * Gets the IAM policy for a specified bucket.
      * The `resource` field in the request should be
-     * `projects/_/buckets/{bucket}` for a bucket or
-     * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+     * `projects/_/buckets/{bucket}`.
      * 
*/ - default void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + default void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** - * - * *
-     * Updates an IAM policy for the specified bucket or object.
+     * Updates an IAM policy for the specified bucket.
      * The `resource` field in the request should be
-     * `projects/_/buckets/{bucket}` for a bucket or
-     * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+     * `projects/_/buckets/{bucket}`.
      * 
*/ - default void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + default void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); } /** - * - * *
      * Tests a set of permissions on the given bucket or object to see which, if
      * any, are held by the caller.
@@ -1577,59 +1178,42 @@ default void setIamPolicy(
      * `projects/_/buckets/{bucket}/objects/{object}` for an object.
      * 
*/ - default void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); + default void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } /** - * - * *
      * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
      * 
*/ - default void updateBucket( - com.google.storage.v2.UpdateBucketRequest request, + default void updateBucket(com.google.storage.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBucketMethod(), responseObserver); } /** - * - * *
      * Permanently deletes a NotificationConfig.
      * 
*/ - default void deleteNotificationConfig( - com.google.storage.v2.DeleteNotificationConfigRequest request, + default void deleteNotificationConfig(com.google.storage.v2.DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteNotificationConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNotificationConfigMethod(), responseObserver); } /** - * - * *
      * View a NotificationConfig.
      * 
*/ - default void getNotificationConfig( - com.google.storage.v2.GetNotificationConfigRequest request, + default void getNotificationConfig(com.google.storage.v2.GetNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNotificationConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationConfigMethod(), responseObserver); } /** - * - * *
      * Creates a NotificationConfig for a given bucket.
      * These NotificationConfigs, when triggered, publish messages to the
@@ -1637,46 +1221,33 @@ default void getNotificationConfig(
      * https://cloud.google.com/storage/docs/pubsub-notifications.
      * 
*/ - default void createNotificationConfig( - com.google.storage.v2.CreateNotificationConfigRequest request, + default void createNotificationConfig(com.google.storage.v2.CreateNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateNotificationConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNotificationConfigMethod(), responseObserver); } /** - * - * *
      * Retrieves a list of NotificationConfigs for a given bucket.
      * 
*/ - default void listNotificationConfigs( - com.google.storage.v2.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNotificationConfigsMethod(), responseObserver); + default void listNotificationConfigs(com.google.storage.v2.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationConfigsMethod(), responseObserver); } /** - * - * *
      * Concatenates a list of existing objects into a new object in the same
      * bucket.
      * 
*/ - default void composeObject( - com.google.storage.v2.ComposeObjectRequest request, + default void composeObject(com.google.storage.v2.ComposeObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComposeObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComposeObjectMethod(), responseObserver); } /** - * - * *
      * Deletes an object and its metadata.
      * Deletions are normally permanent when versioning is disabled or whenever
@@ -1685,30 +1256,22 @@ default void composeObject(
      * soft delete retention period has passed.
      * 
*/ - default void deleteObject( - com.google.storage.v2.DeleteObjectRequest request, + default void deleteObject(com.google.storage.v2.DeleteObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteObjectMethod(), responseObserver); } /** - * - * *
      * Restores a soft-deleted object.
      * 
*/ - default void restoreObject( - com.google.storage.v2.RestoreObjectRequest request, + default void restoreObject(com.google.storage.v2.RestoreObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreObjectMethod(), responseObserver); } /** - * - * *
      * Cancels an in-progress resumable upload.
      * Any attempts to write to the resumable upload after cancelling the upload
@@ -1718,58 +1281,43 @@ default void restoreObject(
      * cancellation completes first.
      * 
*/ - default void cancelResumableWrite( - com.google.storage.v2.CancelResumableWriteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCancelResumableWriteMethod(), responseObserver); + default void cancelResumableWrite(com.google.storage.v2.CancelResumableWriteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelResumableWriteMethod(), responseObserver); } /** - * - * *
      * Retrieves an object's metadata.
      * 
*/ - default void getObject( - com.google.storage.v2.GetObjectRequest request, + default void getObject(com.google.storage.v2.GetObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetObjectMethod(), responseObserver); } /** - * - * *
      * Reads an object's data.
      * 
*/ - default void readObject( - com.google.storage.v2.ReadObjectRequest request, + default void readObject(com.google.storage.v2.ReadObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadObjectMethod(), responseObserver); } /** - * - * *
      * Updates an object's metadata.
      * Equivalent to JSON API's storage.objects.patch.
      * 
*/ - default void updateObject( - com.google.storage.v2.UpdateObjectRequest request, + default void updateObject(com.google.storage.v2.UpdateObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateObjectMethod(), responseObserver); } /** - * - * *
      * Stores a new object and metadata.
      * An object can be written either in a single message stream or in a
@@ -1829,13 +1377,10 @@ default void updateObject(
      */
     default io.grpc.stub.StreamObserver writeObject(
         io.grpc.stub.StreamObserver responseObserver) {
-      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(
-          getWriteObjectMethod(), responseObserver);
+      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getWriteObjectMethod(), responseObserver);
     }
 
     /**
-     *
-     *
      * 
      * Stores a new object and metadata.
      * This is similar to the WriteObject call with the added support for
@@ -1852,63 +1397,45 @@ default io.grpc.stub.StreamObserver wr
      * always be sent to the client, regardless of the value of `state_lookup`.
      * 
*/ - default io.grpc.stub.StreamObserver - bidiWriteObject( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getBidiWriteObjectMethod(), responseObserver); + default io.grpc.stub.StreamObserver bidiWriteObject( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getBidiWriteObjectMethod(), responseObserver); } /** - * - * *
      * Retrieves a list of objects matching the criteria.
      * 
*/ - default void listObjects( - com.google.storage.v2.ListObjectsRequest request, + default void listObjects(com.google.storage.v2.ListObjectsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListObjectsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListObjectsMethod(), responseObserver); } /** - * - * *
      * Rewrites a source object to a destination object. Optionally overrides
      * metadata.
      * 
*/ - default void rewriteObject( - com.google.storage.v2.RewriteObjectRequest request, + default void rewriteObject(com.google.storage.v2.RewriteObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRewriteObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRewriteObjectMethod(), responseObserver); } /** - * - * *
      * Starts a resumable write. How long the write operation remains valid, and
      * what happens when the write operation becomes invalid, are
      * service-dependent.
      * 
*/ - default void startResumableWrite( - com.google.storage.v2.StartResumableWriteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartResumableWriteMethod(), responseObserver); + default void startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartResumableWriteMethod(), responseObserver); } /** - * - * *
      * Determines the `persisted_size` for an object that is being written, which
      * can then be used as the `write_offset` for the next `Write()` call.
@@ -1923,101 +1450,74 @@ default void startResumableWrite(
      * non-decreasing.
      * 
*/ - default void queryWriteStatus( - com.google.storage.v2.QueryWriteStatusRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getQueryWriteStatusMethod(), responseObserver); + default void queryWriteStatus(com.google.storage.v2.QueryWriteStatusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryWriteStatusMethod(), responseObserver); } /** - * - * *
      * Retrieves the name of a project's Google Cloud Storage service account.
      * 
*/ - default void getServiceAccount( - com.google.storage.v2.GetServiceAccountRequest request, + default void getServiceAccount(com.google.storage.v2.GetServiceAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetServiceAccountMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceAccountMethod(), responseObserver); } /** - * - * *
      * Creates a new HMAC key for the given service account.
      * 
*/ - default void createHmacKey( - com.google.storage.v2.CreateHmacKeyRequest request, + default void createHmacKey(com.google.storage.v2.CreateHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateHmacKeyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHmacKeyMethod(), responseObserver); } /** - * - * *
      * Deletes a given HMAC key.  Key must be in an INACTIVE state.
      * 
*/ - default void deleteHmacKey( - com.google.storage.v2.DeleteHmacKeyRequest request, + default void deleteHmacKey(com.google.storage.v2.DeleteHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteHmacKeyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHmacKeyMethod(), responseObserver); } /** - * - * *
      * Gets an existing HMAC key metadata for the given id.
      * 
*/ - default void getHmacKey( - com.google.storage.v2.GetHmacKeyRequest request, + default void getHmacKey(com.google.storage.v2.GetHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHmacKeyMethod(), responseObserver); } /** - * - * *
      * Lists HMAC keys under a given project with the additional filters provided.
      * 
*/ - default void listHmacKeys( - com.google.storage.v2.ListHmacKeysRequest request, + default void listHmacKeys(com.google.storage.v2.ListHmacKeysRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListHmacKeysMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHmacKeysMethod(), responseObserver); } /** - * - * *
      * Updates a given HMAC key state between ACTIVE and INACTIVE.
      * 
*/ - default void updateHmacKey( - com.google.storage.v2.UpdateHmacKeyRequest request, + default void updateHmacKey(com.google.storage.v2.UpdateHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateHmacKeyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHmacKeyMethod(), responseObserver); } } /** * Base class for the server implementation of the service Storage. - * *
    * ## API Overview and Naming Syntax
    * The Cloud Storage gRPC API allows applications to read and write data through
@@ -2039,17 +1539,16 @@ default void updateHmacKey(
    *     any other character (no special directory semantics).
    * 
*/ - public abstract static class StorageImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class StorageImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return StorageGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Storage. - * *
    * ## API Overview and Naming Syntax
    * The Cloud Storage gRPC API allows applications to read and write data through
@@ -2071,135 +1570,101 @@ public final io.grpc.ServerServiceDefinition bindService() {
    *     any other character (no special directory semantics).
    * 
*/ - public static final class StorageStub extends io.grpc.stub.AbstractAsyncStub { - private StorageStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class StorageStub + extends io.grpc.stub.AbstractAsyncStub { + private StorageStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected StorageStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected StorageStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StorageStub(channel, callOptions); } /** - * - * *
      * Permanently deletes an empty bucket.
      * 
*/ - public void deleteBucket( - com.google.storage.v2.DeleteBucketRequest request, + public void deleteBucket(com.google.storage.v2.DeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns metadata for the specified bucket.
      * 
*/ - public void getBucket( - com.google.storage.v2.GetBucketRequest request, + public void getBucket(com.google.storage.v2.GetBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a new bucket.
      * 
*/ - public void createBucket( - com.google.storage.v2.CreateBucketRequest request, + public void createBucket(com.google.storage.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBucketMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Retrieves a list of buckets for a given project.
      * 
*/ - public void listBuckets( - com.google.storage.v2.ListBucketsRequest request, + public void listBuckets(com.google.storage.v2.ListBucketsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBucketsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListBucketsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Locks retention policy on a bucket.
      * 
*/ - public void lockBucketRetentionPolicy( - com.google.storage.v2.LockBucketRetentionPolicyRequest request, + public void lockBucketRetentionPolicy(com.google.storage.v2.LockBucketRetentionPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLockBucketRetentionPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getLockBucketRetentionPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
-     * Gets the IAM policy for a specified bucket or object.
+     * Gets the IAM policy for a specified bucket.
      * The `resource` field in the request should be
-     * `projects/_/buckets/{bucket}` for a bucket or
-     * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+     * `projects/_/buckets/{bucket}`.
      * 
*/ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
-     * Updates an IAM policy for the specified bucket or object.
+     * Updates an IAM policy for the specified bucket.
      * The `resource` field in the request should be
-     * `projects/_/buckets/{bucket}` for a bucket or
-     * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+     * `projects/_/buckets/{bucket}`.
      * 
*/ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Tests a set of permissions on the given bucket or object to see which, if
      * any, are held by the caller.
@@ -2208,67 +1673,46 @@ public void setIamPolicy(
      * `projects/_/buckets/{bucket}/objects/{object}` for an object.
      * 
*/ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
      * 
*/ - public void updateBucket( - com.google.storage.v2.UpdateBucketRequest request, + public void updateBucket(com.google.storage.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Permanently deletes a NotificationConfig.
      * 
*/ - public void deleteNotificationConfig( - com.google.storage.v2.DeleteNotificationConfigRequest request, + public void deleteNotificationConfig(com.google.storage.v2.DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * View a NotificationConfig.
      * 
*/ - public void getNotificationConfig( - com.google.storage.v2.GetNotificationConfigRequest request, + public void getNotificationConfig(com.google.storage.v2.GetNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a NotificationConfig for a given bucket.
      * These NotificationConfigs, when triggered, publish messages to the
@@ -2276,52 +1720,36 @@ public void getNotificationConfig(
      * https://cloud.google.com/storage/docs/pubsub-notifications.
      * 
*/ - public void createNotificationConfig( - com.google.storage.v2.CreateNotificationConfigRequest request, + public void createNotificationConfig(com.google.storage.v2.CreateNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Retrieves a list of NotificationConfigs for a given bucket.
      * 
*/ - public void listNotificationConfigs( - com.google.storage.v2.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listNotificationConfigs(com.google.storage.v2.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Concatenates a list of existing objects into a new object in the same
      * bucket.
      * 
*/ - public void composeObject( - com.google.storage.v2.ComposeObjectRequest request, + public void composeObject(com.google.storage.v2.ComposeObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComposeObjectMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getComposeObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes an object and its metadata.
      * Deletions are normally permanent when versioning is disabled or whenever
@@ -2330,34 +1758,24 @@ public void composeObject(
      * soft delete retention period has passed.
      * 
*/ - public void deleteObject( - com.google.storage.v2.DeleteObjectRequest request, + public void deleteObject(com.google.storage.v2.DeleteObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteObjectMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Restores a soft-deleted object.
      * 
*/ - public void restoreObject( - com.google.storage.v2.RestoreObjectRequest request, + public void restoreObject(com.google.storage.v2.RestoreObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreObjectMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRestoreObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Cancels an in-progress resumable upload.
      * Any attempts to write to the resumable upload after cancelling the upload
@@ -2367,64 +1785,47 @@ public void restoreObject(
      * cancellation completes first.
      * 
*/ - public void cancelResumableWrite( - com.google.storage.v2.CancelResumableWriteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void cancelResumableWrite(com.google.storage.v2.CancelResumableWriteRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelResumableWriteMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCancelResumableWriteMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Retrieves an object's metadata.
      * 
*/ - public void getObject( - com.google.storage.v2.GetObjectRequest request, + public void getObject(com.google.storage.v2.GetObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Reads an object's data.
      * 
*/ - public void readObject( - com.google.storage.v2.ReadObjectRequest request, + public void readObject(com.google.storage.v2.ReadObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getReadObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates an object's metadata.
      * Equivalent to JSON API's storage.objects.patch.
      * 
*/ - public void updateObject( - com.google.storage.v2.UpdateObjectRequest request, + public void updateObject(com.google.storage.v2.UpdateObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateObjectMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Stores a new object and metadata.
      * An object can be written either in a single message stream or in a
@@ -2489,8 +1890,6 @@ public io.grpc.stub.StreamObserver wri
     }
 
     /**
-     *
-     *
      * 
      * Stores a new object and metadata.
      * This is similar to the WriteObject call with the added support for
@@ -2507,69 +1906,49 @@ public io.grpc.stub.StreamObserver wri
      * always be sent to the client, regardless of the value of `state_lookup`.
      * 
*/ - public io.grpc.stub.StreamObserver - bidiWriteObject( - io.grpc.stub.StreamObserver - responseObserver) { + public io.grpc.stub.StreamObserver bidiWriteObject( + io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getBidiWriteObjectMethod(), getCallOptions()), responseObserver); } /** - * - * *
      * Retrieves a list of objects matching the criteria.
      * 
*/ - public void listObjects( - com.google.storage.v2.ListObjectsRequest request, + public void listObjects(com.google.storage.v2.ListObjectsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListObjectsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListObjectsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Rewrites a source object to a destination object. Optionally overrides
      * metadata.
      * 
*/ - public void rewriteObject( - com.google.storage.v2.RewriteObjectRequest request, + public void rewriteObject(com.google.storage.v2.RewriteObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRewriteObjectMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRewriteObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Starts a resumable write. How long the write operation remains valid, and
      * what happens when the write operation becomes invalid, are
      * service-dependent.
      * 
*/ - public void startResumableWrite( - com.google.storage.v2.StartResumableWriteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartResumableWriteMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getStartResumableWriteMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Determines the `persisted_size` for an object that is being written, which
      * can then be used as the `write_offset` for the next `Write()` call.
@@ -2584,114 +1963,81 @@ public void startResumableWrite(
      * non-decreasing.
      * 
*/ - public void queryWriteStatus( - com.google.storage.v2.QueryWriteStatusRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void queryWriteStatus(com.google.storage.v2.QueryWriteStatusRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryWriteStatusMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getQueryWriteStatusMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Retrieves the name of a project's Google Cloud Storage service account.
      * 
*/ - public void getServiceAccount( - com.google.storage.v2.GetServiceAccountRequest request, + public void getServiceAccount(com.google.storage.v2.GetServiceAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServiceAccountMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetServiceAccountMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a new HMAC key for the given service account.
      * 
*/ - public void createHmacKey( - com.google.storage.v2.CreateHmacKeyRequest request, + public void createHmacKey(com.google.storage.v2.CreateHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHmacKeyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateHmacKeyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a given HMAC key.  Key must be in an INACTIVE state.
      * 
*/ - public void deleteHmacKey( - com.google.storage.v2.DeleteHmacKeyRequest request, + public void deleteHmacKey(com.google.storage.v2.DeleteHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHmacKeyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteHmacKeyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets an existing HMAC key metadata for the given id.
      * 
*/ - public void getHmacKey( - com.google.storage.v2.GetHmacKeyRequest request, + public void getHmacKey(com.google.storage.v2.GetHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetHmacKeyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists HMAC keys under a given project with the additional filters provided.
      * 
*/ - public void listHmacKeys( - com.google.storage.v2.ListHmacKeysRequest request, + public void listHmacKeys(com.google.storage.v2.ListHmacKeysRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHmacKeysMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListHmacKeysMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates a given HMAC key state between ACTIVE and INACTIVE.
      * 
*/ - public void updateHmacKey( - com.google.storage.v2.UpdateHmacKeyRequest request, + public void updateHmacKey(com.google.storage.v2.UpdateHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHmacKeyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateHmacKeyMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Storage. - * *
    * ## API Overview and Naming Syntax
    * The Cloud Storage gRPC API allows applications to read and write data through
@@ -2715,31 +2061,28 @@ public void updateHmacKey(
    */
   public static final class StorageBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private StorageBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private StorageBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected StorageBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected StorageBlockingStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new StorageBlockingStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Permanently deletes an empty bucket.
      * 
*/ - public com.google.protobuf.Empty deleteBucket( - com.google.storage.v2.DeleteBucketRequest request) { + public com.google.protobuf.Empty deleteBucket(com.google.storage.v2.DeleteBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBucketMethod(), getCallOptions(), request); } /** - * - * *
      * Returns metadata for the specified bucket.
      * 
@@ -2750,52 +2093,40 @@ public com.google.storage.v2.Bucket getBucket(com.google.storage.v2.GetBucketReq } /** - * - * *
      * Creates a new bucket.
      * 
*/ - public com.google.storage.v2.Bucket createBucket( - com.google.storage.v2.CreateBucketRequest request) { + public com.google.storage.v2.Bucket createBucket(com.google.storage.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBucketMethod(), getCallOptions(), request); } /** - * - * *
      * Retrieves a list of buckets for a given project.
      * 
*/ - public com.google.storage.v2.ListBucketsResponse listBuckets( - com.google.storage.v2.ListBucketsRequest request) { + public com.google.storage.v2.ListBucketsResponse listBuckets(com.google.storage.v2.ListBucketsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBucketsMethod(), getCallOptions(), request); } /** - * - * *
      * Locks retention policy on a bucket.
      * 
*/ - public com.google.storage.v2.Bucket lockBucketRetentionPolicy( - com.google.storage.v2.LockBucketRetentionPolicyRequest request) { + public com.google.storage.v2.Bucket lockBucketRetentionPolicy(com.google.storage.v2.LockBucketRetentionPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getLockBucketRetentionPolicyMethod(), getCallOptions(), request); } /** - * - * *
-     * Gets the IAM policy for a specified bucket or object.
+     * Gets the IAM policy for a specified bucket.
      * The `resource` field in the request should be
-     * `projects/_/buckets/{bucket}` for a bucket or
-     * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+     * `projects/_/buckets/{bucket}`.
      * 
*/ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { @@ -2804,13 +2135,10 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque } /** - * - * *
-     * Updates an IAM policy for the specified bucket or object.
+     * Updates an IAM policy for the specified bucket.
      * The `resource` field in the request should be
-     * `projects/_/buckets/{bucket}` for a bucket or
-     * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+     * `projects/_/buckets/{bucket}`.
      * 
*/ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { @@ -2819,8 +2147,6 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque } /** - * - * *
      * Tests a set of permissions on the given bucket or object to see which, if
      * any, are held by the caller.
@@ -2829,54 +2155,42 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
      * `projects/_/buckets/{bucket}/objects/{object}` for an object.
      * 
*/ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } /** - * - * *
      * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
      * 
*/ - public com.google.storage.v2.Bucket updateBucket( - com.google.storage.v2.UpdateBucketRequest request) { + public com.google.storage.v2.Bucket updateBucket(com.google.storage.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBucketMethod(), getCallOptions(), request); } /** - * - * *
      * Permanently deletes a NotificationConfig.
      * 
*/ - public com.google.protobuf.Empty deleteNotificationConfig( - com.google.storage.v2.DeleteNotificationConfigRequest request) { + public com.google.protobuf.Empty deleteNotificationConfig(com.google.storage.v2.DeleteNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); } /** - * - * *
      * View a NotificationConfig.
      * 
*/ - public com.google.storage.v2.NotificationConfig getNotificationConfig( - com.google.storage.v2.GetNotificationConfigRequest request) { + public com.google.storage.v2.NotificationConfig getNotificationConfig(com.google.storage.v2.GetNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a NotificationConfig for a given bucket.
      * These NotificationConfigs, when triggered, publish messages to the
@@ -2884,42 +2198,33 @@ public com.google.storage.v2.NotificationConfig getNotificationConfig(
      * https://cloud.google.com/storage/docs/pubsub-notifications.
      * 
*/ - public com.google.storage.v2.NotificationConfig createNotificationConfig( - com.google.storage.v2.CreateNotificationConfigRequest request) { + public com.google.storage.v2.NotificationConfig createNotificationConfig(com.google.storage.v2.CreateNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); } /** - * - * *
      * Retrieves a list of NotificationConfigs for a given bucket.
      * 
*/ - public com.google.storage.v2.ListNotificationConfigsResponse listNotificationConfigs( - com.google.storage.v2.ListNotificationConfigsRequest request) { + public com.google.storage.v2.ListNotificationConfigsResponse listNotificationConfigs(com.google.storage.v2.ListNotificationConfigsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); } /** - * - * *
      * Concatenates a list of existing objects into a new object in the same
      * bucket.
      * 
*/ - public com.google.storage.v2.Object composeObject( - com.google.storage.v2.ComposeObjectRequest request) { + public com.google.storage.v2.Object composeObject(com.google.storage.v2.ComposeObjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getComposeObjectMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes an object and its metadata.
      * Deletions are normally permanent when versioning is disabled or whenever
@@ -2928,28 +2233,22 @@ public com.google.storage.v2.Object composeObject(
      * soft delete retention period has passed.
      * 
*/ - public com.google.protobuf.Empty deleteObject( - com.google.storage.v2.DeleteObjectRequest request) { + public com.google.protobuf.Empty deleteObject(com.google.storage.v2.DeleteObjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteObjectMethod(), getCallOptions(), request); } /** - * - * *
      * Restores a soft-deleted object.
      * 
*/ - public com.google.storage.v2.Object restoreObject( - com.google.storage.v2.RestoreObjectRequest request) { + public com.google.storage.v2.Object restoreObject(com.google.storage.v2.RestoreObjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRestoreObjectMethod(), getCallOptions(), request); } /** - * - * *
      * Cancels an in-progress resumable upload.
      * Any attempts to write to the resumable upload after cancelling the upload
@@ -2959,15 +2258,12 @@ public com.google.storage.v2.Object restoreObject(
      * cancellation completes first.
      * 
*/ - public com.google.storage.v2.CancelResumableWriteResponse cancelResumableWrite( - com.google.storage.v2.CancelResumableWriteRequest request) { + public com.google.storage.v2.CancelResumableWriteResponse cancelResumableWrite(com.google.storage.v2.CancelResumableWriteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelResumableWriteMethod(), getCallOptions(), request); } /** - * - * *
      * Retrieves an object's metadata.
      * 
@@ -2978,8 +2274,6 @@ public com.google.storage.v2.Object getObject(com.google.storage.v2.GetObjectReq } /** - * - * *
      * Reads an object's data.
      * 
@@ -2991,64 +2285,50 @@ public java.util.Iterator readObject( } /** - * - * *
      * Updates an object's metadata.
      * Equivalent to JSON API's storage.objects.patch.
      * 
*/ - public com.google.storage.v2.Object updateObject( - com.google.storage.v2.UpdateObjectRequest request) { + public com.google.storage.v2.Object updateObject(com.google.storage.v2.UpdateObjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateObjectMethod(), getCallOptions(), request); } /** - * - * *
      * Retrieves a list of objects matching the criteria.
      * 
*/ - public com.google.storage.v2.ListObjectsResponse listObjects( - com.google.storage.v2.ListObjectsRequest request) { + public com.google.storage.v2.ListObjectsResponse listObjects(com.google.storage.v2.ListObjectsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListObjectsMethod(), getCallOptions(), request); } /** - * - * *
      * Rewrites a source object to a destination object. Optionally overrides
      * metadata.
      * 
*/ - public com.google.storage.v2.RewriteResponse rewriteObject( - com.google.storage.v2.RewriteObjectRequest request) { + public com.google.storage.v2.RewriteResponse rewriteObject(com.google.storage.v2.RewriteObjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRewriteObjectMethod(), getCallOptions(), request); } /** - * - * *
      * Starts a resumable write. How long the write operation remains valid, and
      * what happens when the write operation becomes invalid, are
      * service-dependent.
      * 
*/ - public com.google.storage.v2.StartResumableWriteResponse startResumableWrite( - com.google.storage.v2.StartResumableWriteRequest request) { + public com.google.storage.v2.StartResumableWriteResponse startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getStartResumableWriteMethod(), getCallOptions(), request); } /** - * - * *
      * Determines the `persisted_size` for an object that is being written, which
      * can then be used as the `write_offset` for the next `Write()` call.
@@ -3063,86 +2343,67 @@ public com.google.storage.v2.StartResumableWriteResponse startResumableWrite(
      * non-decreasing.
      * 
*/ - public com.google.storage.v2.QueryWriteStatusResponse queryWriteStatus( - com.google.storage.v2.QueryWriteStatusRequest request) { + public com.google.storage.v2.QueryWriteStatusResponse queryWriteStatus(com.google.storage.v2.QueryWriteStatusRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryWriteStatusMethod(), getCallOptions(), request); } /** - * - * *
      * Retrieves the name of a project's Google Cloud Storage service account.
      * 
*/ - public com.google.storage.v2.ServiceAccount getServiceAccount( - com.google.storage.v2.GetServiceAccountRequest request) { + public com.google.storage.v2.ServiceAccount getServiceAccount(com.google.storage.v2.GetServiceAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetServiceAccountMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a new HMAC key for the given service account.
      * 
*/ - public com.google.storage.v2.CreateHmacKeyResponse createHmacKey( - com.google.storage.v2.CreateHmacKeyRequest request) { + public com.google.storage.v2.CreateHmacKeyResponse createHmacKey(com.google.storage.v2.CreateHmacKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateHmacKeyMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a given HMAC key.  Key must be in an INACTIVE state.
      * 
*/ - public com.google.protobuf.Empty deleteHmacKey( - com.google.storage.v2.DeleteHmacKeyRequest request) { + public com.google.protobuf.Empty deleteHmacKey(com.google.storage.v2.DeleteHmacKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteHmacKeyMethod(), getCallOptions(), request); } /** - * - * *
      * Gets an existing HMAC key metadata for the given id.
      * 
*/ - public com.google.storage.v2.HmacKeyMetadata getHmacKey( - com.google.storage.v2.GetHmacKeyRequest request) { + public com.google.storage.v2.HmacKeyMetadata getHmacKey(com.google.storage.v2.GetHmacKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetHmacKeyMethod(), getCallOptions(), request); } /** - * - * *
      * Lists HMAC keys under a given project with the additional filters provided.
      * 
*/ - public com.google.storage.v2.ListHmacKeysResponse listHmacKeys( - com.google.storage.v2.ListHmacKeysRequest request) { + public com.google.storage.v2.ListHmacKeysResponse listHmacKeys(com.google.storage.v2.ListHmacKeysRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListHmacKeysMethod(), getCallOptions(), request); } /** - * - * *
      * Updates a given HMAC key state between ACTIVE and INACTIVE.
      * 
*/ - public com.google.storage.v2.HmacKeyMetadata updateHmacKey( - com.google.storage.v2.UpdateHmacKeyRequest request) { + public com.google.storage.v2.HmacKeyMetadata updateHmacKey(com.google.storage.v2.UpdateHmacKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateHmacKeyMethod(), getCallOptions(), request); } @@ -3150,7 +2411,6 @@ public com.google.storage.v2.HmacKeyMetadata updateHmacKey( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Storage. - * *
    * ## API Overview and Naming Syntax
    * The Cloud Storage gRPC API allows applications to read and write data through
@@ -3174,116 +2434,99 @@ public com.google.storage.v2.HmacKeyMetadata updateHmacKey(
    */
   public static final class StorageFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private StorageFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private StorageFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected StorageFutureStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new StorageFutureStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Permanently deletes an empty bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteBucket(com.google.storage.v2.DeleteBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteBucket( + com.google.storage.v2.DeleteBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), request); } /** - * - * *
      * Returns metadata for the specified bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getBucket(com.google.storage.v2.GetBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture getBucket( + com.google.storage.v2.GetBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBucketMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a new bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createBucket(com.google.storage.v2.CreateBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture createBucket( + com.google.storage.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBucketMethod(), getCallOptions()), request); } /** - * - * *
      * Retrieves a list of buckets for a given project.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.ListBucketsResponse> - listBuckets(com.google.storage.v2.ListBucketsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listBuckets( + com.google.storage.v2.ListBucketsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBucketsMethod(), getCallOptions()), request); } /** - * - * *
      * Locks retention policy on a bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - lockBucketRetentionPolicy(com.google.storage.v2.LockBucketRetentionPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture lockBucketRetentionPolicy( + com.google.storage.v2.LockBucketRetentionPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getLockBucketRetentionPolicyMethod(), getCallOptions()), request); } /** - * - * *
-     * Gets the IAM policy for a specified bucket or object.
+     * Gets the IAM policy for a specified bucket.
      * The `resource` field in the request should be
-     * `projects/_/buckets/{bucket}` for a bucket or
-     * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+     * `projects/_/buckets/{bucket}`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** - * - * *
-     * Updates an IAM policy for the specified bucket or object.
+     * Updates an IAM policy for the specified bucket.
      * The `resource` field in the request should be
-     * `projects/_/buckets/{bucket}` for a bucket or
-     * `projects/_/buckets/{bucket}/objects/{object}` for an object.
+     * `projects/_/buckets/{bucket}`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** - * - * *
      * Tests a set of permissions on the given bucket or object to see which, if
      * any, are held by the caller.
@@ -3292,56 +2535,46 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * `projects/_/buckets/{bucket}/objects/{object}` for an object.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } /** - * - * *
      * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateBucket(com.google.storage.v2.UpdateBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateBucket( + com.google.storage.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), request); } /** - * - * *
      * Permanently deletes a NotificationConfig.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteNotificationConfig(com.google.storage.v2.DeleteNotificationConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteNotificationConfig( + com.google.storage.v2.DeleteNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request); } /** - * - * *
      * View a NotificationConfig.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.NotificationConfig> - getNotificationConfig(com.google.storage.v2.GetNotificationConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture getNotificationConfig( + com.google.storage.v2.GetNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a NotificationConfig for a given bucket.
      * These NotificationConfigs, when triggered, publish messages to the
@@ -3349,44 +2582,36 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * https://cloud.google.com/storage/docs/pubsub-notifications.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.NotificationConfig> - createNotificationConfig(com.google.storage.v2.CreateNotificationConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture createNotificationConfig( + com.google.storage.v2.CreateNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request); } /** - * - * *
      * Retrieves a list of NotificationConfigs for a given bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.ListNotificationConfigsResponse> - listNotificationConfigs(com.google.storage.v2.ListNotificationConfigsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listNotificationConfigs( + com.google.storage.v2.ListNotificationConfigsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request); } /** - * - * *
      * Concatenates a list of existing objects into a new object in the same
      * bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - composeObject(com.google.storage.v2.ComposeObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture composeObject( + com.google.storage.v2.ComposeObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getComposeObjectMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes an object and its metadata.
      * Deletions are normally permanent when versioning is disabled or whenever
@@ -3395,28 +2620,24 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * soft delete retention period has passed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteObject(com.google.storage.v2.DeleteObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteObject( + com.google.storage.v2.DeleteObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteObjectMethod(), getCallOptions()), request); } /** - * - * *
      * Restores a soft-deleted object.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - restoreObject(com.google.storage.v2.RestoreObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture restoreObject( + com.google.storage.v2.RestoreObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRestoreObjectMethod(), getCallOptions()), request); } /** - * - * *
      * Cancels an in-progress resumable upload.
      * Any attempts to write to the resumable upload after cancelling the upload
@@ -3426,87 +2647,72 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * cancellation completes first.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.CancelResumableWriteResponse> - cancelResumableWrite(com.google.storage.v2.CancelResumableWriteRequest request) { + public com.google.common.util.concurrent.ListenableFuture cancelResumableWrite( + com.google.storage.v2.CancelResumableWriteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelResumableWriteMethod(), getCallOptions()), request); } /** - * - * *
      * Retrieves an object's metadata.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getObject(com.google.storage.v2.GetObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture getObject( + com.google.storage.v2.GetObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetObjectMethod(), getCallOptions()), request); } /** - * - * *
      * Updates an object's metadata.
      * Equivalent to JSON API's storage.objects.patch.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateObject(com.google.storage.v2.UpdateObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateObject( + com.google.storage.v2.UpdateObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateObjectMethod(), getCallOptions()), request); } /** - * - * *
      * Retrieves a list of objects matching the criteria.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.ListObjectsResponse> - listObjects(com.google.storage.v2.ListObjectsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listObjects( + com.google.storage.v2.ListObjectsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListObjectsMethod(), getCallOptions()), request); } /** - * - * *
      * Rewrites a source object to a destination object. Optionally overrides
      * metadata.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - rewriteObject(com.google.storage.v2.RewriteObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture rewriteObject( + com.google.storage.v2.RewriteObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRewriteObjectMethod(), getCallOptions()), request); } /** - * - * *
      * Starts a resumable write. How long the write operation remains valid, and
      * what happens when the write operation becomes invalid, are
      * service-dependent.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.StartResumableWriteResponse> - startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request) { + public com.google.common.util.concurrent.ListenableFuture startResumableWrite( + com.google.storage.v2.StartResumableWriteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getStartResumableWriteMethod(), getCallOptions()), request); } /** - * - * *
      * Determines the `persisted_size` for an object that is being written, which
      * can then be used as the `write_offset` for the next `Write()` call.
@@ -3521,89 +2727,74 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * non-decreasing.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.QueryWriteStatusResponse> - queryWriteStatus(com.google.storage.v2.QueryWriteStatusRequest request) { + public com.google.common.util.concurrent.ListenableFuture queryWriteStatus( + com.google.storage.v2.QueryWriteStatusRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryWriteStatusMethod(), getCallOptions()), request); } /** - * - * *
      * Retrieves the name of a project's Google Cloud Storage service account.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getServiceAccount(com.google.storage.v2.GetServiceAccountRequest request) { + public com.google.common.util.concurrent.ListenableFuture getServiceAccount( + com.google.storage.v2.GetServiceAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetServiceAccountMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a new HMAC key for the given service account.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.CreateHmacKeyResponse> - createHmacKey(com.google.storage.v2.CreateHmacKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture createHmacKey( + com.google.storage.v2.CreateHmacKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateHmacKeyMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a given HMAC key.  Key must be in an INACTIVE state.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteHmacKey(com.google.storage.v2.DeleteHmacKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteHmacKey( + com.google.storage.v2.DeleteHmacKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteHmacKeyMethod(), getCallOptions()), request); } /** - * - * *
      * Gets an existing HMAC key metadata for the given id.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getHmacKey(com.google.storage.v2.GetHmacKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getHmacKey( + com.google.storage.v2.GetHmacKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetHmacKeyMethod(), getCallOptions()), request); } /** - * - * *
      * Lists HMAC keys under a given project with the additional filters provided.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.ListHmacKeysResponse> - listHmacKeys(com.google.storage.v2.ListHmacKeysRequest request) { + public com.google.common.util.concurrent.ListenableFuture listHmacKeys( + com.google.storage.v2.ListHmacKeysRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListHmacKeysMethod(), getCallOptions()), request); } /** - * - * *
      * Updates a given HMAC key state between ACTIVE and INACTIVE.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateHmacKey(com.google.storage.v2.UpdateHmacKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateHmacKey( + com.google.storage.v2.UpdateHmacKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateHmacKeyMethod(), getCallOptions()), request); } @@ -3642,11 +2833,11 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c private static final int METHODID_WRITE_OBJECT = 30; private static final int METHODID_BIDI_WRITE_OBJECT = 31; - 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 AsyncService serviceImpl; private final int methodId; @@ -3660,169 +2851,124 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_DELETE_BUCKET: - serviceImpl.deleteBucket( - (com.google.storage.v2.DeleteBucketRequest) request, + serviceImpl.deleteBucket((com.google.storage.v2.DeleteBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BUCKET: - serviceImpl.getBucket( - (com.google.storage.v2.GetBucketRequest) request, + serviceImpl.getBucket((com.google.storage.v2.GetBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_BUCKET: - serviceImpl.createBucket( - (com.google.storage.v2.CreateBucketRequest) request, + serviceImpl.createBucket((com.google.storage.v2.CreateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BUCKETS: - serviceImpl.listBuckets( - (com.google.storage.v2.ListBucketsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listBuckets((com.google.storage.v2.ListBucketsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LOCK_BUCKET_RETENTION_POLICY: - serviceImpl.lockBucketRetentionPolicy( - (com.google.storage.v2.LockBucketRetentionPolicyRequest) request, + serviceImpl.lockBucketRetentionPolicy((com.google.storage.v2.LockBucketRetentionPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_BUCKET: - serviceImpl.updateBucket( - (com.google.storage.v2.UpdateBucketRequest) request, + serviceImpl.updateBucket((com.google.storage.v2.UpdateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_NOTIFICATION_CONFIG: - serviceImpl.deleteNotificationConfig( - (com.google.storage.v2.DeleteNotificationConfigRequest) request, + serviceImpl.deleteNotificationConfig((com.google.storage.v2.DeleteNotificationConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_NOTIFICATION_CONFIG: - serviceImpl.getNotificationConfig( - (com.google.storage.v2.GetNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getNotificationConfig((com.google.storage.v2.GetNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_NOTIFICATION_CONFIG: - serviceImpl.createNotificationConfig( - (com.google.storage.v2.CreateNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createNotificationConfig((com.google.storage.v2.CreateNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_NOTIFICATION_CONFIGS: - serviceImpl.listNotificationConfigs( - (com.google.storage.v2.ListNotificationConfigsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listNotificationConfigs((com.google.storage.v2.ListNotificationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COMPOSE_OBJECT: - serviceImpl.composeObject( - (com.google.storage.v2.ComposeObjectRequest) request, + serviceImpl.composeObject((com.google.storage.v2.ComposeObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_OBJECT: - serviceImpl.deleteObject( - (com.google.storage.v2.DeleteObjectRequest) request, + serviceImpl.deleteObject((com.google.storage.v2.DeleteObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESTORE_OBJECT: - serviceImpl.restoreObject( - (com.google.storage.v2.RestoreObjectRequest) request, + serviceImpl.restoreObject((com.google.storage.v2.RestoreObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CANCEL_RESUMABLE_WRITE: - serviceImpl.cancelResumableWrite( - (com.google.storage.v2.CancelResumableWriteRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.cancelResumableWrite((com.google.storage.v2.CancelResumableWriteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_OBJECT: - serviceImpl.getObject( - (com.google.storage.v2.GetObjectRequest) request, + serviceImpl.getObject((com.google.storage.v2.GetObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_READ_OBJECT: - serviceImpl.readObject( - (com.google.storage.v2.ReadObjectRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.readObject((com.google.storage.v2.ReadObjectRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_OBJECT: - serviceImpl.updateObject( - (com.google.storage.v2.UpdateObjectRequest) request, + serviceImpl.updateObject((com.google.storage.v2.UpdateObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_OBJECTS: - serviceImpl.listObjects( - (com.google.storage.v2.ListObjectsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listObjects((com.google.storage.v2.ListObjectsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REWRITE_OBJECT: - serviceImpl.rewriteObject( - (com.google.storage.v2.RewriteObjectRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.rewriteObject((com.google.storage.v2.RewriteObjectRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_START_RESUMABLE_WRITE: - serviceImpl.startResumableWrite( - (com.google.storage.v2.StartResumableWriteRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.startResumableWrite((com.google.storage.v2.StartResumableWriteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_QUERY_WRITE_STATUS: - serviceImpl.queryWriteStatus( - (com.google.storage.v2.QueryWriteStatusRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.queryWriteStatus((com.google.storage.v2.QueryWriteStatusRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SERVICE_ACCOUNT: - serviceImpl.getServiceAccount( - (com.google.storage.v2.GetServiceAccountRequest) request, + serviceImpl.getServiceAccount((com.google.storage.v2.GetServiceAccountRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_HMAC_KEY: - serviceImpl.createHmacKey( - (com.google.storage.v2.CreateHmacKeyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createHmacKey((com.google.storage.v2.CreateHmacKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_HMAC_KEY: - serviceImpl.deleteHmacKey( - (com.google.storage.v2.DeleteHmacKeyRequest) request, + serviceImpl.deleteHmacKey((com.google.storage.v2.DeleteHmacKeyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_HMAC_KEY: - serviceImpl.getHmacKey( - (com.google.storage.v2.GetHmacKeyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getHmacKey((com.google.storage.v2.GetHmacKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_HMAC_KEYS: - serviceImpl.listHmacKeys( - (com.google.storage.v2.ListHmacKeysRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listHmacKeys((com.google.storage.v2.ListHmacKeysRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_HMAC_KEY: - serviceImpl.updateHmacKey( - (com.google.storage.v2.UpdateHmacKeyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateHmacKey((com.google.storage.v2.UpdateHmacKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -3835,15 +2981,11 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_WRITE_OBJECT: - return (io.grpc.stub.StreamObserver) - serviceImpl.writeObject( - (io.grpc.stub.StreamObserver) - responseObserver); + return (io.grpc.stub.StreamObserver) serviceImpl.writeObject( + (io.grpc.stub.StreamObserver) responseObserver); case METHODID_BIDI_WRITE_OBJECT: - return (io.grpc.stub.StreamObserver) - serviceImpl.bidiWriteObject( - (io.grpc.stub.StreamObserver) - responseObserver); + return (io.grpc.stub.StreamObserver) serviceImpl.bidiWriteObject( + (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } @@ -3853,210 +2995,234 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getDeleteBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_BUCKET))) + getDeleteBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.DeleteBucketRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_BUCKET))) .addMethod( - getGetBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetBucketRequest, com.google.storage.v2.Bucket>( - service, METHODID_GET_BUCKET))) + getGetBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetBucketRequest, + com.google.storage.v2.Bucket>( + service, METHODID_GET_BUCKET))) .addMethod( - getCreateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>( - service, METHODID_CREATE_BUCKET))) + getCreateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.CreateBucketRequest, + com.google.storage.v2.Bucket>( + service, METHODID_CREATE_BUCKET))) .addMethod( - getListBucketsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ListBucketsRequest, - com.google.storage.v2.ListBucketsResponse>(service, METHODID_LIST_BUCKETS))) + getListBucketsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ListBucketsRequest, + com.google.storage.v2.ListBucketsResponse>( + service, METHODID_LIST_BUCKETS))) .addMethod( - getLockBucketRetentionPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.LockBucketRetentionPolicyRequest, - com.google.storage.v2.Bucket>(service, METHODID_LOCK_BUCKET_RETENTION_POLICY))) + getLockBucketRetentionPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.LockBucketRetentionPolicyRequest, + com.google.storage.v2.Bucket>( + service, METHODID_LOCK_BUCKET_RETENTION_POLICY))) .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_GET_IAM_POLICY))) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_SET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - service, METHODID_TEST_IAM_PERMISSIONS))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + service, METHODID_TEST_IAM_PERMISSIONS))) .addMethod( - getUpdateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>( - service, METHODID_UPDATE_BUCKET))) + getUpdateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.UpdateBucketRequest, + com.google.storage.v2.Bucket>( + service, METHODID_UPDATE_BUCKET))) .addMethod( - getDeleteNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.DeleteNotificationConfigRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_NOTIFICATION_CONFIG))) + getDeleteNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.DeleteNotificationConfigRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_NOTIFICATION_CONFIG))) .addMethod( - getGetNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetNotificationConfigRequest, - com.google.storage.v2.NotificationConfig>( - service, METHODID_GET_NOTIFICATION_CONFIG))) + getGetNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetNotificationConfigRequest, + com.google.storage.v2.NotificationConfig>( + service, METHODID_GET_NOTIFICATION_CONFIG))) .addMethod( - getCreateNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.CreateNotificationConfigRequest, - com.google.storage.v2.NotificationConfig>( - service, METHODID_CREATE_NOTIFICATION_CONFIG))) + getCreateNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.CreateNotificationConfigRequest, + com.google.storage.v2.NotificationConfig>( + service, METHODID_CREATE_NOTIFICATION_CONFIG))) .addMethod( - getListNotificationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ListNotificationConfigsRequest, - com.google.storage.v2.ListNotificationConfigsResponse>( - service, METHODID_LIST_NOTIFICATION_CONFIGS))) + getListNotificationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ListNotificationConfigsRequest, + com.google.storage.v2.ListNotificationConfigsResponse>( + service, METHODID_LIST_NOTIFICATION_CONFIGS))) .addMethod( - getComposeObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>( - service, METHODID_COMPOSE_OBJECT))) + getComposeObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ComposeObjectRequest, + com.google.storage.v2.Object>( + service, METHODID_COMPOSE_OBJECT))) .addMethod( - getDeleteObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.DeleteObjectRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_OBJECT))) + getDeleteObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.DeleteObjectRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_OBJECT))) .addMethod( - getRestoreObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>( - service, METHODID_RESTORE_OBJECT))) + getRestoreObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.RestoreObjectRequest, + com.google.storage.v2.Object>( + service, METHODID_RESTORE_OBJECT))) .addMethod( - getCancelResumableWriteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.CancelResumableWriteRequest, - com.google.storage.v2.CancelResumableWriteResponse>( - service, METHODID_CANCEL_RESUMABLE_WRITE))) + getCancelResumableWriteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.CancelResumableWriteRequest, + com.google.storage.v2.CancelResumableWriteResponse>( + service, METHODID_CANCEL_RESUMABLE_WRITE))) .addMethod( - getGetObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>( - service, METHODID_GET_OBJECT))) + getGetObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetObjectRequest, + com.google.storage.v2.Object>( + service, METHODID_GET_OBJECT))) .addMethod( - getReadObjectMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.storage.v2.ReadObjectRequest, - com.google.storage.v2.ReadObjectResponse>(service, METHODID_READ_OBJECT))) + getReadObjectMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.storage.v2.ReadObjectRequest, + com.google.storage.v2.ReadObjectResponse>( + service, METHODID_READ_OBJECT))) .addMethod( - getUpdateObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>( - service, METHODID_UPDATE_OBJECT))) + getUpdateObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.UpdateObjectRequest, + com.google.storage.v2.Object>( + service, METHODID_UPDATE_OBJECT))) .addMethod( - getWriteObjectMethod(), - io.grpc.stub.ServerCalls.asyncClientStreamingCall( - new MethodHandlers< - com.google.storage.v2.WriteObjectRequest, - com.google.storage.v2.WriteObjectResponse>(service, METHODID_WRITE_OBJECT))) + getWriteObjectMethod(), + io.grpc.stub.ServerCalls.asyncClientStreamingCall( + new MethodHandlers< + com.google.storage.v2.WriteObjectRequest, + com.google.storage.v2.WriteObjectResponse>( + service, METHODID_WRITE_OBJECT))) .addMethod( - getBidiWriteObjectMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.storage.v2.BidiWriteObjectRequest, - com.google.storage.v2.BidiWriteObjectResponse>( - service, METHODID_BIDI_WRITE_OBJECT))) + getBidiWriteObjectMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.storage.v2.BidiWriteObjectRequest, + com.google.storage.v2.BidiWriteObjectResponse>( + service, METHODID_BIDI_WRITE_OBJECT))) .addMethod( - getListObjectsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ListObjectsRequest, - com.google.storage.v2.ListObjectsResponse>(service, METHODID_LIST_OBJECTS))) + getListObjectsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ListObjectsRequest, + com.google.storage.v2.ListObjectsResponse>( + service, METHODID_LIST_OBJECTS))) .addMethod( - getRewriteObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.RewriteObjectRequest, - com.google.storage.v2.RewriteResponse>(service, METHODID_REWRITE_OBJECT))) + getRewriteObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.RewriteObjectRequest, + com.google.storage.v2.RewriteResponse>( + service, METHODID_REWRITE_OBJECT))) .addMethod( - getStartResumableWriteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.StartResumableWriteRequest, - com.google.storage.v2.StartResumableWriteResponse>( - service, METHODID_START_RESUMABLE_WRITE))) + getStartResumableWriteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.StartResumableWriteRequest, + com.google.storage.v2.StartResumableWriteResponse>( + service, METHODID_START_RESUMABLE_WRITE))) .addMethod( - getQueryWriteStatusMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.QueryWriteStatusRequest, - com.google.storage.v2.QueryWriteStatusResponse>( - service, METHODID_QUERY_WRITE_STATUS))) + getQueryWriteStatusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.QueryWriteStatusRequest, + com.google.storage.v2.QueryWriteStatusResponse>( + service, METHODID_QUERY_WRITE_STATUS))) .addMethod( - getGetServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetServiceAccountRequest, - com.google.storage.v2.ServiceAccount>(service, METHODID_GET_SERVICE_ACCOUNT))) + getGetServiceAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetServiceAccountRequest, + com.google.storage.v2.ServiceAccount>( + service, METHODID_GET_SERVICE_ACCOUNT))) .addMethod( - getCreateHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.CreateHmacKeyRequest, - com.google.storage.v2.CreateHmacKeyResponse>( - service, METHODID_CREATE_HMAC_KEY))) + getCreateHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.CreateHmacKeyRequest, + com.google.storage.v2.CreateHmacKeyResponse>( + service, METHODID_CREATE_HMAC_KEY))) .addMethod( - getDeleteHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_HMAC_KEY))) + getDeleteHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.DeleteHmacKeyRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_HMAC_KEY))) .addMethod( - getGetHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>( - service, METHODID_GET_HMAC_KEY))) + getGetHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetHmacKeyRequest, + com.google.storage.v2.HmacKeyMetadata>( + service, METHODID_GET_HMAC_KEY))) .addMethod( - getListHmacKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ListHmacKeysRequest, - com.google.storage.v2.ListHmacKeysResponse>(service, METHODID_LIST_HMAC_KEYS))) + getListHmacKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ListHmacKeysRequest, + com.google.storage.v2.ListHmacKeysResponse>( + service, METHODID_LIST_HMAC_KEYS))) .addMethod( - getUpdateHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.UpdateHmacKeyRequest, - com.google.storage.v2.HmacKeyMetadata>(service, METHODID_UPDATE_HMAC_KEY))) + getUpdateHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.UpdateHmacKeyRequest, + com.google.storage.v2.HmacKeyMetadata>( + service, METHODID_UPDATE_HMAC_KEY))) .build(); } - private abstract static class StorageBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class StorageBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { StorageBaseDescriptorSupplier() {} @java.lang.Override @@ -4070,11 +3236,13 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class StorageFileDescriptorSupplier extends StorageBaseDescriptorSupplier { + private static final class StorageFileDescriptorSupplier + extends StorageBaseDescriptorSupplier { StorageFileDescriptorSupplier() {} } - private static final class StorageMethodDescriptorSupplier extends StorageBaseDescriptorSupplier + private static final class StorageMethodDescriptorSupplier + extends StorageBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; @@ -4096,43 +3264,41 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (StorageGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new StorageFileDescriptorSupplier()) - .addMethod(getDeleteBucketMethod()) - .addMethod(getGetBucketMethod()) - .addMethod(getCreateBucketMethod()) - .addMethod(getListBucketsMethod()) - .addMethod(getLockBucketRetentionPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getUpdateBucketMethod()) - .addMethod(getDeleteNotificationConfigMethod()) - .addMethod(getGetNotificationConfigMethod()) - .addMethod(getCreateNotificationConfigMethod()) - .addMethod(getListNotificationConfigsMethod()) - .addMethod(getComposeObjectMethod()) - .addMethod(getDeleteObjectMethod()) - .addMethod(getRestoreObjectMethod()) - .addMethod(getCancelResumableWriteMethod()) - .addMethod(getGetObjectMethod()) - .addMethod(getReadObjectMethod()) - .addMethod(getUpdateObjectMethod()) - .addMethod(getWriteObjectMethod()) - .addMethod(getBidiWriteObjectMethod()) - .addMethod(getListObjectsMethod()) - .addMethod(getRewriteObjectMethod()) - .addMethod(getStartResumableWriteMethod()) - .addMethod(getQueryWriteStatusMethod()) - .addMethod(getGetServiceAccountMethod()) - .addMethod(getCreateHmacKeyMethod()) - .addMethod(getDeleteHmacKeyMethod()) - .addMethod(getGetHmacKeyMethod()) - .addMethod(getListHmacKeysMethod()) - .addMethod(getUpdateHmacKeyMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new StorageFileDescriptorSupplier()) + .addMethod(getDeleteBucketMethod()) + .addMethod(getGetBucketMethod()) + .addMethod(getCreateBucketMethod()) + .addMethod(getListBucketsMethod()) + .addMethod(getLockBucketRetentionPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getUpdateBucketMethod()) + .addMethod(getDeleteNotificationConfigMethod()) + .addMethod(getGetNotificationConfigMethod()) + .addMethod(getCreateNotificationConfigMethod()) + .addMethod(getListNotificationConfigsMethod()) + .addMethod(getComposeObjectMethod()) + .addMethod(getDeleteObjectMethod()) + .addMethod(getRestoreObjectMethod()) + .addMethod(getCancelResumableWriteMethod()) + .addMethod(getGetObjectMethod()) + .addMethod(getReadObjectMethod()) + .addMethod(getUpdateObjectMethod()) + .addMethod(getWriteObjectMethod()) + .addMethod(getBidiWriteObjectMethod()) + .addMethod(getListObjectsMethod()) + .addMethod(getRewriteObjectMethod()) + .addMethod(getStartResumableWriteMethod()) + .addMethod(getQueryWriteStatusMethod()) + .addMethod(getGetServiceAccountMethod()) + .addMethod(getCreateHmacKeyMethod()) + .addMethod(getDeleteHmacKeyMethod()) + .addMethod(getGetHmacKeyMethod()) + .addMethod(getListHmacKeysMethod()) + .addMethod(getUpdateHmacKeyMethod()) + .build(); } } } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java similarity index 100% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java similarity index 65% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java index 400816a45f..f78f880cca 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java @@ -1,26 +1,10 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * The message contains metadata that is common to all Storage Control
  * long-running operations, present in its `google.longrunning.Operation`
@@ -29,70 +13,60 @@
  *
  * Protobuf type {@code google.storage.control.v2.CommonLongRunningOperationMetadata}
  */
-public final class CommonLongRunningOperationMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CommonLongRunningOperationMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.storage.control.v2.CommonLongRunningOperationMetadata)
     CommonLongRunningOperationMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CommonLongRunningOperationMetadata.newBuilder() to construct.
-  private CommonLongRunningOperationMetadata(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CommonLongRunningOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CommonLongRunningOperationMetadata() {
     type_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CommonLongRunningOperationMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.storage.control.v2.StorageControlProto
-        .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.storage.control.v2.StorageControlProto
-        .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
+    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.storage.control.v2.CommonLongRunningOperationMetadata.class,
-            com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
+            com.google.storage.control.v2.CommonLongRunningOperationMetadata.class, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
   }
 
+  private int bitField0_;
   public static final int CREATE_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -100,14 +74,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -117,31 +88,23 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override public boolean hasEndTime() { - return endTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -149,14 +112,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -166,31 +126,23 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the operation was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { - return updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Output only. The time the operation was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -198,14 +150,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the operation was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -213,18 +162,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int TYPE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * *
    * Output only. The type of operation invoked.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The type. */ @java.lang.Override @@ -233,29 +178,29 @@ public java.lang.String getType() { 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(); type_ = s; return s; } } /** - * - * *
    * Output only. The type of operation invoked.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -266,14 +211,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 5; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation.
    * 
* * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -284,15 +226,12 @@ public boolean getRequestedCancellation() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 6; private int progressPercent_ = 0; /** - * - * *
    * Output only. The estimated progress of the operation in percentage [0,
    * 100]. The value -1 means the progress is unknown.
    * 
* * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The progressPercent. */ @java.lang.Override @@ -301,7 +240,6 @@ public int getProgressPercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,14 +251,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createTime_ != null) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCreateTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getEndTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { @@ -341,23 +280,28 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, requestedCancellation_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, progressPercent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -367,29 +311,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.storage.control.v2.CommonLongRunningOperationMetadata)) { return super.equals(obj); } - com.google.storage.control.v2.CommonLongRunningOperationMetadata other = - (com.google.storage.control.v2.CommonLongRunningOperationMetadata) obj; + com.google.storage.control.v2.CommonLongRunningOperationMetadata other = (com.google.storage.control.v2.CommonLongRunningOperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getType().equals(other.getType())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getType() + .equals(other.getType())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -416,7 +365,8 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -425,104 +375,98 @@ public int hashCode() { } public static com.google.storage.control.v2.CommonLongRunningOperationMetadata 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.storage.control.v2.CommonLongRunningOperationMetadata 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.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata 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.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata 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.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata 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.storage.control.v2.CommonLongRunningOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.CommonLongRunningOperationMetadata 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.storage.control.v2.CommonLongRunningOperationMetadata 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.storage.control.v2.CommonLongRunningOperationMetadata 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.storage.control.v2.CommonLongRunningOperationMetadata prototype) { + public static Builder newBuilder(com.google.storage.control.v2.CommonLongRunningOperationMetadata 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 contains metadata that is common to all Storage Control
    * long-running operations, present in its `google.longrunning.Operation`
@@ -531,32 +475,41 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.storage.control.v2.CommonLongRunningOperationMetadata}
    */
-  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.storage.control.v2.CommonLongRunningOperationMetadata)
       com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.control.v2.StorageControlProto
-          .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.control.v2.StorageControlProto
-          .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
+      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.control.v2.CommonLongRunningOperationMetadata.class,
-              com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
+              com.google.storage.control.v2.CommonLongRunningOperationMetadata.class, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
     }
 
     // Construct using com.google.storage.control.v2.CommonLongRunningOperationMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+        getCreateTimeFieldBuilder();
+        getEndTimeFieldBuilder();
+        getUpdateTimeFieldBuilder();
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -583,14 +536,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.storage.control.v2.StorageControlProto
-          .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.storage.control.v2.CommonLongRunningOperationMetadata
-        getDefaultInstanceForType() {
+    public com.google.storage.control.v2.CommonLongRunningOperationMetadata getDefaultInstanceForType() {
       return com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance();
     }
 
@@ -605,26 +557,32 @@ public com.google.storage.control.v2.CommonLongRunningOperationMetadata build()
 
     @java.lang.Override
     public com.google.storage.control.v2.CommonLongRunningOperationMetadata buildPartial() {
-      com.google.storage.control.v2.CommonLongRunningOperationMetadata result =
-          new com.google.storage.control.v2.CommonLongRunningOperationMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.storage.control.v2.CommonLongRunningOperationMetadata result = new com.google.storage.control.v2.CommonLongRunningOperationMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.storage.control.v2.CommonLongRunningOperationMetadata result) {
+    private void buildPartial0(com.google.storage.control.v2.CommonLongRunningOperationMetadata result) {
       int from_bitField0_ = bitField0_;
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
+        to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
+        to_bitField0_ |= 0x00000004;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.type_ = type_;
@@ -635,56 +593,53 @@ private void buildPartial0(
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.progressPercent_ = progressPercent_;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
     @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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.storage.control.v2.CommonLongRunningOperationMetadata) {
-        return mergeFrom((com.google.storage.control.v2.CommonLongRunningOperationMetadata) other);
+        return mergeFrom((com.google.storage.control.v2.CommonLongRunningOperationMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.storage.control.v2.CommonLongRunningOperationMetadata other) {
-      if (other
-          == com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.storage.control.v2.CommonLongRunningOperationMetadata other) {
+      if (other == com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance()) return this;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
@@ -731,49 +686,48 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                type_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                requestedCancellation_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 48:
-              {
-                progressPercent_ = input.readInt32();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              type_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              requestedCancellation_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 48: {
+              progressPercent_ = input.readInt32();
+              bitField0_ |= 0x00000020;
+              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) {
@@ -783,63 +737,43 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -855,17 +789,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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 { @@ -876,21 +807,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -898,20 +825,18 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -924,15 +849,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -940,48 +861,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; @@ -989,35 +898,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1028,14 +926,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1051,16 +946,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1071,20 +964,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1092,19 +982,18 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1117,14 +1006,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1132,44 +1018,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_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> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1177,58 +1055,39 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time the operation was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The time the operation was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1244,17 +1103,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1265,21 +1121,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1287,20 +1139,18 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** - * - * *
      * Output only. The time the operation was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1313,15 +1163,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the operation was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1329,48 +1175,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time the operation was last modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1378,20 +1212,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object type_ = ""; /** - * - * *
      * Output only. The type of operation invoked.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1400,21 +1232,20 @@ public java.lang.String getType() { } } /** - * - * *
      * Output only. The type of operation invoked.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -1422,35 +1253,28 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
      * Output only. The type of operation invoked.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. The type of operation invoked.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearType() { @@ -1460,21 +1284,17 @@ public Builder clearType() { return this; } /** - * - * *
      * Output only. The type of operation invoked.
      * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000008; @@ -1482,16 +1302,13 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation.
      * 
* * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1499,14 +1316,11 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation.
      * 
* * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ @@ -1518,14 +1332,11 @@ public Builder setRequestedCancellation(boolean value) { return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation.
      * 
* * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1535,17 +1346,14 @@ public Builder clearRequestedCancellation() { return this; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * Output only. The estimated progress of the operation in percentage [0,
      * 100]. The value -1 means the progress is unknown.
      * 
* * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The progressPercent. */ @java.lang.Override @@ -1553,15 +1361,12 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * Output only. The estimated progress of the operation in percentage [0,
      * 100]. The value -1 means the progress is unknown.
      * 
* * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -1573,15 +1378,12 @@ public Builder setProgressPercent(int value) { return this; } /** - * - * *
      * Output only. The estimated progress of the operation in percentage [0,
      * 100]. The value -1 means the progress is unknown.
      * 
* * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -1590,9 +1392,9 @@ public Builder clearProgressPercent() { 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); } @@ -1602,43 +1404,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.CommonLongRunningOperationMetadata) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.CommonLongRunningOperationMetadata) - private static final com.google.storage.control.v2.CommonLongRunningOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.storage.control.v2.CommonLongRunningOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.storage.control.v2.CommonLongRunningOperationMetadata(); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata - getDefaultInstance() { + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonLongRunningOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CommonLongRunningOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1650,8 +1450,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.storage.control.v2.CommonLongRunningOperationMetadata - getDefaultInstanceForType() { + public com.google.storage.control.v2.CommonLongRunningOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java similarity index 72% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java index 1393da9a47..96a7be4e54 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java @@ -1,190 +1,131 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface CommonLongRunningOperationMetadataOrBuilder - extends +public interface CommonLongRunningOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.CommonLongRunningOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the operation was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the operation was last modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The type of operation invoked.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The type. */ java.lang.String getType(); /** - * - * *
    * Output only. The type of operation invoked.
    * 
* * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation.
    * 
* * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. The estimated progress of the operation in percentage [0,
    * 100]. The value -1 means the progress is unknown.
    * 
* * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The progressPercent. */ int getProgressPercent(); diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java similarity index 68% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java index 74aa3770e8..a100581ed0 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * Request message for CreateFolder.
  * 
* * Protobuf type {@code google.storage.control.v2.CreateFolderRequest} */ -public final class CreateFolderRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFolderRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.CreateFolderRequest) CreateFolderRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFolderRequest.newBuilder() to construct. private CreateFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFolderRequest() { parent_ = ""; folderId_ = ""; @@ -45,40 +28,34 @@ private CreateFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.CreateFolderRequest.class, - com.google.storage.control.v2.CreateFolderRequest.Builder.class); + com.google.storage.control.v2.CreateFolderRequest.class, com.google.storage.control.v2.CreateFolderRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of the bucket in which the folder will reside.
    * 
* - * - * 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 @@ -87,31 +64,29 @@ 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. Name of the bucket in which the folder will reside.
    * 
* - * - * 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 { @@ -122,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FOLDER_FIELD_NUMBER = 2; private com.google.storage.control.v2.Folder folder_; /** - * - * *
    * Required. Properties of the new folder being created.
    * The bucket and name of the folder are specified in the parent and folder_id
@@ -131,18 +104,14 @@ public com.google.protobuf.ByteString getParentBytes() {
    * error.
    * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the folder field is set. */ @java.lang.Override public boolean hasFolder() { - return folder_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. Properties of the new folder being created.
    * The bucket and name of the folder are specified in the parent and folder_id
@@ -150,9 +119,7 @@ public boolean hasFolder() {
    * error.
    * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The folder. */ @java.lang.Override @@ -160,8 +127,6 @@ public com.google.storage.control.v2.Folder getFolder() { return folder_ == null ? com.google.storage.control.v2.Folder.getDefaultInstance() : folder_; } /** - * - * *
    * Required. Properties of the new folder being created.
    * The bucket and name of the folder are specified in the parent and folder_id
@@ -169,8 +134,7 @@ public com.google.storage.control.v2.Folder getFolder() {
    * error.
    * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { @@ -178,18 +142,14 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { } public static final int FOLDER_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object folderId_ = ""; /** - * - * *
    * Required. The absolute path of the folder, using a single `/` as delimiter.
    * 
* * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The folderId. */ @java.lang.Override @@ -198,29 +158,29 @@ public java.lang.String getFolderId() { 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(); folderId_ = s; return s; } } /** - * - * *
    * Required. The absolute path of the folder, using a single `/` as delimiter.
    * 
* * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for folderId. */ @java.lang.Override - public com.google.protobuf.ByteString getFolderIdBytes() { + public com.google.protobuf.ByteString + getFolderIdBytes() { java.lang.Object ref = folderId_; 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); folderId_ = b; return b; } else { @@ -231,15 +191,12 @@ public com.google.protobuf.ByteString getFolderIdBytes() { public static final int RECURSIVE_FIELD_NUMBER = 4; private boolean recursive_ = false; /** - * - * *
    * Optional. If true, parent folder doesn't have to be present and all missing
    * ancestor folders will be created atomically.
    * 
* * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recursive. */ @java.lang.Override @@ -248,22 +205,16 @@ public boolean getRecursive() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -272,33 +223,31 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -307,7 +256,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -319,11 +267,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (folder_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getFolder()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { @@ -347,14 +296,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (folder_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFolder()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFolder()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, folderId_); } if (recursive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, recursive_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, recursive_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); @@ -367,22 +318,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.storage.control.v2.CreateFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.CreateFolderRequest other = - (com.google.storage.control.v2.CreateFolderRequest) obj; + com.google.storage.control.v2.CreateFolderRequest other = (com.google.storage.control.v2.CreateFolderRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasFolder() != other.hasFolder()) return false; if (hasFolder()) { - if (!getFolder().equals(other.getFolder())) return false; - } - if (!getFolderId().equals(other.getFolderId())) return false; - if (getRecursive() != other.getRecursive()) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getFolder() + .equals(other.getFolder())) return false; + } + if (!getFolderId() + .equals(other.getFolderId())) return false; + if (getRecursive() + != other.getRecursive()) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -403,7 +358,8 @@ public int hashCode() { hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (37 * hash) + RECURSIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecursive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRecursive()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -412,135 +368,137 @@ public int hashCode() { } public static com.google.storage.control.v2.CreateFolderRequest 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.storage.control.v2.CreateFolderRequest 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.storage.control.v2.CreateFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CreateFolderRequest 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.storage.control.v2.CreateFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CreateFolderRequest 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.storage.control.v2.CreateFolderRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.CreateFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.CreateFolderRequest 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.storage.control.v2.CreateFolderRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.CreateFolderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.CreateFolderRequest 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.storage.control.v2.CreateFolderRequest 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.storage.control.v2.CreateFolderRequest 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.storage.control.v2.CreateFolderRequest 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 CreateFolder.
    * 
* * Protobuf type {@code google.storage.control.v2.CreateFolderRequest} */ - 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.storage.control.v2.CreateFolderRequest) com.google.storage.control.v2.CreateFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.CreateFolderRequest.class, - com.google.storage.control.v2.CreateFolderRequest.Builder.class); + com.google.storage.control.v2.CreateFolderRequest.class, com.google.storage.control.v2.CreateFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.CreateFolderRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFolderFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -558,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; } @java.lang.Override @@ -579,11 +537,8 @@ public com.google.storage.control.v2.CreateFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.CreateFolderRequest buildPartial() { - com.google.storage.control.v2.CreateFolderRequest result = - new com.google.storage.control.v2.CreateFolderRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.CreateFolderRequest result = new com.google.storage.control.v2.CreateFolderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -593,8 +548,12 @@ private void buildPartial0(com.google.storage.control.v2.CreateFolderRequest res if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.folder_ = folderBuilder_ == null ? folder_ : folderBuilder_.build(); + result.folder_ = folderBuilder_ == null + ? folder_ + : folderBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.folderId_ = folderId_; @@ -605,45 +564,45 @@ private void buildPartial0(com.google.storage.control.v2.CreateFolderRequest res if (((from_bitField0_ & 0x00000010) != 0)) { result.requestId_ = requestId_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.control.v2.CreateFolderRequest) { - return mergeFrom((com.google.storage.control.v2.CreateFolderRequest) other); + return mergeFrom((com.google.storage.control.v2.CreateFolderRequest)other); } else { super.mergeFrom(other); return this; @@ -651,8 +610,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.CreateFolderRequest other) { - if (other == com.google.storage.control.v2.CreateFolderRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.CreateFolderRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -700,43 +658,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getFolderFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - folderId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - recursive_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - 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( + getFolderFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + folderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + recursive_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + requestId_ = 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) { @@ -746,27 +700,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the bucket in which the folder will reside.
      * 
* - * - * 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; @@ -775,23 +724,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the bucket in which the folder will reside.
      * 
* - * - * 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 { @@ -799,39 +745,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the bucket in which the folder will reside.
      * 
* - * - * 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. Name of the bucket in which the folder will reside.
      * 
* - * - * 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() { @@ -841,23 +776,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of the bucket in which the folder will reside.
      * 
* - * - * 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; @@ -867,13 +796,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.storage.control.v2.Folder folder_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder> - folderBuilder_; + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> folderBuilder_; /** - * - * *
      * Required. Properties of the new folder being created.
      * The bucket and name of the folder are specified in the parent and folder_id
@@ -881,17 +805,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * error.
      * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the folder field is set. */ public boolean hasFolder() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Properties of the new folder being created.
      * The bucket and name of the folder are specified in the parent and folder_id
@@ -899,23 +819,17 @@ public boolean hasFolder() {
      * error.
      * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The folder. */ public com.google.storage.control.v2.Folder getFolder() { if (folderBuilder_ == null) { - return folder_ == null - ? com.google.storage.control.v2.Folder.getDefaultInstance() - : folder_; + return folder_ == null ? com.google.storage.control.v2.Folder.getDefaultInstance() : folder_; } else { return folderBuilder_.getMessage(); } } /** - * - * *
      * Required. Properties of the new folder being created.
      * The bucket and name of the folder are specified in the parent and folder_id
@@ -923,8 +837,7 @@ public com.google.storage.control.v2.Folder getFolder() {
      * error.
      * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFolder(com.google.storage.control.v2.Folder value) { if (folderBuilder_ == null) { @@ -940,8 +853,6 @@ public Builder setFolder(com.google.storage.control.v2.Folder value) { return this; } /** - * - * *
      * Required. Properties of the new folder being created.
      * The bucket and name of the folder are specified in the parent and folder_id
@@ -949,10 +860,10 @@ public Builder setFolder(com.google.storage.control.v2.Folder value) {
      * error.
      * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setFolder(com.google.storage.control.v2.Folder.Builder builderForValue) { + public Builder setFolder( + com.google.storage.control.v2.Folder.Builder builderForValue) { if (folderBuilder_ == null) { folder_ = builderForValue.build(); } else { @@ -963,8 +874,6 @@ public Builder setFolder(com.google.storage.control.v2.Folder.Builder builderFor return this; } /** - * - * *
      * Required. Properties of the new folder being created.
      * The bucket and name of the folder are specified in the parent and folder_id
@@ -972,14 +881,13 @@ public Builder setFolder(com.google.storage.control.v2.Folder.Builder builderFor
      * error.
      * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFolder(com.google.storage.control.v2.Folder value) { if (folderBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && folder_ != null - && folder_ != com.google.storage.control.v2.Folder.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + folder_ != null && + folder_ != com.google.storage.control.v2.Folder.getDefaultInstance()) { getFolderBuilder().mergeFrom(value); } else { folder_ = value; @@ -987,13 +895,13 @@ public Builder mergeFolder(com.google.storage.control.v2.Folder value) { } else { folderBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (folder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** - * - * *
      * Required. Properties of the new folder being created.
      * The bucket and name of the folder are specified in the parent and folder_id
@@ -1001,8 +909,7 @@ public Builder mergeFolder(com.google.storage.control.v2.Folder value) {
      * error.
      * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFolder() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1015,8 +922,6 @@ public Builder clearFolder() { return this; } /** - * - * *
      * Required. Properties of the new folder being created.
      * The bucket and name of the folder are specified in the parent and folder_id
@@ -1024,8 +929,7 @@ public Builder clearFolder() {
      * error.
      * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.control.v2.Folder.Builder getFolderBuilder() { bitField0_ |= 0x00000002; @@ -1033,8 +937,6 @@ public com.google.storage.control.v2.Folder.Builder getFolderBuilder() { return getFolderFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Properties of the new folder being created.
      * The bucket and name of the folder are specified in the parent and folder_id
@@ -1042,21 +944,17 @@ public com.google.storage.control.v2.Folder.Builder getFolderBuilder() {
      * error.
      * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { if (folderBuilder_ != null) { return folderBuilder_.getMessageOrBuilder(); } else { - return folder_ == null - ? com.google.storage.control.v2.Folder.getDefaultInstance() - : folder_; + return folder_ == null ? + com.google.storage.control.v2.Folder.getDefaultInstance() : folder_; } } /** - * - * *
      * Required. Properties of the new folder being created.
      * The bucket and name of the folder are specified in the parent and folder_id
@@ -1064,21 +962,17 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() {
      * error.
      * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder> + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> getFolderFieldBuilder() { if (folderBuilder_ == null) { - folderBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder>( - getFolder(), getParentForChildren(), isClean()); + folderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder>( + getFolder(), + getParentForChildren(), + isClean()); folder_ = null; } return folderBuilder_; @@ -1086,20 +980,18 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { private java.lang.Object folderId_ = ""; /** - * - * *
      * Required. The absolute path of the folder, using a single `/` as delimiter.
      * 
* * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; 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(); folderId_ = s; return s; @@ -1108,21 +1000,20 @@ public java.lang.String getFolderId() { } } /** - * - * *
      * Required. The absolute path of the folder, using a single `/` as delimiter.
      * 
* * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for folderId. */ - public com.google.protobuf.ByteString getFolderIdBytes() { + public com.google.protobuf.ByteString + getFolderIdBytes() { java.lang.Object ref = folderId_; 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); folderId_ = b; return b; } else { @@ -1130,35 +1021,28 @@ public com.google.protobuf.ByteString getFolderIdBytes() { } } /** - * - * *
      * Required. The absolute path of the folder, using a single `/` as delimiter.
      * 
* * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The folderId to set. * @return This builder for chaining. */ - public Builder setFolderId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFolderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } folderId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The absolute path of the folder, using a single `/` as delimiter.
      * 
* * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFolderId() { @@ -1168,21 +1052,17 @@ public Builder clearFolderId() { return this; } /** - * - * *
      * Required. The absolute path of the folder, using a single `/` as delimiter.
      * 
* * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for folderId to set. * @return This builder for chaining. */ - public Builder setFolderIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFolderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; bitField0_ |= 0x00000004; @@ -1190,17 +1070,14 @@ public Builder setFolderIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean recursive_; + private boolean recursive_ ; /** - * - * *
      * Optional. If true, parent folder doesn't have to be present and all missing
      * ancestor folders will be created atomically.
      * 
* * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recursive. */ @java.lang.Override @@ -1208,15 +1085,12 @@ public boolean getRecursive() { return recursive_; } /** - * - * *
      * Optional. If true, parent folder doesn't have to be present and all missing
      * ancestor folders will be created atomically.
      * 
* * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The recursive to set. * @return This builder for chaining. */ @@ -1228,15 +1102,12 @@ public Builder setRecursive(boolean value) { return this; } /** - * - * *
      * Optional. If true, parent folder doesn't have to be present and all missing
      * ancestor folders will be created atomically.
      * 
* * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRecursive() { @@ -1248,24 +1119,20 @@ public Builder clearRecursive() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -1274,25 +1141,22 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -1300,43 +1164,32 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1346,34 +1199,28 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = 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); } @@ -1383,12 +1230,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.CreateFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.CreateFolderRequest) private static final com.google.storage.control.v2.CreateFolderRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.CreateFolderRequest(); } @@ -1397,27 +1244,27 @@ public static com.google.storage.control.v2.CreateFolderRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1432,4 +1279,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.CreateFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java index abe59fa8d2..3d73e8d98d 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java @@ -1,60 +1,34 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface CreateFolderRequestOrBuilder - extends +public interface CreateFolderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.CreateFolderRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the bucket in which the folder will reside.
    * 
* - * - * 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. Name of the bucket in which the folder will reside.
    * 
* - * - * 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. Properties of the new folder being created.
    * The bucket and name of the folder are specified in the parent and folder_id
@@ -62,15 +36,11 @@ public interface CreateFolderRequestOrBuilder
    * error.
    * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the folder field is set. */ boolean hasFolder(); /** - * - * *
    * Required. Properties of the new folder being created.
    * The bucket and name of the folder are specified in the parent and folder_id
@@ -78,15 +48,11 @@ public interface CreateFolderRequestOrBuilder
    * error.
    * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The folder. */ com.google.storage.control.v2.Folder getFolder(); /** - * - * *
    * Required. Properties of the new folder being created.
    * The bucket and name of the folder are specified in the parent and folder_id
@@ -94,80 +60,62 @@ public interface CreateFolderRequestOrBuilder
    * error.
    * 
* - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder(); /** - * - * *
    * Required. The absolute path of the folder, using a single `/` as delimiter.
    * 
* * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The folderId. */ java.lang.String getFolderId(); /** - * - * *
    * Required. The absolute path of the folder, using a single `/` as delimiter.
    * 
* * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for folderId. */ - com.google.protobuf.ByteString getFolderIdBytes(); + com.google.protobuf.ByteString + getFolderIdBytes(); /** - * - * *
    * Optional. If true, parent folder doesn't have to be present and all missing
    * ancestor folders will be created atomically.
    * 
* * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recursive. */ boolean getRecursive(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java similarity index 68% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java index 06f681fefe..52bf9da34a 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * Request message for DeleteFolder.
  * 
* * Protobuf type {@code google.storage.control.v2.DeleteFolderRequest} */ -public final class DeleteFolderRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteFolderRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.DeleteFolderRequest) DeleteFolderRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteFolderRequest.newBuilder() to construct. private DeleteFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteFolderRequest() { name_ = ""; requestId_ = ""; @@ -44,42 +27,35 @@ private DeleteFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.DeleteFolderRequest.class, - com.google.storage.control.v2.DeleteFolderRequest.Builder.class); + com.google.storage.control.v2.DeleteFolderRequest.class, com.google.storage.control.v2.DeleteFolderRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,32 +64,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 folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.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 { @@ -124,15 +98,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -140,15 +111,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -159,15 +127,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -175,15 +140,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -192,22 +154,16 @@ public long getIfMetagenerationNotMatch() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -216,33 +172,31 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -251,7 +205,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +216,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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(3, ifMetagenerationMatch_); } @@ -286,10 +240,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); @@ -305,24 +261,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.storage.control.v2.DeleteFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.DeleteFolderRequest other = - (com.google.storage.control.v2.DeleteFolderRequest) obj; + com.google.storage.control.v2.DeleteFolderRequest other = (com.google.storage.control.v2.DeleteFolderRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -338,11 +297,13 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); @@ -352,135 +313,131 @@ public int hashCode() { } public static com.google.storage.control.v2.DeleteFolderRequest 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.storage.control.v2.DeleteFolderRequest 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.storage.control.v2.DeleteFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.DeleteFolderRequest 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.storage.control.v2.DeleteFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.DeleteFolderRequest 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.storage.control.v2.DeleteFolderRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.DeleteFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.DeleteFolderRequest 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.storage.control.v2.DeleteFolderRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.DeleteFolderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.DeleteFolderRequest 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.storage.control.v2.DeleteFolderRequest 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.storage.control.v2.DeleteFolderRequest 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.storage.control.v2.DeleteFolderRequest 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 DeleteFolder.
    * 
* * Protobuf type {@code google.storage.control.v2.DeleteFolderRequest} */ - 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.storage.control.v2.DeleteFolderRequest) com.google.storage.control.v2.DeleteFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.DeleteFolderRequest.class, - com.google.storage.control.v2.DeleteFolderRequest.Builder.class); + com.google.storage.control.v2.DeleteFolderRequest.class, com.google.storage.control.v2.DeleteFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.DeleteFolderRequest.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(); @@ -493,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; } @java.lang.Override @@ -514,11 +471,8 @@ public com.google.storage.control.v2.DeleteFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.DeleteFolderRequest buildPartial() { - com.google.storage.control.v2.DeleteFolderRequest result = - new com.google.storage.control.v2.DeleteFolderRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.DeleteFolderRequest result = new com.google.storage.control.v2.DeleteFolderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -547,39 +501,38 @@ private void buildPartial0(com.google.storage.control.v2.DeleteFolderRequest 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.storage.control.v2.DeleteFolderRequest) { - return mergeFrom((com.google.storage.control.v2.DeleteFolderRequest) other); + return mergeFrom((com.google.storage.control.v2.DeleteFolderRequest)other); } else { super.mergeFrom(other); return this; @@ -587,8 +540,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.DeleteFolderRequest other) { - if (other == com.google.storage.control.v2.DeleteFolderRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.DeleteFolderRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -631,37 +583,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -671,28 +618,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.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; @@ -701,24 +643,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.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 { @@ -726,41 +665,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.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 folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -770,24 +698,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.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; @@ -795,17 +717,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -813,15 +732,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -829,15 +745,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 3; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -849,15 +762,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -867,17 +777,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -885,15 +792,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -901,15 +805,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 4; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -921,15 +822,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 4; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -941,24 +839,20 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -967,25 +861,22 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -993,43 +884,32 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1039,34 +919,28 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = 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); } @@ -1076,12 +950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.DeleteFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.DeleteFolderRequest) private static final com.google.storage.control.v2.DeleteFolderRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.DeleteFolderRequest(); } @@ -1090,27 +964,27 @@ public static com.google.storage.control.v2.DeleteFolderRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1125,4 +999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.DeleteFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java index b00b191b83..a596761ad8 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java @@ -1,143 +1,98 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface DeleteFolderRequestOrBuilder - extends +public interface DeleteFolderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.DeleteFolderRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java similarity index 65% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java index 2ceb9fe039..b799ed37d4 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java @@ -1,81 +1,60 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * A folder.
  * 
* * Protobuf type {@code google.storage.control.v2.Folder} */ -public final class Folder extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Folder extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.Folder) FolderOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Folder.newBuilder() to construct. private Folder(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Folder() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Folder(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_Folder_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_Folder_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.Folder.class, - com.google.storage.control.v2.Folder.Builder.class); + com.google.storage.control.v2.Folder.class, com.google.storage.control.v2.Folder.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Identifier. The name of this folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The name. */ @java.lang.Override @@ -84,30 +63,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; } } /** - * - * *
    * Identifier. The name of this folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @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 { @@ -118,15 +97,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int METAGENERATION_FIELD_NUMBER = 3; private long metageneration_ = 0L; /** - * - * *
    * Output only. The version of the metadata for this folder. Used for
    * preconditions and for detecting changes in metadata.
    * 
* * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -137,31 +113,23 @@ public long getMetageneration() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation time of the folder.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The creation time of the folder.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -169,14 +137,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time of the folder.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -186,31 +151,23 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The modification time of the folder.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { - return updateTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The modification time of the folder.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -218,14 +175,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The modification time of the folder.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -235,8 +189,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int PENDING_RENAME_INFO_FIELD_NUMBER = 7; private com.google.storage.control.v2.PendingRenameInfo pendingRenameInfo_; /** - * - * *
    * Output only. Only present if the folder is part of an ongoing RenameFolder
    * operation. Contains information which can be used to query the operation
@@ -245,19 +197,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * operations.
    * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the pendingRenameInfo field is set. */ @java.lang.Override public boolean hasPendingRenameInfo() { - return pendingRenameInfo_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Output only. Only present if the folder is part of an ongoing RenameFolder
    * operation. Contains information which can be used to query the operation
@@ -266,21 +213,14 @@ public boolean hasPendingRenameInfo() {
    * operations.
    * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The pendingRenameInfo. */ @java.lang.Override public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() { - return pendingRenameInfo_ == null - ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() - : pendingRenameInfo_; + return pendingRenameInfo_ == null ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; } /** - * - * *
    * Output only. Only present if the folder is part of an ongoing RenameFolder
    * operation. Contains information which can be used to query the operation
@@ -289,19 +229,14 @@ public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() {
    * operations.
    * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.storage.control.v2.PendingRenameInfoOrBuilder getPendingRenameInfoOrBuilder() { - return pendingRenameInfo_ == null - ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() - : pendingRenameInfo_; + return pendingRenameInfo_ == null ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,20 +248,21 @@ 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 (metageneration_ != 0L) { output.writeInt64(3, metageneration_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getUpdateTime()); } - if (pendingRenameInfo_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getPendingRenameInfo()); } getUnknownFields().writeTo(output); @@ -342,16 +278,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (metageneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, metageneration_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, metageneration_); } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } - if (pendingRenameInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPendingRenameInfo()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getPendingRenameInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -361,26 +301,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.storage.control.v2.Folder)) { return super.equals(obj); } com.google.storage.control.v2.Folder other = (com.google.storage.control.v2.Folder) obj; - if (!getName().equals(other.getName())) return false; - if (getMetageneration() != other.getMetageneration()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getMetageneration() + != other.getMetageneration()) 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 (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasPendingRenameInfo() != other.hasPendingRenameInfo()) return false; if (hasPendingRenameInfo()) { - if (!getPendingRenameInfo().equals(other.getPendingRenameInfo())) return false; + if (!getPendingRenameInfo() + .equals(other.getPendingRenameInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -396,7 +341,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + METAGENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMetageneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMetageneration()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -414,135 +360,140 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.Folder parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.control.v2.Folder parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.Folder 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.storage.control.v2.Folder parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.control.v2.Folder parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.Folder 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.storage.control.v2.Folder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.Folder 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.storage.control.v2.Folder 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.storage.control.v2.Folder 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.storage.control.v2.Folder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.Folder 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.storage.control.v2.Folder 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.storage.control.v2.Folder 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.storage.control.v2.Folder 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 folder.
    * 
* * Protobuf type {@code google.storage.control.v2.Folder} */ - 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.storage.control.v2.Folder) com.google.storage.control.v2.FolderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_Folder_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_Folder_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.Folder.class, - com.google.storage.control.v2.Folder.Builder.class); + com.google.storage.control.v2.Folder.class, com.google.storage.control.v2.Folder.Builder.class); } // Construct using com.google.storage.control.v2.Folder.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getPendingRenameInfoFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -568,9 +519,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_Folder_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_descriptor; } @java.lang.Override @@ -590,9 +541,7 @@ public com.google.storage.control.v2.Folder build() { @java.lang.Override public com.google.storage.control.v2.Folder buildPartial() { com.google.storage.control.v2.Folder result = new com.google.storage.control.v2.Folder(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -605,57 +554,64 @@ private void buildPartial0(com.google.storage.control.v2.Folder result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.metageneration_ = metageneration_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.pendingRenameInfo_ = - pendingRenameInfoBuilder_ == null - ? pendingRenameInfo_ - : pendingRenameInfoBuilder_.build(); + result.pendingRenameInfo_ = pendingRenameInfoBuilder_ == null + ? pendingRenameInfo_ + : pendingRenameInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.control.v2.Folder) { - return mergeFrom((com.google.storage.control.v2.Folder) other); + return mergeFrom((com.google.storage.control.v2.Folder)other); } else { super.mergeFrom(other); return this; @@ -707,44 +663,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: - { - metageneration_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 58: - { - input.readMessage( - getPendingRenameInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 58 - 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: { + metageneration_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 58: { + input.readMessage( + getPendingRenameInfoFieldBuilder().getBuilder(), + extensionRegistry); + 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) { @@ -754,26 +709,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Identifier. The name of this folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -782,22 +734,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Identifier. The name of this folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @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 { @@ -805,37 +756,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Identifier. The name of this folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Identifier. The name of this folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -845,22 +789,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Identifier. The name of this folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -868,17 +808,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long metageneration_; + private long metageneration_ ; /** - * - * *
      * Output only. The version of the metadata for this folder. Used for
      * preconditions and for detecting changes in metadata.
      * 
* * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -886,15 +823,12 @@ public long getMetageneration() { return metageneration_; } /** - * - * *
      * Output only. The version of the metadata for this folder. Used for
      * preconditions and for detecting changes in metadata.
      * 
* * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The metageneration to set. * @return This builder for chaining. */ @@ -906,15 +840,12 @@ public Builder setMetageneration(long value) { return this; } /** - * - * *
      * Output only. The version of the metadata for this folder. Used for
      * preconditions and for detecting changes in metadata.
      * 
* * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -926,58 +857,39 @@ public Builder clearMetageneration() { 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. The creation time of the folder.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The creation time of the folder.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.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. The creation time of the folder.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -993,17 +905,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the folder.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.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 { @@ -1014,21 +923,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time of the folder.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.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; @@ -1036,20 +941,18 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** - * - * *
      * Output only. The creation time of the folder.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1062,15 +965,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation time of the folder.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1078,48 +977,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation time of the folder.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.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. The creation time of the folder.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> 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_; @@ -1127,58 +1014,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The modification time of the folder.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. The modification time of the folder.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The modification time of the folder.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1194,17 +1062,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The modification time of the folder.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1215,21 +1080,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The modification time of the folder.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1237,20 +1098,18 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** - * - * *
      * Output only. The modification time of the folder.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1263,15 +1122,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The modification time of the folder.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1279,48 +1134,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The modification time of the folder.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The modification time of the folder.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1328,13 +1171,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.storage.control.v2.PendingRenameInfo pendingRenameInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.PendingRenameInfo, - com.google.storage.control.v2.PendingRenameInfo.Builder, - com.google.storage.control.v2.PendingRenameInfoOrBuilder> - pendingRenameInfoBuilder_; + com.google.storage.control.v2.PendingRenameInfo, com.google.storage.control.v2.PendingRenameInfo.Builder, com.google.storage.control.v2.PendingRenameInfoOrBuilder> pendingRenameInfoBuilder_; /** - * - * *
      * Output only. Only present if the folder is part of an ongoing RenameFolder
      * operation. Contains information which can be used to query the operation
@@ -1343,18 +1181,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * operations.
      * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the pendingRenameInfo field is set. */ public boolean hasPendingRenameInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. Only present if the folder is part of an ongoing RenameFolder
      * operation. Contains information which can be used to query the operation
@@ -1363,24 +1196,17 @@ public boolean hasPendingRenameInfo() {
      * operations.
      * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The pendingRenameInfo. */ public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() { if (pendingRenameInfoBuilder_ == null) { - return pendingRenameInfo_ == null - ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() - : pendingRenameInfo_; + return pendingRenameInfo_ == null ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; } else { return pendingRenameInfoBuilder_.getMessage(); } } /** - * - * *
      * Output only. Only present if the folder is part of an ongoing RenameFolder
      * operation. Contains information which can be used to query the operation
@@ -1389,9 +1215,7 @@ public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() {
      * operations.
      * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPendingRenameInfo(com.google.storage.control.v2.PendingRenameInfo value) { if (pendingRenameInfoBuilder_ == null) { @@ -1407,8 +1231,6 @@ public Builder setPendingRenameInfo(com.google.storage.control.v2.PendingRenameI return this; } /** - * - * *
      * Output only. Only present if the folder is part of an ongoing RenameFolder
      * operation. Contains information which can be used to query the operation
@@ -1417,9 +1239,7 @@ public Builder setPendingRenameInfo(com.google.storage.control.v2.PendingRenameI
      * operations.
      * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPendingRenameInfo( com.google.storage.control.v2.PendingRenameInfo.Builder builderForValue) { @@ -1433,8 +1253,6 @@ public Builder setPendingRenameInfo( return this; } /** - * - * *
      * Output only. Only present if the folder is part of an ongoing RenameFolder
      * operation. Contains information which can be used to query the operation
@@ -1443,16 +1261,13 @@ public Builder setPendingRenameInfo(
      * operations.
      * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergePendingRenameInfo(com.google.storage.control.v2.PendingRenameInfo value) { if (pendingRenameInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && pendingRenameInfo_ != null - && pendingRenameInfo_ - != com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + pendingRenameInfo_ != null && + pendingRenameInfo_ != com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) { getPendingRenameInfoBuilder().mergeFrom(value); } else { pendingRenameInfo_ = value; @@ -1460,13 +1275,13 @@ public Builder mergePendingRenameInfo(com.google.storage.control.v2.PendingRenam } else { pendingRenameInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (pendingRenameInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** - * - * *
      * Output only. Only present if the folder is part of an ongoing RenameFolder
      * operation. Contains information which can be used to query the operation
@@ -1475,9 +1290,7 @@ public Builder mergePendingRenameInfo(com.google.storage.control.v2.PendingRenam
      * operations.
      * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPendingRenameInfo() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1490,8 +1303,6 @@ public Builder clearPendingRenameInfo() { return this; } /** - * - * *
      * Output only. Only present if the folder is part of an ongoing RenameFolder
      * operation. Contains information which can be used to query the operation
@@ -1500,9 +1311,7 @@ public Builder clearPendingRenameInfo() {
      * operations.
      * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.storage.control.v2.PendingRenameInfo.Builder getPendingRenameInfoBuilder() { bitField0_ |= 0x00000010; @@ -1510,8 +1319,6 @@ public com.google.storage.control.v2.PendingRenameInfo.Builder getPendingRenameI return getPendingRenameInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Only present if the folder is part of an ongoing RenameFolder
      * operation. Contains information which can be used to query the operation
@@ -1520,23 +1327,17 @@ public com.google.storage.control.v2.PendingRenameInfo.Builder getPendingRenameI
      * operations.
      * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.storage.control.v2.PendingRenameInfoOrBuilder - getPendingRenameInfoOrBuilder() { + public com.google.storage.control.v2.PendingRenameInfoOrBuilder getPendingRenameInfoOrBuilder() { if (pendingRenameInfoBuilder_ != null) { return pendingRenameInfoBuilder_.getMessageOrBuilder(); } else { - return pendingRenameInfo_ == null - ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() - : pendingRenameInfo_; + return pendingRenameInfo_ == null ? + com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; } } /** - * - * *
      * Output only. Only present if the folder is part of an ongoing RenameFolder
      * operation. Contains information which can be used to query the operation
@@ -1545,29 +1346,24 @@ public com.google.storage.control.v2.PendingRenameInfo.Builder getPendingRenameI
      * operations.
      * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.PendingRenameInfo, - com.google.storage.control.v2.PendingRenameInfo.Builder, - com.google.storage.control.v2.PendingRenameInfoOrBuilder> + com.google.storage.control.v2.PendingRenameInfo, com.google.storage.control.v2.PendingRenameInfo.Builder, com.google.storage.control.v2.PendingRenameInfoOrBuilder> getPendingRenameInfoFieldBuilder() { if (pendingRenameInfoBuilder_ == null) { - pendingRenameInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.PendingRenameInfo, - com.google.storage.control.v2.PendingRenameInfo.Builder, - com.google.storage.control.v2.PendingRenameInfoOrBuilder>( - getPendingRenameInfo(), getParentForChildren(), isClean()); + pendingRenameInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.PendingRenameInfo, com.google.storage.control.v2.PendingRenameInfo.Builder, com.google.storage.control.v2.PendingRenameInfoOrBuilder>( + getPendingRenameInfo(), + getParentForChildren(), + isClean()); pendingRenameInfo_ = null; } return pendingRenameInfoBuilder_; } - @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); } @@ -1577,12 +1373,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.Folder) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.Folder) private static final com.google.storage.control.v2.Folder DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.Folder(); } @@ -1591,27 +1387,27 @@ public static com.google.storage.control.v2.Folder getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Folder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Folder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1626,4 +1422,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.Folder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java similarity index 100% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java similarity index 71% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java index cb0fe63ef1..c8af3124c1 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java @@ -1,148 +1,101 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface FolderOrBuilder - extends +public interface FolderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.Folder) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Identifier. The name of this folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Identifier. The name of this folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The version of the metadata for this folder. Used for
    * preconditions and for detecting changes in metadata.
    * 
* * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ long getMetageneration(); /** - * - * *
    * Output only. The creation time of the folder.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time of the folder.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time of the folder.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The modification time of the folder.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The modification time of the folder.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The modification time of the folder.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Only present if the folder is part of an ongoing RenameFolder
    * operation. Contains information which can be used to query the operation
@@ -151,16 +104,11 @@ public interface FolderOrBuilder
    * operations.
    * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the pendingRenameInfo field is set. */ boolean hasPendingRenameInfo(); /** - * - * *
    * Output only. Only present if the folder is part of an ongoing RenameFolder
    * operation. Contains information which can be used to query the operation
@@ -169,16 +117,11 @@ public interface FolderOrBuilder
    * operations.
    * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The pendingRenameInfo. */ com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo(); /** - * - * *
    * Output only. Only present if the folder is part of an ongoing RenameFolder
    * operation. Contains information which can be used to query the operation
@@ -187,9 +130,7 @@ public interface FolderOrBuilder
    * operations.
    * 
* - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.storage.control.v2.PendingRenameInfoOrBuilder getPendingRenameInfoOrBuilder(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java similarity index 68% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java index 1e91ccfa41..774a79a6a0 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * Request message for GetFolder.
  * 
* * Protobuf type {@code google.storage.control.v2.GetFolderRequest} */ -public final class GetFolderRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFolderRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.GetFolderRequest) GetFolderRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFolderRequest.newBuilder() to construct. private GetFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFolderRequest() { name_ = ""; requestId_ = ""; @@ -44,42 +27,35 @@ private GetFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetFolderRequest.class, - com.google.storage.control.v2.GetFolderRequest.Builder.class); + com.google.storage.control.v2.GetFolderRequest.class, com.google.storage.control.v2.GetFolderRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,32 +64,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 folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.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 { @@ -124,15 +98,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -140,15 +111,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -159,15 +127,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -175,15 +140,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -192,21 +154,15 @@ public long getIfMetagenerationNotMatch() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -215,32 +171,30 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -249,7 +203,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +214,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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(3, ifMetagenerationMatch_); } @@ -284,10 +238,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); @@ -303,24 +259,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.storage.control.v2.GetFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.GetFolderRequest other = - (com.google.storage.control.v2.GetFolderRequest) obj; + com.google.storage.control.v2.GetFolderRequest other = (com.google.storage.control.v2.GetFolderRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,11 +295,13 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); @@ -349,136 +310,132 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.GetFolderRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.control.v2.GetFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetFolderRequest 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.storage.control.v2.GetFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetFolderRequest 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.storage.control.v2.GetFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetFolderRequest 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.storage.control.v2.GetFolderRequest 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.storage.control.v2.GetFolderRequest 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.storage.control.v2.GetFolderRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.GetFolderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.GetFolderRequest 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.storage.control.v2.GetFolderRequest 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.storage.control.v2.GetFolderRequest 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.storage.control.v2.GetFolderRequest 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 GetFolder.
    * 
* * Protobuf type {@code google.storage.control.v2.GetFolderRequest} */ - 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.storage.control.v2.GetFolderRequest) com.google.storage.control.v2.GetFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetFolderRequest.class, - com.google.storage.control.v2.GetFolderRequest.Builder.class); + com.google.storage.control.v2.GetFolderRequest.class, com.google.storage.control.v2.GetFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.GetFolderRequest.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(); @@ -491,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_descriptor; } @java.lang.Override @@ -512,11 +469,8 @@ public com.google.storage.control.v2.GetFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.GetFolderRequest buildPartial() { - com.google.storage.control.v2.GetFolderRequest result = - new com.google.storage.control.v2.GetFolderRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.GetFolderRequest result = new com.google.storage.control.v2.GetFolderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -545,39 +499,38 @@ private void buildPartial0(com.google.storage.control.v2.GetFolderRequest 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.storage.control.v2.GetFolderRequest) { - return mergeFrom((com.google.storage.control.v2.GetFolderRequest) other); + return mergeFrom((com.google.storage.control.v2.GetFolderRequest)other); } else { super.mergeFrom(other); return this; @@ -628,37 +581,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -668,28 +616,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.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; @@ -698,24 +641,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.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 { @@ -723,41 +663,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.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 folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -767,24 +696,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the folder.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.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; @@ -792,17 +715,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -810,15 +730,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -826,15 +743,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 3; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -846,15 +760,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -864,17 +775,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -882,15 +790,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -898,15 +803,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 4; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -918,15 +820,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation only succeed conditional on whether the folder's
      * current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 4; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -938,23 +837,19 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -963,24 +858,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -988,41 +880,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1032,33 +913,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = 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); } @@ -1068,12 +943,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.GetFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.GetFolderRequest) private static final com.google.storage.control.v2.GetFolderRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.GetFolderRequest(); } @@ -1082,27 +957,27 @@ public static com.google.storage.control.v2.GetFolderRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.GetFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java index 9d0e1d93b6..679f705ee9 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java @@ -1,141 +1,96 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface GetFolderRequestOrBuilder - extends +public interface GetFolderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.GetFolderRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the folder.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * Makes the operation only succeed conditional on whether the folder's
    * current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java similarity index 65% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java index 6251a52423..1c3499b056 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * Request message for GetStorageLayout.
  * 
* * Protobuf type {@code google.storage.control.v2.GetStorageLayoutRequest} */ -public final class GetStorageLayoutRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetStorageLayoutRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.GetStorageLayoutRequest) GetStorageLayoutRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetStorageLayoutRequest.newBuilder() to construct. private GetStorageLayoutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetStorageLayoutRequest() { name_ = ""; prefix_ = ""; @@ -45,41 +28,34 @@ private GetStorageLayoutRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetStorageLayoutRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetStorageLayoutRequest.class, - com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); + com.google.storage.control.v2.GetStorageLayoutRequest.class, com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the StorageLayout resource.
    * Format: `projects/{project}/buckets/{bucket}/storageLayout`
    * 
* - * - * 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 @@ -88,32 +64,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. The name of the StorageLayout resource.
    * Format: `projects/{project}/buckets/{bucket}/storageLayout`
    * 
* - * - * 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 { @@ -122,19 +96,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PREFIX_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** - * - * *
    * An optional prefix used for permission check. It is useful when the caller
    * only has limited permissions under a specific prefix.
    * 
* * string prefix = 2; - * * @return The prefix. */ @java.lang.Override @@ -143,30 +113,30 @@ public java.lang.String getPrefix() { 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(); prefix_ = s; return s; } } /** - * - * *
    * An optional prefix used for permission check. It is useful when the caller
    * only has limited permissions under a specific prefix.
    * 
* * string prefix = 2; - * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; 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); prefix_ = b; return b; } else { @@ -175,21 +145,15 @@ public com.google.protobuf.ByteString getPrefixBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -198,32 +162,30 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -232,7 +194,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +205,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_); } @@ -280,17 +242,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.storage.control.v2.GetStorageLayoutRequest)) { return super.equals(obj); } - com.google.storage.control.v2.GetStorageLayoutRequest other = - (com.google.storage.control.v2.GetStorageLayoutRequest) obj; + com.google.storage.control.v2.GetStorageLayoutRequest other = (com.google.storage.control.v2.GetStorageLayoutRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getPrefix().equals(other.getPrefix())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPrefix() + .equals(other.getPrefix())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -314,136 +278,131 @@ public int hashCode() { } public static com.google.storage.control.v2.GetStorageLayoutRequest 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.storage.control.v2.GetStorageLayoutRequest 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.storage.control.v2.GetStorageLayoutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetStorageLayoutRequest 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.storage.control.v2.GetStorageLayoutRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetStorageLayoutRequest 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.storage.control.v2.GetStorageLayoutRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.GetStorageLayoutRequest 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.storage.control.v2.GetStorageLayoutRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.GetStorageLayoutRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.GetStorageLayoutRequest 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.storage.control.v2.GetStorageLayoutRequest 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.storage.control.v2.GetStorageLayoutRequest 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.storage.control.v2.GetStorageLayoutRequest prototype) { + public static Builder newBuilder(com.google.storage.control.v2.GetStorageLayoutRequest 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 GetStorageLayout.
    * 
* * Protobuf type {@code google.storage.control.v2.GetStorageLayoutRequest} */ - 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.storage.control.v2.GetStorageLayoutRequest) com.google.storage.control.v2.GetStorageLayoutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetStorageLayoutRequest.class, - com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); + com.google.storage.control.v2.GetStorageLayoutRequest.class, com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); } // Construct using com.google.storage.control.v2.GetStorageLayoutRequest.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(); @@ -455,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; } @java.lang.Override @@ -476,11 +435,8 @@ public com.google.storage.control.v2.GetStorageLayoutRequest build() { @java.lang.Override public com.google.storage.control.v2.GetStorageLayoutRequest buildPartial() { - com.google.storage.control.v2.GetStorageLayoutRequest result = - new com.google.storage.control.v2.GetStorageLayoutRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.GetStorageLayoutRequest result = new com.google.storage.control.v2.GetStorageLayoutRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -502,39 +458,38 @@ private void buildPartial0(com.google.storage.control.v2.GetStorageLayoutRequest 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.storage.control.v2.GetStorageLayoutRequest) { - return mergeFrom((com.google.storage.control.v2.GetStorageLayoutRequest) other); + return mergeFrom((com.google.storage.control.v2.GetStorageLayoutRequest)other); } else { super.mergeFrom(other); return this; @@ -542,8 +497,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.GetStorageLayoutRequest other) { - if (other == com.google.storage.control.v2.GetStorageLayoutRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.GetStorageLayoutRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -585,31 +539,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - prefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - 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: { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = 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) { @@ -619,28 +569,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the StorageLayout resource.
      * Format: `projects/{project}/buckets/{bucket}/storageLayout`
      * 
* - * - * 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; @@ -649,24 +594,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the StorageLayout resource.
      * Format: `projects/{project}/buckets/{bucket}/storageLayout`
      * 
* - * - * 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 { @@ -674,41 +616,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the StorageLayout resource.
      * Format: `projects/{project}/buckets/{bucket}/storageLayout`
      * 
* - * - * 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. The name of the StorageLayout resource.
      * Format: `projects/{project}/buckets/{bucket}/storageLayout`
      * 
* - * - * 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() { @@ -718,24 +649,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the StorageLayout resource.
      * Format: `projects/{project}/buckets/{bucket}/storageLayout`
      * 
* - * - * 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; @@ -745,21 +670,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object prefix_ = ""; /** - * - * *
      * An optional prefix used for permission check. It is useful when the caller
      * only has limited permissions under a specific prefix.
      * 
* * string prefix = 2; - * * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; 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(); prefix_ = s; return s; @@ -768,22 +691,21 @@ public java.lang.String getPrefix() { } } /** - * - * *
      * An optional prefix used for permission check. It is useful when the caller
      * only has limited permissions under a specific prefix.
      * 
* * string prefix = 2; - * * @return The bytes for prefix. */ - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; 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); prefix_ = b; return b; } else { @@ -791,37 +713,30 @@ public com.google.protobuf.ByteString getPrefixBytes() { } } /** - * - * *
      * An optional prefix used for permission check. It is useful when the caller
      * only has limited permissions under a specific prefix.
      * 
* * string prefix = 2; - * * @param value The prefix to set. * @return This builder for chaining. */ - public Builder setPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } prefix_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * An optional prefix used for permission check. It is useful when the caller
      * only has limited permissions under a specific prefix.
      * 
* * string prefix = 2; - * * @return This builder for chaining. */ public Builder clearPrefix() { @@ -831,22 +746,18 @@ public Builder clearPrefix() { return this; } /** - * - * *
      * An optional prefix used for permission check. It is useful when the caller
      * only has limited permissions under a specific prefix.
      * 
* * string prefix = 2; - * * @param value The bytes for prefix to set. * @return This builder for chaining. */ - public Builder setPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; bitField0_ |= 0x00000002; @@ -856,23 +767,19 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -881,24 +788,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -906,41 +810,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -950,33 +843,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = 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); } @@ -986,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.GetStorageLayoutRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.GetStorageLayoutRequest) private static final com.google.storage.control.v2.GetStorageLayoutRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.GetStorageLayoutRequest(); } @@ -1000,27 +887,27 @@ public static com.google.storage.control.v2.GetStorageLayoutRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetStorageLayoutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetStorageLayoutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1035,4 +922,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.GetStorageLayoutRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java index 155b9addbb..20cdf8bd68 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java @@ -1,114 +1,76 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface GetStorageLayoutRequestOrBuilder - extends +public interface GetStorageLayoutRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.GetStorageLayoutRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the StorageLayout resource.
    * Format: `projects/{project}/buckets/{bucket}/storageLayout`
    * 
* - * - * 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. The name of the StorageLayout resource.
    * Format: `projects/{project}/buckets/{bucket}/storageLayout`
    * 
* - * - * 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(); /** - * - * *
    * An optional prefix used for permission check. It is useful when the caller
    * only has limited permissions under a specific prefix.
    * 
* * string prefix = 2; - * * @return The prefix. */ java.lang.String getPrefix(); /** - * - * *
    * An optional prefix used for permission check. It is useful when the caller
    * only has limited permissions under a specific prefix.
    * 
* * string prefix = 2; - * * @return The bytes for prefix. */ - com.google.protobuf.ByteString getPrefixBytes(); + com.google.protobuf.ByteString + getPrefixBytes(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java similarity index 72% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java index b64aadac66..a9cca482e2 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * Request message for ListFolders.
  * 
* * Protobuf type {@code google.storage.control.v2.ListFoldersRequest} */ -public final class ListFoldersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFoldersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.ListFoldersRequest) ListFoldersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFoldersRequest.newBuilder() to construct. private ListFoldersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFoldersRequest() { parent_ = ""; pageToken_ = ""; @@ -49,40 +32,33 @@ private ListFoldersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFoldersRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListFoldersRequest.class, - com.google.storage.control.v2.ListFoldersRequest.Builder.class); + com.google.storage.control.v2.ListFoldersRequest.class, com.google.storage.control.v2.ListFoldersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of the bucket in which to look for folders.
    * 
* - * - * 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,31 +67,29 @@ 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. Name of the bucket in which to look for folders.
    * 
* - * - * 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 { @@ -126,15 +100,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Maximum number of folders to return in a single response. The
    * service will use this parameter or 1,000 items, whichever is smaller.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -143,19 +114,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A previously-returned page token representing part of the larger
    * set of results to view.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -164,30 +131,30 @@ public java.lang.String getPageToken() { 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(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. A previously-returned page token representing part of the larger
    * set of results to view.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; 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); pageToken_ = b; return b; } else { @@ -196,19 +163,15 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int PREFIX_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** - * - * *
    * Optional. Filter results to folders whose names begin with this prefix.
    * If set, the value must either be an empty string or end with a '/'.
    * 
* * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The prefix. */ @java.lang.Override @@ -217,30 +180,30 @@ public java.lang.String getPrefix() { 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(); prefix_ = s; return s; } } /** - * - * *
    * Optional. Filter results to folders whose names begin with this prefix.
    * If set, the value must either be an empty string or end with a '/'.
    * 
* * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; 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); prefix_ = b; return b; } else { @@ -249,12 +212,9 @@ public com.google.protobuf.ByteString getPrefixBytes() { } public static final int DELIMITER_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object delimiter_ = ""; /** - * - * *
    * Optional. If set, returns results in a directory-like mode. The results
    * will only include folders that either exactly match the above prefix, or
@@ -262,7 +222,6 @@ public com.google.protobuf.ByteString getPrefixBytes() {
    * 
* * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The delimiter. */ @java.lang.Override @@ -271,15 +230,14 @@ public java.lang.String getDelimiter() { 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(); delimiter_ = s; return s; } } /** - * - * *
    * Optional. If set, returns results in a directory-like mode. The results
    * will only include folders that either exactly match the above prefix, or
@@ -287,15 +245,16 @@ public java.lang.String getDelimiter() {
    * 
* * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for delimiter. */ @java.lang.Override - public com.google.protobuf.ByteString getDelimiterBytes() { + public com.google.protobuf.ByteString + getDelimiterBytes() { java.lang.Object ref = delimiter_; 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); delimiter_ = b; return b; } else { @@ -304,12 +263,9 @@ public com.google.protobuf.ByteString getDelimiterBytes() { } public static final int LEXICOGRAPHIC_START_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object lexicographicStart_ = ""; /** - * - * *
    * Optional. Filter results to folders whose names are lexicographically equal
    * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -318,7 +274,6 @@ public com.google.protobuf.ByteString getDelimiterBytes() {
    * 
* * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ @java.lang.Override @@ -327,15 +282,14 @@ public java.lang.String getLexicographicStart() { 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(); lexicographicStart_ = s; return s; } } /** - * - * *
    * Optional. Filter results to folders whose names are lexicographically equal
    * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -344,15 +298,16 @@ public java.lang.String getLexicographicStart() {
    * 
* * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicStart. */ @java.lang.Override - public com.google.protobuf.ByteString getLexicographicStartBytes() { + public com.google.protobuf.ByteString + getLexicographicStartBytes() { java.lang.Object ref = lexicographicStart_; 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); lexicographicStart_ = b; return b; } else { @@ -361,12 +316,9 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() { } public static final int LEXICOGRAPHIC_END_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object lexicographicEnd_ = ""; /** - * - * *
    * Optional. Filter results to folders whose names are lexicographically
    * before lexicographic_end. If lexicographic_start is also set, the folders
@@ -375,7 +327,6 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() {
    * 
* * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ @java.lang.Override @@ -384,15 +335,14 @@ public java.lang.String getLexicographicEnd() { 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(); lexicographicEnd_ = s; return s; } } /** - * - * *
    * Optional. Filter results to folders whose names are lexicographically
    * before lexicographic_end. If lexicographic_start is also set, the folders
@@ -401,15 +351,16 @@ public java.lang.String getLexicographicEnd() {
    * 
* * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicEnd. */ @java.lang.Override - public com.google.protobuf.ByteString getLexicographicEndBytes() { + public com.google.protobuf.ByteString + getLexicographicEndBytes() { java.lang.Object ref = lexicographicEnd_; 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); lexicographicEnd_ = b; return b; } else { @@ -418,21 +369,15 @@ public com.google.protobuf.ByteString getLexicographicEndBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -441,32 +386,30 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -475,7 +418,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -487,7 +429,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_); } @@ -525,7 +468,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -553,22 +497,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.storage.control.v2.ListFoldersRequest)) { return super.equals(obj); } - com.google.storage.control.v2.ListFoldersRequest other = - (com.google.storage.control.v2.ListFoldersRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getPrefix().equals(other.getPrefix())) return false; - if (!getDelimiter().equals(other.getDelimiter())) return false; - if (!getLexicographicStart().equals(other.getLexicographicStart())) return false; - if (!getLexicographicEnd().equals(other.getLexicographicEnd())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + com.google.storage.control.v2.ListFoldersRequest other = (com.google.storage.control.v2.ListFoldersRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getPrefix() + .equals(other.getPrefix())) return false; + if (!getDelimiter() + .equals(other.getDelimiter())) return false; + if (!getLexicographicStart() + .equals(other.getLexicographicStart())) return false; + if (!getLexicographicEnd() + .equals(other.getLexicographicEnd())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -601,136 +552,132 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.control.v2.ListFoldersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListFoldersRequest 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.storage.control.v2.ListFoldersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListFoldersRequest 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.storage.control.v2.ListFoldersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListFoldersRequest 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.storage.control.v2.ListFoldersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListFoldersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ListFoldersRequest 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.storage.control.v2.ListFoldersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListFoldersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ListFoldersRequest 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.storage.control.v2.ListFoldersRequest 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.storage.control.v2.ListFoldersRequest 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.storage.control.v2.ListFoldersRequest 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 ListFolders.
    * 
* * Protobuf type {@code google.storage.control.v2.ListFoldersRequest} */ - 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.storage.control.v2.ListFoldersRequest) com.google.storage.control.v2.ListFoldersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListFoldersRequest.class, - com.google.storage.control.v2.ListFoldersRequest.Builder.class); + com.google.storage.control.v2.ListFoldersRequest.class, com.google.storage.control.v2.ListFoldersRequest.Builder.class); } // Construct using com.google.storage.control.v2.ListFoldersRequest.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(); @@ -747,9 +694,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; } @java.lang.Override @@ -768,11 +715,8 @@ public com.google.storage.control.v2.ListFoldersRequest build() { @java.lang.Override public com.google.storage.control.v2.ListFoldersRequest buildPartial() { - com.google.storage.control.v2.ListFoldersRequest result = - new com.google.storage.control.v2.ListFoldersRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.ListFoldersRequest result = new com.google.storage.control.v2.ListFoldersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -809,39 +753,38 @@ private void buildPartial0(com.google.storage.control.v2.ListFoldersRequest 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.storage.control.v2.ListFoldersRequest) { - return mergeFrom((com.google.storage.control.v2.ListFoldersRequest) other); + return mergeFrom((com.google.storage.control.v2.ListFoldersRequest)other); } else { super.mergeFrom(other); return this; @@ -849,8 +792,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.ListFoldersRequest other) { - if (other == com.google.storage.control.v2.ListFoldersRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.ListFoldersRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -915,61 +857,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - prefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - lexicographicStart_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - lexicographicEnd_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - delimiter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 74: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - 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 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + lexicographicStart_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + lexicographicEnd_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + delimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 74: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + 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) { @@ -979,27 +912,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the bucket in which to look for folders.
      * 
* - * - * 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; @@ -1008,23 +936,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the bucket in which to look for folders.
      * 
* - * - * 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 { @@ -1032,39 +957,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the bucket in which to look for folders.
      * 
* - * - * 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. Name of the bucket in which to look for folders.
      * 
* - * - * 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() { @@ -1074,23 +988,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of the bucket in which to look for folders.
      * 
* - * - * 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; @@ -1098,17 +1006,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Maximum number of folders to return in a single response. The
      * service will use this parameter or 1,000 items, whichever is smaller.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1116,15 +1021,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Maximum number of folders to return in a single response. The
      * service will use this parameter or 1,000 items, whichever is smaller.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1136,15 +1038,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Maximum number of folders to return in a single response. The
      * service will use this parameter or 1,000 items, whichever is smaller.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1156,21 +1055,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A previously-returned page token representing part of the larger
      * set of results to view.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; @@ -1179,22 +1076,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A previously-returned page token representing part of the larger
      * set of results to view.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; 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); pageToken_ = b; return b; } else { @@ -1202,37 +1098,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A previously-returned page token representing part of the larger
      * set of results to view.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A previously-returned page token representing part of the larger
      * set of results to view.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1242,22 +1131,18 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A previously-returned page token representing part of the larger
      * set of results to view.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1267,21 +1152,19 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object prefix_ = ""; /** - * - * *
      * Optional. Filter results to folders whose names begin with this prefix.
      * If set, the value must either be an empty string or end with a '/'.
      * 
* * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; 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(); prefix_ = s; return s; @@ -1290,22 +1173,21 @@ public java.lang.String getPrefix() { } } /** - * - * *
      * Optional. Filter results to folders whose names begin with this prefix.
      * If set, the value must either be an empty string or end with a '/'.
      * 
* * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for prefix. */ - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; 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); prefix_ = b; return b; } else { @@ -1313,37 +1195,30 @@ public com.google.protobuf.ByteString getPrefixBytes() { } } /** - * - * *
      * Optional. Filter results to folders whose names begin with this prefix.
      * If set, the value must either be an empty string or end with a '/'.
      * 
* * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The prefix to set. * @return This builder for chaining. */ - public Builder setPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } prefix_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. Filter results to folders whose names begin with this prefix.
      * If set, the value must either be an empty string or end with a '/'.
      * 
* * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPrefix() { @@ -1353,22 +1228,18 @@ public Builder clearPrefix() { return this; } /** - * - * *
      * Optional. Filter results to folders whose names begin with this prefix.
      * If set, the value must either be an empty string or end with a '/'.
      * 
* * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for prefix to set. * @return This builder for chaining. */ - public Builder setPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; bitField0_ |= 0x00000008; @@ -1378,8 +1249,6 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) { private java.lang.Object delimiter_ = ""; /** - * - * *
      * Optional. If set, returns results in a directory-like mode. The results
      * will only include folders that either exactly match the above prefix, or
@@ -1387,13 +1256,13 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) {
      * 
* * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The delimiter. */ public java.lang.String getDelimiter() { java.lang.Object ref = delimiter_; 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(); delimiter_ = s; return s; @@ -1402,8 +1271,6 @@ public java.lang.String getDelimiter() { } } /** - * - * *
      * Optional. If set, returns results in a directory-like mode. The results
      * will only include folders that either exactly match the above prefix, or
@@ -1411,14 +1278,15 @@ public java.lang.String getDelimiter() {
      * 
* * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for delimiter. */ - public com.google.protobuf.ByteString getDelimiterBytes() { + public com.google.protobuf.ByteString + getDelimiterBytes() { java.lang.Object ref = delimiter_; 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); delimiter_ = b; return b; } else { @@ -1426,8 +1294,6 @@ public com.google.protobuf.ByteString getDelimiterBytes() { } } /** - * - * *
      * Optional. If set, returns results in a directory-like mode. The results
      * will only include folders that either exactly match the above prefix, or
@@ -1435,22 +1301,18 @@ public com.google.protobuf.ByteString getDelimiterBytes() {
      * 
* * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The delimiter to set. * @return This builder for chaining. */ - public Builder setDelimiter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDelimiter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } delimiter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. If set, returns results in a directory-like mode. The results
      * will only include folders that either exactly match the above prefix, or
@@ -1458,7 +1320,6 @@ public Builder setDelimiter(java.lang.String value) {
      * 
* * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDelimiter() { @@ -1468,8 +1329,6 @@ public Builder clearDelimiter() { return this; } /** - * - * *
      * Optional. If set, returns results in a directory-like mode. The results
      * will only include folders that either exactly match the above prefix, or
@@ -1477,14 +1336,12 @@ public Builder clearDelimiter() {
      * 
* * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for delimiter to set. * @return This builder for chaining. */ - public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDelimiterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delimiter_ = value; bitField0_ |= 0x00000010; @@ -1494,8 +1351,6 @@ public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { private java.lang.Object lexicographicStart_ = ""; /** - * - * *
      * Optional. Filter results to folders whose names are lexicographically equal
      * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -1504,13 +1359,13 @@ public Builder setDelimiterBytes(com.google.protobuf.ByteString value) {
      * 
* * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ public java.lang.String getLexicographicStart() { java.lang.Object ref = lexicographicStart_; 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(); lexicographicStart_ = s; return s; @@ -1519,8 +1374,6 @@ public java.lang.String getLexicographicStart() { } } /** - * - * *
      * Optional. Filter results to folders whose names are lexicographically equal
      * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -1529,14 +1382,15 @@ public java.lang.String getLexicographicStart() {
      * 
* * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicStart. */ - public com.google.protobuf.ByteString getLexicographicStartBytes() { + public com.google.protobuf.ByteString + getLexicographicStartBytes() { java.lang.Object ref = lexicographicStart_; 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); lexicographicStart_ = b; return b; } else { @@ -1544,8 +1398,6 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() { } } /** - * - * *
      * Optional. Filter results to folders whose names are lexicographically equal
      * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -1554,22 +1406,18 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() {
      * 
* * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The lexicographicStart to set. * @return This builder for chaining. */ - public Builder setLexicographicStart(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicStart( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } lexicographicStart_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. Filter results to folders whose names are lexicographically equal
      * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -1578,7 +1426,6 @@ public Builder setLexicographicStart(java.lang.String value) {
      * 
* * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLexicographicStart() { @@ -1588,8 +1435,6 @@ public Builder clearLexicographicStart() { return this; } /** - * - * *
      * Optional. Filter results to folders whose names are lexicographically equal
      * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -1598,14 +1443,12 @@ public Builder clearLexicographicStart() {
      * 
* * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for lexicographicStart to set. * @return This builder for chaining. */ - public Builder setLexicographicStartBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicStartBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lexicographicStart_ = value; bitField0_ |= 0x00000020; @@ -1615,8 +1458,6 @@ public Builder setLexicographicStartBytes(com.google.protobuf.ByteString value) private java.lang.Object lexicographicEnd_ = ""; /** - * - * *
      * Optional. Filter results to folders whose names are lexicographically
      * before lexicographic_end. If lexicographic_start is also set, the folders
@@ -1625,13 +1466,13 @@ public Builder setLexicographicStartBytes(com.google.protobuf.ByteString value)
      * 
* * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ public java.lang.String getLexicographicEnd() { java.lang.Object ref = lexicographicEnd_; 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(); lexicographicEnd_ = s; return s; @@ -1640,8 +1481,6 @@ public java.lang.String getLexicographicEnd() { } } /** - * - * *
      * Optional. Filter results to folders whose names are lexicographically
      * before lexicographic_end. If lexicographic_start is also set, the folders
@@ -1650,14 +1489,15 @@ public java.lang.String getLexicographicEnd() {
      * 
* * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicEnd. */ - public com.google.protobuf.ByteString getLexicographicEndBytes() { + public com.google.protobuf.ByteString + getLexicographicEndBytes() { java.lang.Object ref = lexicographicEnd_; 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); lexicographicEnd_ = b; return b; } else { @@ -1665,8 +1505,6 @@ public com.google.protobuf.ByteString getLexicographicEndBytes() { } } /** - * - * *
      * Optional. Filter results to folders whose names are lexicographically
      * before lexicographic_end. If lexicographic_start is also set, the folders
@@ -1675,22 +1513,18 @@ public com.google.protobuf.ByteString getLexicographicEndBytes() {
      * 
* * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The lexicographicEnd to set. * @return This builder for chaining. */ - public Builder setLexicographicEnd(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicEnd( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } lexicographicEnd_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Optional. Filter results to folders whose names are lexicographically
      * before lexicographic_end. If lexicographic_start is also set, the folders
@@ -1699,7 +1533,6 @@ public Builder setLexicographicEnd(java.lang.String value) {
      * 
* * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLexicographicEnd() { @@ -1709,8 +1542,6 @@ public Builder clearLexicographicEnd() { return this; } /** - * - * *
      * Optional. Filter results to folders whose names are lexicographically
      * before lexicographic_end. If lexicographic_start is also set, the folders
@@ -1719,14 +1550,12 @@ public Builder clearLexicographicEnd() {
      * 
* * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for lexicographicEnd to set. * @return This builder for chaining. */ - public Builder setLexicographicEndBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicEndBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lexicographicEnd_ = value; bitField0_ |= 0x00000040; @@ -1736,23 +1565,19 @@ public Builder setLexicographicEndBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -1761,24 +1586,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -1786,41 +1608,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1830,33 +1641,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted.
      * 
* - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000080; 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); } @@ -1866,12 +1671,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ListFoldersRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ListFoldersRequest) private static final com.google.storage.control.v2.ListFoldersRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ListFoldersRequest(); } @@ -1880,27 +1685,27 @@ public static com.google.storage.control.v2.ListFoldersRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFoldersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListFoldersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1915,4 +1720,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.ListFoldersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java index 1a935c9813..f67284ca52 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java @@ -1,128 +1,89 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface ListFoldersRequestOrBuilder - extends +public interface ListFoldersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ListFoldersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the bucket in which to look for folders.
    * 
* - * - * 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. Name of the bucket in which to look for folders.
    * 
* - * - * 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(); /** - * - * *
    * Optional. Maximum number of folders to return in a single response. The
    * service will use this parameter or 1,000 items, whichever is smaller.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A previously-returned page token representing part of the larger
    * set of results to view.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A previously-returned page token representing part of the larger
    * set of results to view.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Filter results to folders whose names begin with this prefix.
    * If set, the value must either be an empty string or end with a '/'.
    * 
* * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The prefix. */ java.lang.String getPrefix(); /** - * - * *
    * Optional. Filter results to folders whose names begin with this prefix.
    * If set, the value must either be an empty string or end with a '/'.
    * 
* * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for prefix. */ - com.google.protobuf.ByteString getPrefixBytes(); + com.google.protobuf.ByteString + getPrefixBytes(); /** - * - * *
    * Optional. If set, returns results in a directory-like mode. The results
    * will only include folders that either exactly match the above prefix, or
@@ -130,13 +91,10 @@ public interface ListFoldersRequestOrBuilder
    * 
* * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The delimiter. */ java.lang.String getDelimiter(); /** - * - * *
    * Optional. If set, returns results in a directory-like mode. The results
    * will only include folders that either exactly match the above prefix, or
@@ -144,14 +102,12 @@ public interface ListFoldersRequestOrBuilder
    * 
* * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for delimiter. */ - com.google.protobuf.ByteString getDelimiterBytes(); + com.google.protobuf.ByteString + getDelimiterBytes(); /** - * - * *
    * Optional. Filter results to folders whose names are lexicographically equal
    * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -160,13 +116,10 @@ public interface ListFoldersRequestOrBuilder
    * 
* * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ java.lang.String getLexicographicStart(); /** - * - * *
    * Optional. Filter results to folders whose names are lexicographically equal
    * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -175,14 +128,12 @@ public interface ListFoldersRequestOrBuilder
    * 
* * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicStart. */ - com.google.protobuf.ByteString getLexicographicStartBytes(); + com.google.protobuf.ByteString + getLexicographicStartBytes(); /** - * - * *
    * Optional. Filter results to folders whose names are lexicographically
    * before lexicographic_end. If lexicographic_start is also set, the folders
@@ -191,13 +142,10 @@ public interface ListFoldersRequestOrBuilder
    * 
* * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ java.lang.String getLexicographicEnd(); /** - * - * *
    * Optional. Filter results to folders whose names are lexicographically
    * before lexicographic_end. If lexicographic_start is also set, the folders
@@ -206,39 +154,30 @@ public interface ListFoldersRequestOrBuilder
    * 
* * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicEnd. */ - com.google.protobuf.ByteString getLexicographicEndBytes(); + com.google.protobuf.ByteString + getLexicographicEndBytes(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted.
    * 
* - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java similarity index 71% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java index be525cbd04..87b2cc6dc9 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * Response message for ListFolders.
  * 
* * Protobuf type {@code google.storage.control.v2.ListFoldersResponse} */ -public final class ListFoldersResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFoldersResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.ListFoldersResponse) ListFoldersResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFoldersResponse.newBuilder() to construct. private ListFoldersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFoldersResponse() { folders_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +27,28 @@ private ListFoldersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFoldersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListFoldersResponse.class, - com.google.storage.control.v2.ListFoldersResponse.Builder.class); + com.google.storage.control.v2.ListFoldersResponse.class, com.google.storage.control.v2.ListFoldersResponse.Builder.class); } public static final int FOLDERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List folders_; /** - * - * *
    * The list of child folders
    * 
@@ -81,8 +60,6 @@ public java.util.List getFoldersList() { return folders_; } /** - * - * *
    * The list of child folders
    * 
@@ -90,13 +67,11 @@ public java.util.List getFoldersList() { * repeated .google.storage.control.v2.Folder folders = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFoldersOrBuilderList() { return folders_; } /** - * - * *
    * The list of child folders
    * 
@@ -108,8 +83,6 @@ public int getFoldersCount() { return folders_.size(); } /** - * - * *
    * The list of child folders
    * 
@@ -121,8 +94,6 @@ public com.google.storage.control.v2.Folder getFolders(int index) { return folders_.get(index); } /** - * - * *
    * The list of child folders
    * 
@@ -130,24 +101,21 @@ public com.google.storage.control.v2.Folder getFolders(int index) { * repeated .google.storage.control.v2.Folder folders = 1; */ @java.lang.Override - public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int index) { + public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder( + int index) { return folders_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,30 +124,30 @@ public java.lang.String getNextPageToken() { 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(); nextPageToken_ = s; return s; } } /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; 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); nextPageToken_ = b; return b; } else { @@ -188,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +167,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 < folders_.size(); i++) { output.writeMessage(1, folders_.get(i)); } @@ -217,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < folders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, folders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, folders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -230,16 +199,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.storage.control.v2.ListFoldersResponse)) { return super.equals(obj); } - com.google.storage.control.v2.ListFoldersResponse other = - (com.google.storage.control.v2.ListFoldersResponse) obj; + com.google.storage.control.v2.ListFoldersResponse other = (com.google.storage.control.v2.ListFoldersResponse) obj; - if (!getFoldersList().equals(other.getFoldersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getFoldersList() + .equals(other.getFoldersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,135 +233,131 @@ public int hashCode() { } public static com.google.storage.control.v2.ListFoldersResponse 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.storage.control.v2.ListFoldersResponse 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.storage.control.v2.ListFoldersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListFoldersResponse 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.storage.control.v2.ListFoldersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListFoldersResponse 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.storage.control.v2.ListFoldersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListFoldersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ListFoldersResponse 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.storage.control.v2.ListFoldersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListFoldersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ListFoldersResponse 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.storage.control.v2.ListFoldersResponse 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.storage.control.v2.ListFoldersResponse 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.storage.control.v2.ListFoldersResponse 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 ListFolders.
    * 
* * Protobuf type {@code google.storage.control.v2.ListFoldersResponse} */ - 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.storage.control.v2.ListFoldersResponse) com.google.storage.control.v2.ListFoldersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListFoldersResponse.class, - com.google.storage.control.v2.ListFoldersResponse.Builder.class); + com.google.storage.control.v2.ListFoldersResponse.class, com.google.storage.control.v2.ListFoldersResponse.Builder.class); } // Construct using com.google.storage.control.v2.ListFoldersResponse.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(); @@ -408,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; } @java.lang.Override @@ -429,18 +395,14 @@ public com.google.storage.control.v2.ListFoldersResponse build() { @java.lang.Override public com.google.storage.control.v2.ListFoldersResponse buildPartial() { - com.google.storage.control.v2.ListFoldersResponse result = - new com.google.storage.control.v2.ListFoldersResponse(this); + com.google.storage.control.v2.ListFoldersResponse result = new com.google.storage.control.v2.ListFoldersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.storage.control.v2.ListFoldersResponse result) { + private void buildPartialRepeatedFields(com.google.storage.control.v2.ListFoldersResponse result) { if (foldersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); @@ -463,39 +425,38 @@ private void buildPartial0(com.google.storage.control.v2.ListFoldersResponse 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.storage.control.v2.ListFoldersResponse) { - return mergeFrom((com.google.storage.control.v2.ListFoldersResponse) other); + return mergeFrom((com.google.storage.control.v2.ListFoldersResponse)other); } else { super.mergeFrom(other); return this; @@ -503,8 +464,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.ListFoldersResponse other) { - if (other == com.google.storage.control.v2.ListFoldersResponse.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.ListFoldersResponse.getDefaultInstance()) return this; if (foldersBuilder_ == null) { if (!other.folders_.isEmpty()) { if (folders_.isEmpty()) { @@ -523,10 +483,9 @@ public Builder mergeFrom(com.google.storage.control.v2.ListFoldersResponse other foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); - foldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFoldersFieldBuilder() - : null; + foldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFoldersFieldBuilder() : null; } else { foldersBuilder_.addAllMessages(other.folders_); } @@ -563,32 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.storage.control.v2.Folder m = - input.readMessage( - com.google.storage.control.v2.Folder.parser(), extensionRegistry); - if (foldersBuilder_ == null) { - ensureFoldersIsMutable(); - folders_.add(m); - } else { - foldersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.storage.control.v2.Folder m = + input.readMessage( + com.google.storage.control.v2.Folder.parser(), + extensionRegistry); + if (foldersBuilder_ == null) { + ensureFoldersIsMutable(); + folders_.add(m); + } else { + foldersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = 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) { @@ -598,28 +555,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List folders_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder> - foldersBuilder_; + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> foldersBuilder_; /** - * - * *
      * The list of child folders
      * 
@@ -634,8 +584,6 @@ public java.util.List getFoldersList() { } } /** - * - * *
      * The list of child folders
      * 
@@ -650,8 +598,6 @@ public int getFoldersCount() { } } /** - * - * *
      * The list of child folders
      * 
@@ -666,15 +612,14 @@ public com.google.storage.control.v2.Folder getFolders(int index) { } } /** - * - * *
      * The list of child folders
      * 
* * repeated .google.storage.control.v2.Folder folders = 1; */ - public Builder setFolders(int index, com.google.storage.control.v2.Folder value) { + public Builder setFolders( + int index, com.google.storage.control.v2.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -688,8 +633,6 @@ public Builder setFolders(int index, com.google.storage.control.v2.Folder value) return this; } /** - * - * *
      * The list of child folders
      * 
@@ -708,8 +651,6 @@ public Builder setFolders( return this; } /** - * - * *
      * The list of child folders
      * 
@@ -730,15 +671,14 @@ public Builder addFolders(com.google.storage.control.v2.Folder value) { return this; } /** - * - * *
      * The list of child folders
      * 
* * repeated .google.storage.control.v2.Folder folders = 1; */ - public Builder addFolders(int index, com.google.storage.control.v2.Folder value) { + public Builder addFolders( + int index, com.google.storage.control.v2.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -752,15 +692,14 @@ public Builder addFolders(int index, com.google.storage.control.v2.Folder value) return this; } /** - * - * *
      * The list of child folders
      * 
* * repeated .google.storage.control.v2.Folder folders = 1; */ - public Builder addFolders(com.google.storage.control.v2.Folder.Builder builderForValue) { + public Builder addFolders( + com.google.storage.control.v2.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(builderForValue.build()); @@ -771,8 +710,6 @@ public Builder addFolders(com.google.storage.control.v2.Folder.Builder builderFo return this; } /** - * - * *
      * The list of child folders
      * 
@@ -791,8 +728,6 @@ public Builder addFolders( return this; } /** - * - * *
      * The list of child folders
      * 
@@ -803,7 +738,8 @@ public Builder addAllFolders( java.lang.Iterable values) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, folders_); onChanged(); } else { foldersBuilder_.addAllMessages(values); @@ -811,8 +747,6 @@ public Builder addAllFolders( return this; } /** - * - * *
      * The list of child folders
      * 
@@ -830,8 +764,6 @@ public Builder clearFolders() { return this; } /** - * - * *
      * The list of child folders
      * 
@@ -849,44 +781,39 @@ public Builder removeFolders(int index) { return this; } /** - * - * *
      * The list of child folders
      * 
* * repeated .google.storage.control.v2.Folder folders = 1; */ - public com.google.storage.control.v2.Folder.Builder getFoldersBuilder(int index) { + public com.google.storage.control.v2.Folder.Builder getFoldersBuilder( + int index) { return getFoldersFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of child folders
      * 
* * repeated .google.storage.control.v2.Folder folders = 1; */ - public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int index) { + public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder( + int index) { if (foldersBuilder_ == null) { - return folders_.get(index); - } else { + return folders_.get(index); } else { return foldersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of child folders
      * 
* * repeated .google.storage.control.v2.Folder folders = 1; */ - public java.util.List - getFoldersOrBuilderList() { + public java.util.List + getFoldersOrBuilderList() { if (foldersBuilder_ != null) { return foldersBuilder_.getMessageOrBuilderList(); } else { @@ -894,8 +821,6 @@ public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int ind } } /** - * - * *
      * The list of child folders
      * 
@@ -903,47 +828,42 @@ public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int ind * repeated .google.storage.control.v2.Folder folders = 1; */ public com.google.storage.control.v2.Folder.Builder addFoldersBuilder() { - return getFoldersFieldBuilder() - .addBuilder(com.google.storage.control.v2.Folder.getDefaultInstance()); + return getFoldersFieldBuilder().addBuilder( + com.google.storage.control.v2.Folder.getDefaultInstance()); } /** - * - * *
      * The list of child folders
      * 
* * repeated .google.storage.control.v2.Folder folders = 1; */ - public com.google.storage.control.v2.Folder.Builder addFoldersBuilder(int index) { - return getFoldersFieldBuilder() - .addBuilder(index, com.google.storage.control.v2.Folder.getDefaultInstance()); + public com.google.storage.control.v2.Folder.Builder addFoldersBuilder( + int index) { + return getFoldersFieldBuilder().addBuilder( + index, com.google.storage.control.v2.Folder.getDefaultInstance()); } /** - * - * *
      * The list of child folders
      * 
* * repeated .google.storage.control.v2.Folder folders = 1; */ - public java.util.List getFoldersBuilderList() { + public java.util.List + getFoldersBuilderList() { return getFoldersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder> + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> getFoldersFieldBuilder() { if (foldersBuilder_ == null) { - foldersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder>( - folders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder>( + folders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); folders_ = null; } return foldersBuilder_; @@ -951,21 +871,19 @@ public java.util.List getFoldersBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; @@ -974,22 +892,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; 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); nextPageToken_ = b; return b; } else { @@ -997,37 +914,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1037,31 +947,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1071,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ListFoldersResponse) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ListFoldersResponse) private static final com.google.storage.control.v2.ListFoldersResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ListFoldersResponse(); } @@ -1085,27 +991,27 @@ public static com.google.storage.control.v2.ListFoldersResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFoldersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListFoldersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1120,4 +1026,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.ListFoldersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java index 853be1f9d2..18ec1a6e4e 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java @@ -1,41 +1,23 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface ListFoldersResponseOrBuilder - extends +public interface ListFoldersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ListFoldersResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of child folders
    * 
* * repeated .google.storage.control.v2.Folder folders = 1; */ - java.util.List getFoldersList(); + java.util.List + getFoldersList(); /** - * - * *
    * The list of child folders
    * 
@@ -44,8 +26,6 @@ public interface ListFoldersResponseOrBuilder */ com.google.storage.control.v2.Folder getFolders(int index); /** - * - * *
    * The list of child folders
    * 
@@ -54,50 +34,43 @@ public interface ListFoldersResponseOrBuilder */ int getFoldersCount(); /** - * - * *
    * The list of child folders
    * 
* * repeated .google.storage.control.v2.Folder folders = 1; */ - java.util.List getFoldersOrBuilderList(); + java.util.List + getFoldersOrBuilderList(); /** - * - * *
    * The list of child folders
    * 
* * repeated .google.storage.control.v2.Folder folders = 1; */ - com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int index); + com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder( + int index); /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java similarity index 66% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java index 9860df9477..b1875e9845 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java @@ -1,80 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * Contains information about a pending rename operation.
  * 
* * Protobuf type {@code google.storage.control.v2.PendingRenameInfo} */ -public final class PendingRenameInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PendingRenameInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.PendingRenameInfo) PendingRenameInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PendingRenameInfo.newBuilder() to construct. private PendingRenameInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PendingRenameInfo() { operation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PendingRenameInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.PendingRenameInfo.class, - com.google.storage.control.v2.PendingRenameInfo.Builder.class); + com.google.storage.control.v2.PendingRenameInfo.class, com.google.storage.control.v2.PendingRenameInfo.Builder.class); } public static final int OPERATION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object operation_ = ""; /** - * - * *
    * Output only. The name of the rename operation.
    * 
* * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operation. */ @java.lang.Override @@ -83,29 +61,29 @@ public java.lang.String getOperation() { 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(); operation_ = s; return s; } } /** - * - * *
    * Output only. The name of the rename operation.
    * 
* * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operation. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationBytes() { + public com.google.protobuf.ByteString + getOperationBytes() { java.lang.Object ref = operation_; 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); operation_ = b; return b; } else { @@ -114,7 +92,6 @@ public com.google.protobuf.ByteString getOperationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +103,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(operation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operation_); } @@ -150,15 +128,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.storage.control.v2.PendingRenameInfo)) { return super.equals(obj); } - com.google.storage.control.v2.PendingRenameInfo other = - (com.google.storage.control.v2.PendingRenameInfo) obj; + com.google.storage.control.v2.PendingRenameInfo other = (com.google.storage.control.v2.PendingRenameInfo) obj; - if (!getOperation().equals(other.getOperation())) return false; + if (!getOperation() + .equals(other.getOperation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,136 +155,132 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.control.v2.PendingRenameInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.PendingRenameInfo 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.storage.control.v2.PendingRenameInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.PendingRenameInfo 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.storage.control.v2.PendingRenameInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.PendingRenameInfo 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.storage.control.v2.PendingRenameInfo 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.storage.control.v2.PendingRenameInfo 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.storage.control.v2.PendingRenameInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.PendingRenameInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.PendingRenameInfo 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.storage.control.v2.PendingRenameInfo 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.storage.control.v2.PendingRenameInfo 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.storage.control.v2.PendingRenameInfo 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 information about a pending rename operation.
    * 
* * Protobuf type {@code google.storage.control.v2.PendingRenameInfo} */ - 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.storage.control.v2.PendingRenameInfo) com.google.storage.control.v2.PendingRenameInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.PendingRenameInfo.class, - com.google.storage.control.v2.PendingRenameInfo.Builder.class); + com.google.storage.control.v2.PendingRenameInfo.class, com.google.storage.control.v2.PendingRenameInfo.Builder.class); } // Construct using com.google.storage.control.v2.PendingRenameInfo.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(); @@ -316,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; } @java.lang.Override @@ -337,11 +311,8 @@ public com.google.storage.control.v2.PendingRenameInfo build() { @java.lang.Override public com.google.storage.control.v2.PendingRenameInfo buildPartial() { - com.google.storage.control.v2.PendingRenameInfo result = - new com.google.storage.control.v2.PendingRenameInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.PendingRenameInfo result = new com.google.storage.control.v2.PendingRenameInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -357,39 +328,38 @@ private void buildPartial0(com.google.storage.control.v2.PendingRenameInfo 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.storage.control.v2.PendingRenameInfo) { - return mergeFrom((com.google.storage.control.v2.PendingRenameInfo) other); + return mergeFrom((com.google.storage.control.v2.PendingRenameInfo)other); } else { super.mergeFrom(other); return this; @@ -397,8 +367,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.PendingRenameInfo other) { - if (other == com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) return this; if (!other.getOperation().isEmpty()) { operation_ = other.operation_; bitField0_ |= 0x00000001; @@ -430,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - operation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + operation_ = 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) { @@ -452,25 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object operation_ = ""; /** - * - * *
      * Output only. The name of the rename operation.
      * 
* * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operation. */ public java.lang.String getOperation() { java.lang.Object ref = operation_; 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(); operation_ = s; return s; @@ -479,21 +443,20 @@ public java.lang.String getOperation() { } } /** - * - * *
      * Output only. The name of the rename operation.
      * 
* * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operation. */ - public com.google.protobuf.ByteString getOperationBytes() { + public com.google.protobuf.ByteString + getOperationBytes() { java.lang.Object ref = operation_; 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); operation_ = b; return b; } else { @@ -501,35 +464,28 @@ public com.google.protobuf.ByteString getOperationBytes() { } } /** - * - * *
      * Output only. The name of the rename operation.
      * 
* * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The operation to set. * @return This builder for chaining. */ - public Builder setOperation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOperation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } operation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The name of the rename operation.
      * 
* * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearOperation() { @@ -539,30 +495,26 @@ public Builder clearOperation() { return this; } /** - * - * *
      * Output only. The name of the rename operation.
      * 
* * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for operation to set. * @return This builder for chaining. */ - public Builder setOperationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOperationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operation_ = 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); } @@ -572,12 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.PendingRenameInfo) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.PendingRenameInfo) private static final com.google.storage.control.v2.PendingRenameInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.PendingRenameInfo(); } @@ -586,27 +538,27 @@ public static com.google.storage.control.v2.PendingRenameInfo getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PendingRenameInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PendingRenameInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -621,4 +573,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.PendingRenameInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java similarity index 50% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java index 02336a48de..4b68761eb7 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java @@ -1,50 +1,30 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface PendingRenameInfoOrBuilder - extends +public interface PendingRenameInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.PendingRenameInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the rename operation.
    * 
* * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operation. */ java.lang.String getOperation(); /** - * - * *
    * Output only. The name of the rename operation.
    * 
* * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operation. */ - com.google.protobuf.ByteString getOperationBytes(); + com.google.protobuf.ByteString + getOperationBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java similarity index 67% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java index 2903c16bd5..887735d910 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java @@ -1,26 +1,10 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * Message returned in the metadata field of the Operation resource for
  * RenameFolder operations.
@@ -28,16 +12,15 @@
  *
  * Protobuf type {@code google.storage.control.v2.RenameFolderMetadata}
  */
-public final class RenameFolderMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RenameFolderMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.storage.control.v2.RenameFolderMetadata)
     RenameFolderMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RenameFolderMetadata.newBuilder() to construct.
   private RenameFolderMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RenameFolderMetadata() {
     sourceFolderId_ = "";
     destinationFolderId_ = "";
@@ -45,62 +28,52 @@ private RenameFolderMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RenameFolderMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.storage.control.v2.StorageControlProto
-        .internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.storage.control.v2.StorageControlProto
-        .internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
+    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.storage.control.v2.RenameFolderMetadata.class,
-            com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
+            com.google.storage.control.v2.RenameFolderMetadata.class, com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
   }
 
+  private int bitField0_;
   public static final int COMMON_METADATA_FIELD_NUMBER = 1;
   private com.google.storage.control.v2.CommonLongRunningOperationMetadata commonMetadata_;
   /**
-   *
-   *
    * 
    * Generic metadata for the long running operation.
    * 
* * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * * @return Whether the commonMetadata field is set. */ @java.lang.Override public boolean hasCommonMetadata() { - return commonMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Generic metadata for the long running operation.
    * 
* * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * * @return The commonMetadata. */ @java.lang.Override public com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommonMetadata() { - return commonMetadata_ == null - ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() - : commonMetadata_; + return commonMetadata_ == null ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; } /** - * - * *
    * Generic metadata for the long running operation.
    * 
@@ -108,26 +81,19 @@ public com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommo * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ @java.lang.Override - public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder - getCommonMetadataOrBuilder() { - return commonMetadata_ == null - ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() - : commonMetadata_; + public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder() { + return commonMetadata_ == null ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; } public static final int SOURCE_FOLDER_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceFolderId_ = ""; /** - * - * *
    * The path of the source folder.
    * 
* * string source_folder_id = 2; - * * @return The sourceFolderId. */ @java.lang.Override @@ -136,29 +102,29 @@ public java.lang.String getSourceFolderId() { 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(); sourceFolderId_ = s; return s; } } /** - * - * *
    * The path of the source folder.
    * 
* * string source_folder_id = 2; - * * @return The bytes for sourceFolderId. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceFolderIdBytes() { + public com.google.protobuf.ByteString + getSourceFolderIdBytes() { java.lang.Object ref = sourceFolderId_; 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); sourceFolderId_ = b; return b; } else { @@ -167,18 +133,14 @@ public com.google.protobuf.ByteString getSourceFolderIdBytes() { } public static final int DESTINATION_FOLDER_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object destinationFolderId_ = ""; /** - * - * *
    * The path of the destination folder.
    * 
* * string destination_folder_id = 3; - * * @return The destinationFolderId. */ @java.lang.Override @@ -187,29 +149,29 @@ public java.lang.String getDestinationFolderId() { 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(); destinationFolderId_ = s; return s; } } /** - * - * *
    * The path of the destination folder.
    * 
* * string destination_folder_id = 3; - * * @return The bytes for destinationFolderId. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString + getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; 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); destinationFolderId_ = b; return b; } else { @@ -218,7 +180,6 @@ public com.google.protobuf.ByteString getDestinationFolderIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +191,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (commonMetadata_ != null) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommonMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFolderId_)) { @@ -249,8 +211,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (commonMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommonMetadata()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCommonMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFolderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceFolderId_); @@ -266,20 +229,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.storage.control.v2.RenameFolderMetadata)) { return super.equals(obj); } - com.google.storage.control.v2.RenameFolderMetadata other = - (com.google.storage.control.v2.RenameFolderMetadata) obj; + com.google.storage.control.v2.RenameFolderMetadata other = (com.google.storage.control.v2.RenameFolderMetadata) obj; if (hasCommonMetadata() != other.hasCommonMetadata()) return false; if (hasCommonMetadata()) { - if (!getCommonMetadata().equals(other.getCommonMetadata())) return false; + if (!getCommonMetadata() + .equals(other.getCommonMetadata())) return false; } - if (!getSourceFolderId().equals(other.getSourceFolderId())) return false; - if (!getDestinationFolderId().equals(other.getDestinationFolderId())) return false; + if (!getSourceFolderId() + .equals(other.getSourceFolderId())) return false; + if (!getDestinationFolderId() + .equals(other.getDestinationFolderId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -305,103 +270,98 @@ public int hashCode() { } public static com.google.storage.control.v2.RenameFolderMetadata 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.storage.control.v2.RenameFolderMetadata 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.storage.control.v2.RenameFolderMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.RenameFolderMetadata 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.storage.control.v2.RenameFolderMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.RenameFolderMetadata 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.storage.control.v2.RenameFolderMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.RenameFolderMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.RenameFolderMetadata 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.storage.control.v2.RenameFolderMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.RenameFolderMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.RenameFolderMetadata 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.storage.control.v2.RenameFolderMetadata 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.storage.control.v2.RenameFolderMetadata 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.storage.control.v2.RenameFolderMetadata 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; } /** - * - * *
    * Message returned in the metadata field of the Operation resource for
    * RenameFolder operations.
@@ -409,32 +369,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.storage.control.v2.RenameFolderMetadata}
    */
-  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.storage.control.v2.RenameFolderMetadata)
       com.google.storage.control.v2.RenameFolderMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.control.v2.StorageControlProto
-          .internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.control.v2.StorageControlProto
-          .internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
+      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.control.v2.RenameFolderMetadata.class,
-              com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
+              com.google.storage.control.v2.RenameFolderMetadata.class, com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
     }
 
     // Construct using com.google.storage.control.v2.RenameFolderMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+        getCommonMetadataFieldBuilder();
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -450,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.storage.control.v2.StorageControlProto
-          .internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -471,20 +438,20 @@ public com.google.storage.control.v2.RenameFolderMetadata build() {
 
     @java.lang.Override
     public com.google.storage.control.v2.RenameFolderMetadata buildPartial() {
-      com.google.storage.control.v2.RenameFolderMetadata result =
-          new com.google.storage.control.v2.RenameFolderMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.storage.control.v2.RenameFolderMetadata result = new com.google.storage.control.v2.RenameFolderMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
     private void buildPartial0(com.google.storage.control.v2.RenameFolderMetadata result) {
       int from_bitField0_ = bitField0_;
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.commonMetadata_ =
-            commonMetadataBuilder_ == null ? commonMetadata_ : commonMetadataBuilder_.build();
+        result.commonMetadata_ = commonMetadataBuilder_ == null
+            ? commonMetadata_
+            : commonMetadataBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.sourceFolderId_ = sourceFolderId_;
@@ -492,45 +459,45 @@ private void buildPartial0(com.google.storage.control.v2.RenameFolderMetadata re
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.destinationFolderId_ = destinationFolderId_;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
     @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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.storage.control.v2.RenameFolderMetadata) {
-        return mergeFrom((com.google.storage.control.v2.RenameFolderMetadata) other);
+        return mergeFrom((com.google.storage.control.v2.RenameFolderMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -538,8 +505,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.storage.control.v2.RenameFolderMetadata other) {
-      if (other == com.google.storage.control.v2.RenameFolderMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.storage.control.v2.RenameFolderMetadata.getDefaultInstance()) return this;
       if (other.hasCommonMetadata()) {
         mergeCommonMetadata(other.getCommonMetadata());
       }
@@ -579,31 +545,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCommonMetadataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                sourceFolderId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                destinationFolderId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCommonMetadataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              sourceFolderId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              destinationFolderId_ = 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) {
@@ -613,63 +577,45 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.storage.control.v2.CommonLongRunningOperationMetadata commonMetadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.control.v2.CommonLongRunningOperationMetadata,
-            com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder,
-            com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>
-        commonMetadataBuilder_;
+        com.google.storage.control.v2.CommonLongRunningOperationMetadata, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder> commonMetadataBuilder_;
     /**
-     *
-     *
      * 
      * Generic metadata for the long running operation.
      * 
* - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; * @return Whether the commonMetadata field is set. */ public boolean hasCommonMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Generic metadata for the long running operation.
      * 
* - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; * @return The commonMetadata. */ public com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommonMetadata() { if (commonMetadataBuilder_ == null) { - return commonMetadata_ == null - ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() - : commonMetadata_; + return commonMetadata_ == null ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; } else { return commonMetadataBuilder_.getMessage(); } } /** - * - * *
      * Generic metadata for the long running operation.
      * 
* - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ - public Builder setCommonMetadata( - com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { + public Builder setCommonMetadata(com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { if (commonMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -683,14 +629,11 @@ public Builder setCommonMetadata( return this; } /** - * - * *
      * Generic metadata for the long running operation.
      * 
* - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ public Builder setCommonMetadata( com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder builderForValue) { @@ -704,23 +647,17 @@ public Builder setCommonMetadata( return this; } /** - * - * *
      * Generic metadata for the long running operation.
      * 
* - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ - public Builder mergeCommonMetadata( - com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { + public Builder mergeCommonMetadata(com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { if (commonMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && commonMetadata_ != null - && commonMetadata_ - != com.google.storage.control.v2.CommonLongRunningOperationMetadata - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + commonMetadata_ != null && + commonMetadata_ != com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance()) { getCommonMetadataBuilder().mergeFrom(value); } else { commonMetadata_ = value; @@ -728,19 +665,18 @@ public Builder mergeCommonMetadata( } else { commonMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (commonMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** - * - * *
      * Generic metadata for the long running operation.
      * 
* - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ public Builder clearCommonMetadata() { bitField0_ = (bitField0_ & ~0x00000001); @@ -753,63 +689,48 @@ public Builder clearCommonMetadata() { return this; } /** - * - * *
      * Generic metadata for the long running operation.
      * 
* - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ - public com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder - getCommonMetadataBuilder() { + public com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder getCommonMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCommonMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Generic metadata for the long running operation.
      * 
* - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ - public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder - getCommonMetadataOrBuilder() { + public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder() { if (commonMetadataBuilder_ != null) { return commonMetadataBuilder_.getMessageOrBuilder(); } else { - return commonMetadata_ == null - ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() - : commonMetadata_; + return commonMetadata_ == null ? + com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; } } /** - * - * *
      * Generic metadata for the long running operation.
      * 
* - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.CommonLongRunningOperationMetadata, - com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, - com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder> + com.google.storage.control.v2.CommonLongRunningOperationMetadata, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder> getCommonMetadataFieldBuilder() { if (commonMetadataBuilder_ == null) { - commonMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.CommonLongRunningOperationMetadata, - com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, - com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>( - getCommonMetadata(), getParentForChildren(), isClean()); + commonMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.CommonLongRunningOperationMetadata, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>( + getCommonMetadata(), + getParentForChildren(), + isClean()); commonMetadata_ = null; } return commonMetadataBuilder_; @@ -817,20 +738,18 @@ public Builder clearCommonMetadata() { private java.lang.Object sourceFolderId_ = ""; /** - * - * *
      * The path of the source folder.
      * 
* * string source_folder_id = 2; - * * @return The sourceFolderId. */ public java.lang.String getSourceFolderId() { java.lang.Object ref = sourceFolderId_; 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(); sourceFolderId_ = s; return s; @@ -839,21 +758,20 @@ public java.lang.String getSourceFolderId() { } } /** - * - * *
      * The path of the source folder.
      * 
* * string source_folder_id = 2; - * * @return The bytes for sourceFolderId. */ - public com.google.protobuf.ByteString getSourceFolderIdBytes() { + public com.google.protobuf.ByteString + getSourceFolderIdBytes() { java.lang.Object ref = sourceFolderId_; 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); sourceFolderId_ = b; return b; } else { @@ -861,35 +779,28 @@ public com.google.protobuf.ByteString getSourceFolderIdBytes() { } } /** - * - * *
      * The path of the source folder.
      * 
* * string source_folder_id = 2; - * * @param value The sourceFolderId to set. * @return This builder for chaining. */ - public Builder setSourceFolderId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceFolderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceFolderId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The path of the source folder.
      * 
* * string source_folder_id = 2; - * * @return This builder for chaining. */ public Builder clearSourceFolderId() { @@ -899,21 +810,17 @@ public Builder clearSourceFolderId() { return this; } /** - * - * *
      * The path of the source folder.
      * 
* * string source_folder_id = 2; - * * @param value The bytes for sourceFolderId to set. * @return This builder for chaining. */ - public Builder setSourceFolderIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceFolderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceFolderId_ = value; bitField0_ |= 0x00000002; @@ -923,20 +830,18 @@ public Builder setSourceFolderIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationFolderId_ = ""; /** - * - * *
      * The path of the destination folder.
      * 
* * string destination_folder_id = 3; - * * @return The destinationFolderId. */ public java.lang.String getDestinationFolderId() { java.lang.Object ref = destinationFolderId_; 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(); destinationFolderId_ = s; return s; @@ -945,21 +850,20 @@ public java.lang.String getDestinationFolderId() { } } /** - * - * *
      * The path of the destination folder.
      * 
* * string destination_folder_id = 3; - * * @return The bytes for destinationFolderId. */ - public com.google.protobuf.ByteString getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString + getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; 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); destinationFolderId_ = b; return b; } else { @@ -967,35 +871,28 @@ public com.google.protobuf.ByteString getDestinationFolderIdBytes() { } } /** - * - * *
      * The path of the destination folder.
      * 
* * string destination_folder_id = 3; - * * @param value The destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationFolderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationFolderId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The path of the destination folder.
      * 
* * string destination_folder_id = 3; - * * @return This builder for chaining. */ public Builder clearDestinationFolderId() { @@ -1005,30 +902,26 @@ public Builder clearDestinationFolderId() { return this; } /** - * - * *
      * The path of the destination folder.
      * 
* * string destination_folder_id = 3; - * * @param value The bytes for destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationFolderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationFolderId_ = 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); } @@ -1038,12 +931,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.RenameFolderMetadata) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.RenameFolderMetadata) private static final com.google.storage.control.v2.RenameFolderMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.RenameFolderMetadata(); } @@ -1052,27 +945,27 @@ public static com.google.storage.control.v2.RenameFolderMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RenameFolderMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RenameFolderMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1087,4 +980,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.RenameFolderMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java similarity index 67% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java index 74488d03de..b27fa9b790 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java @@ -1,111 +1,77 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface RenameFolderMetadataOrBuilder - extends +public interface RenameFolderMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.RenameFolderMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Generic metadata for the long running operation.
    * 
* * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * * @return Whether the commonMetadata field is set. */ boolean hasCommonMetadata(); /** - * - * *
    * Generic metadata for the long running operation.
    * 
* * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * * @return The commonMetadata. */ com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommonMetadata(); /** - * - * *
    * Generic metadata for the long running operation.
    * 
* * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ - com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder - getCommonMetadataOrBuilder(); + com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder(); /** - * - * *
    * The path of the source folder.
    * 
* * string source_folder_id = 2; - * * @return The sourceFolderId. */ java.lang.String getSourceFolderId(); /** - * - * *
    * The path of the source folder.
    * 
* * string source_folder_id = 2; - * * @return The bytes for sourceFolderId. */ - com.google.protobuf.ByteString getSourceFolderIdBytes(); + com.google.protobuf.ByteString + getSourceFolderIdBytes(); /** - * - * *
    * The path of the destination folder.
    * 
* * string destination_folder_id = 3; - * * @return The destinationFolderId. */ java.lang.String getDestinationFolderId(); /** - * - * *
    * The path of the destination folder.
    * 
* * string destination_folder_id = 3; - * * @return The bytes for destinationFolderId. */ - com.google.protobuf.ByteString getDestinationFolderIdBytes(); + com.google.protobuf.ByteString + getDestinationFolderIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java similarity index 70% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java index d433e42ff2..e493a07162 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * Request message for RenameFolder.
  * 
* * Protobuf type {@code google.storage.control.v2.RenameFolderRequest} */ -public final class RenameFolderRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RenameFolderRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.RenameFolderRequest) RenameFolderRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RenameFolderRequest.newBuilder() to construct. private RenameFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RenameFolderRequest() { name_ = ""; destinationFolderId_ = ""; @@ -45,42 +28,35 @@ private RenameFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RenameFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.RenameFolderRequest.class, - com.google.storage.control.v2.RenameFolderRequest.Builder.class); + com.google.storage.control.v2.RenameFolderRequest.class, com.google.storage.control.v2.RenameFolderRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the source folder being renamed.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,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 source folder being renamed.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.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 { @@ -123,18 +97,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESTINATION_FOLDER_ID_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object destinationFolderId_ = ""; /** - * - * *
    * Required. The destination folder ID, e.g. `foo/bar/`.
    * 
* * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationFolderId. */ @java.lang.Override @@ -143,29 +113,29 @@ public java.lang.String getDestinationFolderId() { 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(); destinationFolderId_ = s; return s; } } /** - * - * *
    * Required. The destination folder ID, e.g. `foo/bar/`.
    * 
* * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationFolderId. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString + getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; 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); destinationFolderId_ = b; return b; } else { @@ -176,15 +146,12 @@ public com.google.protobuf.ByteString getDestinationFolderIdBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation only succeed conditional on whether the source
    * folder's current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 4; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -192,15 +159,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Makes the operation only succeed conditional on whether the source
    * folder's current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 4; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -211,15 +175,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 5; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation only succeed conditional on whether the source
    * folder's current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 5; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -227,15 +188,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Makes the operation only succeed conditional on whether the source
    * folder's current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 5; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -244,22 +202,16 @@ public long getIfMetagenerationNotMatch() { } public static final int REQUEST_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -268,33 +220,31 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -303,7 +253,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +264,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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(4, ifMetagenerationMatch_); } @@ -341,10 +291,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, requestId_); @@ -363,25 +315,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.storage.control.v2.RenameFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.RenameFolderRequest other = - (com.google.storage.control.v2.RenameFolderRequest) obj; + com.google.storage.control.v2.RenameFolderRequest other = (com.google.storage.control.v2.RenameFolderRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getDestinationFolderId().equals(other.getDestinationFolderId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDestinationFolderId() + .equals(other.getDestinationFolderId())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,11 +355,13 @@ public int hashCode() { hash = (53 * hash) + getDestinationFolderId().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); @@ -413,135 +371,131 @@ public int hashCode() { } public static com.google.storage.control.v2.RenameFolderRequest 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.storage.control.v2.RenameFolderRequest 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.storage.control.v2.RenameFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.RenameFolderRequest 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.storage.control.v2.RenameFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.RenameFolderRequest 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.storage.control.v2.RenameFolderRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.RenameFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.RenameFolderRequest 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.storage.control.v2.RenameFolderRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.RenameFolderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.RenameFolderRequest 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.storage.control.v2.RenameFolderRequest 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.storage.control.v2.RenameFolderRequest 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.storage.control.v2.RenameFolderRequest 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 RenameFolder.
    * 
* * Protobuf type {@code google.storage.control.v2.RenameFolderRequest} */ - 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.storage.control.v2.RenameFolderRequest) com.google.storage.control.v2.RenameFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.RenameFolderRequest.class, - com.google.storage.control.v2.RenameFolderRequest.Builder.class); + com.google.storage.control.v2.RenameFolderRequest.class, com.google.storage.control.v2.RenameFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.RenameFolderRequest.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(); @@ -555,9 +509,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; } @java.lang.Override @@ -576,11 +530,8 @@ public com.google.storage.control.v2.RenameFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.RenameFolderRequest buildPartial() { - com.google.storage.control.v2.RenameFolderRequest result = - new com.google.storage.control.v2.RenameFolderRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.RenameFolderRequest result = new com.google.storage.control.v2.RenameFolderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -612,39 +563,38 @@ private void buildPartial0(com.google.storage.control.v2.RenameFolderRequest 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.storage.control.v2.RenameFolderRequest) { - return mergeFrom((com.google.storage.control.v2.RenameFolderRequest) other); + return mergeFrom((com.google.storage.control.v2.RenameFolderRequest)other); } else { super.mergeFrom(other); return this; @@ -652,8 +602,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.RenameFolderRequest other) { - if (other == com.google.storage.control.v2.RenameFolderRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.RenameFolderRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -701,43 +650,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 32: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 50: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 58 - case 66: - { - destinationFolderId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 32: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 50: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 58 + case 66: { + destinationFolderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -747,28 +690,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the source folder being renamed.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.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; @@ -777,24 +715,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the source folder being renamed.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.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 { @@ -802,41 +737,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the source folder being renamed.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.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 source folder being renamed.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -846,24 +770,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the source folder being renamed.
      * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
      * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.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; @@ -873,20 +791,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationFolderId_ = ""; /** - * - * *
      * Required. The destination folder ID, e.g. `foo/bar/`.
      * 
* * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationFolderId. */ public java.lang.String getDestinationFolderId() { java.lang.Object ref = destinationFolderId_; 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(); destinationFolderId_ = s; return s; @@ -895,21 +811,20 @@ public java.lang.String getDestinationFolderId() { } } /** - * - * *
      * Required. The destination folder ID, e.g. `foo/bar/`.
      * 
* * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationFolderId. */ - public com.google.protobuf.ByteString getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString + getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; 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); destinationFolderId_ = b; return b; } else { @@ -917,35 +832,28 @@ public com.google.protobuf.ByteString getDestinationFolderIdBytes() { } } /** - * - * *
      * Required. The destination folder ID, e.g. `foo/bar/`.
      * 
* * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationFolderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationFolderId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The destination folder ID, e.g. `foo/bar/`.
      * 
* * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDestinationFolderId() { @@ -955,21 +863,17 @@ public Builder clearDestinationFolderId() { return this; } /** - * - * *
      * Required. The destination folder ID, e.g. `foo/bar/`.
      * 
* * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationFolderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationFolderId_ = value; bitField0_ |= 0x00000002; @@ -977,17 +881,14 @@ public Builder setDestinationFolderIdBytes(com.google.protobuf.ByteString value) return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Makes the operation only succeed conditional on whether the source
      * folder's current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 4; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -995,15 +896,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Makes the operation only succeed conditional on whether the source
      * folder's current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 4; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1011,15 +909,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Makes the operation only succeed conditional on whether the source
      * folder's current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 4; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1031,15 +926,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation only succeed conditional on whether the source
      * folder's current metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 4; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1049,17 +941,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * Makes the operation only succeed conditional on whether the source
      * folder's current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 5; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1067,15 +956,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Makes the operation only succeed conditional on whether the source
      * folder's current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 5; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1083,15 +969,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * Makes the operation only succeed conditional on whether the source
      * folder's current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 5; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1103,15 +986,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation only succeed conditional on whether the source
      * folder's current metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 5; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1123,24 +1003,20 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -1149,25 +1025,22 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -1175,43 +1048,32 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1221,34 +1083,28 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique identifier for this request. UUID is the recommended
      * format, but other formats are still accepted. This request is only
      * idempotent if a `request_id` is provided.
      * 
* - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = 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); } @@ -1258,12 +1114,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.RenameFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.RenameFolderRequest) private static final com.google.storage.control.v2.RenameFolderRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.RenameFolderRequest(); } @@ -1272,27 +1128,27 @@ public static com.google.storage.control.v2.RenameFolderRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RenameFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RenameFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1307,4 +1163,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.RenameFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java index 2a0e9c4bdf..1d7052450c 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java @@ -1,168 +1,118 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface RenameFolderRequestOrBuilder - extends +public interface RenameFolderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.RenameFolderRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the source folder being renamed.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the source folder being renamed.
    * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
    * 
* - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The destination folder ID, e.g. `foo/bar/`.
    * 
* * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationFolderId. */ java.lang.String getDestinationFolderId(); /** - * - * *
    * Required. The destination folder ID, e.g. `foo/bar/`.
    * 
* * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationFolderId. */ - com.google.protobuf.ByteString getDestinationFolderIdBytes(); + com.google.protobuf.ByteString + getDestinationFolderIdBytes(); /** - * - * *
    * Makes the operation only succeed conditional on whether the source
    * folder's current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 4; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * Makes the operation only succeed conditional on whether the source
    * folder's current metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 4; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * Makes the operation only succeed conditional on whether the source
    * folder's current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 5; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * Makes the operation only succeed conditional on whether the source
    * folder's current metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 5; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique identifier for this request. UUID is the recommended
    * format, but other formats are still accepted. This request is only
    * idempotent if a `request_id` is provided.
    * 
* - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java new file mode 100644 index 0000000000..f9b094015b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java @@ -0,0 +1,336 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/control/v2/storage_control.proto + +// Protobuf Java Version: 3.25.2 +package com.google.storage.control.v2; + +public final class StorageControlProto { + private StorageControlProto() {} + 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_storage_control_v2_PendingRenameInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_Folder_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_Folder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_GetFolderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_StorageLayout_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_GetStorageLayoutRequest_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/storage/control/v2/storage_cont" + + "rol.proto\022\031google.storage.control.v2\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\032\033google/api/field_info.pr" + + "oto\032\031google/api/resource.proto\032\030google/a" + + "pi/routing.proto\032#google/longrunning/ope" + + "rations.proto\032\033google/protobuf/empty.pro" + + "to\032\037google/protobuf/timestamp.proto\"+\n\021P" + + "endingRenameInfo\022\026\n\toperation\030\001 \001(\tB\003\340A\003" + + "\"\342\002\n\006Folder\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\033\n\016metage" + + "neration\030\003 \001(\003B\003\340A\003\0224\n\013create_time\030\004 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022N\n\023pending_rename_info\030\007 \001(\0132,.g" + + "oogle.storage.control.v2.PendingRenameIn" + + "foB\003\340A\003:l\352Ai\n\035storage.googleapis.com/Fol" + + "der\0227projects/{project}/buckets/{bucket}" + + "/folders/{folder=**}*\007folders2\006folder\"\364\001" + + "\n\020GetFolderRequest\0223\n\004name\030\006 \001(\tB%\340A\002\372A\037" + + "\n\035storage.googleapis.com/Folder\022$\n\027if_me" + + "tageneration_match\030\003 \001(\003H\000\210\001\001\022(\n\033if_meta" + + "generation_not_match\030\004 \001(\003H\001\210\001\001\022\037\n\nreque" + + "st_id\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metagene" + + "ration_matchB\036\n\034_if_metageneration_not_m" + + "atch\"\325\001\n\023CreateFolderRequest\0225\n\006parent\030\001" + + " \001(\tB%\340A\002\372A\037\022\035storage.googleapis.com/Fol" + + "der\0226\n\006folder\030\002 \001(\0132!.google.storage.con" + + "trol.v2.FolderB\003\340A\002\022\026\n\tfolder_id\030\003 \001(\tB\003" + + "\340A\002\022\026\n\trecursive\030\004 \001(\010B\003\340A\001\022\037\n\nrequest_i" + + "d\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\367\001\n\023DeleteFolderReq" + + "uest\0223\n\004name\030\006 \001(\tB%\340A\002\372A\037\n\035storage.goog" + + "leapis.com/Folder\022$\n\027if_metageneration_m" + + "atch\030\003 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not" + + "_match\030\004 \001(\003H\001\210\001\001\022\037\n\nrequest_id\030\005 \001(\tB\013\340" + + "A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metageneration_matchB\036" + + "\n\034_if_metageneration_not_match\"\214\002\n\022ListF" + + "oldersRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035s" + + "torage.googleapis.com/Folder\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006prefix\030\004 \001(\tB\003\340A\001\022\026\n\tdelimiter\030\010 \001(\tB\003\340" + + "A\001\022 \n\023lexicographic_start\030\006 \001(\tB\003\340A\001\022\036\n\021" + + "lexicographic_end\030\007 \001(\tB\003\340A\001\022\037\n\nrequest_" + + "id\030\t \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"b\n\023ListFoldersResp" + + "onse\0222\n\007folders\030\001 \003(\0132!.google.storage.c" + + "ontrol.v2.Folder\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\233\002\n\023RenameFolderRequest\0223\n\004name\030\007 \001(\tB" + + "%\340A\002\372A\037\n\035storage.googleapis.com/Folder\022\"" + + "\n\025destination_folder_id\030\010 \001(\tB\003\340A\002\022$\n\027if" + + "_metageneration_match\030\004 \001(\003H\000\210\001\001\022(\n\033if_m" + + "etageneration_not_match\030\005 \001(\003H\001\210\001\001\022\037\n\nre" + + "quest_id\030\006 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metag" + + "eneration_matchB\036\n\034_if_metageneration_no" + + "t_match\"\232\002\n\"CommonLongRunningOperationMe" + + "tadata\0224\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022\021\n\004type\030\004 \001(\tB\003\340A\003\022#\n\026requested_ca" + + "ncellation\030\005 \001(\010B\003\340A\003\022\035\n\020progress_percen" + + "t\030\006 \001(\005B\003\340A\003\"\247\001\n\024RenameFolderMetadata\022V\n" + + "\017common_metadata\030\001 \001(\0132=.google.storage." + + "control.v2.CommonLongRunningOperationMet" + + "adata\022\030\n\020source_folder_id\030\002 \001(\t\022\035\n\025desti" + + "nation_folder_id\030\003 \001(\t\"\331\003\n\rStorageLayout" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\025\n\010location\030\002 \001(\tB\003\340" + + "A\003\022\032\n\rlocation_type\030\003 \001(\tB\003\340A\003\022d\n\027custom" + + "_placement_config\030\004 \001(\0132>.google.storage" + + ".control.v2.StorageLayout.CustomPlacemen" + + "tConfigB\003\340A\003\022c\n\026hierarchical_namespace\030\005" + + " \001(\0132>.google.storage.control.v2.Storage" + + "Layout.HierarchicalNamespaceB\003\340A\003\032/\n\025Cus" + + "tomPlacementConfig\022\026\n\016data_locations\030\001 \003" + + "(\t\032(\n\025HierarchicalNamespace\022\017\n\007enabled\030\001" + + " \001(\010:\\\352AY\n$storage.googleapis.com/Storag" + + "eLayout\0221projects/{project}/buckets/{buc" + + "ket}/storageLayout\"\206\001\n\027GetStorageLayoutR" + + "equest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$storage.go" + + "ogleapis.com/StorageLayout\022\016\n\006prefix\030\002 \001" + + "(\t\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\0012\223\n\n\016" + + "StorageControl\022\232\001\n\014CreateFolder\022..google" + + ".storage.control.v2.CreateFolderRequest\032" + + "!.google.storage.control.v2.Folder\"7\332A\027p" + + "arent,folder,folder_id\212\323\344\223\002\027\022\025\n\006parent\022\013" + + "{bucket=**}\022\217\001\n\014DeleteFolder\022..google.st" + + "orage.control.v2.DeleteFolderRequest\032\026.g" + + "oogle.protobuf.Empty\"7\332A\004name\212\323\344\223\002*\022(\n\004n" + + "ame\022 {bucket=projects/*/buckets/*}/**\022\224\001" + + "\n\tGetFolder\022+.google.storage.control.v2." + + "GetFolderRequest\032!.google.storage.contro" + + "l.v2.Folder\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {buc" + + "ket=projects/*/buckets/*}/**\022\224\001\n\013ListFol" + + "ders\022-.google.storage.control.v2.ListFol" + + "dersRequest\032..google.storage.control.v2." + + "ListFoldersResponse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006" + + "parent\022\013{bucket=**}\022\315\001\n\014RenameFolder\022..g" + + "oogle.storage.control.v2.RenameFolderReq" + + "uest\032\035.google.longrunning.Operation\"n\312A\036" + + "\n\006Folder\022\024RenameFolderMetadata\332A\032name,de" + + "stination_folder_id\212\323\344\223\002*\022(\n\004name\022 {buck" + + "et=projects/*/buckets/*}/**\022\251\001\n\020GetStora" + + "geLayout\0222.google.storage.control.v2.Get" + + "StorageLayoutRequest\032(.google.storage.co" + + "ntrol.v2.StorageLayout\"7\332A\004name\212\323\344\223\002*\022(\n" + + "\004name\022 {bucket=projects/*/buckets/*}/**\032" + + "\247\002\312A\026storage.googleapis.com\322A\212\002https://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form.read-only,https://www.googleapis.co" + + "m/auth/devstorage.full_control,https://w" + + "ww.googleapis.com/auth/devstorage.read_o" + + "nly,https://www.googleapis.com/auth/devs" + + "torage.read_writeB\312\001\n\035com.google.storage" + + ".control.v2B\023StorageControlProtoP\001ZKclou" + + "d.google.com/go/storage/control/apiv2/st" + + "oragecontrolpb;storagecontrolpb\352AD\n\035stor" + + "age.googleapis.com/Bucket\022#projects/{pro" + + "ject}/buckets/{bucket}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_storage_control_v2_PendingRenameInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_PendingRenameInfo_descriptor, + new java.lang.String[] { "Operation", }); + internal_static_google_storage_control_v2_Folder_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_storage_control_v2_Folder_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_Folder_descriptor, + new java.lang.String[] { "Name", "Metageneration", "CreateTime", "UpdateTime", "PendingRenameInfo", }); + internal_static_google_storage_control_v2_GetFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_GetFolderRequest_descriptor, + new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", }); + internal_static_google_storage_control_v2_CreateFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_CreateFolderRequest_descriptor, + new java.lang.String[] { "Parent", "Folder", "FolderId", "Recursive", "RequestId", }); + internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor, + new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", }); + internal_static_google_storage_control_v2_ListFoldersRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ListFoldersRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Prefix", "Delimiter", "LexicographicStart", "LexicographicEnd", "RequestId", }); + internal_static_google_storage_control_v2_ListFoldersResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ListFoldersResponse_descriptor, + new java.lang.String[] { "Folders", "NextPageToken", }); + internal_static_google_storage_control_v2_RenameFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_RenameFolderRequest_descriptor, + new java.lang.String[] { "Name", "DestinationFolderId", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", }); + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "UpdateTime", "Type", "RequestedCancellation", "ProgressPercent", }); + internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor, + new java.lang.String[] { "CommonMetadata", "SourceFolderId", "DestinationFolderId", }); + internal_static_google_storage_control_v2_StorageLayout_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_StorageLayout_descriptor, + new java.lang.String[] { "Name", "Location", "LocationType", "CustomPlacementConfig", "HierarchicalNamespace", }); + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor = + internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(0); + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor, + new java.lang.String[] { "DataLocations", }); + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor = + internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(1); + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor, + new java.lang.String[] { "Name", "Prefix", "RequestId", }); + 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.FieldInfoProto.fieldInfo); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java similarity index 65% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java index 0de1813c81..81c3c9bc91 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; /** - * - * *
  * The storage layout configuration of a bucket.
  * 
* * Protobuf type {@code google.storage.control.v2.StorageLayout} */ -public final class StorageLayout extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StorageLayout extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.StorageLayout) StorageLayoutOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StorageLayout.newBuilder() to construct. private StorageLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StorageLayout() { name_ = ""; location_ = ""; @@ -45,84 +28,70 @@ private StorageLayout() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StorageLayout(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.class, - com.google.storage.control.v2.StorageLayout.Builder.class); + com.google.storage.control.v2.StorageLayout.class, com.google.storage.control.v2.StorageLayout.Builder.class); } - public interface CustomPlacementConfigOrBuilder - extends + public interface CustomPlacementConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.StorageLayout.CustomPlacementConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - java.util.List getDataLocationsList(); + java.util.List + getDataLocationsList(); /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @return The count of dataLocations. */ int getDataLocationsCount(); /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ java.lang.String getDataLocations(int index); /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - com.google.protobuf.ByteString getDataLocationsBytes(int index); + com.google.protobuf.ByteString + getDataLocationsBytes(int index); } /** - * - * *
    * Configuration for Custom Dual Regions.  It should specify precisely two
    * eligible regions within the same Multiregion. More information on regions
@@ -131,83 +100,73 @@ public interface CustomPlacementConfigOrBuilder
    *
    * Protobuf type {@code google.storage.control.v2.StorageLayout.CustomPlacementConfig}
    */
-  public static final class CustomPlacementConfig extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class CustomPlacementConfig extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.storage.control.v2.StorageLayout.CustomPlacementConfig)
       CustomPlacementConfigOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use CustomPlacementConfig.newBuilder() to construct.
     private CustomPlacementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private CustomPlacementConfig() {
-      dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      dataLocations_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new CustomPlacementConfig();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.control.v2.StorageControlProto
-          .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.control.v2.StorageControlProto
-          .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
+      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class,
-              com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
+              com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
     }
 
     public static final int DATA_LOCATIONS_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private com.google.protobuf.LazyStringArrayList dataLocations_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
     /**
-     *
-     *
      * 
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList getDataLocationsList() { + public com.google.protobuf.ProtocolStringList + getDataLocationsList() { return dataLocations_; } /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -215,23 +174,20 @@ public java.lang.String getDataLocations(int index) { return dataLocations_.get(index); } /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - public com.google.protobuf.ByteString getDataLocationsBytes(int index) { + public com.google.protobuf.ByteString + getDataLocationsBytes(int index) { return dataLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +199,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 < dataLocations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataLocations_.getRaw(i)); } @@ -272,15 +229,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.storage.control.v2.StorageLayout.CustomPlacementConfig)) { return super.equals(obj); } - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other = - (com.google.storage.control.v2.StorageLayout.CustomPlacementConfig) obj; + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other = (com.google.storage.control.v2.StorageLayout.CustomPlacementConfig) obj; - if (!getDataLocationsList().equals(other.getDataLocationsList())) return false; + if (!getDataLocationsList() + .equals(other.getDataLocationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,95 +259,89 @@ public int hashCode() { } public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig 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.storage.control.v2.StorageLayout.CustomPlacementConfig 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.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig 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.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig 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.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig 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.storage.control.v2.StorageLayout.CustomPlacementConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - 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.storage.control.v2.StorageLayout.CustomPlacementConfig 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.storage.control.v2.StorageLayout.CustomPlacementConfig 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.storage.control.v2.StorageLayout.CustomPlacementConfig 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.storage.control.v2.StorageLayout.CustomPlacementConfig prototype) { + public static Builder newBuilder(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig 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 @@ -400,8 +351,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration for Custom Dual Regions.  It should specify precisely two
      * eligible regions within the same Multiregion. More information on regions
@@ -410,53 +359,51 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.storage.control.v2.StorageLayout.CustomPlacementConfig}
      */
-    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.storage.control.v2.StorageLayout.CustomPlacementConfig)
         com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.storage.control.v2.StorageControlProto
-            .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.storage.control.v2.StorageControlProto
-            .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
+        return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class,
-                com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
+                com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
       }
 
-      // Construct using
-      // com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.newBuilder()
-      private Builder() {}
+      // Construct using com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.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();
         bitField0_ = 0;
-        dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        dataLocations_ =
+            com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.storage.control.v2.StorageControlProto
-            .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig
-          getDefaultInstanceForType() {
-        return com.google.storage.control.v2.StorageLayout.CustomPlacementConfig
-            .getDefaultInstance();
+      public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getDefaultInstanceForType() {
+        return com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -470,17 +417,13 @@ public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig build()
 
       @java.lang.Override
       public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig buildPartial() {
-        com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result =
-            new com.google.storage.control.v2.StorageLayout.CustomPlacementConfig(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result = new com.google.storage.control.v2.StorageLayout.CustomPlacementConfig(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result) {
+      private void buildPartial0(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           dataLocations_.makeImmutable();
@@ -492,53 +435,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.storage.control.v2.StorageLayout.CustomPlacementConfig) {
-          return mergeFrom(
-              (com.google.storage.control.v2.StorageLayout.CustomPlacementConfig) other);
+          return mergeFrom((com.google.storage.control.v2.StorageLayout.CustomPlacementConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other) {
-        if (other
-            == com.google.storage.control.v2.StorageLayout.CustomPlacementConfig
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other) {
+        if (other == com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance()) return this;
         if (!other.dataLocations_.isEmpty()) {
           if (dataLocations_.isEmpty()) {
             dataLocations_ = other.dataLocations_;
@@ -575,20 +511,18 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureDataLocationsIsMutable();
-                  dataLocations_.add(s);
-                  break;
-                } // case 10
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureDataLocationsIsMutable();
+                dataLocations_.add(s);
+                break;
+              } // case 10
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -598,12 +532,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.protobuf.LazyStringArrayList dataLocations_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
-
       private void ensureDataLocationsIsMutable() {
         if (!dataLocations_.isModifiable()) {
           dataLocations_ = new com.google.protobuf.LazyStringArrayList(dataLocations_);
@@ -611,43 +543,35 @@ private void ensureDataLocationsIsMutable() {
         bitField0_ |= 0x00000001;
       }
       /**
-       *
-       *
        * 
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList getDataLocationsList() { + public com.google.protobuf.ProtocolStringList + getDataLocationsList() { dataLocations_.makeImmutable(); return dataLocations_; } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -655,37 +579,31 @@ public java.lang.String getDataLocations(int index) { return dataLocations_.get(index); } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - public com.google.protobuf.ByteString getDataLocationsBytes(int index) { + public com.google.protobuf.ByteString + getDataLocationsBytes(int index) { return dataLocations_.getByteString(index); } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param index The index to set the value at. * @param value The dataLocations to set. * @return This builder for chaining. */ - public Builder setDataLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataLocations( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDataLocationsIsMutable(); dataLocations_.set(index, value); bitField0_ |= 0x00000001; @@ -693,21 +611,17 @@ public Builder setDataLocations(int index, java.lang.String value) { return this; } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param value The dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDataLocations( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDataLocationsIsMutable(); dataLocations_.add(value); bitField0_ |= 0x00000001; @@ -715,58 +629,50 @@ public Builder addDataLocations(java.lang.String value) { return this; } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param values The dataLocations to add. * @return This builder for chaining. */ - public Builder addAllDataLocations(java.lang.Iterable values) { + public Builder addAllDataLocations( + java.lang.Iterable values) { ensureDataLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataLocations_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @return This builder for chaining. */ public Builder clearDataLocations() { - dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + dataLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param value The bytes of the dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDataLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDataLocationsIsMutable(); dataLocations_.add(value); @@ -774,7 +680,6 @@ public Builder addDataLocationsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -787,44 +692,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.StorageLayout.CustomPlacementConfig) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.StorageLayout.CustomPlacementConfig) - private static final com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - DEFAULT_INSTANCE; - + private static final com.google.storage.control.v2.StorageLayout.CustomPlacementConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.storage.control.v2.StorageLayout.CustomPlacementConfig(); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - getDefaultInstance() { + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomPlacementConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CustomPlacementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -836,83 +738,73 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - getDefaultInstanceForType() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface HierarchicalNamespaceOrBuilder - extends + public interface HierarchicalNamespaceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.StorageLayout.HierarchicalNamespace) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Enables the hierarchical namespace feature.
      * 
* * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); } /** - * - * *
    * Configuration for a bucket's hierarchical namespace feature.
    * 
* * Protobuf type {@code google.storage.control.v2.StorageLayout.HierarchicalNamespace} */ - public static final class HierarchicalNamespace extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class HierarchicalNamespace extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.StorageLayout.HierarchicalNamespace) HierarchicalNamespaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchicalNamespace.newBuilder() to construct. private HierarchicalNamespace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HierarchicalNamespace() {} + private HierarchicalNamespace() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchicalNamespace(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** - * - * *
      * Enables the hierarchical namespace feature.
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -921,7 +813,6 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -933,7 +824,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 (enabled_ != false) { output.writeBool(1, enabled_); } @@ -947,7 +839,8 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -957,15 +850,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.storage.control.v2.StorageLayout.HierarchicalNamespace)) { return super.equals(obj); } - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other = - (com.google.storage.control.v2.StorageLayout.HierarchicalNamespace) obj; + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other = (com.google.storage.control.v2.StorageLayout.HierarchicalNamespace) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -978,102 +871,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace 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.storage.control.v2.StorageLayout.HierarchicalNamespace 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.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace 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.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace 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.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace 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.storage.control.v2.StorageLayout.HierarchicalNamespace - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - 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.storage.control.v2.StorageLayout.HierarchicalNamespace 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.storage.control.v2.StorageLayout.HierarchicalNamespace 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.storage.control.v2.StorageLayout.HierarchicalNamespace 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.storage.control.v2.StorageLayout.HierarchicalNamespace prototype) { + public static Builder newBuilder(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace 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 @@ -1083,42 +971,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration for a bucket's hierarchical namespace feature.
      * 
* * Protobuf type {@code google.storage.control.v2.StorageLayout.HierarchicalNamespace} */ - 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.storage.control.v2.StorageLayout.HierarchicalNamespace) com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); } - // Construct using - // com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.newBuilder() - private Builder() {} + // Construct using com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.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(); @@ -1128,16 +1013,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; } @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - getDefaultInstanceForType() { - return com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - .getDefaultInstance(); + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getDefaultInstanceForType() { + return com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance(); } @java.lang.Override @@ -1151,17 +1034,13 @@ public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace build() @java.lang.Override public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace buildPartial() { - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result = - new com.google.storage.control.v2.StorageLayout.HierarchicalNamespace(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result = new com.google.storage.control.v2.StorageLayout.HierarchicalNamespace(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result) { + private void buildPartial0(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enabled_ = enabled_; @@ -1172,53 +1051,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.storage.control.v2.StorageLayout.HierarchicalNamespace) { - return mergeFrom( - (com.google.storage.control.v2.StorageLayout.HierarchicalNamespace) other); + return mergeFrom((com.google.storage.control.v2.StorageLayout.HierarchicalNamespace)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other) { - if (other - == com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other) { + if (other == com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -1248,19 +1120,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enabled_ = 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) { @@ -1270,19 +1140,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
        * Enables the hierarchical namespace feature.
        * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -1290,14 +1156,11 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
        * Enables the hierarchical namespace feature.
        * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ @@ -1309,14 +1172,11 @@ public Builder setEnabled(boolean value) { return this; } /** - * - * *
        * Enables the hierarchical namespace feature.
        * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -1325,7 +1185,6 @@ public Builder clearEnabled() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1338,44 +1197,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.StorageLayout.HierarchicalNamespace) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.StorageLayout.HierarchicalNamespace) - private static final com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - DEFAULT_INSTANCE; - + private static final com.google.storage.control.v2.StorageLayout.HierarchicalNamespace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.storage.control.v2.StorageLayout.HierarchicalNamespace(); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - getDefaultInstance() { + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchicalNamespace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 HierarchicalNamespace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1387,26 +1243,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - getDefaultInstanceForType() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The name of the StorageLayout resource.
    * Format: `projects/{project}/buckets/{bucket}/storageLayout`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1415,30 +1268,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. The name of the StorageLayout resource.
    * Format: `projects/{project}/buckets/{bucket}/storageLayout`
    * 
* * 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 { @@ -1447,18 +1300,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LOCATION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** - * - * *
    * Output only. The location of the bucket.
    * 
* * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The location. */ @java.lang.Override @@ -1467,29 +1316,29 @@ 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; } } /** - * - * *
    * Output only. The location of the bucket.
    * 
* * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1498,19 +1347,15 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int LOCATION_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object locationType_ = ""; /** - * - * *
    * Output only. The location type of the bucket (region, dual-region,
    * multi-region, etc).
    * 
* * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The locationType. */ @java.lang.Override @@ -1519,30 +1364,30 @@ public java.lang.String getLocationType() { 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(); locationType_ = s; return s; } } /** - * - * *
    * Output only. The location type of the bucket (region, dual-region,
    * multi-region, etc).
    * 
* * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for locationType. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationTypeBytes() { + public com.google.protobuf.ByteString + getLocationTypeBytes() { java.lang.Object ref = locationType_; 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); locationType_ = b; return b; } else { @@ -1553,127 +1398,86 @@ public com.google.protobuf.ByteString getLocationTypeBytes() { public static final int CUSTOM_PLACEMENT_CONFIG_FIELD_NUMBER = 4; private com.google.storage.control.v2.StorageLayout.CustomPlacementConfig customPlacementConfig_; /** - * - * *
    * Output only. The data placement configuration for custom dual region. If
    * there is no configuration, this is not a custom dual region bucket.
    * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customPlacementConfig field is set. */ @java.lang.Override public boolean hasCustomPlacementConfig() { - return customPlacementConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The data placement configuration for custom dual region. If
    * there is no configuration, this is not a custom dual region bucket.
    * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customPlacementConfig. */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - getCustomPlacementConfig() { - return customPlacementConfig_ == null - ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() - : customPlacementConfig_; + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getCustomPlacementConfig() { + return customPlacementConfig_ == null ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; } /** - * - * *
    * Output only. The data placement configuration for custom dual region. If
    * there is no configuration, this is not a custom dual region bucket.
    * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder - getCustomPlacementConfigOrBuilder() { - return customPlacementConfig_ == null - ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() - : customPlacementConfig_; + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder() { + return customPlacementConfig_ == null ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; } public static final int HIERARCHICAL_NAMESPACE_FIELD_NUMBER = 5; private com.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchicalNamespace_; /** - * - * *
    * Output only. The bucket's hierarchical namespace configuration. If there is
    * no configuration, the hierarchical namespace is disabled.
    * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hierarchicalNamespace field is set. */ @java.lang.Override public boolean hasHierarchicalNamespace() { - return hierarchicalNamespace_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The bucket's hierarchical namespace configuration. If there is
    * no configuration, the hierarchical namespace is disabled.
    * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hierarchicalNamespace. */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - getHierarchicalNamespace() { - return hierarchicalNamespace_ == null - ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getHierarchicalNamespace() { + return hierarchicalNamespace_ == null ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } /** - * - * *
    * Output only. The bucket's hierarchical namespace configuration. If there is
    * no configuration, the hierarchical namespace is disabled.
    * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder - getHierarchicalNamespaceOrBuilder() { - return hierarchicalNamespace_ == null - ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder() { + return hierarchicalNamespace_ == null ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1685,7 +1489,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_); } @@ -1695,10 +1500,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, locationType_); } - if (customPlacementConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getCustomPlacementConfig()); } - if (hierarchicalNamespace_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getHierarchicalNamespace()); } getUnknownFields().writeTo(output); @@ -1719,13 +1524,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, locationType_); } - if (customPlacementConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCustomPlacementConfig()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCustomPlacementConfig()); } - if (hierarchicalNamespace_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getHierarchicalNamespace()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getHierarchicalNamespace()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1735,24 +1540,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.storage.control.v2.StorageLayout)) { return super.equals(obj); } - com.google.storage.control.v2.StorageLayout other = - (com.google.storage.control.v2.StorageLayout) obj; + com.google.storage.control.v2.StorageLayout other = (com.google.storage.control.v2.StorageLayout) obj; - if (!getName().equals(other.getName())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getLocationType().equals(other.getLocationType())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!getLocationType() + .equals(other.getLocationType())) return false; if (hasCustomPlacementConfig() != other.hasCustomPlacementConfig()) return false; if (hasCustomPlacementConfig()) { - if (!getCustomPlacementConfig().equals(other.getCustomPlacementConfig())) return false; + if (!getCustomPlacementConfig() + .equals(other.getCustomPlacementConfig())) return false; } if (hasHierarchicalNamespace() != other.hasHierarchicalNamespace()) return false; if (hasHierarchicalNamespace()) { - if (!getHierarchicalNamespace().equals(other.getHierarchicalNamespace())) return false; + if (!getHierarchicalNamespace() + .equals(other.getHierarchicalNamespace())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1784,136 +1593,139 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.StorageLayout parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.control.v2.StorageLayout parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout 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.storage.control.v2.StorageLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout 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.storage.control.v2.StorageLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout 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.storage.control.v2.StorageLayout 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.storage.control.v2.StorageLayout 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.storage.control.v2.StorageLayout parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.StorageLayout 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.storage.control.v2.StorageLayout 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.storage.control.v2.StorageLayout 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.storage.control.v2.StorageLayout 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 storage layout configuration of a bucket.
    * 
* * Protobuf type {@code google.storage.control.v2.StorageLayout} */ - 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.storage.control.v2.StorageLayout) com.google.storage.control.v2.StorageLayoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.class, - com.google.storage.control.v2.StorageLayout.Builder.class); + com.google.storage.control.v2.StorageLayout.class, com.google.storage.control.v2.StorageLayout.Builder.class); } // Construct using com.google.storage.control.v2.StorageLayout.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCustomPlacementConfigFieldBuilder(); + getHierarchicalNamespaceFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1935,9 +1747,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_descriptor; } @java.lang.Override @@ -1956,11 +1768,8 @@ public com.google.storage.control.v2.StorageLayout build() { @java.lang.Override public com.google.storage.control.v2.StorageLayout buildPartial() { - com.google.storage.control.v2.StorageLayout result = - new com.google.storage.control.v2.StorageLayout(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.StorageLayout result = new com.google.storage.control.v2.StorageLayout(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1976,57 +1785,58 @@ private void buildPartial0(com.google.storage.control.v2.StorageLayout result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.locationType_ = locationType_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { - result.customPlacementConfig_ = - customPlacementConfigBuilder_ == null - ? customPlacementConfig_ - : customPlacementConfigBuilder_.build(); + result.customPlacementConfig_ = customPlacementConfigBuilder_ == null + ? customPlacementConfig_ + : customPlacementConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.hierarchicalNamespace_ = - hierarchicalNamespaceBuilder_ == null - ? hierarchicalNamespace_ - : hierarchicalNamespaceBuilder_.build(); + result.hierarchicalNamespace_ = hierarchicalNamespaceBuilder_ == null + ? hierarchicalNamespace_ + : hierarchicalNamespaceBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.control.v2.StorageLayout) { - return mergeFrom((com.google.storage.control.v2.StorageLayout) other); + return mergeFrom((com.google.storage.control.v2.StorageLayout)other); } else { super.mergeFrom(other); return this; @@ -2082,45 +1892,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - locationType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getCustomPlacementConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getHierarchicalNamespaceFieldBuilder().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 18: { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + locationType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCustomPlacementConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getHierarchicalNamespaceFieldBuilder().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) { @@ -2130,26 +1936,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The name of the StorageLayout resource.
      * Format: `projects/{project}/buckets/{bucket}/storageLayout`
      * 
* * 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; @@ -2158,22 +1961,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The name of the StorageLayout resource.
      * Format: `projects/{project}/buckets/{bucket}/storageLayout`
      * 
* * 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 { @@ -2181,37 +1983,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The name of the StorageLayout resource.
      * Format: `projects/{project}/buckets/{bucket}/storageLayout`
      * 
* * 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. The name of the StorageLayout resource.
      * Format: `projects/{project}/buckets/{bucket}/storageLayout`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2221,22 +2016,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The name of the StorageLayout resource.
      * Format: `projects/{project}/buckets/{bucket}/storageLayout`
      * 
* * 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; @@ -2246,20 +2037,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object location_ = ""; /** - * - * *
      * Output only. The location of the bucket.
      * 
* * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2268,21 +2057,20 @@ public java.lang.String getLocation() { } } /** - * - * *
      * Output only. The location of the bucket.
      * 
* * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2290,35 +2078,28 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
      * Output only. The location of the bucket.
      * 
* * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. The location of the bucket.
      * 
* * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLocation() { @@ -2328,21 +2109,17 @@ public Builder clearLocation() { return this; } /** - * - * *
      * Output only. The location of the bucket.
      * 
* * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ |= 0x00000002; @@ -2352,21 +2129,19 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { private java.lang.Object locationType_ = ""; /** - * - * *
      * Output only. The location type of the bucket (region, dual-region,
      * multi-region, etc).
      * 
* * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The locationType. */ public java.lang.String getLocationType() { java.lang.Object ref = locationType_; 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(); locationType_ = s; return s; @@ -2375,22 +2150,21 @@ public java.lang.String getLocationType() { } } /** - * - * *
      * Output only. The location type of the bucket (region, dual-region,
      * multi-region, etc).
      * 
* * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for locationType. */ - public com.google.protobuf.ByteString getLocationTypeBytes() { + public com.google.protobuf.ByteString + getLocationTypeBytes() { java.lang.Object ref = locationType_; 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); locationType_ = b; return b; } else { @@ -2398,37 +2172,30 @@ public com.google.protobuf.ByteString getLocationTypeBytes() { } } /** - * - * *
      * Output only. The location type of the bucket (region, dual-region,
      * multi-region, etc).
      * 
* * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The locationType to set. * @return This builder for chaining. */ - public Builder setLocationType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } locationType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. The location type of the bucket (region, dual-region,
      * multi-region, etc).
      * 
* * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLocationType() { @@ -2438,22 +2205,18 @@ public Builder clearLocationType() { return this; } /** - * - * *
      * Output only. The location type of the bucket (region, dual-region,
      * multi-region, etc).
      * 
* * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for locationType to set. * @return This builder for chaining. */ - public Builder setLocationTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); locationType_ = value; bitField0_ |= 0x00000004; @@ -2461,68 +2224,46 @@ public Builder setLocationTypeBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - customPlacementConfig_; + private com.google.storage.control.v2.StorageLayout.CustomPlacementConfig customPlacementConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> - customPlacementConfigBuilder_; + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> customPlacementConfigBuilder_; /** - * - * *
      * Output only. The data placement configuration for custom dual region. If
      * there is no configuration, this is not a custom dual region bucket.
      * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customPlacementConfig field is set. */ public boolean hasCustomPlacementConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. The data placement configuration for custom dual region. If
      * there is no configuration, this is not a custom dual region bucket.
      * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customPlacementConfig. */ - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - getCustomPlacementConfig() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getCustomPlacementConfig() { if (customPlacementConfigBuilder_ == null) { - return customPlacementConfig_ == null - ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() - : customPlacementConfig_; + return customPlacementConfig_ == null ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; } else { return customPlacementConfigBuilder_.getMessage(); } } /** - * - * *
      * Output only. The data placement configuration for custom dual region. If
      * there is no configuration, this is not a custom dual region bucket.
      * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCustomPlacementConfig( - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { + public Builder setCustomPlacementConfig(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { if (customPlacementConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2536,16 +2277,12 @@ public Builder setCustomPlacementConfig( return this; } /** - * - * *
      * Output only. The data placement configuration for custom dual region. If
      * there is no configuration, this is not a custom dual region bucket.
      * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCustomPlacementConfig( com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder builderForValue) { @@ -2559,25 +2296,18 @@ public Builder setCustomPlacementConfig( return this; } /** - * - * *
      * Output only. The data placement configuration for custom dual region. If
      * there is no configuration, this is not a custom dual region bucket.
      * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeCustomPlacementConfig( - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { + public Builder mergeCustomPlacementConfig(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { if (customPlacementConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && customPlacementConfig_ != null - && customPlacementConfig_ - != com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + customPlacementConfig_ != null && + customPlacementConfig_ != com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance()) { getCustomPlacementConfigBuilder().mergeFrom(value); } else { customPlacementConfig_ = value; @@ -2585,21 +2315,19 @@ public Builder mergeCustomPlacementConfig( } else { customPlacementConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (customPlacementConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** - * - * *
      * Output only. The data placement configuration for custom dual region. If
      * there is no configuration, this is not a custom dual region bucket.
      * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCustomPlacementConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2612,136 +2340,96 @@ public Builder clearCustomPlacementConfig() { return this; } /** - * - * *
      * Output only. The data placement configuration for custom dual region. If
      * there is no configuration, this is not a custom dual region bucket.
      * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder - getCustomPlacementConfigBuilder() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder getCustomPlacementConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCustomPlacementConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The data placement configuration for custom dual region. If
      * there is no configuration, this is not a custom dual region bucket.
      * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder - getCustomPlacementConfigOrBuilder() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder() { if (customPlacementConfigBuilder_ != null) { return customPlacementConfigBuilder_.getMessageOrBuilder(); } else { - return customPlacementConfig_ == null - ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() - : customPlacementConfig_; + return customPlacementConfig_ == null ? + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; } } /** - * - * *
      * Output only. The data placement configuration for custom dual region. If
      * there is no configuration, this is not a custom dual region bucket.
      * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> getCustomPlacementConfigFieldBuilder() { if (customPlacementConfigBuilder_ == null) { - customPlacementConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder>( - getCustomPlacementConfig(), getParentForChildren(), isClean()); + customPlacementConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder>( + getCustomPlacementConfig(), + getParentForChildren(), + isClean()); customPlacementConfig_ = null; } return customPlacementConfigBuilder_; } - private com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - hierarchicalNamespace_; + private com.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchicalNamespace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> - hierarchicalNamespaceBuilder_; + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> hierarchicalNamespaceBuilder_; /** - * - * *
      * Output only. The bucket's hierarchical namespace configuration. If there is
      * no configuration, the hierarchical namespace is disabled.
      * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hierarchicalNamespace field is set. */ public boolean hasHierarchicalNamespace() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. The bucket's hierarchical namespace configuration. If there is
      * no configuration, the hierarchical namespace is disabled.
      * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hierarchicalNamespace. */ - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - getHierarchicalNamespace() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getHierarchicalNamespace() { if (hierarchicalNamespaceBuilder_ == null) { - return hierarchicalNamespace_ == null - ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + return hierarchicalNamespace_ == null ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } else { return hierarchicalNamespaceBuilder_.getMessage(); } } /** - * - * *
      * Output only. The bucket's hierarchical namespace configuration. If there is
      * no configuration, the hierarchical namespace is disabled.
      * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setHierarchicalNamespace( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { + public Builder setHierarchicalNamespace(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { if (hierarchicalNamespaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2755,16 +2443,12 @@ public Builder setHierarchicalNamespace( return this; } /** - * - * *
      * Output only. The bucket's hierarchical namespace configuration. If there is
      * no configuration, the hierarchical namespace is disabled.
      * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setHierarchicalNamespace( com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder builderForValue) { @@ -2778,25 +2462,18 @@ public Builder setHierarchicalNamespace( return this; } /** - * - * *
      * Output only. The bucket's hierarchical namespace configuration. If there is
      * no configuration, the hierarchical namespace is disabled.
      * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeHierarchicalNamespace( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { + public Builder mergeHierarchicalNamespace(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { if (hierarchicalNamespaceBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && hierarchicalNamespace_ != null - && hierarchicalNamespace_ - != com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + hierarchicalNamespace_ != null && + hierarchicalNamespace_ != com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance()) { getHierarchicalNamespaceBuilder().mergeFrom(value); } else { hierarchicalNamespace_ = value; @@ -2804,21 +2481,19 @@ public Builder mergeHierarchicalNamespace( } else { hierarchicalNamespaceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (hierarchicalNamespace_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** - * - * *
      * Output only. The bucket's hierarchical namespace configuration. If there is
      * no configuration, the hierarchical namespace is disabled.
      * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearHierarchicalNamespace() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2831,76 +2506,58 @@ public Builder clearHierarchicalNamespace() { return this; } /** - * - * *
      * Output only. The bucket's hierarchical namespace configuration. If there is
      * no configuration, the hierarchical namespace is disabled.
      * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder - getHierarchicalNamespaceBuilder() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder getHierarchicalNamespaceBuilder() { bitField0_ |= 0x00000010; onChanged(); return getHierarchicalNamespaceFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The bucket's hierarchical namespace configuration. If there is
      * no configuration, the hierarchical namespace is disabled.
      * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder - getHierarchicalNamespaceOrBuilder() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder() { if (hierarchicalNamespaceBuilder_ != null) { return hierarchicalNamespaceBuilder_.getMessageOrBuilder(); } else { - return hierarchicalNamespace_ == null - ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + return hierarchicalNamespace_ == null ? + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } } /** - * - * *
      * Output only. The bucket's hierarchical namespace configuration. If there is
      * no configuration, the hierarchical namespace is disabled.
      * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> getHierarchicalNamespaceFieldBuilder() { if (hierarchicalNamespaceBuilder_ == null) { - hierarchicalNamespaceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder>( - getHierarchicalNamespace(), getParentForChildren(), isClean()); + hierarchicalNamespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder>( + getHierarchicalNamespace(), + getParentForChildren(), + isClean()); hierarchicalNamespace_ = null; } return hierarchicalNamespaceBuilder_; } - @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); } @@ -2910,12 +2567,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.StorageLayout) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.StorageLayout) private static final com.google.storage.control.v2.StorageLayout DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.StorageLayout(); } @@ -2924,27 +2581,27 @@ public static com.google.storage.control.v2.StorageLayout getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageLayout parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 StorageLayout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2959,4 +2616,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.StorageLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java similarity index 100% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java similarity index 63% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java index 8ca9e3bfa4..316cb8d2d0 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java @@ -1,194 +1,134 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.control.v2; -public interface StorageLayoutOrBuilder - extends +public interface StorageLayoutOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.StorageLayout) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the StorageLayout resource.
    * Format: `projects/{project}/buckets/{bucket}/storageLayout`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The name of the StorageLayout resource.
    * Format: `projects/{project}/buckets/{bucket}/storageLayout`
    * 
* * 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. The location of the bucket.
    * 
* * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
    * Output only. The location of the bucket.
    * 
* * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
    * Output only. The location type of the bucket (region, dual-region,
    * multi-region, etc).
    * 
* * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The locationType. */ java.lang.String getLocationType(); /** - * - * *
    * Output only. The location type of the bucket (region, dual-region,
    * multi-region, etc).
    * 
* * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for locationType. */ - com.google.protobuf.ByteString getLocationTypeBytes(); + com.google.protobuf.ByteString + getLocationTypeBytes(); /** - * - * *
    * Output only. The data placement configuration for custom dual region. If
    * there is no configuration, this is not a custom dual region bucket.
    * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customPlacementConfig field is set. */ boolean hasCustomPlacementConfig(); /** - * - * *
    * Output only. The data placement configuration for custom dual region. If
    * there is no configuration, this is not a custom dual region bucket.
    * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customPlacementConfig. */ com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getCustomPlacementConfig(); /** - * - * *
    * Output only. The data placement configuration for custom dual region. If
    * there is no configuration, this is not a custom dual region bucket.
    * 
* - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder - getCustomPlacementConfigOrBuilder(); + com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder(); /** - * - * *
    * Output only. The bucket's hierarchical namespace configuration. If there is
    * no configuration, the hierarchical namespace is disabled.
    * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hierarchicalNamespace field is set. */ boolean hasHierarchicalNamespace(); /** - * - * *
    * Output only. The bucket's hierarchical namespace configuration. If there is
    * no configuration, the hierarchical namespace is disabled.
    * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hierarchicalNamespace. */ com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getHierarchicalNamespace(); /** - * - * *
    * Output only. The bucket's hierarchical namespace configuration. If there is
    * no configuration, the hierarchical namespace is disabled.
    * 
* - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder - getHierarchicalNamespaceOrBuilder(); + com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto similarity index 100% rename from proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java similarity index 75% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java index f1f1f743bd..8ef3542ab7 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java @@ -1,79 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for BidiWriteObject.
  * 
* * Protobuf type {@code google.storage.v2.BidiWriteObjectRequest} */ -public final class BidiWriteObjectRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BidiWriteObjectRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.BidiWriteObjectRequest) BidiWriteObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BidiWriteObjectRequest.newBuilder() to construct. private BidiWriteObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BidiWriteObjectRequest() {} + private BidiWriteObjectRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BidiWriteObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectRequest.class, - com.google.storage.v2.BidiWriteObjectRequest.Builder.class); + com.google.storage.v2.BidiWriteObjectRequest.class, com.google.storage.v2.BidiWriteObjectRequest.Builder.class); } + private int bitField0_; private int firstMessageCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object firstMessage_; - public enum FirstMessageCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UPLOAD_ID(1), WRITE_OBJECT_SPEC(2), FIRSTMESSAGE_NOT_SET(0); private final int value; - private FirstMessageCase(int value) { this.value = value; } @@ -89,39 +69,32 @@ public static FirstMessageCase valueOf(int value) { public static FirstMessageCase forNumber(int value) { switch (value) { - case 1: - return UPLOAD_ID; - case 2: - return WRITE_OBJECT_SPEC; - case 0: - return FIRSTMESSAGE_NOT_SET; - default: - return null; + case 1: return UPLOAD_ID; + case 2: return WRITE_OBJECT_SPEC; + case 0: return FIRSTMESSAGE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FirstMessageCase getFirstMessageCase() { - return FirstMessageCase.forNumber(firstMessageCase_); + public FirstMessageCase + getFirstMessageCase() { + return FirstMessageCase.forNumber( + firstMessageCase_); } private int dataCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object data_; - public enum DataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CHECKSUMMED_DATA(4), DATA_NOT_SET(0); private final int value; - private DataCase(int value) { this.value = value; } @@ -137,50 +110,42 @@ public static DataCase valueOf(int value) { public static DataCase forNumber(int value) { switch (value) { - case 4: - return CHECKSUMMED_DATA; - case 0: - return DATA_NOT_SET; - default: - return null; + case 4: return CHECKSUMMED_DATA; + case 0: return DATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public static final int UPLOAD_ID_FIELD_NUMBER = 1; /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return Whether the uploadId field is set. */ public boolean hasUploadId() { return firstMessageCase_ == 1; } /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return The uploadId. */ public java.lang.String getUploadId() { @@ -191,7 +156,8 @@ public java.lang.String getUploadId() { 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(); if (firstMessageCase_ == 1) { firstMessage_ = s; @@ -200,25 +166,24 @@ public java.lang.String getUploadId() { } } /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return The bytes for uploadId. */ - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = ""; if (firstMessageCase_ == 1) { ref = firstMessage_; } 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); if (firstMessageCase_ == 1) { firstMessage_ = b; } @@ -230,15 +195,12 @@ public com.google.protobuf.ByteString getUploadIdBytes() { public static final int WRITE_OBJECT_SPEC_FIELD_NUMBER = 2; /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
    * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return Whether the writeObjectSpec field is set. */ @java.lang.Override @@ -246,27 +208,22 @@ public boolean hasWriteObjectSpec() { return firstMessageCase_ == 2; } /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
    * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return The writeObjectSpec. */ @java.lang.Override public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { if (firstMessageCase_ == 2) { - return (com.google.storage.v2.WriteObjectSpec) firstMessage_; + return (com.google.storage.v2.WriteObjectSpec) firstMessage_; } return com.google.storage.v2.WriteObjectSpec.getDefaultInstance(); } /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
@@ -277,7 +234,7 @@ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() {
   @java.lang.Override
   public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder() {
     if (firstMessageCase_ == 2) {
-      return (com.google.storage.v2.WriteObjectSpec) firstMessage_;
+       return (com.google.storage.v2.WriteObjectSpec) firstMessage_;
     }
     return com.google.storage.v2.WriteObjectSpec.getDefaultInstance();
   }
@@ -285,8 +242,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
   public static final int WRITE_OFFSET_FIELD_NUMBER = 3;
   private long writeOffset_ = 0L;
   /**
-   *
-   *
    * 
    * Required. The offset from the beginning of the object at which the data
    * should be written.
@@ -304,7 +259,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
    * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ @java.lang.Override @@ -314,15 +268,12 @@ public long getWriteOffset() { public static final int CHECKSUMMED_DATA_FIELD_NUMBER = 4; /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -330,27 +281,22 @@ public boolean hasChecksummedData() { return dataCase_ == 4; } /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ @java.lang.Override public com.google.storage.v2.ChecksummedData getChecksummedData() { if (dataCase_ == 4) { - return (com.google.storage.v2.ChecksummedData) data_; + return (com.google.storage.v2.ChecksummedData) data_; } return com.google.storage.v2.ChecksummedData.getDefaultInstance(); } /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
@@ -361,7 +307,7 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() {
   @java.lang.Override
   public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder() {
     if (dataCase_ == 4) {
-      return (com.google.storage.v2.ChecksummedData) data_;
+       return (com.google.storage.v2.ChecksummedData) data_;
     }
     return com.google.storage.v2.ChecksummedData.getDefaultInstance();
   }
@@ -369,8 +315,6 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
   public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 6;
   private com.google.storage.v2.ObjectChecksums objectChecksums_;
   /**
-   *
-   *
    * 
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -379,16 +323,13 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return Whether the objectChecksums field is set. */ @java.lang.Override public boolean hasObjectChecksums() { - return objectChecksums_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -397,18 +338,13 @@ public boolean hasObjectChecksums() {
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -420,16 +356,12 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
    */
   @java.lang.Override
   public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
-    return objectChecksums_ == null
-        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-        : objectChecksums_;
+    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
   }
 
   public static final int STATE_LOOKUP_FIELD_NUMBER = 7;
   private boolean stateLookup_ = false;
   /**
-   *
-   *
    * 
    * For each BidiWriteObjectRequest where state_lookup is `true` or the client
    * closes the stream, the service will send a BidiWriteObjectResponse
@@ -437,11 +369,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
    * covers all the bytes the server has persisted thus far and can be used to
    * decide what data is safe for the client to drop. Note that the object's
    * current size reported by the BidiWriteObjectResponse may lag behind the
-   * number of bytes written by the client.
+   * number of bytes written by the client. This field is ignored if
+   * `finish_write` is set to true.
    * 
* * bool state_lookup = 7; - * * @return The stateLookup. */ @java.lang.Override @@ -452,17 +384,16 @@ public boolean getStateLookup() { public static final int FLUSH_FIELD_NUMBER = 8; private boolean flush_ = false; /** - * - * *
    * Persists data written on the stream, up to and including the current
    * message, to permanent storage. This option should be used sparingly as it
    * may reduce performance. Ongoing writes will periodically be persisted on
-   * the server even when `flush` is not set.
+   * the server even when `flush` is not set. This field is ignored if
+   * `finish_write` is set to true since there's no need to checkpoint or flush
+   * if this message completes the write.
    * 
* * bool flush = 8; - * * @return The flush. */ @java.lang.Override @@ -473,8 +404,6 @@ public boolean getFlush() { public static final int FINISH_WRITE_FIELD_NUMBER = 9; private boolean finishWrite_ = false; /** - * - * *
    * If `true`, this indicates that the write is complete. Sending any
    * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -485,7 +414,6 @@ public boolean getFlush() {
    * 
* * bool finish_write = 9; - * * @return The finishWrite. */ @java.lang.Override @@ -496,40 +424,30 @@ public boolean getFinishWrite() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 10; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { - return commonObjectRequestParams_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -537,15 +455,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -557,7 +471,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 (firstMessageCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firstMessage_); } @@ -570,7 +485,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataCase_ == 4) { output.writeMessage(4, (com.google.storage.v2.ChecksummedData) data_); } - if (objectChecksums_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getObjectChecksums()); } if (stateLookup_ != false) { @@ -582,7 +497,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (finishWrite_ != false) { output.writeBool(9, finishWrite_); } - if (commonObjectRequestParams_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(10, getCommonObjectRequestParams()); } getUnknownFields().writeTo(output); @@ -598,34 +513,36 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firstMessage_); } if (firstMessageCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.storage.v2.WriteObjectSpec) firstMessage_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.storage.v2.WriteObjectSpec) firstMessage_); } if (writeOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, writeOffset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, writeOffset_); } if (dataCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.storage.v2.ChecksummedData) data_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.storage.v2.ChecksummedData) data_); } - if (objectChecksums_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getObjectChecksums()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getObjectChecksums()); } if (stateLookup_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, stateLookup_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, stateLookup_); } if (flush_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, flush_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, flush_); } if (finishWrite_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, finishWrite_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, finishWrite_); } - if (commonObjectRequestParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getCommonObjectRequestParams()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -635,34 +552,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.storage.v2.BidiWriteObjectRequest)) { return super.equals(obj); } - com.google.storage.v2.BidiWriteObjectRequest other = - (com.google.storage.v2.BidiWriteObjectRequest) obj; + com.google.storage.v2.BidiWriteObjectRequest other = (com.google.storage.v2.BidiWriteObjectRequest) obj; - if (getWriteOffset() != other.getWriteOffset()) return false; + if (getWriteOffset() + != other.getWriteOffset()) return false; if (hasObjectChecksums() != other.hasObjectChecksums()) return false; if (hasObjectChecksums()) { - if (!getObjectChecksums().equals(other.getObjectChecksums())) return false; - } - if (getStateLookup() != other.getStateLookup()) return false; - if (getFlush() != other.getFlush()) return false; - if (getFinishWrite() != other.getFinishWrite()) return false; + if (!getObjectChecksums() + .equals(other.getObjectChecksums())) return false; + } + if (getStateLookup() + != other.getStateLookup()) return false; + if (getFlush() + != other.getFlush()) return false; + if (getFinishWrite() + != other.getFinishWrite()) return false; if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getFirstMessageCase().equals(other.getFirstMessageCase())) return false; switch (firstMessageCase_) { case 1: - if (!getUploadId().equals(other.getUploadId())) return false; + if (!getUploadId() + .equals(other.getUploadId())) return false; break; case 2: - if (!getWriteObjectSpec().equals(other.getWriteObjectSpec())) return false; + if (!getWriteObjectSpec() + .equals(other.getWriteObjectSpec())) return false; break; case 0: default: @@ -670,7 +593,8 @@ public boolean equals(final java.lang.Object obj) { if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 4: - if (!getChecksummedData().equals(other.getChecksummedData())) return false; + if (!getChecksummedData() + .equals(other.getChecksummedData())) return false; break; case 0: default: @@ -687,17 +611,21 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WRITE_OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWriteOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWriteOffset()); if (hasObjectChecksums()) { hash = (37 * hash) + OBJECT_CHECKSUMS_FIELD_NUMBER; hash = (53 * hash) + getObjectChecksums().hashCode(); } hash = (37 * hash) + STATE_LOOKUP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStateLookup()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStateLookup()); hash = (37 * hash) + FLUSH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFlush()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFlush()); hash = (37 * hash) + FINISH_WRITE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFinishWrite()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFinishWrite()); if (hasCommonObjectRequestParams()) { hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getCommonObjectRequestParams().hashCode(); @@ -727,136 +655,139 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.BidiWriteObjectRequest 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.storage.v2.BidiWriteObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.BidiWriteObjectRequest 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.storage.v2.BidiWriteObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.BidiWriteObjectRequest 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.storage.v2.BidiWriteObjectRequest 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.storage.v2.BidiWriteObjectRequest 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.storage.v2.BidiWriteObjectRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.BidiWriteObjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.BidiWriteObjectRequest 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.storage.v2.BidiWriteObjectRequest 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.storage.v2.BidiWriteObjectRequest 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.storage.v2.BidiWriteObjectRequest 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 BidiWriteObject.
    * 
* * Protobuf type {@code google.storage.v2.BidiWriteObjectRequest} */ - 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.storage.v2.BidiWriteObjectRequest) com.google.storage.v2.BidiWriteObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectRequest.class, - com.google.storage.v2.BidiWriteObjectRequest.Builder.class); + com.google.storage.v2.BidiWriteObjectRequest.class, com.google.storage.v2.BidiWriteObjectRequest.Builder.class); } // Construct using com.google.storage.v2.BidiWriteObjectRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getObjectChecksumsFieldBuilder(); + getCommonObjectRequestParamsFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -889,9 +820,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; } @java.lang.Override @@ -910,11 +841,8 @@ public com.google.storage.v2.BidiWriteObjectRequest build() { @java.lang.Override public com.google.storage.v2.BidiWriteObjectRequest buildPartial() { - com.google.storage.v2.BidiWriteObjectRequest result = - new com.google.storage.v2.BidiWriteObjectRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.BidiWriteObjectRequest result = new com.google.storage.v2.BidiWriteObjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -925,9 +853,12 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectRequest result) if (((from_bitField0_ & 0x00000004) != 0)) { result.writeOffset_ = writeOffset_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.stateLookup_ = stateLookup_; @@ -939,22 +870,25 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectRequest result) result.finishWrite_ = finishWrite_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectRequest result) { result.firstMessageCase_ = firstMessageCase_; result.firstMessage_ = this.firstMessage_; - if (firstMessageCase_ == 2 && writeObjectSpecBuilder_ != null) { + if (firstMessageCase_ == 2 && + writeObjectSpecBuilder_ != null) { result.firstMessage_ = writeObjectSpecBuilder_.build(); } result.dataCase_ = dataCase_; result.data_ = this.data_; - if (dataCase_ == 4 && checksummedDataBuilder_ != null) { + if (dataCase_ == 4 && + checksummedDataBuilder_ != null) { result.data_ = checksummedDataBuilder_.build(); } } @@ -963,39 +897,38 @@ private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectRequest 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.storage.v2.BidiWriteObjectRequest) { - return mergeFrom((com.google.storage.v2.BidiWriteObjectRequest) other); + return mergeFrom((com.google.storage.v2.BidiWriteObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -1023,33 +956,28 @@ public Builder mergeFrom(com.google.storage.v2.BidiWriteObjectRequest other) { mergeCommonObjectRequestParams(other.getCommonObjectRequestParams()); } switch (other.getFirstMessageCase()) { - case UPLOAD_ID: - { - firstMessageCase_ = 1; - firstMessage_ = other.firstMessage_; - onChanged(); - break; - } - case WRITE_OBJECT_SPEC: - { - mergeWriteObjectSpec(other.getWriteObjectSpec()); - break; - } - case FIRSTMESSAGE_NOT_SET: - { - break; - } + case UPLOAD_ID: { + firstMessageCase_ = 1; + firstMessage_ = other.firstMessage_; + onChanged(); + break; + } + case WRITE_OBJECT_SPEC: { + mergeWriteObjectSpec(other.getWriteObjectSpec()); + break; + } + case FIRSTMESSAGE_NOT_SET: { + break; + } } switch (other.getDataCase()) { - case CHECKSUMMED_DATA: - { - mergeChecksummedData(other.getChecksummedData()); - break; - } - case DATA_NOT_SET: - { - break; - } + case CHECKSUMMED_DATA: { + mergeChecksummedData(other.getChecksummedData()); + break; + } + case DATA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1077,69 +1005,66 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - firstMessageCase_ = 1; - firstMessage_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getWriteObjectSpecFieldBuilder().getBuilder(), extensionRegistry); - firstMessageCase_ = 2; - break; - } // case 18 - case 24: - { - writeOffset_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getChecksummedDataFieldBuilder().getBuilder(), extensionRegistry); - dataCase_ = 4; - break; - } // case 34 - case 50: - { - input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: - { - stateLookup_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 64: - { - flush_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 72: - { - finishWrite_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + firstMessageCase_ = 1; + firstMessage_ = s; + break; + } // case 10 + case 18: { + input.readMessage( + getWriteObjectSpecFieldBuilder().getBuilder(), + extensionRegistry); + firstMessageCase_ = 2; + break; + } // case 18 + case 24: { + writeOffset_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getChecksummedDataFieldBuilder().getBuilder(), + extensionRegistry); + dataCase_ = 4; + break; + } // case 34 + case 50: { + input.readMessage( + getObjectChecksumsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: { + stateLookup_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: { + flush_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: { + finishWrite_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + 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) { @@ -1149,12 +1074,12 @@ public Builder mergeFrom( } // finally return this; } - private int firstMessageCase_ = 0; private java.lang.Object firstMessage_; - - public FirstMessageCase getFirstMessageCase() { - return FirstMessageCase.forNumber(firstMessageCase_); + public FirstMessageCase + getFirstMessageCase() { + return FirstMessageCase.forNumber( + firstMessageCase_); } public Builder clearFirstMessage() { @@ -1166,9 +1091,10 @@ public Builder clearFirstMessage() { private int dataCase_ = 0; private java.lang.Object data_; - - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public Builder clearData() { @@ -1181,15 +1107,12 @@ public Builder clearData() { private int bitField0_; /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @return Whether the uploadId field is set. */ @java.lang.Override @@ -1197,15 +1120,12 @@ public boolean hasUploadId() { return firstMessageCase_ == 1; } /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @return The uploadId. */ @java.lang.Override @@ -1215,7 +1135,8 @@ public java.lang.String getUploadId() { ref = firstMessage_; } 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(); if (firstMessageCase_ == 1) { firstMessage_ = s; @@ -1226,26 +1147,25 @@ public java.lang.String getUploadId() { } } /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @return The bytes for uploadId. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = ""; if (firstMessageCase_ == 1) { ref = firstMessage_; } 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); if (firstMessageCase_ == 1) { firstMessage_ = b; } @@ -1255,37 +1175,30 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } } /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @param value The uploadId to set. * @return This builder for chaining. */ - public Builder setUploadId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } firstMessageCase_ = 1; firstMessage_ = value; onChanged(); return this; } /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @return This builder for chaining. */ public Builder clearUploadId() { @@ -1297,22 +1210,18 @@ public Builder clearUploadId() { return this; } /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @param value The bytes for uploadId to set. * @return This builder for chaining. */ - public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); firstMessageCase_ = 1; firstMessage_ = value; @@ -1321,20 +1230,14 @@ public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.WriteObjectSpec, - com.google.storage.v2.WriteObjectSpec.Builder, - com.google.storage.v2.WriteObjectSpecOrBuilder> - writeObjectSpecBuilder_; + com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> writeObjectSpecBuilder_; /** - * - * *
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
      * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return Whether the writeObjectSpec field is set. */ @java.lang.Override @@ -1342,15 +1245,12 @@ public boolean hasWriteObjectSpec() { return firstMessageCase_ == 2; } /** - * - * *
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
      * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return The writeObjectSpec. */ @java.lang.Override @@ -1368,8 +1268,6 @@ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { } } /** - * - * *
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1391,8 +1289,6 @@ public Builder setWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1412,8 +1308,6 @@ public Builder setWriteObjectSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1423,13 +1317,10 @@ public Builder setWriteObjectSpec(
      */
     public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) {
       if (writeObjectSpecBuilder_ == null) {
-        if (firstMessageCase_ == 2
-            && firstMessage_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) {
-          firstMessage_ =
-              com.google.storage.v2.WriteObjectSpec.newBuilder(
-                      (com.google.storage.v2.WriteObjectSpec) firstMessage_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (firstMessageCase_ == 2 &&
+            firstMessage_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) {
+          firstMessage_ = com.google.storage.v2.WriteObjectSpec.newBuilder((com.google.storage.v2.WriteObjectSpec) firstMessage_)
+              .mergeFrom(value).buildPartial();
         } else {
           firstMessage_ = value;
         }
@@ -1445,8 +1336,6 @@ public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value)
       return this;
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1471,8 +1360,6 @@ public Builder clearWriteObjectSpec() {
       return this;
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1484,8 +1371,6 @@ public com.google.storage.v2.WriteObjectSpec.Builder getWriteObjectSpecBuilder()
       return getWriteObjectSpecFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1505,8 +1390,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1515,19 +1398,14 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
      * .google.storage.v2.WriteObjectSpec write_object_spec = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.WriteObjectSpec,
-            com.google.storage.v2.WriteObjectSpec.Builder,
-            com.google.storage.v2.WriteObjectSpecOrBuilder>
+        com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> 
         getWriteObjectSpecFieldBuilder() {
       if (writeObjectSpecBuilder_ == null) {
         if (!(firstMessageCase_ == 2)) {
           firstMessage_ = com.google.storage.v2.WriteObjectSpec.getDefaultInstance();
         }
-        writeObjectSpecBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.WriteObjectSpec,
-                com.google.storage.v2.WriteObjectSpec.Builder,
-                com.google.storage.v2.WriteObjectSpecOrBuilder>(
+        writeObjectSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder>(
                 (com.google.storage.v2.WriteObjectSpec) firstMessage_,
                 getParentForChildren(),
                 isClean());
@@ -1538,10 +1416,8 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
       return writeObjectSpecBuilder_;
     }
 
-    private long writeOffset_;
+    private long writeOffset_ ;
     /**
-     *
-     *
      * 
      * Required. The offset from the beginning of the object at which the data
      * should be written.
@@ -1559,7 +1435,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ @java.lang.Override @@ -1567,8 +1442,6 @@ public long getWriteOffset() { return writeOffset_; } /** - * - * *
      * Required. The offset from the beginning of the object at which the data
      * should be written.
@@ -1586,7 +1459,6 @@ public long getWriteOffset() {
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The writeOffset to set. * @return This builder for chaining. */ @@ -1598,8 +1470,6 @@ public Builder setWriteOffset(long value) { return this; } /** - * - * *
      * Required. The offset from the beginning of the object at which the data
      * should be written.
@@ -1617,7 +1487,6 @@ public Builder setWriteOffset(long value) {
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWriteOffset() { @@ -1628,20 +1497,14 @@ public Builder clearWriteOffset() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ChecksummedData, - com.google.storage.v2.ChecksummedData.Builder, - com.google.storage.v2.ChecksummedDataOrBuilder> - checksummedDataBuilder_; + com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> checksummedDataBuilder_; /** - * - * *
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
      * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -1649,15 +1512,12 @@ public boolean hasChecksummedData() { return dataCase_ == 4; } /** - * - * *
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
      * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ @java.lang.Override @@ -1675,8 +1535,6 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() { } } /** - * - * *
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1698,8 +1556,6 @@ public Builder setChecksummedData(com.google.storage.v2.ChecksummedData value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1719,8 +1575,6 @@ public Builder setChecksummedData(
       return this;
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1730,12 +1584,10 @@ public Builder setChecksummedData(
      */
     public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value) {
       if (checksummedDataBuilder_ == null) {
-        if (dataCase_ == 4 && data_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
-          data_ =
-              com.google.storage.v2.ChecksummedData.newBuilder(
-                      (com.google.storage.v2.ChecksummedData) data_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (dataCase_ == 4 &&
+            data_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
+          data_ = com.google.storage.v2.ChecksummedData.newBuilder((com.google.storage.v2.ChecksummedData) data_)
+              .mergeFrom(value).buildPartial();
         } else {
           data_ = value;
         }
@@ -1751,8 +1603,6 @@ public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1777,8 +1627,6 @@ public Builder clearChecksummedData() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1790,8 +1638,6 @@ public com.google.storage.v2.ChecksummedData.Builder getChecksummedDataBuilder()
       return getChecksummedDataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1811,8 +1657,6 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1821,20 +1665,17 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
      * .google.storage.v2.ChecksummedData checksummed_data = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ChecksummedData,
-            com.google.storage.v2.ChecksummedData.Builder,
-            com.google.storage.v2.ChecksummedDataOrBuilder>
+        com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> 
         getChecksummedDataFieldBuilder() {
       if (checksummedDataBuilder_ == null) {
         if (!(dataCase_ == 4)) {
           data_ = com.google.storage.v2.ChecksummedData.getDefaultInstance();
         }
-        checksummedDataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.ChecksummedData,
-                com.google.storage.v2.ChecksummedData.Builder,
-                com.google.storage.v2.ChecksummedDataOrBuilder>(
-                (com.google.storage.v2.ChecksummedData) data_, getParentForChildren(), isClean());
+        checksummedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder>(
+                (com.google.storage.v2.ChecksummedData) data_,
+                getParentForChildren(),
+                isClean());
         data_ = null;
       }
       dataCase_ = 4;
@@ -1844,13 +1685,8 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
 
     private com.google.storage.v2.ObjectChecksums objectChecksums_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ObjectChecksums,
-            com.google.storage.v2.ObjectChecksums.Builder,
-            com.google.storage.v2.ObjectChecksumsOrBuilder>
-        objectChecksumsBuilder_;
+        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_;
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1859,15 +1695,12 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1876,21 +1709,16 @@ public boolean hasObjectChecksums() {
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1914,8 +1742,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1937,8 +1763,6 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1950,9 +1774,9 @@ public Builder setObjectChecksums(
      */
     public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       if (objectChecksumsBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && objectChecksums_ != null
-            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          objectChecksums_ != null &&
+          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
           getObjectChecksumsBuilder().mergeFrom(value);
         } else {
           objectChecksums_ = value;
@@ -1960,13 +1784,13 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
       } else {
         objectChecksumsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000010;
-      onChanged();
+      if (objectChecksums_ != null) {
+        bitField0_ |= 0x00000010;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1987,8 +1811,6 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -2004,8 +1826,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
       return getObjectChecksumsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -2019,14 +1839,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
       if (objectChecksumsBuilder_ != null) {
         return objectChecksumsBuilder_.getMessageOrBuilder();
       } else {
-        return objectChecksums_ == null
-            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-            : objectChecksums_;
+        return objectChecksums_ == null ?
+            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
       }
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -2037,26 +1854,21 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
      * .google.storage.v2.ObjectChecksums object_checksums = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ObjectChecksums,
-            com.google.storage.v2.ObjectChecksums.Builder,
-            com.google.storage.v2.ObjectChecksumsOrBuilder>
+        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
         getObjectChecksumsFieldBuilder() {
       if (objectChecksumsBuilder_ == null) {
-        objectChecksumsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.ObjectChecksums,
-                com.google.storage.v2.ObjectChecksums.Builder,
-                com.google.storage.v2.ObjectChecksumsOrBuilder>(
-                getObjectChecksums(), getParentForChildren(), isClean());
+        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
+                getObjectChecksums(),
+                getParentForChildren(),
+                isClean());
         objectChecksums_ = null;
       }
       return objectChecksumsBuilder_;
     }
 
-    private boolean stateLookup_;
+    private boolean stateLookup_ ;
     /**
-     *
-     *
      * 
      * For each BidiWriteObjectRequest where state_lookup is `true` or the client
      * closes the stream, the service will send a BidiWriteObjectResponse
@@ -2064,11 +1876,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
      * covers all the bytes the server has persisted thus far and can be used to
      * decide what data is safe for the client to drop. Note that the object's
      * current size reported by the BidiWriteObjectResponse may lag behind the
-     * number of bytes written by the client.
+     * number of bytes written by the client. This field is ignored if
+     * `finish_write` is set to true.
      * 
* * bool state_lookup = 7; - * * @return The stateLookup. */ @java.lang.Override @@ -2076,8 +1888,6 @@ public boolean getStateLookup() { return stateLookup_; } /** - * - * *
      * For each BidiWriteObjectRequest where state_lookup is `true` or the client
      * closes the stream, the service will send a BidiWriteObjectResponse
@@ -2085,11 +1895,11 @@ public boolean getStateLookup() {
      * covers all the bytes the server has persisted thus far and can be used to
      * decide what data is safe for the client to drop. Note that the object's
      * current size reported by the BidiWriteObjectResponse may lag behind the
-     * number of bytes written by the client.
+     * number of bytes written by the client. This field is ignored if
+     * `finish_write` is set to true.
      * 
* * bool state_lookup = 7; - * * @param value The stateLookup to set. * @return This builder for chaining. */ @@ -2101,8 +1911,6 @@ public Builder setStateLookup(boolean value) { return this; } /** - * - * *
      * For each BidiWriteObjectRequest where state_lookup is `true` or the client
      * closes the stream, the service will send a BidiWriteObjectResponse
@@ -2110,11 +1918,11 @@ public Builder setStateLookup(boolean value) {
      * covers all the bytes the server has persisted thus far and can be used to
      * decide what data is safe for the client to drop. Note that the object's
      * current size reported by the BidiWriteObjectResponse may lag behind the
-     * number of bytes written by the client.
+     * number of bytes written by the client. This field is ignored if
+     * `finish_write` is set to true.
      * 
* * bool state_lookup = 7; - * * @return This builder for chaining. */ public Builder clearStateLookup() { @@ -2124,19 +1932,18 @@ public Builder clearStateLookup() { return this; } - private boolean flush_; + private boolean flush_ ; /** - * - * *
      * Persists data written on the stream, up to and including the current
      * message, to permanent storage. This option should be used sparingly as it
      * may reduce performance. Ongoing writes will periodically be persisted on
-     * the server even when `flush` is not set.
+     * the server even when `flush` is not set. This field is ignored if
+     * `finish_write` is set to true since there's no need to checkpoint or flush
+     * if this message completes the write.
      * 
* * bool flush = 8; - * * @return The flush. */ @java.lang.Override @@ -2144,17 +1951,16 @@ public boolean getFlush() { return flush_; } /** - * - * *
      * Persists data written on the stream, up to and including the current
      * message, to permanent storage. This option should be used sparingly as it
      * may reduce performance. Ongoing writes will periodically be persisted on
-     * the server even when `flush` is not set.
+     * the server even when `flush` is not set. This field is ignored if
+     * `finish_write` is set to true since there's no need to checkpoint or flush
+     * if this message completes the write.
      * 
* * bool flush = 8; - * * @param value The flush to set. * @return This builder for chaining. */ @@ -2166,17 +1972,16 @@ public Builder setFlush(boolean value) { return this; } /** - * - * *
      * Persists data written on the stream, up to and including the current
      * message, to permanent storage. This option should be used sparingly as it
      * may reduce performance. Ongoing writes will periodically be persisted on
-     * the server even when `flush` is not set.
+     * the server even when `flush` is not set. This field is ignored if
+     * `finish_write` is set to true since there's no need to checkpoint or flush
+     * if this message completes the write.
      * 
* * bool flush = 8; - * * @return This builder for chaining. */ public Builder clearFlush() { @@ -2186,10 +1991,8 @@ public Builder clearFlush() { return this; } - private boolean finishWrite_; + private boolean finishWrite_ ; /** - * - * *
      * If `true`, this indicates that the write is complete. Sending any
      * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -2200,7 +2003,6 @@ public Builder clearFlush() {
      * 
* * bool finish_write = 9; - * * @return The finishWrite. */ @java.lang.Override @@ -2208,8 +2010,6 @@ public boolean getFinishWrite() { return finishWrite_; } /** - * - * *
      * If `true`, this indicates that the write is complete. Sending any
      * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -2220,7 +2020,6 @@ public boolean getFinishWrite() {
      * 
* * bool finish_write = 9; - * * @param value The finishWrite to set. * @return This builder for chaining. */ @@ -2232,8 +2031,6 @@ public Builder setFinishWrite(boolean value) { return this; } /** - * - * *
      * If `true`, this indicates that the write is complete. Sending any
      * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -2244,7 +2041,6 @@ public Builder setFinishWrite(boolean value) {
      * 
* * bool finish_write = 9; - * * @return This builder for chaining. */ public Builder clearFinishWrite() { @@ -2256,55 +2052,41 @@ public Builder clearFinishWrite() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2318,8 +2100,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -2338,21 +2118,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -2360,13 +2136,13 @@ public Builder mergeCommonObjectRequestParams( } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (commonObjectRequestParams_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -2384,42 +2160,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -2427,24 +2194,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @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); } @@ -2454,12 +2218,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.BidiWriteObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.BidiWriteObjectRequest) private static final com.google.storage.v2.BidiWriteObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.BidiWriteObjectRequest(); } @@ -2468,27 +2232,27 @@ public static com.google.storage.v2.BidiWriteObjectRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BidiWriteObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 BidiWriteObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2503,4 +2267,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.BidiWriteObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java similarity index 88% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java index e263f8fcbd..52cc6109fc 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java @@ -1,97 +1,66 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface BidiWriteObjectRequestOrBuilder - extends +public interface BidiWriteObjectRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.BidiWriteObjectRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return Whether the uploadId field is set. */ boolean hasUploadId(); /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return The uploadId. */ java.lang.String getUploadId(); /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return The bytes for uploadId. */ - com.google.protobuf.ByteString getUploadIdBytes(); + com.google.protobuf.ByteString + getUploadIdBytes(); /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
    * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return Whether the writeObjectSpec field is set. */ boolean hasWriteObjectSpec(); /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
    * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return The writeObjectSpec. */ com.google.storage.v2.WriteObjectSpec getWriteObjectSpec(); /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
@@ -102,8 +71,6 @@ public interface BidiWriteObjectRequestOrBuilder
   com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. The offset from the beginning of the object at which the data
    * should be written.
@@ -121,40 +88,31 @@ public interface BidiWriteObjectRequestOrBuilder
    * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ long getWriteOffset(); /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ boolean hasChecksummedData(); /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ com.google.storage.v2.ChecksummedData getChecksummedData(); /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
@@ -165,8 +123,6 @@ public interface BidiWriteObjectRequestOrBuilder
   com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder();
 
   /**
-   *
-   *
    * 
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -175,13 +131,10 @@ public interface BidiWriteObjectRequestOrBuilder
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -190,13 +143,10 @@ public interface BidiWriteObjectRequestOrBuilder
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -209,8 +159,6 @@ public interface BidiWriteObjectRequestOrBuilder
   com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder();
 
   /**
-   *
-   *
    * 
    * For each BidiWriteObjectRequest where state_lookup is `true` or the client
    * closes the stream, the service will send a BidiWriteObjectResponse
@@ -218,34 +166,31 @@ public interface BidiWriteObjectRequestOrBuilder
    * covers all the bytes the server has persisted thus far and can be used to
    * decide what data is safe for the client to drop. Note that the object's
    * current size reported by the BidiWriteObjectResponse may lag behind the
-   * number of bytes written by the client.
+   * number of bytes written by the client. This field is ignored if
+   * `finish_write` is set to true.
    * 
* * bool state_lookup = 7; - * * @return The stateLookup. */ boolean getStateLookup(); /** - * - * *
    * Persists data written on the stream, up to and including the current
    * message, to permanent storage. This option should be used sparingly as it
    * may reduce performance. Ongoing writes will periodically be persisted on
-   * the server even when `flush` is not set.
+   * the server even when `flush` is not set. This field is ignored if
+   * `finish_write` is set to true since there's no need to checkpoint or flush
+   * if this message completes the write.
    * 
* * bool flush = 8; - * * @return The flush. */ boolean getFlush(); /** - * - * *
    * If `true`, this indicates that the write is complete. Sending any
    * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -256,38 +201,29 @@ public interface BidiWriteObjectRequestOrBuilder
    * 
* * bool finish_write = 9; - * * @return The finishWrite. */ boolean getFinishWrite(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java similarity index 70% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java index 0959ebc0e8..9428c665e1 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java @@ -1,79 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Response message for BidiWriteObject.
  * 
* * Protobuf type {@code google.storage.v2.BidiWriteObjectResponse} */ -public final class BidiWriteObjectResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BidiWriteObjectResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.BidiWriteObjectResponse) BidiWriteObjectResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BidiWriteObjectResponse.newBuilder() to construct. private BidiWriteObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BidiWriteObjectResponse() {} + private BidiWriteObjectResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BidiWriteObjectResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectResponse.class, - com.google.storage.v2.BidiWriteObjectResponse.Builder.class); + com.google.storage.v2.BidiWriteObjectResponse.class, com.google.storage.v2.BidiWriteObjectResponse.Builder.class); } private int writeStatusCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object writeStatus_; - public enum WriteStatusCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PERSISTED_SIZE(1), RESOURCE(2), WRITESTATUS_NOT_SET(0); private final int value; - private WriteStatusCase(int value) { this.value = value; } @@ -89,37 +68,31 @@ public static WriteStatusCase valueOf(int value) { public static WriteStatusCase forNumber(int value) { switch (value) { - case 1: - return PERSISTED_SIZE; - case 2: - return RESOURCE; - case 0: - return WRITESTATUS_NOT_SET; - default: - return null; + case 1: return PERSISTED_SIZE; + case 2: return RESOURCE; + case 0: return WRITESTATUS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public static final int PERSISTED_SIZE_FIELD_NUMBER = 1; /** - * - * *
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. Only set if the upload has not finalized.
    * 
* * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ @java.lang.Override @@ -127,15 +100,12 @@ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. Only set if the upload has not finalized.
    * 
* * int64 persisted_size = 1; - * * @return The persistedSize. */ @java.lang.Override @@ -148,15 +118,12 @@ public long getPersistedSize() { public static final int RESOURCE_FIELD_NUMBER = 2; /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -164,27 +131,22 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override public com.google.storage.v2.Object getResource() { if (writeStatusCase_ == 2) { - return (com.google.storage.v2.Object) writeStatus_; + return (com.google.storage.v2.Object) writeStatus_; } return com.google.storage.v2.Object.getDefaultInstance(); } /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
@@ -195,13 +157,12 @@ public com.google.storage.v2.Object getResource() {
   @java.lang.Override
   public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
     if (writeStatusCase_ == 2) {
-      return (com.google.storage.v2.Object) writeStatus_;
+       return (com.google.storage.v2.Object) writeStatus_;
     }
     return com.google.storage.v2.Object.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -213,9 +174,11 @@ 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 (writeStatusCase_ == 1) {
-      output.writeInt64(1, (long) ((java.lang.Long) writeStatus_));
+      output.writeInt64(
+          1, (long)((java.lang.Long) writeStatus_));
     }
     if (writeStatusCase_ == 2) {
       output.writeMessage(2, (com.google.storage.v2.Object) writeStatus_);
@@ -230,14 +193,13 @@ public int getSerializedSize() {
 
     size = 0;
     if (writeStatusCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeInt64Size(
-              1, (long) ((java.lang.Long) writeStatus_));
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(
+            1, (long)((java.lang.Long) writeStatus_));
     }
     if (writeStatusCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.storage.v2.Object) writeStatus_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.storage.v2.Object) writeStatus_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -247,21 +209,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.storage.v2.BidiWriteObjectResponse)) {
       return super.equals(obj);
     }
-    com.google.storage.v2.BidiWriteObjectResponse other =
-        (com.google.storage.v2.BidiWriteObjectResponse) obj;
+    com.google.storage.v2.BidiWriteObjectResponse other = (com.google.storage.v2.BidiWriteObjectResponse) obj;
 
     if (!getWriteStatusCase().equals(other.getWriteStatusCase())) return false;
     switch (writeStatusCase_) {
       case 1:
-        if (getPersistedSize() != other.getPersistedSize()) return false;
+        if (getPersistedSize()
+            != other.getPersistedSize()) return false;
         break;
       case 2:
-        if (!getResource().equals(other.getResource())) return false;
+        if (!getResource()
+            .equals(other.getResource())) return false;
         break;
       case 0:
       default:
@@ -280,7 +243,8 @@ public int hashCode() {
     switch (writeStatusCase_) {
       case 1:
         hash = (37 * hash) + PERSISTED_SIZE_FIELD_NUMBER;
-        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPersistedSize());
+        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+            getPersistedSize());
         break;
       case 2:
         hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
@@ -294,136 +258,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.BidiWriteObjectResponse 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.storage.v2.BidiWriteObjectResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.BidiWriteObjectResponse 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.storage.v2.BidiWriteObjectResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.BidiWriteObjectResponse 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.storage.v2.BidiWriteObjectResponse 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.storage.v2.BidiWriteObjectResponse 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.storage.v2.BidiWriteObjectResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.storage.v2.BidiWriteObjectResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.BidiWriteObjectResponse 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.storage.v2.BidiWriteObjectResponse 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.storage.v2.BidiWriteObjectResponse 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.storage.v2.BidiWriteObjectResponse 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 BidiWriteObject.
    * 
* * Protobuf type {@code google.storage.v2.BidiWriteObjectResponse} */ - 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.storage.v2.BidiWriteObjectResponse) com.google.storage.v2.BidiWriteObjectResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectResponse.class, - com.google.storage.v2.BidiWriteObjectResponse.Builder.class); + com.google.storage.v2.BidiWriteObjectResponse.class, com.google.storage.v2.BidiWriteObjectResponse.Builder.class); } // Construct using com.google.storage.v2.BidiWriteObjectResponse.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(); @@ -437,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; } @java.lang.Override @@ -458,11 +418,8 @@ public com.google.storage.v2.BidiWriteObjectResponse build() { @java.lang.Override public com.google.storage.v2.BidiWriteObjectResponse buildPartial() { - com.google.storage.v2.BidiWriteObjectResponse result = - new com.google.storage.v2.BidiWriteObjectResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.BidiWriteObjectResponse result = new com.google.storage.v2.BidiWriteObjectResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -475,7 +432,8 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectResponse result) private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectResponse result) { result.writeStatusCase_ = writeStatusCase_; result.writeStatus_ = this.writeStatus_; - if (writeStatusCase_ == 2 && resourceBuilder_ != null) { + if (writeStatusCase_ == 2 && + resourceBuilder_ != null) { result.writeStatus_ = resourceBuilder_.build(); } } @@ -484,39 +442,38 @@ private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectResponse 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.storage.v2.BidiWriteObjectResponse) { - return mergeFrom((com.google.storage.v2.BidiWriteObjectResponse) other); + return mergeFrom((com.google.storage.v2.BidiWriteObjectResponse)other); } else { super.mergeFrom(other); return this; @@ -526,20 +483,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.storage.v2.BidiWriteObjectResponse other) { if (other == com.google.storage.v2.BidiWriteObjectResponse.getDefaultInstance()) return this; switch (other.getWriteStatusCase()) { - case PERSISTED_SIZE: - { - setPersistedSize(other.getPersistedSize()); - break; - } - case RESOURCE: - { - mergeResource(other.getResource()); - break; - } - case WRITESTATUS_NOT_SET: - { - break; - } + case PERSISTED_SIZE: { + setPersistedSize(other.getPersistedSize()); + break; + } + case RESOURCE: { + mergeResource(other.getResource()); + break; + } + case WRITESTATUS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -567,25 +521,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - writeStatus_ = input.readInt64(); - writeStatusCase_ = 1; - break; - } // case 8 - case 18: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - writeStatusCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + writeStatus_ = input.readInt64(); + writeStatusCase_ = 1; + break; + } // case 8 + case 18: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + writeStatusCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -595,12 +548,12 @@ public Builder mergeFrom( } // finally return this; } - private int writeStatusCase_ = 0; private java.lang.Object writeStatus_; - - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public Builder clearWriteStatus() { @@ -613,30 +566,24 @@ public Builder clearWriteStatus() { private int bitField0_; /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. Only set if the upload has not finalized.
      * 
* * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. Only set if the upload has not finalized.
      * 
* * int64 persisted_size = 1; - * * @return The persistedSize. */ public long getPersistedSize() { @@ -646,15 +593,12 @@ public long getPersistedSize() { return 0L; } /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. Only set if the upload has not finalized.
      * 
* * int64 persisted_size = 1; - * * @param value The persistedSize to set. * @return This builder for chaining. */ @@ -666,15 +610,12 @@ public Builder setPersistedSize(long value) { return this; } /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. Only set if the upload has not finalized.
      * 
* * int64 persisted_size = 1; - * * @return This builder for chaining. */ public Builder clearPersistedSize() { @@ -687,20 +628,14 @@ public Builder clearPersistedSize() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - resourceBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> resourceBuilder_; /** - * - * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
      * 
* * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -708,15 +643,12 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
      * 
* * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override @@ -734,8 +666,6 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -757,8 +687,6 @@ public Builder setResource(com.google.storage.v2.Object value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -766,7 +694,8 @@ public Builder setResource(com.google.storage.v2.Object value) {
      *
      * .google.storage.v2.Object resource = 2;
      */
-    public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) {
+    public Builder setResource(
+        com.google.storage.v2.Object.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         writeStatus_ = builderForValue.build();
         onChanged();
@@ -777,8 +706,6 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -788,12 +715,10 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
      */
     public Builder mergeResource(com.google.storage.v2.Object value) {
       if (resourceBuilder_ == null) {
-        if (writeStatusCase_ == 2
-            && writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
-          writeStatus_ =
-              com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (writeStatusCase_ == 2 &&
+            writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
+          writeStatus_ = com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
+              .mergeFrom(value).buildPartial();
         } else {
           writeStatus_ = value;
         }
@@ -809,8 +734,6 @@ public Builder mergeResource(com.google.storage.v2.Object value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -835,8 +758,6 @@ public Builder clearResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -848,8 +769,6 @@ public com.google.storage.v2.Object.Builder getResourceBuilder() {
       return getResourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -869,8 +788,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -879,29 +796,26 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
      * .google.storage.v2.Object resource = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Object,
-            com.google.storage.v2.Object.Builder,
-            com.google.storage.v2.ObjectOrBuilder>
+        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
         if (!(writeStatusCase_ == 2)) {
           writeStatus_ = com.google.storage.v2.Object.getDefaultInstance();
         }
-        resourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Object,
-                com.google.storage.v2.Object.Builder,
-                com.google.storage.v2.ObjectOrBuilder>(
-                (com.google.storage.v2.Object) writeStatus_, getParentForChildren(), isClean());
+        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
+                (com.google.storage.v2.Object) writeStatus_,
+                getParentForChildren(),
+                isClean());
         writeStatus_ = null;
       }
       writeStatusCase_ = 2;
       onChanged();
       return resourceBuilder_;
     }
-
     @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);
     }
 
@@ -911,12 +825,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.BidiWriteObjectResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.BidiWriteObjectResponse)
   private static final com.google.storage.v2.BidiWriteObjectResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.BidiWriteObjectResponse();
   }
@@ -925,27 +839,27 @@ public static com.google.storage.v2.BidiWriteObjectResponse getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BidiWriteObjectResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 BidiWriteObjectResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -960,4 +874,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.BidiWriteObjectResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
similarity index 71%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
index 273df469bc..3a943cfdcc 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
@@ -1,84 +1,55 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface BidiWriteObjectResponseOrBuilder
-    extends
+public interface BidiWriteObjectResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.BidiWriteObjectResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. Only set if the upload has not finalized.
    * 
* * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ boolean hasPersistedSize(); /** - * - * *
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. Only set if the upload has not finalized.
    * 
* * int64 persisted_size = 1; - * * @return The persistedSize. */ long getPersistedSize(); /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return The resource. */ com.google.storage.v2.Object getResource(); /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java
similarity index 75%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java
index 5da51239ce..8bf2db7ee9 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java
@@ -1,42 +1,25 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * A bucket.
  * 
* * Protobuf type {@code google.storage.v2.Bucket} */ -public final class Bucket extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Bucket extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket) BucketOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Bucket.newBuilder() to construct. private Bucket(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Bucket() { name_ = ""; bucketId_ = ""; @@ -53,105 +36,97 @@ private Bucket() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Bucket(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 15: return internalGetLabels(); 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.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.Bucket.class, com.google.storage.v2.Bucket.Builder.class); } - public interface BillingOrBuilder - extends + public interface BillingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Billing) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * When set to true, Requester Pays is enabled for this bucket.
      * 
* * bool requester_pays = 1; - * * @return The requesterPays. */ boolean getRequesterPays(); } /** - * - * *
    * Billing properties of a bucket.
    * 
* * Protobuf type {@code google.storage.v2.Bucket.Billing} */ - public static final class Billing extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Billing extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Billing) BillingOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Billing.newBuilder() to construct. private Billing(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Billing() {} + private Billing() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Billing(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Billing_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Billing.class, - com.google.storage.v2.Bucket.Billing.Builder.class); + com.google.storage.v2.Bucket.Billing.class, com.google.storage.v2.Bucket.Billing.Builder.class); } public static final int REQUESTER_PAYS_FIELD_NUMBER = 1; private boolean requesterPays_ = false; /** - * - * *
      * When set to true, Requester Pays is enabled for this bucket.
      * 
* * bool requester_pays = 1; - * * @return The requesterPays. */ @java.lang.Override @@ -160,7 +135,6 @@ public boolean getRequesterPays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,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 (requesterPays_ != false) { output.writeBool(1, requesterPays_); } @@ -186,7 +161,8 @@ public int getSerializedSize() { size = 0; if (requesterPays_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, requesterPays_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, requesterPays_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -196,14 +172,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.storage.v2.Bucket.Billing)) { return super.equals(obj); } com.google.storage.v2.Bucket.Billing other = (com.google.storage.v2.Bucket.Billing) obj; - if (getRequesterPays() != other.getRequesterPays()) return false; + if (getRequesterPays() + != other.getRequesterPays()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -216,100 +193,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REQUESTER_PAYS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequesterPays()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequesterPays()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.Bucket.Billing parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Billing parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Billing 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.storage.v2.Bucket.Billing parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Billing 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.storage.v2.Bucket.Billing parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Billing 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.storage.v2.Bucket.Billing 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.storage.v2.Bucket.Billing 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.storage.v2.Bucket.Billing parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Billing 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.storage.v2.Bucket.Billing 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.storage.v2.Bucket.Billing 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.storage.v2.Bucket.Billing 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 @@ -319,41 +293,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Billing properties of a bucket.
      * 
* * Protobuf type {@code google.storage.v2.Bucket.Billing} */ - 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.storage.v2.Bucket.Billing) com.google.storage.v2.Bucket.BillingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Billing_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Billing.class, - com.google.storage.v2.Bucket.Billing.Builder.class); + com.google.storage.v2.Bucket.Billing.class, com.google.storage.v2.Bucket.Billing.Builder.class); } // Construct using com.google.storage.v2.Bucket.Billing.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(); @@ -363,9 +335,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Billing_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_descriptor; } @java.lang.Override @@ -384,11 +356,8 @@ public com.google.storage.v2.Bucket.Billing build() { @java.lang.Override public com.google.storage.v2.Bucket.Billing buildPartial() { - com.google.storage.v2.Bucket.Billing result = - new com.google.storage.v2.Bucket.Billing(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Billing result = new com.google.storage.v2.Bucket.Billing(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -404,41 +373,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Billing 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) { + 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.storage.v2.Bucket.Billing) { - return mergeFrom((com.google.storage.v2.Bucket.Billing) other); + return mergeFrom((com.google.storage.v2.Bucket.Billing)other); } else { super.mergeFrom(other); return this; @@ -476,19 +442,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - requesterPays_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + requesterPays_ = 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) { @@ -498,19 +462,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean requesterPays_; + private boolean requesterPays_ ; /** - * - * *
        * When set to true, Requester Pays is enabled for this bucket.
        * 
* * bool requester_pays = 1; - * * @return The requesterPays. */ @java.lang.Override @@ -518,14 +478,11 @@ public boolean getRequesterPays() { return requesterPays_; } /** - * - * *
        * When set to true, Requester Pays is enabled for this bucket.
        * 
* * bool requester_pays = 1; - * * @param value The requesterPays to set. * @return This builder for chaining. */ @@ -537,14 +494,11 @@ public Builder setRequesterPays(boolean value) { return this; } /** - * - * *
        * When set to true, Requester Pays is enabled for this bucket.
        * 
* * bool requester_pays = 1; - * * @return This builder for chaining. */ public Builder clearRequesterPays() { @@ -553,7 +507,6 @@ public Builder clearRequesterPays() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -566,12 +519,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Billing) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Billing) private static final com.google.storage.v2.Bucket.Billing DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Billing(); } @@ -580,28 +533,27 @@ public static com.google.storage.v2.Bucket.Billing getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Billing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Billing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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,16 +568,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Billing getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CorsOrBuilder - extends + public interface CorsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Cors) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The list of Origins eligible to receive CORS response headers. See
      * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -633,13 +583,11 @@ public interface CorsOrBuilder
      * 
* * repeated string origin = 1; - * * @return A list containing the origin. */ - java.util.List getOriginList(); + java.util.List + getOriginList(); /** - * - * *
      * The list of Origins eligible to receive CORS response headers. See
      * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -647,13 +595,10 @@ public interface CorsOrBuilder
      * 
* * repeated string origin = 1; - * * @return The count of origin. */ int getOriginCount(); /** - * - * *
      * The list of Origins eligible to receive CORS response headers. See
      * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -661,14 +606,11 @@ public interface CorsOrBuilder
      * 
* * repeated string origin = 1; - * * @param index The index of the element to return. * @return The origin at the given index. */ java.lang.String getOrigin(int index); /** - * - * *
      * The list of Origins eligible to receive CORS response headers. See
      * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -676,15 +618,13 @@ public interface CorsOrBuilder
      * 
* * repeated string origin = 1; - * * @param index The index of the value to return. * @return The bytes of the origin at the given index. */ - com.google.protobuf.ByteString getOriginBytes(int index); + com.google.protobuf.ByteString + getOriginBytes(int index); /** - * - * *
      * The list of HTTP methods on which to include CORS response headers,
      * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -692,13 +632,11 @@ public interface CorsOrBuilder
      * 
* * repeated string method = 2; - * * @return A list containing the method. */ - java.util.List getMethodList(); + java.util.List + getMethodList(); /** - * - * *
      * The list of HTTP methods on which to include CORS response headers,
      * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -706,13 +644,10 @@ public interface CorsOrBuilder
      * 
* * repeated string method = 2; - * * @return The count of method. */ int getMethodCount(); /** - * - * *
      * The list of HTTP methods on which to include CORS response headers,
      * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -720,14 +655,11 @@ public interface CorsOrBuilder
      * 
* * repeated string method = 2; - * * @param index The index of the element to return. * @return The method at the given index. */ java.lang.String getMethod(int index); /** - * - * *
      * The list of HTTP methods on which to include CORS response headers,
      * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -735,15 +667,13 @@ public interface CorsOrBuilder
      * 
* * repeated string method = 2; - * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - com.google.protobuf.ByteString getMethodBytes(int index); + com.google.protobuf.ByteString + getMethodBytes(int index); /** - * - * *
      * The list of HTTP headers other than the
      * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -751,13 +681,11 @@ public interface CorsOrBuilder
      * 
* * repeated string response_header = 3; - * * @return A list containing the responseHeader. */ - java.util.List getResponseHeaderList(); + java.util.List + getResponseHeaderList(); /** - * - * *
      * The list of HTTP headers other than the
      * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -765,13 +693,10 @@ public interface CorsOrBuilder
      * 
* * repeated string response_header = 3; - * * @return The count of responseHeader. */ int getResponseHeaderCount(); /** - * - * *
      * The list of HTTP headers other than the
      * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -779,14 +704,11 @@ public interface CorsOrBuilder
      * 
* * repeated string response_header = 3; - * * @param index The index of the element to return. * @return The responseHeader at the given index. */ java.lang.String getResponseHeader(int index); /** - * - * *
      * The list of HTTP headers other than the
      * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -794,15 +716,13 @@ public interface CorsOrBuilder
      * 
* * repeated string response_header = 3; - * * @param index The index of the value to return. * @return The bytes of the responseHeader at the given index. */ - com.google.protobuf.ByteString getResponseHeaderBytes(int index); + com.google.protobuf.ByteString + getResponseHeaderBytes(int index); /** - * - * *
      * The value, in seconds, to return in the
      * [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
@@ -810,14 +730,11 @@ public interface CorsOrBuilder
      * 
* * int32 max_age_seconds = 4; - * * @return The maxAgeSeconds. */ int getMaxAgeSeconds(); } /** - * - * *
    * Cross-Origin Response sharing (CORS) properties for a bucket.
    * For more on Cloud Storage and CORS, see
@@ -827,51 +744,49 @@ public interface CorsOrBuilder
    *
    * Protobuf type {@code google.storage.v2.Bucket.Cors}
    */
-  public static final class Cors extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Cors extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Cors)
       CorsOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Cors.newBuilder() to construct.
     private Cors(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Cors() {
-      origin_ = com.google.protobuf.LazyStringArrayList.emptyList();
-      method_ = com.google.protobuf.LazyStringArrayList.emptyList();
-      responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      origin_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
+      method_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
+      responseHeader_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Cors();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_Bucket_Cors_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.Bucket.Cors.class,
-              com.google.storage.v2.Bucket.Cors.Builder.class);
+              com.google.storage.v2.Bucket.Cors.class, com.google.storage.v2.Bucket.Cors.Builder.class);
     }
 
     public static final int ORIGIN_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private com.google.protobuf.LazyStringArrayList origin_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
     /**
-     *
-     *
      * 
      * The list of Origins eligible to receive CORS response headers. See
      * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -879,15 +794,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated string origin = 1; - * * @return A list containing the origin. */ - public com.google.protobuf.ProtocolStringList getOriginList() { + public com.google.protobuf.ProtocolStringList + getOriginList() { return origin_; } /** - * - * *
      * The list of Origins eligible to receive CORS response headers. See
      * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -895,15 +808,12 @@ public com.google.protobuf.ProtocolStringList getOriginList() {
      * 
* * repeated string origin = 1; - * * @return The count of origin. */ public int getOriginCount() { return origin_.size(); } /** - * - * *
      * The list of Origins eligible to receive CORS response headers. See
      * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -911,7 +821,6 @@ public int getOriginCount() {
      * 
* * repeated string origin = 1; - * * @param index The index of the element to return. * @return The origin at the given index. */ @@ -919,8 +828,6 @@ public java.lang.String getOrigin(int index) { return origin_.get(index); } /** - * - * *
      * The list of Origins eligible to receive CORS response headers. See
      * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -928,22 +835,19 @@ public java.lang.String getOrigin(int index) {
      * 
* * repeated string origin = 1; - * * @param index The index of the value to return. * @return The bytes of the origin at the given index. */ - public com.google.protobuf.ByteString getOriginBytes(int index) { + public com.google.protobuf.ByteString + getOriginBytes(int index) { return origin_.getByteString(index); } public static final int METHOD_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList method_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * The list of HTTP methods on which to include CORS response headers,
      * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -951,15 +855,13 @@ public com.google.protobuf.ByteString getOriginBytes(int index) {
      * 
* * repeated string method = 2; - * * @return A list containing the method. */ - public com.google.protobuf.ProtocolStringList getMethodList() { + public com.google.protobuf.ProtocolStringList + getMethodList() { return method_; } /** - * - * *
      * The list of HTTP methods on which to include CORS response headers,
      * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -967,15 +869,12 @@ public com.google.protobuf.ProtocolStringList getMethodList() {
      * 
* * repeated string method = 2; - * * @return The count of method. */ public int getMethodCount() { return method_.size(); } /** - * - * *
      * The list of HTTP methods on which to include CORS response headers,
      * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -983,7 +882,6 @@ public int getMethodCount() {
      * 
* * repeated string method = 2; - * * @param index The index of the element to return. * @return The method at the given index. */ @@ -991,8 +889,6 @@ public java.lang.String getMethod(int index) { return method_.get(index); } /** - * - * *
      * The list of HTTP methods on which to include CORS response headers,
      * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1000,22 +896,19 @@ public java.lang.String getMethod(int index) {
      * 
* * repeated string method = 2; - * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - public com.google.protobuf.ByteString getMethodBytes(int index) { + public com.google.protobuf.ByteString + getMethodBytes(int index) { return method_.getByteString(index); } public static final int RESPONSE_HEADER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * The list of HTTP headers other than the
      * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1023,15 +916,13 @@ public com.google.protobuf.ByteString getMethodBytes(int index) {
      * 
* * repeated string response_header = 3; - * * @return A list containing the responseHeader. */ - public com.google.protobuf.ProtocolStringList getResponseHeaderList() { + public com.google.protobuf.ProtocolStringList + getResponseHeaderList() { return responseHeader_; } /** - * - * *
      * The list of HTTP headers other than the
      * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1039,15 +930,12 @@ public com.google.protobuf.ProtocolStringList getResponseHeaderList() {
      * 
* * repeated string response_header = 3; - * * @return The count of responseHeader. */ public int getResponseHeaderCount() { return responseHeader_.size(); } /** - * - * *
      * The list of HTTP headers other than the
      * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1055,7 +943,6 @@ public int getResponseHeaderCount() {
      * 
* * repeated string response_header = 3; - * * @param index The index of the element to return. * @return The responseHeader at the given index. */ @@ -1063,8 +950,6 @@ public java.lang.String getResponseHeader(int index) { return responseHeader_.get(index); } /** - * - * *
      * The list of HTTP headers other than the
      * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1072,19 +957,17 @@ public java.lang.String getResponseHeader(int index) {
      * 
* * repeated string response_header = 3; - * * @param index The index of the value to return. * @return The bytes of the responseHeader at the given index. */ - public com.google.protobuf.ByteString getResponseHeaderBytes(int index) { + public com.google.protobuf.ByteString + getResponseHeaderBytes(int index) { return responseHeader_.getByteString(index); } public static final int MAX_AGE_SECONDS_FIELD_NUMBER = 4; private int maxAgeSeconds_ = 0; /** - * - * *
      * The value, in seconds, to return in the
      * [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
@@ -1092,7 +975,6 @@ public com.google.protobuf.ByteString getResponseHeaderBytes(int index) {
      * 
* * int32 max_age_seconds = 4; - * * @return The maxAgeSeconds. */ @java.lang.Override @@ -1101,7 +983,6 @@ public int getMaxAgeSeconds() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1113,7 +994,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 < origin_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, origin_.getRaw(i)); } @@ -1160,7 +1042,8 @@ public int getSerializedSize() { size += 1 * getResponseHeaderList().size(); } if (maxAgeSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxAgeSeconds_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, maxAgeSeconds_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1170,17 +1053,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.storage.v2.Bucket.Cors)) { return super.equals(obj); } com.google.storage.v2.Bucket.Cors other = (com.google.storage.v2.Bucket.Cors) obj; - if (!getOriginList().equals(other.getOriginList())) return false; - if (!getMethodList().equals(other.getMethodList())) return false; - if (!getResponseHeaderList().equals(other.getResponseHeaderList())) return false; - if (getMaxAgeSeconds() != other.getMaxAgeSeconds()) return false; + if (!getOriginList() + .equals(other.getOriginList())) return false; + if (!getMethodList() + .equals(other.getMethodList())) return false; + if (!getResponseHeaderList() + .equals(other.getResponseHeaderList())) return false; + if (getMaxAgeSeconds() + != other.getMaxAgeSeconds()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1211,93 +1098,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Cors parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Cors parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Cors 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.storage.v2.Bucket.Cors parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.Bucket.Cors parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Cors 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.storage.v2.Bucket.Cors parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Cors 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.storage.v2.Bucket.Cors 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.storage.v2.Bucket.Cors 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.storage.v2.Bucket.Cors parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Cors 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.storage.v2.Bucket.Cors 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.storage.v2.Bucket.Cors 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.storage.v2.Bucket.Cors 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 @@ -1307,8 +1191,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Cross-Origin Response sharing (CORS) properties for a bucket.
      * For more on Cloud Storage and CORS, see
@@ -1318,48 +1200,51 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.storage.v2.Bucket.Cors}
      */
-    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.storage.v2.Bucket.Cors)
         com.google.storage.v2.Bucket.CorsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Cors_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.storage.v2.Bucket.Cors.class,
-                com.google.storage.v2.Bucket.Cors.Builder.class);
+                com.google.storage.v2.Bucket.Cors.class, com.google.storage.v2.Bucket.Cors.Builder.class);
       }
 
       // Construct using com.google.storage.v2.Bucket.Cors.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();
         bitField0_ = 0;
-        origin_ = com.google.protobuf.LazyStringArrayList.emptyList();
-        method_ = com.google.protobuf.LazyStringArrayList.emptyList();
-        responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        origin_ =
+            com.google.protobuf.LazyStringArrayList.emptyList();
+        method_ =
+            com.google.protobuf.LazyStringArrayList.emptyList();
+        responseHeader_ =
+            com.google.protobuf.LazyStringArrayList.emptyList();
         maxAgeSeconds_ = 0;
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Cors_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_descriptor;
       }
 
       @java.lang.Override
@@ -1379,9 +1264,7 @@ public com.google.storage.v2.Bucket.Cors build() {
       @java.lang.Override
       public com.google.storage.v2.Bucket.Cors buildPartial() {
         com.google.storage.v2.Bucket.Cors result = new com.google.storage.v2.Bucket.Cors(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -1409,41 +1292,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Cors 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) {
+          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.storage.v2.Bucket.Cors) {
-          return mergeFrom((com.google.storage.v2.Bucket.Cors) other);
+          return mergeFrom((com.google.storage.v2.Bucket.Cors)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1511,40 +1391,35 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureOriginIsMutable();
-                  origin_.add(s);
-                  break;
-                } // case 10
-              case 18:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureMethodIsMutable();
-                  method_.add(s);
-                  break;
-                } // case 18
-              case 26:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureResponseHeaderIsMutable();
-                  responseHeader_.add(s);
-                  break;
-                } // case 26
-              case 32:
-                {
-                  maxAgeSeconds_ = input.readInt32();
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 32
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureOriginIsMutable();
+                origin_.add(s);
+                break;
+              } // case 10
+              case 18: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureMethodIsMutable();
+                method_.add(s);
+                break;
+              } // case 18
+              case 26: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureResponseHeaderIsMutable();
+                responseHeader_.add(s);
+                break;
+              } // case 26
+              case 32: {
+                maxAgeSeconds_ = 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) {
@@ -1554,12 +1429,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.protobuf.LazyStringArrayList origin_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
-
       private void ensureOriginIsMutable() {
         if (!origin_.isModifiable()) {
           origin_ = new com.google.protobuf.LazyStringArrayList(origin_);
@@ -1567,8 +1440,6 @@ private void ensureOriginIsMutable() {
         bitField0_ |= 0x00000001;
       }
       /**
-       *
-       *
        * 
        * The list of Origins eligible to receive CORS response headers. See
        * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -1576,16 +1447,14 @@ private void ensureOriginIsMutable() {
        * 
* * repeated string origin = 1; - * * @return A list containing the origin. */ - public com.google.protobuf.ProtocolStringList getOriginList() { + public com.google.protobuf.ProtocolStringList + getOriginList() { origin_.makeImmutable(); return origin_; } /** - * - * *
        * The list of Origins eligible to receive CORS response headers. See
        * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -1593,15 +1462,12 @@ public com.google.protobuf.ProtocolStringList getOriginList() {
        * 
* * repeated string origin = 1; - * * @return The count of origin. */ public int getOriginCount() { return origin_.size(); } /** - * - * *
        * The list of Origins eligible to receive CORS response headers. See
        * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -1609,7 +1475,6 @@ public int getOriginCount() {
        * 
* * repeated string origin = 1; - * * @param index The index of the element to return. * @return The origin at the given index. */ @@ -1617,8 +1482,6 @@ public java.lang.String getOrigin(int index) { return origin_.get(index); } /** - * - * *
        * The list of Origins eligible to receive CORS response headers. See
        * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -1626,16 +1489,14 @@ public java.lang.String getOrigin(int index) {
        * 
* * repeated string origin = 1; - * * @param index The index of the value to return. * @return The bytes of the origin at the given index. */ - public com.google.protobuf.ByteString getOriginBytes(int index) { + public com.google.protobuf.ByteString + getOriginBytes(int index) { return origin_.getByteString(index); } /** - * - * *
        * The list of Origins eligible to receive CORS response headers. See
        * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -1643,15 +1504,13 @@ public com.google.protobuf.ByteString getOriginBytes(int index) {
        * 
* * repeated string origin = 1; - * * @param index The index to set the value at. * @param value The origin to set. * @return This builder for chaining. */ - public Builder setOrigin(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrigin( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureOriginIsMutable(); origin_.set(index, value); bitField0_ |= 0x00000001; @@ -1659,8 +1518,6 @@ public Builder setOrigin(int index, java.lang.String value) { return this; } /** - * - * *
        * The list of Origins eligible to receive CORS response headers. See
        * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -1668,14 +1525,12 @@ public Builder setOrigin(int index, java.lang.String value) {
        * 
* * repeated string origin = 1; - * * @param value The origin to add. * @return This builder for chaining. */ - public Builder addOrigin(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addOrigin( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureOriginIsMutable(); origin_.add(value); bitField0_ |= 0x00000001; @@ -1683,8 +1538,6 @@ public Builder addOrigin(java.lang.String value) { return this; } /** - * - * *
        * The list of Origins eligible to receive CORS response headers. See
        * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -1692,20 +1545,19 @@ public Builder addOrigin(java.lang.String value) {
        * 
* * repeated string origin = 1; - * * @param values The origin to add. * @return This builder for chaining. */ - public Builder addAllOrigin(java.lang.Iterable values) { + public Builder addAllOrigin( + java.lang.Iterable values) { ensureOriginIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, origin_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, origin_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The list of Origins eligible to receive CORS response headers. See
        * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -1713,19 +1565,16 @@ public Builder addAllOrigin(java.lang.Iterable values) {
        * 
* * repeated string origin = 1; - * * @return This builder for chaining. */ public Builder clearOrigin() { - origin_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + origin_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * The list of Origins eligible to receive CORS response headers. See
        * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -1733,14 +1582,12 @@ public Builder clearOrigin() {
        * 
* * repeated string origin = 1; - * * @param value The bytes of the origin to add. * @return This builder for chaining. */ - public Builder addOriginBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addOriginBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureOriginIsMutable(); origin_.add(value); @@ -1751,7 +1598,6 @@ public Builder addOriginBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList method_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMethodIsMutable() { if (!method_.isModifiable()) { method_ = new com.google.protobuf.LazyStringArrayList(method_); @@ -1759,8 +1605,6 @@ private void ensureMethodIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
        * The list of HTTP methods on which to include CORS response headers,
        * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1768,16 +1612,14 @@ private void ensureMethodIsMutable() {
        * 
* * repeated string method = 2; - * * @return A list containing the method. */ - public com.google.protobuf.ProtocolStringList getMethodList() { + public com.google.protobuf.ProtocolStringList + getMethodList() { method_.makeImmutable(); return method_; } /** - * - * *
        * The list of HTTP methods on which to include CORS response headers,
        * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1785,15 +1627,12 @@ public com.google.protobuf.ProtocolStringList getMethodList() {
        * 
* * repeated string method = 2; - * * @return The count of method. */ public int getMethodCount() { return method_.size(); } /** - * - * *
        * The list of HTTP methods on which to include CORS response headers,
        * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1801,7 +1640,6 @@ public int getMethodCount() {
        * 
* * repeated string method = 2; - * * @param index The index of the element to return. * @return The method at the given index. */ @@ -1809,8 +1647,6 @@ public java.lang.String getMethod(int index) { return method_.get(index); } /** - * - * *
        * The list of HTTP methods on which to include CORS response headers,
        * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1818,16 +1654,14 @@ public java.lang.String getMethod(int index) {
        * 
* * repeated string method = 2; - * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - public com.google.protobuf.ByteString getMethodBytes(int index) { + public com.google.protobuf.ByteString + getMethodBytes(int index) { return method_.getByteString(index); } /** - * - * *
        * The list of HTTP methods on which to include CORS response headers,
        * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1835,15 +1669,13 @@ public com.google.protobuf.ByteString getMethodBytes(int index) {
        * 
* * repeated string method = 2; - * * @param index The index to set the value at. * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMethod( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMethodIsMutable(); method_.set(index, value); bitField0_ |= 0x00000002; @@ -1851,8 +1683,6 @@ public Builder setMethod(int index, java.lang.String value) { return this; } /** - * - * *
        * The list of HTTP methods on which to include CORS response headers,
        * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1860,14 +1690,12 @@ public Builder setMethod(int index, java.lang.String value) {
        * 
* * repeated string method = 2; - * * @param value The method to add. * @return This builder for chaining. */ - public Builder addMethod(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMethodIsMutable(); method_.add(value); bitField0_ |= 0x00000002; @@ -1875,8 +1703,6 @@ public Builder addMethod(java.lang.String value) { return this; } /** - * - * *
        * The list of HTTP methods on which to include CORS response headers,
        * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1884,20 +1710,19 @@ public Builder addMethod(java.lang.String value) {
        * 
* * repeated string method = 2; - * * @param values The method to add. * @return This builder for chaining. */ - public Builder addAllMethod(java.lang.Iterable values) { + public Builder addAllMethod( + java.lang.Iterable values) { ensureMethodIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, method_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, method_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The list of HTTP methods on which to include CORS response headers,
        * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1905,19 +1730,16 @@ public Builder addAllMethod(java.lang.Iterable values) {
        * 
* * repeated string method = 2; - * * @return This builder for chaining. */ public Builder clearMethod() { - method_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + method_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
        * The list of HTTP methods on which to include CORS response headers,
        * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1925,14 +1747,12 @@ public Builder clearMethod() {
        * 
* * repeated string method = 2; - * * @param value The bytes of the method to add. * @return This builder for chaining. */ - public Builder addMethodBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMethodIsMutable(); method_.add(value); @@ -1943,7 +1763,6 @@ public Builder addMethodBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResponseHeaderIsMutable() { if (!responseHeader_.isModifiable()) { responseHeader_ = new com.google.protobuf.LazyStringArrayList(responseHeader_); @@ -1951,8 +1770,6 @@ private void ensureResponseHeaderIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1960,16 +1777,14 @@ private void ensureResponseHeaderIsMutable() {
        * 
* * repeated string response_header = 3; - * * @return A list containing the responseHeader. */ - public com.google.protobuf.ProtocolStringList getResponseHeaderList() { + public com.google.protobuf.ProtocolStringList + getResponseHeaderList() { responseHeader_.makeImmutable(); return responseHeader_; } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1977,15 +1792,12 @@ public com.google.protobuf.ProtocolStringList getResponseHeaderList() {
        * 
* * repeated string response_header = 3; - * * @return The count of responseHeader. */ public int getResponseHeaderCount() { return responseHeader_.size(); } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1993,7 +1805,6 @@ public int getResponseHeaderCount() {
        * 
* * repeated string response_header = 3; - * * @param index The index of the element to return. * @return The responseHeader at the given index. */ @@ -2001,8 +1812,6 @@ public java.lang.String getResponseHeader(int index) { return responseHeader_.get(index); } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -2010,16 +1819,14 @@ public java.lang.String getResponseHeader(int index) {
        * 
* * repeated string response_header = 3; - * * @param index The index of the value to return. * @return The bytes of the responseHeader at the given index. */ - public com.google.protobuf.ByteString getResponseHeaderBytes(int index) { + public com.google.protobuf.ByteString + getResponseHeaderBytes(int index) { return responseHeader_.getByteString(index); } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -2027,15 +1834,13 @@ public com.google.protobuf.ByteString getResponseHeaderBytes(int index) {
        * 
* * repeated string response_header = 3; - * * @param index The index to set the value at. * @param value The responseHeader to set. * @return This builder for chaining. */ - public Builder setResponseHeader(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResponseHeader( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResponseHeaderIsMutable(); responseHeader_.set(index, value); bitField0_ |= 0x00000004; @@ -2043,8 +1848,6 @@ public Builder setResponseHeader(int index, java.lang.String value) { return this; } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -2052,14 +1855,12 @@ public Builder setResponseHeader(int index, java.lang.String value) {
        * 
* * repeated string response_header = 3; - * * @param value The responseHeader to add. * @return This builder for chaining. */ - public Builder addResponseHeader(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResponseHeader( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResponseHeaderIsMutable(); responseHeader_.add(value); bitField0_ |= 0x00000004; @@ -2067,8 +1868,6 @@ public Builder addResponseHeader(java.lang.String value) { return this; } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -2076,20 +1875,19 @@ public Builder addResponseHeader(java.lang.String value) {
        * 
* * repeated string response_header = 3; - * * @param values The responseHeader to add. * @return This builder for chaining. */ - public Builder addAllResponseHeader(java.lang.Iterable values) { + public Builder addAllResponseHeader( + java.lang.Iterable values) { ensureResponseHeaderIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responseHeader_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responseHeader_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -2097,19 +1895,16 @@ public Builder addAllResponseHeader(java.lang.Iterable values)
        * 
* * repeated string response_header = 3; - * * @return This builder for chaining. */ public Builder clearResponseHeader() { - responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + responseHeader_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -2117,14 +1912,12 @@ public Builder clearResponseHeader() {
        * 
* * repeated string response_header = 3; - * * @param value The bytes of the responseHeader to add. * @return This builder for chaining. */ - public Builder addResponseHeaderBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResponseHeaderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResponseHeaderIsMutable(); responseHeader_.add(value); @@ -2133,10 +1926,8 @@ public Builder addResponseHeaderBytes(com.google.protobuf.ByteString value) { return this; } - private int maxAgeSeconds_; + private int maxAgeSeconds_ ; /** - * - * *
        * The value, in seconds, to return in the
        * [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
@@ -2144,7 +1935,6 @@ public Builder addResponseHeaderBytes(com.google.protobuf.ByteString value) {
        * 
* * int32 max_age_seconds = 4; - * * @return The maxAgeSeconds. */ @java.lang.Override @@ -2152,8 +1942,6 @@ public int getMaxAgeSeconds() { return maxAgeSeconds_; } /** - * - * *
        * The value, in seconds, to return in the
        * [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
@@ -2161,7 +1949,6 @@ public int getMaxAgeSeconds() {
        * 
* * int32 max_age_seconds = 4; - * * @param value The maxAgeSeconds to set. * @return This builder for chaining. */ @@ -2173,8 +1960,6 @@ public Builder setMaxAgeSeconds(int value) { return this; } /** - * - * *
        * The value, in seconds, to return in the
        * [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
@@ -2182,7 +1967,6 @@ public Builder setMaxAgeSeconds(int value) {
        * 
* * int32 max_age_seconds = 4; - * * @return This builder for chaining. */ public Builder clearMaxAgeSeconds() { @@ -2191,7 +1975,6 @@ public Builder clearMaxAgeSeconds() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2204,12 +1987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Cors) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Cors) private static final com.google.storage.v2.Bucket.Cors DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Cors(); } @@ -2218,28 +2001,27 @@ public static com.google.storage.v2.Bucket.Cors getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cors parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Cors parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2254,98 +2036,85 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Cors getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface EncryptionOrBuilder - extends + public interface EncryptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Encryption) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The name of the Cloud KMS key that will be used to encrypt objects
      * inserted into this bucket, if no encryption method is specified.
      * 
* * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The defaultKmsKey. */ java.lang.String getDefaultKmsKey(); /** - * - * *
      * The name of the Cloud KMS key that will be used to encrypt objects
      * inserted into this bucket, if no encryption method is specified.
      * 
* * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for defaultKmsKey. */ - com.google.protobuf.ByteString getDefaultKmsKeyBytes(); + com.google.protobuf.ByteString + getDefaultKmsKeyBytes(); } /** - * - * *
    * Encryption properties of a bucket.
    * 
* * Protobuf type {@code google.storage.v2.Bucket.Encryption} */ - public static final class Encryption extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Encryption extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Encryption) EncryptionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Encryption.newBuilder() to construct. private Encryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Encryption() { defaultKmsKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Encryption(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Encryption_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Encryption.class, - com.google.storage.v2.Bucket.Encryption.Builder.class); + com.google.storage.v2.Bucket.Encryption.class, com.google.storage.v2.Bucket.Encryption.Builder.class); } public static final int DEFAULT_KMS_KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object defaultKmsKey_ = ""; /** - * - * *
      * The name of the Cloud KMS key that will be used to encrypt objects
      * inserted into this bucket, if no encryption method is specified.
      * 
* * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The defaultKmsKey. */ @java.lang.Override @@ -2354,30 +2123,30 @@ public java.lang.String getDefaultKmsKey() { 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(); defaultKmsKey_ = s; return s; } } /** - * - * *
      * The name of the Cloud KMS key that will be used to encrypt objects
      * inserted into this bucket, if no encryption method is specified.
      * 
* * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for defaultKmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getDefaultKmsKeyBytes() { + public com.google.protobuf.ByteString + getDefaultKmsKeyBytes() { java.lang.Object ref = defaultKmsKey_; 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); defaultKmsKey_ = b; return b; } else { @@ -2386,7 +2155,6 @@ public com.google.protobuf.ByteString getDefaultKmsKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2398,7 +2166,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(defaultKmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultKmsKey_); } @@ -2422,14 +2191,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.storage.v2.Bucket.Encryption)) { return super.equals(obj); } com.google.storage.v2.Bucket.Encryption other = (com.google.storage.v2.Bucket.Encryption) obj; - if (!getDefaultKmsKey().equals(other.getDefaultKmsKey())) return false; + if (!getDefaultKmsKey() + .equals(other.getDefaultKmsKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2448,94 +2218,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Encryption parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Encryption parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Encryption 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.storage.v2.Bucket.Encryption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Encryption 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.storage.v2.Bucket.Encryption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Encryption 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.storage.v2.Bucket.Encryption 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.storage.v2.Bucket.Encryption 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.storage.v2.Bucket.Encryption parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Encryption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Encryption 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.storage.v2.Bucket.Encryption 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.storage.v2.Bucket.Encryption 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.storage.v2.Bucket.Encryption 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 @@ -2545,41 +2311,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Encryption properties of a bucket.
      * 
* * Protobuf type {@code google.storage.v2.Bucket.Encryption} */ - 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.storage.v2.Bucket.Encryption) com.google.storage.v2.Bucket.EncryptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Encryption_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Encryption.class, - com.google.storage.v2.Bucket.Encryption.Builder.class); + com.google.storage.v2.Bucket.Encryption.class, com.google.storage.v2.Bucket.Encryption.Builder.class); } // Construct using com.google.storage.v2.Bucket.Encryption.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(); @@ -2589,9 +2353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Encryption_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_descriptor; } @java.lang.Override @@ -2610,11 +2374,8 @@ public com.google.storage.v2.Bucket.Encryption build() { @java.lang.Override public com.google.storage.v2.Bucket.Encryption buildPartial() { - com.google.storage.v2.Bucket.Encryption result = - new com.google.storage.v2.Bucket.Encryption(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Encryption result = new com.google.storage.v2.Bucket.Encryption(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2630,41 +2391,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Encryption 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) { + 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.storage.v2.Bucket.Encryption) { - return mergeFrom((com.google.storage.v2.Bucket.Encryption) other); + return mergeFrom((com.google.storage.v2.Bucket.Encryption)other); } else { super.mergeFrom(other); return this; @@ -2704,19 +2462,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - defaultKmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + defaultKmsKey_ = 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) { @@ -2726,26 +2482,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object defaultKmsKey_ = ""; /** - * - * *
        * The name of the Cloud KMS key that will be used to encrypt objects
        * inserted into this bucket, if no encryption method is specified.
        * 
* * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The defaultKmsKey. */ public java.lang.String getDefaultKmsKey() { java.lang.Object ref = defaultKmsKey_; 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(); defaultKmsKey_ = s; return s; @@ -2754,22 +2507,21 @@ public java.lang.String getDefaultKmsKey() { } } /** - * - * *
        * The name of the Cloud KMS key that will be used to encrypt objects
        * inserted into this bucket, if no encryption method is specified.
        * 
* * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for defaultKmsKey. */ - public com.google.protobuf.ByteString getDefaultKmsKeyBytes() { + public com.google.protobuf.ByteString + getDefaultKmsKeyBytes() { java.lang.Object ref = defaultKmsKey_; 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); defaultKmsKey_ = b; return b; } else { @@ -2777,37 +2529,30 @@ public com.google.protobuf.ByteString getDefaultKmsKeyBytes() { } } /** - * - * *
        * The name of the Cloud KMS key that will be used to encrypt objects
        * inserted into this bucket, if no encryption method is specified.
        * 
* * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @param value The defaultKmsKey to set. * @return This builder for chaining. */ - public Builder setDefaultKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDefaultKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } defaultKmsKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The name of the Cloud KMS key that will be used to encrypt objects
        * inserted into this bucket, if no encryption method is specified.
        * 
* * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDefaultKmsKey() { @@ -2817,29 +2562,24 @@ public Builder clearDefaultKmsKey() { return this; } /** - * - * *
        * The name of the Cloud KMS key that will be used to encrypt objects
        * inserted into this bucket, if no encryption method is specified.
        * 
* * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for defaultKmsKey to set. * @return This builder for chaining. */ - public Builder setDefaultKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDefaultKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultKmsKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2852,42 +2592,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Encryption) - } - - // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Encryption) - private static final com.google.storage.v2.Bucket.Encryption DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Encryption(); - } - - public static com.google.storage.v2.Bucket.Encryption getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Encryption parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Encryption) + } + + // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Encryption) + private static final com.google.storage.v2.Bucket.Encryption DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Encryption(); + } + + public static com.google.storage.v2.Bucket.Encryption getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Encryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2902,147 +2641,117 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Encryption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface IamConfigOrBuilder - extends + public interface IamConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.IamConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Bucket restriction options currently enforced on the bucket.
      * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; * @return Whether the uniformBucketLevelAccess field is set. */ boolean hasUniformBucketLevelAccess(); /** - * - * *
      * Bucket restriction options currently enforced on the bucket.
      * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; * @return The uniformBucketLevelAccess. */ com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getUniformBucketLevelAccess(); /** - * - * *
      * Bucket restriction options currently enforced on the bucket.
      * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder - getUniformBucketLevelAccessOrBuilder(); + com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder getUniformBucketLevelAccessOrBuilder(); /** - * - * *
      * Whether IAM will enforce public access prevention. Valid values are
      * "enforced" or "inherited".
      * 
* * string public_access_prevention = 3; - * * @return The publicAccessPrevention. */ java.lang.String getPublicAccessPrevention(); /** - * - * *
      * Whether IAM will enforce public access prevention. Valid values are
      * "enforced" or "inherited".
      * 
* * string public_access_prevention = 3; - * * @return The bytes for publicAccessPrevention. */ - com.google.protobuf.ByteString getPublicAccessPreventionBytes(); + com.google.protobuf.ByteString + getPublicAccessPreventionBytes(); } /** - * - * *
    * Bucket restriction options.
    * 
* * Protobuf type {@code google.storage.v2.Bucket.IamConfig} */ - public static final class IamConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IamConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.IamConfig) IamConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IamConfig.newBuilder() to construct. private IamConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IamConfig() { publicAccessPrevention_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IamConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_IamConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.IamConfig.class, - com.google.storage.v2.Bucket.IamConfig.Builder.class); + com.google.storage.v2.Bucket.IamConfig.class, com.google.storage.v2.Bucket.IamConfig.Builder.class); } - public interface UniformBucketLevelAccessOrBuilder - extends + public interface UniformBucketLevelAccessOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * If set, access checks only use bucket-level IAM policies or above.
        * 
* * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); /** - * - * *
        * The deadline time for changing
        * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3051,13 +2760,10 @@ public interface UniformBucketLevelAccessOrBuilder
        * 
* * .google.protobuf.Timestamp lock_time = 2; - * * @return Whether the lockTime field is set. */ boolean hasLockTime(); /** - * - * *
        * The deadline time for changing
        * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3066,13 +2772,10 @@ public interface UniformBucketLevelAccessOrBuilder
        * 
* * .google.protobuf.Timestamp lock_time = 2; - * * @return The lockTime. */ com.google.protobuf.Timestamp getLockTime(); /** - * - * *
        * The deadline time for changing
        * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3085,8 +2788,6 @@ public interface UniformBucketLevelAccessOrBuilder
       com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder();
     }
     /**
-     *
-     *
      * 
      * Settings for Uniform Bucket level access.
      * See https://cloud.google.com/storage/docs/uniform-bucket-level-access.
@@ -3094,51 +2795,47 @@ public interface UniformBucketLevelAccessOrBuilder
      *
      * Protobuf type {@code google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess}
      */
-    public static final class UniformBucketLevelAccess
-        extends com.google.protobuf.GeneratedMessageV3
-        implements
+    public static final class UniformBucketLevelAccess extends
+        com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess)
         UniformBucketLevelAccessOrBuilder {
-      private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
       // Use UniformBucketLevelAccess.newBuilder() to construct.
       private UniformBucketLevelAccess(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-
-      private UniformBucketLevelAccess() {}
+      private UniformBucketLevelAccess() {
+      }
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
         return new UniformBucketLevelAccess();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.class,
-                com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder.class);
+                com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.class, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder.class);
       }
 
+      private int bitField0_;
       public static final int ENABLED_FIELD_NUMBER = 1;
       private boolean enabled_ = false;
       /**
-       *
-       *
        * 
        * If set, access checks only use bucket-level IAM policies or above.
        * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -3149,8 +2846,6 @@ public boolean getEnabled() { public static final int LOCK_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp lockTime_; /** - * - * *
        * The deadline time for changing
        * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3159,16 +2854,13 @@ public boolean getEnabled() {
        * 
* * .google.protobuf.Timestamp lock_time = 2; - * * @return Whether the lockTime field is set. */ @java.lang.Override public boolean hasLockTime() { - return lockTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The deadline time for changing
        * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3177,7 +2869,6 @@ public boolean hasLockTime() {
        * 
* * .google.protobuf.Timestamp lock_time = 2; - * * @return The lockTime. */ @java.lang.Override @@ -3185,8 +2876,6 @@ public com.google.protobuf.Timestamp getLockTime() { return lockTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lockTime_; } /** - * - * *
        * The deadline time for changing
        * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3202,7 +2891,6 @@ public com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder() {
       }
 
       private byte memoizedIsInitialized = -1;
-
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
@@ -3214,11 +2902,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 (enabled_ != false) {
           output.writeBool(1, enabled_);
         }
-        if (lockTime_ != null) {
+        if (((bitField0_ & 0x00000001) != 0)) {
           output.writeMessage(2, getLockTime());
         }
         getUnknownFields().writeTo(output);
@@ -3231,10 +2920,12 @@ public int getSerializedSize() {
 
         size = 0;
         if (enabled_ != false) {
-          size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
+          size += com.google.protobuf.CodedOutputStream
+            .computeBoolSize(1, enabled_);
         }
-        if (lockTime_ != null) {
-          size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLockTime());
+        if (((bitField0_ & 0x00000001) != 0)) {
+          size += com.google.protobuf.CodedOutputStream
+            .computeMessageSize(2, getLockTime());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
@@ -3244,18 +2935,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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess)) {
           return super.equals(obj);
         }
-        com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess other =
-            (com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess) obj;
+        com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess other = (com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess) obj;
 
-        if (getEnabled() != other.getEnabled()) return false;
+        if (getEnabled()
+            != other.getEnabled()) return false;
         if (hasLockTime() != other.hasLockTime()) return false;
         if (hasLockTime()) {
-          if (!getLockTime().equals(other.getLockTime())) return false;
+          if (!getLockTime()
+              .equals(other.getLockTime())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
@@ -3269,7 +2961,8 @@ public int hashCode() {
         int hash = 41;
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + ENABLED_FIELD_NUMBER;
-        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
+        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+            getEnabled());
         if (hasLockTime()) {
           hash = (37 * hash) + LOCK_TIME_FIELD_NUMBER;
           hash = (53 * hash) + getLockTime().hashCode();
@@ -3280,96 +2973,89 @@ public int hashCode() {
       }
 
       public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess 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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess 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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-
       public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess 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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
-          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(byte[] data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-
       public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess 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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
-          java.io.InputStream input) throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(java.io.InputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input);
       }
-
       public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess 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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
-          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseDelimitedFrom(java.io.InputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseDelimitedWithIOException(PARSER, input);
       }
 
-      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
-          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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess 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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess 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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess 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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess prototype) {
+      public static Builder newBuilder(com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess 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
@@ -3379,8 +3065,6 @@ protected Builder newBuilderForType(
         return builder;
       }
       /**
-       *
-       *
        * 
        * Settings for Uniform Bucket level access.
        * See https://cloud.google.com/storage/docs/uniform-bucket-level-access.
@@ -3388,34 +3072,39 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess}
        */
-      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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess)
           com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-          return com.google.storage.v2.StorageProto
-              .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor
+            getDescriptor() {
+          return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.storage.v2.StorageProto
-              .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable
+          return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.class,
-                  com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder.class);
+                  com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.class, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder.class);
         }
 
-        // Construct using
-        // com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.newBuilder()
-        private Builder() {}
+        // Construct using com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.newBuilder()
+        private Builder() {
+          maybeForceBuilderInitialization();
+        }
 
-        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(
+            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
+          maybeForceBuilderInitialization();
+        }
+        private void maybeForceBuilderInitialization() {
+          if (com.google.protobuf.GeneratedMessageV3
+                  .alwaysUseFieldBuilders) {
+            getLockTimeFieldBuilder();
+          }
         }
-
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -3430,16 +3119,14 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-          return com.google.storage.v2.StorageProto
-              .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor
+            getDescriptorForType() {
+          return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
         }
 
         @java.lang.Override
-        public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
-            getDefaultInstanceForType() {
-          return com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
-              .getDefaultInstance();
+        public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getDefaultInstanceForType() {
+          return com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance();
         }
 
         @java.lang.Override
@@ -3453,77 +3140,71 @@ public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess build() {
 
         @java.lang.Override
         public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess buildPartial() {
-          com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result =
-              new com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess(this);
-          if (bitField0_ != 0) {
-            buildPartial0(result);
-          }
+          com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result = new com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess(this);
+          if (bitField0_ != 0) { buildPartial0(result); }
           onBuilt();
           return result;
         }
 
-        private void buildPartial0(
-            com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result) {
+        private void buildPartial0(com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
             result.enabled_ = enabled_;
           }
+          int to_bitField0_ = 0;
           if (((from_bitField0_ & 0x00000002) != 0)) {
-            result.lockTime_ = lockTimeBuilder_ == null ? lockTime_ : lockTimeBuilder_.build();
+            result.lockTime_ = lockTimeBuilder_ == null
+                ? lockTime_
+                : lockTimeBuilder_.build();
+            to_bitField0_ |= 0x00000001;
           }
+          result.bitField0_ |= to_bitField0_;
         }
 
         @java.lang.Override
         public Builder clone() {
           return super.clone();
         }
-
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess) {
-            return mergeFrom(
-                (com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess) other);
+            return mergeFrom((com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess)other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(
-            com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess other) {
-          if (other
-              == com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
-                  .getDefaultInstance()) return this;
+        public Builder mergeFrom(com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess other) {
+          if (other == com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance()) return this;
           if (other.getEnabled() != false) {
             setEnabled(other.getEnabled());
           }
@@ -3556,25 +3237,24 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 8:
-                  {
-                    enabled_ = input.readBool();
-                    bitField0_ |= 0x00000001;
-                    break;
-                  } // case 8
-                case 18:
-                  {
-                    input.readMessage(getLockTimeFieldBuilder().getBuilder(), extensionRegistry);
-                    bitField0_ |= 0x00000002;
-                    break;
-                  } // case 18
-                default:
-                  {
-                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                      done = true; // was an endgroup tag
-                    }
-                    break;
-                  } // default:
+                case 8: {
+                  enabled_ = input.readBool();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 8
+                case 18: {
+                  input.readMessage(
+                      getLockTimeFieldBuilder().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) {
@@ -3584,19 +3264,15 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
-
         private int bitField0_;
 
-        private boolean enabled_;
+        private boolean enabled_ ;
         /**
-         *
-         *
          * 
          * If set, access checks only use bucket-level IAM policies or above.
          * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -3604,14 +3280,11 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
          * If set, access checks only use bucket-level IAM policies or above.
          * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ @@ -3623,14 +3296,11 @@ public Builder setEnabled(boolean value) { return this; } /** - * - * *
          * If set, access checks only use bucket-level IAM policies or above.
          * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -3642,13 +3312,8 @@ public Builder clearEnabled() { private com.google.protobuf.Timestamp lockTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lockTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lockTimeBuilder_; /** - * - * *
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3657,15 +3322,12 @@ public Builder clearEnabled() {
          * 
* * .google.protobuf.Timestamp lock_time = 2; - * * @return Whether the lockTime field is set. */ public boolean hasLockTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3674,21 +3336,16 @@ public boolean hasLockTime() {
          * 
* * .google.protobuf.Timestamp lock_time = 2; - * * @return The lockTime. */ public com.google.protobuf.Timestamp getLockTime() { if (lockTimeBuilder_ == null) { - return lockTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lockTime_; + return lockTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lockTime_; } else { return lockTimeBuilder_.getMessage(); } } /** - * - * *
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3712,8 +3369,6 @@ public Builder setLockTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
-         *
-         *
          * 
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3723,7 +3378,8 @@ public Builder setLockTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp lock_time = 2;
          */
-        public Builder setLockTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+        public Builder setLockTime(
+            com.google.protobuf.Timestamp.Builder builderForValue) {
           if (lockTimeBuilder_ == null) {
             lockTime_ = builderForValue.build();
           } else {
@@ -3734,8 +3390,6 @@ public Builder setLockTime(com.google.protobuf.Timestamp.Builder builderForValue
           return this;
         }
         /**
-         *
-         *
          * 
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3747,9 +3401,9 @@ public Builder setLockTime(com.google.protobuf.Timestamp.Builder builderForValue
          */
         public Builder mergeLockTime(com.google.protobuf.Timestamp value) {
           if (lockTimeBuilder_ == null) {
-            if (((bitField0_ & 0x00000002) != 0)
-                && lockTime_ != null
-                && lockTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+            if (((bitField0_ & 0x00000002) != 0) &&
+              lockTime_ != null &&
+              lockTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
               getLockTimeBuilder().mergeFrom(value);
             } else {
               lockTime_ = value;
@@ -3757,13 +3411,13 @@ public Builder mergeLockTime(com.google.protobuf.Timestamp value) {
           } else {
             lockTimeBuilder_.mergeFrom(value);
           }
-          bitField0_ |= 0x00000002;
-          onChanged();
+          if (lockTime_ != null) {
+            bitField0_ |= 0x00000002;
+            onChanged();
+          }
           return this;
         }
         /**
-         *
-         *
          * 
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3784,8 +3438,6 @@ public Builder clearLockTime() {
           return this;
         }
         /**
-         *
-         *
          * 
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3801,8 +3453,6 @@ public com.google.protobuf.Timestamp.Builder getLockTimeBuilder() {
           return getLockTimeFieldBuilder().getBuilder();
         }
         /**
-         *
-         *
          * 
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3816,14 +3466,11 @@ public com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder() {
           if (lockTimeBuilder_ != null) {
             return lockTimeBuilder_.getMessageOrBuilder();
           } else {
-            return lockTime_ == null
-                ? com.google.protobuf.Timestamp.getDefaultInstance()
-                : lockTime_;
+            return lockTime_ == null ?
+                com.google.protobuf.Timestamp.getDefaultInstance() : lockTime_;
           }
         }
         /**
-         *
-         *
          * 
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3834,22 +3481,18 @@ public com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder() {
          * .google.protobuf.Timestamp lock_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> 
             getLockTimeFieldBuilder() {
           if (lockTimeBuilder_ == null) {
-            lockTimeBuilder_ =
-                new com.google.protobuf.SingleFieldBuilderV3<
-                    com.google.protobuf.Timestamp,
-                    com.google.protobuf.Timestamp.Builder,
-                    com.google.protobuf.TimestampOrBuilder>(
-                    getLockTime(), getParentForChildren(), isClean());
+            lockTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                    getLockTime(),
+                    getParentForChildren(),
+                    isClean());
             lockTime_ = null;
           }
           return lockTimeBuilder_;
         }
-
         @java.lang.Override
         public final Builder setUnknownFields(
             final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -3862,44 +3505,41 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
 
+
         // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess)
       }
 
       // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess)
-      private static final com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
-          DEFAULT_INSTANCE;
-
+      private static final com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess DEFAULT_INSTANCE;
       static {
         DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess();
       }
 
-      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
-          getDefaultInstance() {
+      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
 
-      private static final com.google.protobuf.Parser PARSER =
-          new com.google.protobuf.AbstractParser() {
-            @java.lang.Override
-            public UniformBucketLevelAccess parsePartialFrom(
-                com.google.protobuf.CodedInputStream input,
-                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-                throws com.google.protobuf.InvalidProtocolBufferException {
-              Builder builder = newBuilder();
-              try {
-                builder.mergeFrom(input, extensionRegistry);
-              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-                throw e.setUnfinishedMessage(builder.buildPartial());
-              } catch (com.google.protobuf.UninitializedMessageException e) {
-                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 UniformBucketLevelAccess parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            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;
@@ -3911,85 +3551,61 @@ public com.google.protobuf.Parser getParserForType() {
       }
 
       @java.lang.Override
-      public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
-          getDefaultInstanceForType() {
+      public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
+
     }
 
+    private int bitField0_;
     public static final int UNIFORM_BUCKET_LEVEL_ACCESS_FIELD_NUMBER = 1;
-    private com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
-        uniformBucketLevelAccess_;
+    private com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniformBucketLevelAccess_;
     /**
-     *
-     *
      * 
      * Bucket restriction options currently enforced on the bucket.
      * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; * @return Whether the uniformBucketLevelAccess field is set. */ @java.lang.Override public boolean hasUniformBucketLevelAccess() { - return uniformBucketLevelAccess_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Bucket restriction options currently enforced on the bucket.
      * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; * @return The uniformBucketLevelAccess. */ @java.lang.Override - public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess - getUniformBucketLevelAccess() { - return uniformBucketLevelAccess_ == null - ? com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() - : uniformBucketLevelAccess_; + public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getUniformBucketLevelAccess() { + return uniformBucketLevelAccess_ == null ? com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() : uniformBucketLevelAccess_; } /** - * - * *
      * Bucket restriction options currently enforced on the bucket.
      * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ @java.lang.Override - public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder - getUniformBucketLevelAccessOrBuilder() { - return uniformBucketLevelAccess_ == null - ? com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() - : uniformBucketLevelAccess_; + public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder getUniformBucketLevelAccessOrBuilder() { + return uniformBucketLevelAccess_ == null ? com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() : uniformBucketLevelAccess_; } public static final int PUBLIC_ACCESS_PREVENTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object publicAccessPrevention_ = ""; /** - * - * *
      * Whether IAM will enforce public access prevention. Valid values are
      * "enforced" or "inherited".
      * 
* * string public_access_prevention = 3; - * * @return The publicAccessPrevention. */ @java.lang.Override @@ -3998,30 +3614,30 @@ public java.lang.String getPublicAccessPrevention() { 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(); publicAccessPrevention_ = s; return s; } } /** - * - * *
      * Whether IAM will enforce public access prevention. Valid values are
      * "enforced" or "inherited".
      * 
* * string public_access_prevention = 3; - * * @return The bytes for publicAccessPrevention. */ @java.lang.Override - public com.google.protobuf.ByteString getPublicAccessPreventionBytes() { + public com.google.protobuf.ByteString + getPublicAccessPreventionBytes() { java.lang.Object ref = publicAccessPrevention_; 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); publicAccessPrevention_ = b; return b; } else { @@ -4030,7 +3646,6 @@ public com.google.protobuf.ByteString getPublicAccessPreventionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4042,8 +3657,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (uniformBucketLevelAccess_ != null) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getUniformBucketLevelAccess()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicAccessPrevention_)) { @@ -4058,14 +3674,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (uniformBucketLevelAccess_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getUniformBucketLevelAccess()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUniformBucketLevelAccess()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicAccessPrevention_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publicAccessPrevention_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publicAccessPrevention_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4075,7 +3689,7 @@ 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.storage.v2.Bucket.IamConfig)) { return super.equals(obj); @@ -4084,10 +3698,11 @@ public boolean equals(final java.lang.Object obj) { if (hasUniformBucketLevelAccess() != other.hasUniformBucketLevelAccess()) return false; if (hasUniformBucketLevelAccess()) { - if (!getUniformBucketLevelAccess().equals(other.getUniformBucketLevelAccess())) - return false; + if (!getUniformBucketLevelAccess() + .equals(other.getUniformBucketLevelAccess())) return false; } - if (!getPublicAccessPrevention().equals(other.getPublicAccessPrevention())) return false; + if (!getPublicAccessPrevention() + .equals(other.getPublicAccessPrevention())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4110,94 +3725,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.IamConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.IamConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.IamConfig 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.storage.v2.Bucket.IamConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.IamConfig 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.storage.v2.Bucket.IamConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.IamConfig 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.storage.v2.Bucket.IamConfig 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.storage.v2.Bucket.IamConfig 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.storage.v2.Bucket.IamConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.IamConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.IamConfig 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.storage.v2.Bucket.IamConfig 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.storage.v2.Bucket.IamConfig 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.storage.v2.Bucket.IamConfig 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 @@ -4207,41 +3818,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Bucket restriction options.
      * 
* * Protobuf type {@code google.storage.v2.Bucket.IamConfig} */ - 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.storage.v2.Bucket.IamConfig) com.google.storage.v2.Bucket.IamConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_IamConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.IamConfig.class, - com.google.storage.v2.Bucket.IamConfig.Builder.class); + com.google.storage.v2.Bucket.IamConfig.class, com.google.storage.v2.Bucket.IamConfig.Builder.class); } // Construct using com.google.storage.v2.Bucket.IamConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUniformBucketLevelAccessFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4256,9 +3871,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_IamConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_descriptor; } @java.lang.Override @@ -4277,67 +3892,63 @@ public com.google.storage.v2.Bucket.IamConfig build() { @java.lang.Override public com.google.storage.v2.Bucket.IamConfig buildPartial() { - com.google.storage.v2.Bucket.IamConfig result = - new com.google.storage.v2.Bucket.IamConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.IamConfig result = new com.google.storage.v2.Bucket.IamConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.storage.v2.Bucket.IamConfig result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.uniformBucketLevelAccess_ = - uniformBucketLevelAccessBuilder_ == null - ? uniformBucketLevelAccess_ - : uniformBucketLevelAccessBuilder_.build(); + result.uniformBucketLevelAccess_ = uniformBucketLevelAccessBuilder_ == null + ? uniformBucketLevelAccess_ + : uniformBucketLevelAccessBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.publicAccessPrevention_ = publicAccessPrevention_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.Bucket.IamConfig) { - return mergeFrom((com.google.storage.v2.Bucket.IamConfig) other); + return mergeFrom((com.google.storage.v2.Bucket.IamConfig)other); } else { super.mergeFrom(other); return this; @@ -4380,26 +3991,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getUniformBucketLevelAccessFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - publicAccessPrevention_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUniformBucketLevelAccessFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + publicAccessPrevention_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -4409,68 +4018,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess - uniformBucketLevelAccess_; + private com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniformBucketLevelAccess_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder> - uniformBucketLevelAccessBuilder_; + com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder> uniformBucketLevelAccessBuilder_; /** - * - * *
        * Bucket restriction options currently enforced on the bucket.
        * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; * @return Whether the uniformBucketLevelAccess field is set. */ public boolean hasUniformBucketLevelAccess() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Bucket restriction options currently enforced on the bucket.
        * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; * @return The uniformBucketLevelAccess. */ - public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess - getUniformBucketLevelAccess() { + public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getUniformBucketLevelAccess() { if (uniformBucketLevelAccessBuilder_ == null) { - return uniformBucketLevelAccess_ == null - ? com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() - : uniformBucketLevelAccess_; + return uniformBucketLevelAccess_ == null ? com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() : uniformBucketLevelAccess_; } else { return uniformBucketLevelAccessBuilder_.getMessage(); } } /** - * - * *
        * Bucket restriction options currently enforced on the bucket.
        * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ - public Builder setUniformBucketLevelAccess( - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess value) { + public Builder setUniformBucketLevelAccess(com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess value) { if (uniformBucketLevelAccessBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4484,15 +4070,11 @@ public Builder setUniformBucketLevelAccess( return this; } /** - * - * *
        * Bucket restriction options currently enforced on the bucket.
        * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ public Builder setUniformBucketLevelAccess( com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder builderForValue) { @@ -4506,24 +4088,17 @@ public Builder setUniformBucketLevelAccess( return this; } /** - * - * *
        * Bucket restriction options currently enforced on the bucket.
        * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ - public Builder mergeUniformBucketLevelAccess( - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess value) { + public Builder mergeUniformBucketLevelAccess(com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess value) { if (uniformBucketLevelAccessBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && uniformBucketLevelAccess_ != null - && uniformBucketLevelAccess_ - != com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + uniformBucketLevelAccess_ != null && + uniformBucketLevelAccess_ != com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance()) { getUniformBucketLevelAccessBuilder().mergeFrom(value); } else { uniformBucketLevelAccess_ = value; @@ -4531,20 +4106,18 @@ public Builder mergeUniformBucketLevelAccess( } else { uniformBucketLevelAccessBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (uniformBucketLevelAccess_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** - * - * *
        * Bucket restriction options currently enforced on the bucket.
        * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ public Builder clearUniformBucketLevelAccess() { bitField0_ = (bitField0_ & ~0x00000001); @@ -4557,66 +4130,48 @@ public Builder clearUniformBucketLevelAccess() { return this; } /** - * - * *
        * Bucket restriction options currently enforced on the bucket.
        * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ - public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder - getUniformBucketLevelAccessBuilder() { + public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder getUniformBucketLevelAccessBuilder() { bitField0_ |= 0x00000001; onChanged(); return getUniformBucketLevelAccessFieldBuilder().getBuilder(); } /** - * - * *
        * Bucket restriction options currently enforced on the bucket.
        * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ - public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder - getUniformBucketLevelAccessOrBuilder() { + public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder getUniformBucketLevelAccessOrBuilder() { if (uniformBucketLevelAccessBuilder_ != null) { return uniformBucketLevelAccessBuilder_.getMessageOrBuilder(); } else { - return uniformBucketLevelAccess_ == null - ? com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() - : uniformBucketLevelAccess_; + return uniformBucketLevelAccess_ == null ? + com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() : uniformBucketLevelAccess_; } } /** - * - * *
        * Bucket restriction options currently enforced on the bucket.
        * 
* - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder> + com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder> getUniformBucketLevelAccessFieldBuilder() { if (uniformBucketLevelAccessBuilder_ == null) { - uniformBucketLevelAccessBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder>( - getUniformBucketLevelAccess(), getParentForChildren(), isClean()); + uniformBucketLevelAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder>( + getUniformBucketLevelAccess(), + getParentForChildren(), + isClean()); uniformBucketLevelAccess_ = null; } return uniformBucketLevelAccessBuilder_; @@ -4624,21 +4179,19 @@ public Builder clearUniformBucketLevelAccess() { private java.lang.Object publicAccessPrevention_ = ""; /** - * - * *
        * Whether IAM will enforce public access prevention. Valid values are
        * "enforced" or "inherited".
        * 
* * string public_access_prevention = 3; - * * @return The publicAccessPrevention. */ public java.lang.String getPublicAccessPrevention() { java.lang.Object ref = publicAccessPrevention_; 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(); publicAccessPrevention_ = s; return s; @@ -4647,22 +4200,21 @@ public java.lang.String getPublicAccessPrevention() { } } /** - * - * *
        * Whether IAM will enforce public access prevention. Valid values are
        * "enforced" or "inherited".
        * 
* * string public_access_prevention = 3; - * * @return The bytes for publicAccessPrevention. */ - public com.google.protobuf.ByteString getPublicAccessPreventionBytes() { + public com.google.protobuf.ByteString + getPublicAccessPreventionBytes() { java.lang.Object ref = publicAccessPrevention_; 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); publicAccessPrevention_ = b; return b; } else { @@ -4670,37 +4222,30 @@ public com.google.protobuf.ByteString getPublicAccessPreventionBytes() { } } /** - * - * *
        * Whether IAM will enforce public access prevention. Valid values are
        * "enforced" or "inherited".
        * 
* * string public_access_prevention = 3; - * * @param value The publicAccessPrevention to set. * @return This builder for chaining. */ - public Builder setPublicAccessPrevention(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPublicAccessPrevention( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } publicAccessPrevention_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Whether IAM will enforce public access prevention. Valid values are
        * "enforced" or "inherited".
        * 
* * string public_access_prevention = 3; - * * @return This builder for chaining. */ public Builder clearPublicAccessPrevention() { @@ -4710,29 +4255,24 @@ public Builder clearPublicAccessPrevention() { return this; } /** - * - * *
        * Whether IAM will enforce public access prevention. Valid values are
        * "enforced" or "inherited".
        * 
* * string public_access_prevention = 3; - * * @param value The bytes for publicAccessPrevention to set. * @return This builder for chaining. */ - public Builder setPublicAccessPreventionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPublicAccessPreventionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); publicAccessPrevention_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4745,12 +4285,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.IamConfig) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.IamConfig) private static final com.google.storage.v2.Bucket.IamConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.IamConfig(); } @@ -4759,28 +4299,27 @@ public static com.google.storage.v2.Bucket.IamConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 IamConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -4795,16 +4334,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.IamConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface LifecycleOrBuilder - extends + public interface LifecycleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Lifecycle) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A lifecycle management rule, which is made of an action to take and the
      * condition(s) under which the action will be taken.
@@ -4812,10 +4349,9 @@ public interface LifecycleOrBuilder
      *
      * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
      */
-    java.util.List getRuleList();
+    java.util.List 
+        getRuleList();
     /**
-     *
-     *
      * 
      * A lifecycle management rule, which is made of an action to take and the
      * condition(s) under which the action will be taken.
@@ -4825,8 +4361,6 @@ public interface LifecycleOrBuilder
      */
     com.google.storage.v2.Bucket.Lifecycle.Rule getRule(int index);
     /**
-     *
-     *
      * 
      * A lifecycle management rule, which is made of an action to take and the
      * condition(s) under which the action will be taken.
@@ -4836,8 +4370,6 @@ public interface LifecycleOrBuilder
      */
     int getRuleCount();
     /**
-     *
-     *
      * 
      * A lifecycle management rule, which is made of an action to take and the
      * condition(s) under which the action will be taken.
@@ -4845,11 +4377,9 @@ public interface LifecycleOrBuilder
      *
      * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
      */
-    java.util.List
+    java.util.List 
         getRuleOrBuilderList();
     /**
-     *
-     *
      * 
      * A lifecycle management rule, which is made of an action to take and the
      * condition(s) under which the action will be taken.
@@ -4857,11 +4387,10 @@ public interface LifecycleOrBuilder
      *
      * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
      */
-    com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int index);
+    com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(
+        int index);
   }
   /**
-   *
-   *
    * 
    * Lifecycle properties of a bucket.
    * For more information, see https://cloud.google.com/storage/docs/lifecycle.
@@ -4869,73 +4398,62 @@ public interface LifecycleOrBuilder
    *
    * Protobuf type {@code google.storage.v2.Bucket.Lifecycle}
    */
-  public static final class Lifecycle extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Lifecycle extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Lifecycle)
       LifecycleOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Lifecycle.newBuilder() to construct.
     private Lifecycle(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Lifecycle() {
       rule_ = 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 Lifecycle();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.Bucket.Lifecycle.class,
-              com.google.storage.v2.Bucket.Lifecycle.Builder.class);
+              com.google.storage.v2.Bucket.Lifecycle.class, com.google.storage.v2.Bucket.Lifecycle.Builder.class);
     }
 
-    public interface RuleOrBuilder
-        extends
+    public interface RuleOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Lifecycle.Rule)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * The action to take.
        * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return Whether the action field is set. */ boolean hasAction(); /** - * - * *
        * The action to take.
        * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return The action. */ com.google.storage.v2.Bucket.Lifecycle.Rule.Action getAction(); /** - * - * *
        * The action to take.
        * 
@@ -4945,32 +4463,24 @@ public interface RuleOrBuilder com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBuilder(); /** - * - * *
        * The condition(s) under which the action will be taken.
        * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; - * * @return Whether the condition field is set. */ boolean hasCondition(); /** - * - * *
        * The condition(s) under which the action will be taken.
        * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; - * * @return The condition. */ com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getCondition(); /** - * - * *
        * The condition(s) under which the action will be taken.
        * 
@@ -4980,8 +4490,6 @@ public interface RuleOrBuilder com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder getConditionOrBuilder(); } /** - * - * *
      * A lifecycle Rule, combining an action to take on an object and a
      * condition which will trigger that action.
@@ -4989,117 +4497,102 @@ public interface RuleOrBuilder
      *
      * Protobuf type {@code google.storage.v2.Bucket.Lifecycle.Rule}
      */
-    public static final class Rule extends com.google.protobuf.GeneratedMessageV3
-        implements
+    public static final class Rule extends
+        com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Lifecycle.Rule)
         RuleOrBuilder {
-      private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
       // Use Rule.newBuilder() to construct.
       private Rule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-
-      private Rule() {}
+      private Rule() {
+      }
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
         return new Rule();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.storage.v2.Bucket.Lifecycle.Rule.class,
-                com.google.storage.v2.Bucket.Lifecycle.Rule.Builder.class);
+                com.google.storage.v2.Bucket.Lifecycle.Rule.class, com.google.storage.v2.Bucket.Lifecycle.Rule.Builder.class);
       }
 
-      public interface ActionOrBuilder
-          extends
+      public interface ActionOrBuilder extends
           // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Lifecycle.Rule.Action)
           com.google.protobuf.MessageOrBuilder {
 
         /**
-         *
-         *
          * 
          * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
          * `AbortIncompleteMultipartUpload` are supported.
          * 
* * string type = 1; - * * @return The type. */ java.lang.String getType(); /** - * - * *
          * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
          * `AbortIncompleteMultipartUpload` are supported.
          * 
* * string type = 1; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
          * Target storage class. Required iff the type of the action is
          * SetStorageClass.
          * 
* * string storage_class = 2; - * * @return The storageClass. */ java.lang.String getStorageClass(); /** - * - * *
          * Target storage class. Required iff the type of the action is
          * SetStorageClass.
          * 
* * string storage_class = 2; - * * @return The bytes for storageClass. */ - com.google.protobuf.ByteString getStorageClassBytes(); + com.google.protobuf.ByteString + getStorageClassBytes(); } /** - * - * *
        * An action to take on an object.
        * 
* * Protobuf type {@code google.storage.v2.Bucket.Lifecycle.Rule.Action} */ - public static final class Action extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Action extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Lifecycle.Rule.Action) ActionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Action.newBuilder() to construct. private Action(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Action() { type_ = ""; storageClass_ = ""; @@ -5107,39 +4600,34 @@ private Action() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Action(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.class, - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder.class); + com.google.storage.v2.Bucket.Lifecycle.Rule.Action.class, com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * *
          * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
          * `AbortIncompleteMultipartUpload` are supported.
          * 
* * string type = 1; - * * @return The type. */ @java.lang.Override @@ -5148,30 +4636,30 @@ public java.lang.String getType() { 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(); type_ = s; return s; } } /** - * - * *
          * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
          * `AbortIncompleteMultipartUpload` are supported.
          * 
* * string type = 1; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -5180,19 +4668,15 @@ public com.google.protobuf.ByteString getTypeBytes() { } public static final int STORAGE_CLASS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object storageClass_ = ""; /** - * - * *
          * Target storage class. Required iff the type of the action is
          * SetStorageClass.
          * 
* * string storage_class = 2; - * * @return The storageClass. */ @java.lang.Override @@ -5201,30 +4685,30 @@ public java.lang.String getStorageClass() { 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(); storageClass_ = s; return s; } } /** - * - * *
          * Target storage class. Required iff the type of the action is
          * SetStorageClass.
          * 
* * string storage_class = 2; - * * @return The bytes for storageClass. */ @java.lang.Override - public com.google.protobuf.ByteString getStorageClassBytes() { + public com.google.protobuf.ByteString + getStorageClassBytes() { java.lang.Object ref = storageClass_; 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); storageClass_ = b; return b; } else { @@ -5233,7 +4717,6 @@ public com.google.protobuf.ByteString getStorageClassBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5246,7 +4729,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -5276,16 +4759,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.storage.v2.Bucket.Lifecycle.Rule.Action)) { return super.equals(obj); } - com.google.storage.v2.Bucket.Lifecycle.Rule.Action other = - (com.google.storage.v2.Bucket.Lifecycle.Rule.Action) obj; + com.google.storage.v2.Bucket.Lifecycle.Rule.Action other = (com.google.storage.v2.Bucket.Lifecycle.Rule.Action) obj; - if (!getType().equals(other.getType())) return false; - if (!getStorageClass().equals(other.getStorageClass())) return false; + if (!getType() + .equals(other.getType())) return false; + if (!getStorageClass() + .equals(other.getStorageClass())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5307,95 +4791,89 @@ public int hashCode() { } public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action 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.storage.v2.Bucket.Lifecycle.Rule.Action 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.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action 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.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action 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.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action 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.storage.v2.Bucket.Lifecycle.Rule.Action parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action 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.storage.v2.Bucket.Lifecycle.Rule.Action 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.storage.v2.Bucket.Lifecycle.Rule.Action 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.storage.v2.Bucket.Lifecycle.Rule.Action prototype) { + public static Builder newBuilder(com.google.storage.v2.Bucket.Lifecycle.Rule.Action 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 @@ -5405,41 +4883,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * An action to take on an object.
          * 
* * Protobuf type {@code google.storage.v2.Bucket.Lifecycle.Rule.Action} */ - 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.storage.v2.Bucket.Lifecycle.Rule.Action) com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.class, - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder.class); + com.google.storage.v2.Bucket.Lifecycle.Rule.Action.class, com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder.class); } // Construct using com.google.storage.v2.Bucket.Lifecycle.Rule.Action.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(); @@ -5450,9 +4926,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; } @java.lang.Override @@ -5471,11 +4947,8 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Action build() { @java.lang.Override public com.google.storage.v2.Bucket.Lifecycle.Rule.Action buildPartial() { - com.google.storage.v2.Bucket.Lifecycle.Rule.Action result = - new com.google.storage.v2.Bucket.Lifecycle.Rule.Action(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Lifecycle.Rule.Action result = new com.google.storage.v2.Bucket.Lifecycle.Rule.Action(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -5494,41 +4967,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Action 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) { + 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.storage.v2.Bucket.Lifecycle.Rule.Action) { - return mergeFrom((com.google.storage.v2.Bucket.Lifecycle.Rule.Action) other); + return mergeFrom((com.google.storage.v2.Bucket.Lifecycle.Rule.Action)other); } else { super.mergeFrom(other); return this; @@ -5536,8 +5006,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.Bucket.Lifecycle.Rule.Action other) { - if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000001; @@ -5574,25 +5043,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - storageClass_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + storageClass_ = 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) { @@ -5602,26 +5068,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object type_ = ""; /** - * - * *
            * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
            * `AbortIncompleteMultipartUpload` are supported.
            * 
* * string type = 1; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -5630,22 +5093,21 @@ public java.lang.String getType() { } } /** - * - * *
            * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
            * `AbortIncompleteMultipartUpload` are supported.
            * 
* * string type = 1; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -5653,37 +5115,30 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
            * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
            * `AbortIncompleteMultipartUpload` are supported.
            * 
* * string type = 1; - * * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + * @return This builder for chaining. + */ + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
            * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
            * `AbortIncompleteMultipartUpload` are supported.
            * 
* * string type = 1; - * * @return This builder for chaining. */ public Builder clearType() { @@ -5693,22 +5148,18 @@ public Builder clearType() { return this; } /** - * - * *
            * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
            * `AbortIncompleteMultipartUpload` are supported.
            * 
* * string type = 1; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000001; @@ -5718,21 +5169,19 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object storageClass_ = ""; /** - * - * *
            * Target storage class. Required iff the type of the action is
            * SetStorageClass.
            * 
* * string storage_class = 2; - * * @return The storageClass. */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; 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(); storageClass_ = s; return s; @@ -5741,22 +5190,21 @@ public java.lang.String getStorageClass() { } } /** - * - * *
            * Target storage class. Required iff the type of the action is
            * SetStorageClass.
            * 
* * string storage_class = 2; - * * @return The bytes for storageClass. */ - public com.google.protobuf.ByteString getStorageClassBytes() { + public com.google.protobuf.ByteString + getStorageClassBytes() { java.lang.Object ref = storageClass_; 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); storageClass_ = b; return b; } else { @@ -5764,37 +5212,30 @@ public com.google.protobuf.ByteString getStorageClassBytes() { } } /** - * - * *
            * Target storage class. Required iff the type of the action is
            * SetStorageClass.
            * 
* * string storage_class = 2; - * * @param value The storageClass to set. * @return This builder for chaining. */ - public Builder setStorageClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStorageClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } storageClass_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
            * Target storage class. Required iff the type of the action is
            * SetStorageClass.
            * 
* * string storage_class = 2; - * * @return This builder for chaining. */ public Builder clearStorageClass() { @@ -5804,29 +5245,24 @@ public Builder clearStorageClass() { return this; } /** - * - * *
            * Target storage class. Required iff the type of the action is
            * SetStorageClass.
            * 
* * string storage_class = 2; - * * @param value The bytes for storageClass to set. * @return This builder for chaining. */ - public Builder setStorageClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStorageClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageClass_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5839,12 +5275,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Lifecycle.Rule.Action) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Lifecycle.Rule.Action) private static final com.google.storage.v2.Bucket.Lifecycle.Rule.Action DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Lifecycle.Rule.Action(); } @@ -5853,28 +5289,27 @@ public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Action parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Action parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -5889,16 +5324,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Lifecycle.Rule.Action getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ConditionOrBuilder - extends + public interface ConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Lifecycle.Rule.Condition) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Age of an object (in days). This condition is satisfied when an
          * object reaches the specified age.
@@ -5907,13 +5340,10 @@ public interface ConditionOrBuilder
          * 
* * optional int32 age_days = 1; - * * @return Whether the ageDays field is set. */ boolean hasAgeDays(); /** - * - * *
          * Age of an object (in days). This condition is satisfied when an
          * object reaches the specified age.
@@ -5922,40 +5352,31 @@ public interface ConditionOrBuilder
          * 
* * optional int32 age_days = 1; - * * @return The ageDays. */ int getAgeDays(); /** - * - * *
          * This condition is satisfied when an object is created before midnight
          * of the specified date in UTC.
          * 
* * .google.type.Date created_before = 2; - * * @return Whether the createdBefore field is set. */ boolean hasCreatedBefore(); /** - * - * *
          * This condition is satisfied when an object is created before midnight
          * of the specified date in UTC.
          * 
* * .google.type.Date created_before = 2; - * * @return The createdBefore. */ com.google.type.Date getCreatedBefore(); /** - * - * *
          * This condition is satisfied when an object is created before midnight
          * of the specified date in UTC.
@@ -5966,8 +5387,6 @@ public interface ConditionOrBuilder
         com.google.type.DateOrBuilder getCreatedBeforeOrBuilder();
 
         /**
-         *
-         *
          * 
          * Relevant only for versioned objects. If the value is
          * `true`, this condition matches live objects; if the value
@@ -5975,13 +5394,10 @@ public interface ConditionOrBuilder
          * 
* * optional bool is_live = 3; - * * @return Whether the isLive field is set. */ boolean hasIsLive(); /** - * - * *
          * Relevant only for versioned objects. If the value is
          * `true`, this condition matches live objects; if the value
@@ -5989,14 +5405,11 @@ public interface ConditionOrBuilder
          * 
* * optional bool is_live = 3; - * * @return The isLive. */ boolean getIsLive(); /** - * - * *
          * Relevant only for versioned objects. If the value is N, this
          * condition is satisfied when there are at least N versions (including
@@ -6004,13 +5417,10 @@ public interface ConditionOrBuilder
          * 
* * optional int32 num_newer_versions = 4; - * * @return Whether the numNewerVersions field is set. */ boolean hasNumNewerVersions(); /** - * - * *
          * Relevant only for versioned objects. If the value is N, this
          * condition is satisfied when there are at least N versions (including
@@ -6018,14 +5428,11 @@ public interface ConditionOrBuilder
          * 
* * optional int32 num_newer_versions = 4; - * * @return The numNewerVersions. */ int getNumNewerVersions(); /** - * - * *
          * Objects having any of the storage classes specified by this condition
          * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -6034,13 +5441,11 @@ public interface ConditionOrBuilder
          * 
* * repeated string matches_storage_class = 5; - * * @return A list containing the matchesStorageClass. */ - java.util.List getMatchesStorageClassList(); + java.util.List + getMatchesStorageClassList(); /** - * - * *
          * Objects having any of the storage classes specified by this condition
          * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -6049,13 +5454,10 @@ public interface ConditionOrBuilder
          * 
* * repeated string matches_storage_class = 5; - * * @return The count of matchesStorageClass. */ int getMatchesStorageClassCount(); /** - * - * *
          * Objects having any of the storage classes specified by this condition
          * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -6064,14 +5466,11 @@ public interface ConditionOrBuilder
          * 
* * repeated string matches_storage_class = 5; - * * @param index The index of the element to return. * @return The matchesStorageClass at the given index. */ java.lang.String getMatchesStorageClass(int index); /** - * - * *
          * Objects having any of the storage classes specified by this condition
          * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -6080,15 +5479,13 @@ public interface ConditionOrBuilder
          * 
* * repeated string matches_storage_class = 5; - * * @param index The index of the value to return. * @return The bytes of the matchesStorageClass at the given index. */ - com.google.protobuf.ByteString getMatchesStorageClassBytes(int index); + com.google.protobuf.ByteString + getMatchesStorageClassBytes(int index); /** - * - * *
          * Number of days that have elapsed since the custom timestamp set on an
          * object.
@@ -6096,13 +5493,10 @@ public interface ConditionOrBuilder
          * 
* * optional int32 days_since_custom_time = 7; - * * @return Whether the daysSinceCustomTime field is set. */ boolean hasDaysSinceCustomTime(); /** - * - * *
          * Number of days that have elapsed since the custom timestamp set on an
          * object.
@@ -6110,40 +5504,31 @@ public interface ConditionOrBuilder
          * 
* * optional int32 days_since_custom_time = 7; - * * @return The daysSinceCustomTime. */ int getDaysSinceCustomTime(); /** - * - * *
          * An object matches this condition if the custom timestamp set on the
          * object is before the specified date in UTC.
          * 
* * .google.type.Date custom_time_before = 8; - * * @return Whether the customTimeBefore field is set. */ boolean hasCustomTimeBefore(); /** - * - * *
          * An object matches this condition if the custom timestamp set on the
          * object is before the specified date in UTC.
          * 
* * .google.type.Date custom_time_before = 8; - * * @return The customTimeBefore. */ com.google.type.Date getCustomTimeBefore(); /** - * - * *
          * An object matches this condition if the custom timestamp set on the
          * object is before the specified date in UTC.
@@ -6154,8 +5539,6 @@ public interface ConditionOrBuilder
         com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder();
 
         /**
-         *
-         *
          * 
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if these many days have been
@@ -6165,13 +5548,10 @@ public interface ConditionOrBuilder
          * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return Whether the daysSinceNoncurrentTime field is set. */ boolean hasDaysSinceNoncurrentTime(); /** - * - * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if these many days have been
@@ -6181,14 +5561,11 @@ public interface ConditionOrBuilder
          * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return The daysSinceNoncurrentTime. */ int getDaysSinceNoncurrentTime(); /** - * - * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if it became noncurrent before
@@ -6196,13 +5573,10 @@ public interface ConditionOrBuilder
          * 
* * .google.type.Date noncurrent_time_before = 10; - * * @return Whether the noncurrentTimeBefore field is set. */ boolean hasNoncurrentTimeBefore(); /** - * - * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if it became noncurrent before
@@ -6210,13 +5584,10 @@ public interface ConditionOrBuilder
          * 
* * .google.type.Date noncurrent_time_before = 10; - * * @return The noncurrentTimeBefore. */ com.google.type.Date getNoncurrentTimeBefore(); /** - * - * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if it became noncurrent before
@@ -6228,167 +5599,144 @@ public interface ConditionOrBuilder
         com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder();
 
         /**
-         *
-         *
          * 
          * List of object name prefixes. If any prefix exactly matches the
          * beginning of the object name, the condition evaluates to true.
          * 
* * repeated string matches_prefix = 11; - * * @return A list containing the matchesPrefix. */ - java.util.List getMatchesPrefixList(); + java.util.List + getMatchesPrefixList(); /** - * - * *
          * List of object name prefixes. If any prefix exactly matches the
          * beginning of the object name, the condition evaluates to true.
          * 
* * repeated string matches_prefix = 11; - * * @return The count of matchesPrefix. */ int getMatchesPrefixCount(); /** - * - * *
          * List of object name prefixes. If any prefix exactly matches the
          * beginning of the object name, the condition evaluates to true.
          * 
* * repeated string matches_prefix = 11; - * * @param index The index of the element to return. * @return The matchesPrefix at the given index. */ java.lang.String getMatchesPrefix(int index); /** - * - * *
          * List of object name prefixes. If any prefix exactly matches the
          * beginning of the object name, the condition evaluates to true.
          * 
* * repeated string matches_prefix = 11; - * * @param index The index of the value to return. * @return The bytes of the matchesPrefix at the given index. */ - com.google.protobuf.ByteString getMatchesPrefixBytes(int index); + com.google.protobuf.ByteString + getMatchesPrefixBytes(int index); /** - * - * *
          * List of object name suffixes. If any suffix exactly matches the
          * end of the object name, the condition evaluates to true.
          * 
* * repeated string matches_suffix = 12; - * * @return A list containing the matchesSuffix. */ - java.util.List getMatchesSuffixList(); + java.util.List + getMatchesSuffixList(); /** - * - * *
          * List of object name suffixes. If any suffix exactly matches the
          * end of the object name, the condition evaluates to true.
          * 
* * repeated string matches_suffix = 12; - * * @return The count of matchesSuffix. */ int getMatchesSuffixCount(); /** - * - * *
          * List of object name suffixes. If any suffix exactly matches the
          * end of the object name, the condition evaluates to true.
          * 
* * repeated string matches_suffix = 12; - * * @param index The index of the element to return. * @return The matchesSuffix at the given index. */ java.lang.String getMatchesSuffix(int index); /** - * - * *
          * List of object name suffixes. If any suffix exactly matches the
          * end of the object name, the condition evaluates to true.
          * 
* * repeated string matches_suffix = 12; - * * @param index The index of the value to return. * @return The bytes of the matchesSuffix at the given index. */ - com.google.protobuf.ByteString getMatchesSuffixBytes(int index); + com.google.protobuf.ByteString + getMatchesSuffixBytes(int index); } /** - * - * *
        * A condition of an object which triggers some action.
        * 
* * Protobuf type {@code google.storage.v2.Bucket.Lifecycle.Rule.Condition} */ - public static final class Condition extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Condition extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Lifecycle.Rule.Condition) ConditionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Condition.newBuilder() to construct. private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Condition() { - matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); - matchesPrefix_ = com.google.protobuf.LazyStringArrayList.emptyList(); - matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); + matchesStorageClass_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + matchesPrefix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + matchesSuffix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Condition(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.class, - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder.class); + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.class, com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder.class); } private int bitField0_; public static final int AGE_DAYS_FIELD_NUMBER = 1; private int ageDays_ = 0; /** - * - * *
          * Age of an object (in days). This condition is satisfied when an
          * object reaches the specified age.
@@ -6397,7 +5745,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
* * optional int32 age_days = 1; - * * @return Whether the ageDays field is set. */ @java.lang.Override @@ -6405,8 +5752,6 @@ public boolean hasAgeDays() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
          * Age of an object (in days). This condition is satisfied when an
          * object reaches the specified age.
@@ -6415,7 +5760,6 @@ public boolean hasAgeDays() {
          * 
* * optional int32 age_days = 1; - * * @return The ageDays. */ @java.lang.Override @@ -6426,42 +5770,32 @@ public int getAgeDays() { public static final int CREATED_BEFORE_FIELD_NUMBER = 2; private com.google.type.Date createdBefore_; /** - * - * *
          * This condition is satisfied when an object is created before midnight
          * of the specified date in UTC.
          * 
* * .google.type.Date created_before = 2; - * * @return Whether the createdBefore field is set. */ @java.lang.Override public boolean hasCreatedBefore() { - return createdBefore_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
          * This condition is satisfied when an object is created before midnight
          * of the specified date in UTC.
          * 
* * .google.type.Date created_before = 2; - * * @return The createdBefore. */ @java.lang.Override public com.google.type.Date getCreatedBefore() { - return createdBefore_ == null - ? com.google.type.Date.getDefaultInstance() - : createdBefore_; + return createdBefore_ == null ? com.google.type.Date.getDefaultInstance() : createdBefore_; } /** - * - * *
          * This condition is satisfied when an object is created before midnight
          * of the specified date in UTC.
@@ -6471,16 +5805,12 @@ public com.google.type.Date getCreatedBefore() {
          */
         @java.lang.Override
         public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
-          return createdBefore_ == null
-              ? com.google.type.Date.getDefaultInstance()
-              : createdBefore_;
+          return createdBefore_ == null ? com.google.type.Date.getDefaultInstance() : createdBefore_;
         }
 
         public static final int IS_LIVE_FIELD_NUMBER = 3;
         private boolean isLive_ = false;
         /**
-         *
-         *
          * 
          * Relevant only for versioned objects. If the value is
          * `true`, this condition matches live objects; if the value
@@ -6488,16 +5818,13 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
          * 
* * optional bool is_live = 3; - * * @return Whether the isLive field is set. */ @java.lang.Override public boolean hasIsLive() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
          * Relevant only for versioned objects. If the value is
          * `true`, this condition matches live objects; if the value
@@ -6505,7 +5832,6 @@ public boolean hasIsLive() {
          * 
* * optional bool is_live = 3; - * * @return The isLive. */ @java.lang.Override @@ -6516,8 +5842,6 @@ public boolean getIsLive() { public static final int NUM_NEWER_VERSIONS_FIELD_NUMBER = 4; private int numNewerVersions_ = 0; /** - * - * *
          * Relevant only for versioned objects. If the value is N, this
          * condition is satisfied when there are at least N versions (including
@@ -6525,16 +5849,13 @@ public boolean getIsLive() {
          * 
* * optional int32 num_newer_versions = 4; - * * @return Whether the numNewerVersions field is set. */ @java.lang.Override public boolean hasNumNewerVersions() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
          * Relevant only for versioned objects. If the value is N, this
          * condition is satisfied when there are at least N versions (including
@@ -6542,7 +5863,6 @@ public boolean hasNumNewerVersions() {
          * 
* * optional int32 num_newer_versions = 4; - * * @return The numNewerVersions. */ @java.lang.Override @@ -6551,13 +5871,10 @@ public int getNumNewerVersions() { } public static final int MATCHES_STORAGE_CLASS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
          * Objects having any of the storage classes specified by this condition
          * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -6566,15 +5883,13 @@ public int getNumNewerVersions() {
          * 
* * repeated string matches_storage_class = 5; - * * @return A list containing the matchesStorageClass. */ - public com.google.protobuf.ProtocolStringList getMatchesStorageClassList() { + public com.google.protobuf.ProtocolStringList + getMatchesStorageClassList() { return matchesStorageClass_; } /** - * - * *
          * Objects having any of the storage classes specified by this condition
          * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -6583,15 +5898,12 @@ public com.google.protobuf.ProtocolStringList getMatchesStorageClassList() {
          * 
* * repeated string matches_storage_class = 5; - * * @return The count of matchesStorageClass. */ public int getMatchesStorageClassCount() { return matchesStorageClass_.size(); } /** - * - * *
          * Objects having any of the storage classes specified by this condition
          * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -6600,7 +5912,6 @@ public int getMatchesStorageClassCount() {
          * 
* * repeated string matches_storage_class = 5; - * * @param index The index of the element to return. * @return The matchesStorageClass at the given index. */ @@ -6608,8 +5919,6 @@ public java.lang.String getMatchesStorageClass(int index) { return matchesStorageClass_.get(index); } /** - * - * *
          * Objects having any of the storage classes specified by this condition
          * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -6618,19 +5927,17 @@ public java.lang.String getMatchesStorageClass(int index) {
          * 
* * repeated string matches_storage_class = 5; - * * @param index The index of the value to return. * @return The bytes of the matchesStorageClass at the given index. */ - public com.google.protobuf.ByteString getMatchesStorageClassBytes(int index) { + public com.google.protobuf.ByteString + getMatchesStorageClassBytes(int index) { return matchesStorageClass_.getByteString(index); } public static final int DAYS_SINCE_CUSTOM_TIME_FIELD_NUMBER = 7; private int daysSinceCustomTime_ = 0; /** - * - * *
          * Number of days that have elapsed since the custom timestamp set on an
          * object.
@@ -6638,16 +5945,13 @@ public com.google.protobuf.ByteString getMatchesStorageClassBytes(int index) {
          * 
* * optional int32 days_since_custom_time = 7; - * * @return Whether the daysSinceCustomTime field is set. */ @java.lang.Override public boolean hasDaysSinceCustomTime() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
          * Number of days that have elapsed since the custom timestamp set on an
          * object.
@@ -6655,7 +5959,6 @@ public boolean hasDaysSinceCustomTime() {
          * 
* * optional int32 days_since_custom_time = 7; - * * @return The daysSinceCustomTime. */ @java.lang.Override @@ -6666,42 +5969,32 @@ public int getDaysSinceCustomTime() { public static final int CUSTOM_TIME_BEFORE_FIELD_NUMBER = 8; private com.google.type.Date customTimeBefore_; /** - * - * *
          * An object matches this condition if the custom timestamp set on the
          * object is before the specified date in UTC.
          * 
* * .google.type.Date custom_time_before = 8; - * * @return Whether the customTimeBefore field is set. */ @java.lang.Override public boolean hasCustomTimeBefore() { - return customTimeBefore_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
          * An object matches this condition if the custom timestamp set on the
          * object is before the specified date in UTC.
          * 
* * .google.type.Date custom_time_before = 8; - * * @return The customTimeBefore. */ @java.lang.Override public com.google.type.Date getCustomTimeBefore() { - return customTimeBefore_ == null - ? com.google.type.Date.getDefaultInstance() - : customTimeBefore_; + return customTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : customTimeBefore_; } /** - * - * *
          * An object matches this condition if the custom timestamp set on the
          * object is before the specified date in UTC.
@@ -6711,16 +6004,12 @@ public com.google.type.Date getCustomTimeBefore() {
          */
         @java.lang.Override
         public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
-          return customTimeBefore_ == null
-              ? com.google.type.Date.getDefaultInstance()
-              : customTimeBefore_;
+          return customTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : customTimeBefore_;
         }
 
         public static final int DAYS_SINCE_NONCURRENT_TIME_FIELD_NUMBER = 9;
         private int daysSinceNoncurrentTime_ = 0;
         /**
-         *
-         *
          * 
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if these many days have been
@@ -6730,16 +6019,13 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
          * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return Whether the daysSinceNoncurrentTime field is set. */ @java.lang.Override public boolean hasDaysSinceNoncurrentTime() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if these many days have been
@@ -6749,7 +6035,6 @@ public boolean hasDaysSinceNoncurrentTime() {
          * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return The daysSinceNoncurrentTime. */ @java.lang.Override @@ -6760,8 +6045,6 @@ public int getDaysSinceNoncurrentTime() { public static final int NONCURRENT_TIME_BEFORE_FIELD_NUMBER = 10; private com.google.type.Date noncurrentTimeBefore_; /** - * - * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if it became noncurrent before
@@ -6769,16 +6052,13 @@ public int getDaysSinceNoncurrentTime() {
          * 
* * .google.type.Date noncurrent_time_before = 10; - * * @return Whether the noncurrentTimeBefore field is set. */ @java.lang.Override public boolean hasNoncurrentTimeBefore() { - return noncurrentTimeBefore_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if it became noncurrent before
@@ -6786,18 +6066,13 @@ public boolean hasNoncurrentTimeBefore() {
          * 
* * .google.type.Date noncurrent_time_before = 10; - * * @return The noncurrentTimeBefore. */ @java.lang.Override public com.google.type.Date getNoncurrentTimeBefore() { - return noncurrentTimeBefore_ == null - ? com.google.type.Date.getDefaultInstance() - : noncurrentTimeBefore_; + return noncurrentTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : noncurrentTimeBefore_; } /** - * - * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if it became noncurrent before
@@ -6808,56 +6083,45 @@ public com.google.type.Date getNoncurrentTimeBefore() {
          */
         @java.lang.Override
         public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder() {
-          return noncurrentTimeBefore_ == null
-              ? com.google.type.Date.getDefaultInstance()
-              : noncurrentTimeBefore_;
+          return noncurrentTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : noncurrentTimeBefore_;
         }
 
         public static final int MATCHES_PREFIX_FIELD_NUMBER = 11;
-
         @SuppressWarnings("serial")
         private com.google.protobuf.LazyStringArrayList matchesPrefix_ =
             com.google.protobuf.LazyStringArrayList.emptyList();
         /**
-         *
-         *
          * 
          * List of object name prefixes. If any prefix exactly matches the
          * beginning of the object name, the condition evaluates to true.
          * 
* * repeated string matches_prefix = 11; - * * @return A list containing the matchesPrefix. */ - public com.google.protobuf.ProtocolStringList getMatchesPrefixList() { + public com.google.protobuf.ProtocolStringList + getMatchesPrefixList() { return matchesPrefix_; } /** - * - * *
          * List of object name prefixes. If any prefix exactly matches the
          * beginning of the object name, the condition evaluates to true.
          * 
* * repeated string matches_prefix = 11; - * * @return The count of matchesPrefix. */ public int getMatchesPrefixCount() { return matchesPrefix_.size(); } /** - * - * *
          * List of object name prefixes. If any prefix exactly matches the
          * beginning of the object name, the condition evaluates to true.
          * 
* * repeated string matches_prefix = 11; - * * @param index The index of the element to return. * @return The matchesPrefix at the given index. */ @@ -6865,67 +6129,56 @@ public java.lang.String getMatchesPrefix(int index) { return matchesPrefix_.get(index); } /** - * - * *
          * List of object name prefixes. If any prefix exactly matches the
          * beginning of the object name, the condition evaluates to true.
          * 
* * repeated string matches_prefix = 11; - * * @param index The index of the value to return. * @return The bytes of the matchesPrefix at the given index. */ - public com.google.protobuf.ByteString getMatchesPrefixBytes(int index) { + public com.google.protobuf.ByteString + getMatchesPrefixBytes(int index) { return matchesPrefix_.getByteString(index); } public static final int MATCHES_SUFFIX_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
          * List of object name suffixes. If any suffix exactly matches the
          * end of the object name, the condition evaluates to true.
          * 
* * repeated string matches_suffix = 12; - * * @return A list containing the matchesSuffix. */ - public com.google.protobuf.ProtocolStringList getMatchesSuffixList() { + public com.google.protobuf.ProtocolStringList + getMatchesSuffixList() { return matchesSuffix_; } /** - * - * *
          * List of object name suffixes. If any suffix exactly matches the
          * end of the object name, the condition evaluates to true.
          * 
* * repeated string matches_suffix = 12; - * * @return The count of matchesSuffix. */ public int getMatchesSuffixCount() { return matchesSuffix_.size(); } /** - * - * *
          * List of object name suffixes. If any suffix exactly matches the
          * end of the object name, the condition evaluates to true.
          * 
* * repeated string matches_suffix = 12; - * * @param index The index of the element to return. * @return The matchesSuffix at the given index. */ @@ -6933,24 +6186,21 @@ public java.lang.String getMatchesSuffix(int index) { return matchesSuffix_.get(index); } /** - * - * *
          * List of object name suffixes. If any suffix exactly matches the
          * end of the object name, the condition evaluates to true.
          * 
* * repeated string matches_suffix = 12; - * * @param index The index of the value to return. * @return The bytes of the matchesSuffix at the given index. */ - public com.google.protobuf.ByteString getMatchesSuffixBytes(int index) { + public com.google.protobuf.ByteString + getMatchesSuffixBytes(int index) { return matchesSuffix_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6963,42 +6213,39 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, ageDays_); } - if (createdBefore_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getCreatedBefore()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, isLive_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(4, numNewerVersions_); } for (int i = 0; i < matchesStorageClass_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 5, matchesStorageClass_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, matchesStorageClass_.getRaw(i)); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeInt32(7, daysSinceCustomTime_); } - if (customTimeBefore_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getCustomTimeBefore()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeInt32(9, daysSinceNoncurrentTime_); } - if (noncurrentTimeBefore_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(10, getNoncurrentTimeBefore()); } for (int i = 0; i < matchesPrefix_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 11, matchesPrefix_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, matchesPrefix_.getRaw(i)); } for (int i = 0; i < matchesSuffix_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 12, matchesSuffix_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, matchesSuffix_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -7010,16 +6257,20 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, ageDays_); - } - if (createdBefore_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreatedBefore()); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, ageDays_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isLive_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreatedBefore()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, numNewerVersions_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isLive_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, numNewerVersions_); } { int dataSize = 0; @@ -7029,21 +6280,21 @@ public int getSerializedSize() { size += dataSize; size += 1 * getMatchesStorageClassList().size(); } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, daysSinceCustomTime_); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, daysSinceCustomTime_); } - if (customTimeBefore_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCustomTimeBefore()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCustomTimeBefore()); } - if (((bitField0_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(9, daysSinceNoncurrentTime_); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, daysSinceNoncurrentTime_); } - if (noncurrentTimeBefore_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getNoncurrentTimeBefore()); + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getNoncurrentTimeBefore()); } { int dataSize = 0; @@ -7069,50 +6320,59 @@ 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.storage.v2.Bucket.Lifecycle.Rule.Condition)) { return super.equals(obj); } - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition other = - (com.google.storage.v2.Bucket.Lifecycle.Rule.Condition) obj; + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition other = (com.google.storage.v2.Bucket.Lifecycle.Rule.Condition) obj; if (hasAgeDays() != other.hasAgeDays()) return false; if (hasAgeDays()) { - if (getAgeDays() != other.getAgeDays()) return false; + if (getAgeDays() + != other.getAgeDays()) return false; } if (hasCreatedBefore() != other.hasCreatedBefore()) return false; if (hasCreatedBefore()) { - if (!getCreatedBefore().equals(other.getCreatedBefore())) return false; + if (!getCreatedBefore() + .equals(other.getCreatedBefore())) return false; } if (hasIsLive() != other.hasIsLive()) return false; if (hasIsLive()) { - if (getIsLive() != other.getIsLive()) return false; + if (getIsLive() + != other.getIsLive()) return false; } if (hasNumNewerVersions() != other.hasNumNewerVersions()) return false; if (hasNumNewerVersions()) { - if (getNumNewerVersions() != other.getNumNewerVersions()) return false; + if (getNumNewerVersions() + != other.getNumNewerVersions()) return false; } - if (!getMatchesStorageClassList().equals(other.getMatchesStorageClassList())) - return false; + if (!getMatchesStorageClassList() + .equals(other.getMatchesStorageClassList())) return false; if (hasDaysSinceCustomTime() != other.hasDaysSinceCustomTime()) return false; if (hasDaysSinceCustomTime()) { - if (getDaysSinceCustomTime() != other.getDaysSinceCustomTime()) return false; + if (getDaysSinceCustomTime() + != other.getDaysSinceCustomTime()) return false; } if (hasCustomTimeBefore() != other.hasCustomTimeBefore()) return false; if (hasCustomTimeBefore()) { - if (!getCustomTimeBefore().equals(other.getCustomTimeBefore())) return false; + if (!getCustomTimeBefore() + .equals(other.getCustomTimeBefore())) return false; } if (hasDaysSinceNoncurrentTime() != other.hasDaysSinceNoncurrentTime()) return false; if (hasDaysSinceNoncurrentTime()) { - if (getDaysSinceNoncurrentTime() != other.getDaysSinceNoncurrentTime()) return false; + if (getDaysSinceNoncurrentTime() + != other.getDaysSinceNoncurrentTime()) return false; } if (hasNoncurrentTimeBefore() != other.hasNoncurrentTimeBefore()) return false; if (hasNoncurrentTimeBefore()) { - if (!getNoncurrentTimeBefore().equals(other.getNoncurrentTimeBefore())) return false; + if (!getNoncurrentTimeBefore() + .equals(other.getNoncurrentTimeBefore())) return false; } - if (!getMatchesPrefixList().equals(other.getMatchesPrefixList())) return false; - if (!getMatchesSuffixList().equals(other.getMatchesSuffixList())) return false; + if (!getMatchesPrefixList() + .equals(other.getMatchesPrefixList())) return false; + if (!getMatchesSuffixList() + .equals(other.getMatchesSuffixList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7134,7 +6394,8 @@ public int hashCode() { } if (hasIsLive()) { hash = (37 * hash) + IS_LIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsLive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsLive()); } if (hasNumNewerVersions()) { hash = (37 * hash) + NUM_NEWER_VERSIONS_FIELD_NUMBER; @@ -7174,95 +6435,89 @@ public int hashCode() { } public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition 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.storage.v2.Bucket.Lifecycle.Rule.Condition 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.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition 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.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition 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.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition 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.storage.v2.Bucket.Lifecycle.Rule.Condition parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition 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.storage.v2.Bucket.Lifecycle.Rule.Condition 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.storage.v2.Bucket.Lifecycle.Rule.Condition 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.storage.v2.Bucket.Lifecycle.Rule.Condition prototype) { + public static Builder newBuilder(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition 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 @@ -7272,41 +6527,47 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * A condition of an object which triggers some action.
          * 
* * Protobuf type {@code google.storage.v2.Bucket.Lifecycle.Rule.Condition} */ - 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.storage.v2.Bucket.Lifecycle.Rule.Condition) com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.class, - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder.class); + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.class, com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder.class); } // Construct using com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCreatedBeforeFieldBuilder(); + getCustomTimeBeforeFieldBuilder(); + getNoncurrentTimeBeforeFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -7319,7 +6580,8 @@ public Builder clear() { } isLive_ = false; numNewerVersions_ = 0; - matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); + matchesStorageClass_ = + com.google.protobuf.LazyStringArrayList.emptyList(); daysSinceCustomTime_ = 0; customTimeBefore_ = null; if (customTimeBeforeBuilder_ != null) { @@ -7332,15 +6594,17 @@ public Builder clear() { noncurrentTimeBeforeBuilder_.dispose(); noncurrentTimeBeforeBuilder_ = null; } - matchesPrefix_ = com.google.protobuf.LazyStringArrayList.emptyList(); - matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); + matchesPrefix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + matchesSuffix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; } @java.lang.Override @@ -7359,11 +6623,8 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition build() { @java.lang.Override public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition buildPartial() { - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result = - new com.google.storage.v2.Bucket.Lifecycle.Rule.Condition(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result = new com.google.storage.v2.Bucket.Lifecycle.Rule.Condition(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -7376,16 +6637,18 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createdBefore_ = - createdBeforeBuilder_ == null ? createdBefore_ : createdBeforeBuilder_.build(); + result.createdBefore_ = createdBeforeBuilder_ == null + ? createdBefore_ + : createdBeforeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.isLive_ = isLive_; - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.numNewerVersions_ = numNewerVersions_; - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { matchesStorageClass_.makeImmutable(); @@ -7393,23 +6656,23 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition } if (((from_bitField0_ & 0x00000020) != 0)) { result.daysSinceCustomTime_ = daysSinceCustomTime_; - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.customTimeBefore_ = - customTimeBeforeBuilder_ == null - ? customTimeBefore_ - : customTimeBeforeBuilder_.build(); + result.customTimeBefore_ = customTimeBeforeBuilder_ == null + ? customTimeBefore_ + : customTimeBeforeBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { result.daysSinceNoncurrentTime_ = daysSinceNoncurrentTime_; - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.noncurrentTimeBefore_ = - noncurrentTimeBeforeBuilder_ == null - ? noncurrentTimeBefore_ - : noncurrentTimeBeforeBuilder_.build(); + result.noncurrentTimeBefore_ = noncurrentTimeBeforeBuilder_ == null + ? noncurrentTimeBefore_ + : noncurrentTimeBeforeBuilder_.build(); + to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000200) != 0)) { matchesPrefix_.makeImmutable(); @@ -7426,41 +6689,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition 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.storage.v2.Bucket.Lifecycle.Rule.Condition) { - return mergeFrom((com.google.storage.v2.Bucket.Lifecycle.Rule.Condition) other); + return mergeFrom((com.google.storage.v2.Bucket.Lifecycle.Rule.Condition)other); } else { super.mergeFrom(other); return this; @@ -7468,8 +6728,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition other) { - if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance()) return this; if (other.hasAgeDays()) { setAgeDays(other.getAgeDays()); } @@ -7550,85 +6809,76 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - ageDays_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage( - getCreatedBeforeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - isLive_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - numNewerVersions_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMatchesStorageClassIsMutable(); - matchesStorageClass_.add(s); - break; - } // case 42 - case 56: - { - daysSinceCustomTime_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 66: - { - input.readMessage( - getCustomTimeBeforeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 72: - { - daysSinceNoncurrentTime_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: - { - input.readMessage( - getNoncurrentTimeBeforeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 82 - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMatchesPrefixIsMutable(); - matchesPrefix_.add(s); - break; - } // case 90 - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMatchesSuffixIsMutable(); - matchesSuffix_.add(s); - break; - } // case 98 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + ageDays_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getCreatedBeforeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + isLive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + numNewerVersions_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMatchesStorageClassIsMutable(); + matchesStorageClass_.add(s); + break; + } // case 42 + case 56: { + daysSinceCustomTime_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: { + input.readMessage( + getCustomTimeBeforeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: { + daysSinceNoncurrentTime_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: { + input.readMessage( + getNoncurrentTimeBeforeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMatchesPrefixIsMutable(); + matchesPrefix_.add(s); + break; + } // case 90 + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMatchesSuffixIsMutable(); + matchesSuffix_.add(s); + break; + } // case 98 + 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) { @@ -7638,13 +6888,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int ageDays_; + private int ageDays_ ; /** - * - * *
            * Age of an object (in days). This condition is satisfied when an
            * object reaches the specified age.
@@ -7653,7 +6900,6 @@ public Builder mergeFrom(
            * 
* * optional int32 age_days = 1; - * * @return Whether the ageDays field is set. */ @java.lang.Override @@ -7661,8 +6907,6 @@ public boolean hasAgeDays() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
            * Age of an object (in days). This condition is satisfied when an
            * object reaches the specified age.
@@ -7671,7 +6915,6 @@ public boolean hasAgeDays() {
            * 
* * optional int32 age_days = 1; - * * @return The ageDays. */ @java.lang.Override @@ -7679,8 +6922,6 @@ public int getAgeDays() { return ageDays_; } /** - * - * *
            * Age of an object (in days). This condition is satisfied when an
            * object reaches the specified age.
@@ -7689,7 +6930,6 @@ public int getAgeDays() {
            * 
* * optional int32 age_days = 1; - * * @param value The ageDays to set. * @return This builder for chaining. */ @@ -7701,8 +6941,6 @@ public Builder setAgeDays(int value) { return this; } /** - * - * *
            * Age of an object (in days). This condition is satisfied when an
            * object reaches the specified age.
@@ -7711,7 +6949,6 @@ public Builder setAgeDays(int value) {
            * 
* * optional int32 age_days = 1; - * * @return This builder for chaining. */ public Builder clearAgeDays() { @@ -7723,47 +6960,36 @@ public Builder clearAgeDays() { private com.google.type.Date createdBefore_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - createdBeforeBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> createdBeforeBuilder_; /** - * - * *
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
            * 
* * .google.type.Date created_before = 2; - * * @return Whether the createdBefore field is set. */ public boolean hasCreatedBefore() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
            * 
* * .google.type.Date created_before = 2; - * * @return The createdBefore. */ public com.google.type.Date getCreatedBefore() { if (createdBeforeBuilder_ == null) { - return createdBefore_ == null - ? com.google.type.Date.getDefaultInstance() - : createdBefore_; + return createdBefore_ == null ? com.google.type.Date.getDefaultInstance() : createdBefore_; } else { return createdBeforeBuilder_.getMessage(); } } /** - * - * *
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7785,8 +7011,6 @@ public Builder setCreatedBefore(com.google.type.Date value) {
             return this;
           }
           /**
-           *
-           *
            * 
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7794,7 +7018,8 @@ public Builder setCreatedBefore(com.google.type.Date value) {
            *
            * .google.type.Date created_before = 2;
            */
-          public Builder setCreatedBefore(com.google.type.Date.Builder builderForValue) {
+          public Builder setCreatedBefore(
+              com.google.type.Date.Builder builderForValue) {
             if (createdBeforeBuilder_ == null) {
               createdBefore_ = builderForValue.build();
             } else {
@@ -7805,8 +7030,6 @@ public Builder setCreatedBefore(com.google.type.Date.Builder builderForValue) {
             return this;
           }
           /**
-           *
-           *
            * 
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7816,9 +7039,9 @@ public Builder setCreatedBefore(com.google.type.Date.Builder builderForValue) {
            */
           public Builder mergeCreatedBefore(com.google.type.Date value) {
             if (createdBeforeBuilder_ == null) {
-              if (((bitField0_ & 0x00000002) != 0)
-                  && createdBefore_ != null
-                  && createdBefore_ != com.google.type.Date.getDefaultInstance()) {
+              if (((bitField0_ & 0x00000002) != 0) &&
+                createdBefore_ != null &&
+                createdBefore_ != com.google.type.Date.getDefaultInstance()) {
                 getCreatedBeforeBuilder().mergeFrom(value);
               } else {
                 createdBefore_ = value;
@@ -7826,13 +7049,13 @@ public Builder mergeCreatedBefore(com.google.type.Date value) {
             } else {
               createdBeforeBuilder_.mergeFrom(value);
             }
-            bitField0_ |= 0x00000002;
-            onChanged();
+            if (createdBefore_ != null) {
+              bitField0_ |= 0x00000002;
+              onChanged();
+            }
             return this;
           }
           /**
-           *
-           *
            * 
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7851,8 +7074,6 @@ public Builder clearCreatedBefore() {
             return this;
           }
           /**
-           *
-           *
            * 
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7866,8 +7087,6 @@ public com.google.type.Date.Builder getCreatedBeforeBuilder() {
             return getCreatedBeforeFieldBuilder().getBuilder();
           }
           /**
-           *
-           *
            * 
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7879,14 +7098,11 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
             if (createdBeforeBuilder_ != null) {
               return createdBeforeBuilder_.getMessageOrBuilder();
             } else {
-              return createdBefore_ == null
-                  ? com.google.type.Date.getDefaultInstance()
-                  : createdBefore_;
+              return createdBefore_ == null ?
+                  com.google.type.Date.getDefaultInstance() : createdBefore_;
             }
           }
           /**
-           *
-           *
            * 
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7895,24 +7111,21 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
            * .google.type.Date created_before = 2;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
+              com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
               getCreatedBeforeFieldBuilder() {
             if (createdBeforeBuilder_ == null) {
-              createdBeforeBuilder_ =
-                  new com.google.protobuf.SingleFieldBuilderV3<
-                      com.google.type.Date,
-                      com.google.type.Date.Builder,
-                      com.google.type.DateOrBuilder>(
-                      getCreatedBefore(), getParentForChildren(), isClean());
+              createdBeforeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+                      getCreatedBefore(),
+                      getParentForChildren(),
+                      isClean());
               createdBefore_ = null;
             }
             return createdBeforeBuilder_;
           }
 
-          private boolean isLive_;
+          private boolean isLive_ ;
           /**
-           *
-           *
            * 
            * Relevant only for versioned objects. If the value is
            * `true`, this condition matches live objects; if the value
@@ -7920,7 +7133,6 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
            * 
* * optional bool is_live = 3; - * * @return Whether the isLive field is set. */ @java.lang.Override @@ -7928,8 +7140,6 @@ public boolean hasIsLive() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
            * Relevant only for versioned objects. If the value is
            * `true`, this condition matches live objects; if the value
@@ -7937,7 +7147,6 @@ public boolean hasIsLive() {
            * 
* * optional bool is_live = 3; - * * @return The isLive. */ @java.lang.Override @@ -7945,8 +7154,6 @@ public boolean getIsLive() { return isLive_; } /** - * - * *
            * Relevant only for versioned objects. If the value is
            * `true`, this condition matches live objects; if the value
@@ -7954,7 +7161,6 @@ public boolean getIsLive() {
            * 
* * optional bool is_live = 3; - * * @param value The isLive to set. * @return This builder for chaining. */ @@ -7966,8 +7172,6 @@ public Builder setIsLive(boolean value) { return this; } /** - * - * *
            * Relevant only for versioned objects. If the value is
            * `true`, this condition matches live objects; if the value
@@ -7975,7 +7179,6 @@ public Builder setIsLive(boolean value) {
            * 
* * optional bool is_live = 3; - * * @return This builder for chaining. */ public Builder clearIsLive() { @@ -7985,10 +7188,8 @@ public Builder clearIsLive() { return this; } - private int numNewerVersions_; + private int numNewerVersions_ ; /** - * - * *
            * Relevant only for versioned objects. If the value is N, this
            * condition is satisfied when there are at least N versions (including
@@ -7996,7 +7197,6 @@ public Builder clearIsLive() {
            * 
* * optional int32 num_newer_versions = 4; - * * @return Whether the numNewerVersions field is set. */ @java.lang.Override @@ -8004,8 +7204,6 @@ public boolean hasNumNewerVersions() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
            * Relevant only for versioned objects. If the value is N, this
            * condition is satisfied when there are at least N versions (including
@@ -8013,7 +7211,6 @@ public boolean hasNumNewerVersions() {
            * 
* * optional int32 num_newer_versions = 4; - * * @return The numNewerVersions. */ @java.lang.Override @@ -8021,8 +7218,6 @@ public int getNumNewerVersions() { return numNewerVersions_; } /** - * - * *
            * Relevant only for versioned objects. If the value is N, this
            * condition is satisfied when there are at least N versions (including
@@ -8030,7 +7225,6 @@ public int getNumNewerVersions() {
            * 
* * optional int32 num_newer_versions = 4; - * * @param value The numNewerVersions to set. * @return This builder for chaining. */ @@ -8042,8 +7236,6 @@ public Builder setNumNewerVersions(int value) { return this; } /** - * - * *
            * Relevant only for versioned objects. If the value is N, this
            * condition is satisfied when there are at least N versions (including
@@ -8051,7 +7243,6 @@ public Builder setNumNewerVersions(int value) {
            * 
* * optional int32 num_newer_versions = 4; - * * @return This builder for chaining. */ public Builder clearNumNewerVersions() { @@ -8063,17 +7254,13 @@ public Builder clearNumNewerVersions() { private com.google.protobuf.LazyStringArrayList matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMatchesStorageClassIsMutable() { if (!matchesStorageClass_.isModifiable()) { - matchesStorageClass_ = - new com.google.protobuf.LazyStringArrayList(matchesStorageClass_); + matchesStorageClass_ = new com.google.protobuf.LazyStringArrayList(matchesStorageClass_); } bitField0_ |= 0x00000010; } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8082,16 +7269,14 @@ private void ensureMatchesStorageClassIsMutable() {
            * 
* * repeated string matches_storage_class = 5; - * * @return A list containing the matchesStorageClass. */ - public com.google.protobuf.ProtocolStringList getMatchesStorageClassList() { + public com.google.protobuf.ProtocolStringList + getMatchesStorageClassList() { matchesStorageClass_.makeImmutable(); return matchesStorageClass_; } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8100,15 +7285,12 @@ public com.google.protobuf.ProtocolStringList getMatchesStorageClassList() {
            * 
* * repeated string matches_storage_class = 5; - * * @return The count of matchesStorageClass. */ public int getMatchesStorageClassCount() { return matchesStorageClass_.size(); } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8117,7 +7299,6 @@ public int getMatchesStorageClassCount() {
            * 
* * repeated string matches_storage_class = 5; - * * @param index The index of the element to return. * @return The matchesStorageClass at the given index. */ @@ -8125,8 +7306,6 @@ public java.lang.String getMatchesStorageClass(int index) { return matchesStorageClass_.get(index); } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8135,16 +7314,14 @@ public java.lang.String getMatchesStorageClass(int index) {
            * 
* * repeated string matches_storage_class = 5; - * * @param index The index of the value to return. * @return The bytes of the matchesStorageClass at the given index. */ - public com.google.protobuf.ByteString getMatchesStorageClassBytes(int index) { + public com.google.protobuf.ByteString + getMatchesStorageClassBytes(int index) { return matchesStorageClass_.getByteString(index); } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8153,15 +7330,13 @@ public com.google.protobuf.ByteString getMatchesStorageClassBytes(int index) {
            * 
* * repeated string matches_storage_class = 5; - * * @param index The index to set the value at. * @param value The matchesStorageClass to set. * @return This builder for chaining. */ - public Builder setMatchesStorageClass(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMatchesStorageClass( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesStorageClassIsMutable(); matchesStorageClass_.set(index, value); bitField0_ |= 0x00000010; @@ -8169,8 +7344,6 @@ public Builder setMatchesStorageClass(int index, java.lang.String value) { return this; } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8179,14 +7352,12 @@ public Builder setMatchesStorageClass(int index, java.lang.String value) {
            * 
* * repeated string matches_storage_class = 5; - * * @param value The matchesStorageClass to add. * @return This builder for chaining. */ - public Builder addMatchesStorageClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMatchesStorageClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesStorageClassIsMutable(); matchesStorageClass_.add(value); bitField0_ |= 0x00000010; @@ -8194,8 +7365,6 @@ public Builder addMatchesStorageClass(java.lang.String value) { return this; } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8204,20 +7373,19 @@ public Builder addMatchesStorageClass(java.lang.String value) {
            * 
* * repeated string matches_storage_class = 5; - * * @param values The matchesStorageClass to add. * @return This builder for chaining. */ - public Builder addAllMatchesStorageClass(java.lang.Iterable values) { + public Builder addAllMatchesStorageClass( + java.lang.Iterable values) { ensureMatchesStorageClassIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchesStorageClass_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchesStorageClass_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8226,19 +7394,16 @@ public Builder addAllMatchesStorageClass(java.lang.Iterable va
            * 
* * repeated string matches_storage_class = 5; - * * @return This builder for chaining. */ public Builder clearMatchesStorageClass() { - matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + matchesStorageClass_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8247,14 +7412,12 @@ public Builder clearMatchesStorageClass() {
            * 
* * repeated string matches_storage_class = 5; - * * @param value The bytes of the matchesStorageClass to add. * @return This builder for chaining. */ - public Builder addMatchesStorageClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMatchesStorageClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMatchesStorageClassIsMutable(); matchesStorageClass_.add(value); @@ -8263,10 +7426,8 @@ public Builder addMatchesStorageClassBytes(com.google.protobuf.ByteString value) return this; } - private int daysSinceCustomTime_; + private int daysSinceCustomTime_ ; /** - * - * *
            * Number of days that have elapsed since the custom timestamp set on an
            * object.
@@ -8274,7 +7435,6 @@ public Builder addMatchesStorageClassBytes(com.google.protobuf.ByteString value)
            * 
* * optional int32 days_since_custom_time = 7; - * * @return Whether the daysSinceCustomTime field is set. */ @java.lang.Override @@ -8282,8 +7442,6 @@ public boolean hasDaysSinceCustomTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
            * Number of days that have elapsed since the custom timestamp set on an
            * object.
@@ -8291,7 +7449,6 @@ public boolean hasDaysSinceCustomTime() {
            * 
* * optional int32 days_since_custom_time = 7; - * * @return The daysSinceCustomTime. */ @java.lang.Override @@ -8299,8 +7456,6 @@ public int getDaysSinceCustomTime() { return daysSinceCustomTime_; } /** - * - * *
            * Number of days that have elapsed since the custom timestamp set on an
            * object.
@@ -8308,7 +7463,6 @@ public int getDaysSinceCustomTime() {
            * 
* * optional int32 days_since_custom_time = 7; - * * @param value The daysSinceCustomTime to set. * @return This builder for chaining. */ @@ -8320,8 +7474,6 @@ public Builder setDaysSinceCustomTime(int value) { return this; } /** - * - * *
            * Number of days that have elapsed since the custom timestamp set on an
            * object.
@@ -8329,7 +7481,6 @@ public Builder setDaysSinceCustomTime(int value) {
            * 
* * optional int32 days_since_custom_time = 7; - * * @return This builder for chaining. */ public Builder clearDaysSinceCustomTime() { @@ -8341,47 +7492,36 @@ public Builder clearDaysSinceCustomTime() { private com.google.type.Date customTimeBefore_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - customTimeBeforeBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> customTimeBeforeBuilder_; /** - * - * *
            * An object matches this condition if the custom timestamp set on the
            * object is before the specified date in UTC.
            * 
* * .google.type.Date custom_time_before = 8; - * * @return Whether the customTimeBefore field is set. */ public boolean hasCustomTimeBefore() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
            * An object matches this condition if the custom timestamp set on the
            * object is before the specified date in UTC.
            * 
* * .google.type.Date custom_time_before = 8; - * * @return The customTimeBefore. */ public com.google.type.Date getCustomTimeBefore() { if (customTimeBeforeBuilder_ == null) { - return customTimeBefore_ == null - ? com.google.type.Date.getDefaultInstance() - : customTimeBefore_; + return customTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : customTimeBefore_; } else { return customTimeBeforeBuilder_.getMessage(); } } /** - * - * *
            * An object matches this condition if the custom timestamp set on the
            * object is before the specified date in UTC.
@@ -8403,8 +7543,6 @@ public Builder setCustomTimeBefore(com.google.type.Date value) {
             return this;
           }
           /**
-           *
-           *
            * 
            * An object matches this condition if the custom timestamp set on the
            * object is before the specified date in UTC.
@@ -8412,7 +7550,8 @@ public Builder setCustomTimeBefore(com.google.type.Date value) {
            *
            * .google.type.Date custom_time_before = 8;
            */
-          public Builder setCustomTimeBefore(com.google.type.Date.Builder builderForValue) {
+          public Builder setCustomTimeBefore(
+              com.google.type.Date.Builder builderForValue) {
             if (customTimeBeforeBuilder_ == null) {
               customTimeBefore_ = builderForValue.build();
             } else {
@@ -8423,8 +7562,6 @@ public Builder setCustomTimeBefore(com.google.type.Date.Builder builderForValue)
             return this;
           }
           /**
-           *
-           *
            * 
            * An object matches this condition if the custom timestamp set on the
            * object is before the specified date in UTC.
@@ -8434,9 +7571,9 @@ public Builder setCustomTimeBefore(com.google.type.Date.Builder builderForValue)
            */
           public Builder mergeCustomTimeBefore(com.google.type.Date value) {
             if (customTimeBeforeBuilder_ == null) {
-              if (((bitField0_ & 0x00000040) != 0)
-                  && customTimeBefore_ != null
-                  && customTimeBefore_ != com.google.type.Date.getDefaultInstance()) {
+              if (((bitField0_ & 0x00000040) != 0) &&
+                customTimeBefore_ != null &&
+                customTimeBefore_ != com.google.type.Date.getDefaultInstance()) {
                 getCustomTimeBeforeBuilder().mergeFrom(value);
               } else {
                 customTimeBefore_ = value;
@@ -8444,13 +7581,13 @@ public Builder mergeCustomTimeBefore(com.google.type.Date value) {
             } else {
               customTimeBeforeBuilder_.mergeFrom(value);
             }
-            bitField0_ |= 0x00000040;
-            onChanged();
+            if (customTimeBefore_ != null) {
+              bitField0_ |= 0x00000040;
+              onChanged();
+            }
             return this;
           }
           /**
-           *
-           *
            * 
            * An object matches this condition if the custom timestamp set on the
            * object is before the specified date in UTC.
@@ -8469,8 +7606,6 @@ public Builder clearCustomTimeBefore() {
             return this;
           }
           /**
-           *
-           *
            * 
            * An object matches this condition if the custom timestamp set on the
            * object is before the specified date in UTC.
@@ -8484,8 +7619,6 @@ public com.google.type.Date.Builder getCustomTimeBeforeBuilder() {
             return getCustomTimeBeforeFieldBuilder().getBuilder();
           }
           /**
-           *
-           *
            * 
            * An object matches this condition if the custom timestamp set on the
            * object is before the specified date in UTC.
@@ -8497,14 +7630,11 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
             if (customTimeBeforeBuilder_ != null) {
               return customTimeBeforeBuilder_.getMessageOrBuilder();
             } else {
-              return customTimeBefore_ == null
-                  ? com.google.type.Date.getDefaultInstance()
-                  : customTimeBefore_;
+              return customTimeBefore_ == null ?
+                  com.google.type.Date.getDefaultInstance() : customTimeBefore_;
             }
           }
           /**
-           *
-           *
            * 
            * An object matches this condition if the custom timestamp set on the
            * object is before the specified date in UTC.
@@ -8513,24 +7643,21 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
            * .google.type.Date custom_time_before = 8;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
+              com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
               getCustomTimeBeforeFieldBuilder() {
             if (customTimeBeforeBuilder_ == null) {
-              customTimeBeforeBuilder_ =
-                  new com.google.protobuf.SingleFieldBuilderV3<
-                      com.google.type.Date,
-                      com.google.type.Date.Builder,
-                      com.google.type.DateOrBuilder>(
-                      getCustomTimeBefore(), getParentForChildren(), isClean());
+              customTimeBeforeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+                      getCustomTimeBefore(),
+                      getParentForChildren(),
+                      isClean());
               customTimeBefore_ = null;
             }
             return customTimeBeforeBuilder_;
           }
 
-          private int daysSinceNoncurrentTime_;
+          private int daysSinceNoncurrentTime_ ;
           /**
-           *
-           *
            * 
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if these many days have been
@@ -8540,7 +7667,6 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
            * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return Whether the daysSinceNoncurrentTime field is set. */ @java.lang.Override @@ -8548,8 +7674,6 @@ public boolean hasDaysSinceNoncurrentTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if these many days have been
@@ -8559,7 +7683,6 @@ public boolean hasDaysSinceNoncurrentTime() {
            * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return The daysSinceNoncurrentTime. */ @java.lang.Override @@ -8567,8 +7690,6 @@ public int getDaysSinceNoncurrentTime() { return daysSinceNoncurrentTime_; } /** - * - * *
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if these many days have been
@@ -8578,7 +7699,6 @@ public int getDaysSinceNoncurrentTime() {
            * 
* * optional int32 days_since_noncurrent_time = 9; - * * @param value The daysSinceNoncurrentTime to set. * @return This builder for chaining. */ @@ -8590,8 +7710,6 @@ public Builder setDaysSinceNoncurrentTime(int value) { return this; } /** - * - * *
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if these many days have been
@@ -8601,7 +7719,6 @@ public Builder setDaysSinceNoncurrentTime(int value) {
            * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return This builder for chaining. */ public Builder clearDaysSinceNoncurrentTime() { @@ -8613,11 +7730,8 @@ public Builder clearDaysSinceNoncurrentTime() { private com.google.type.Date noncurrentTimeBefore_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - noncurrentTimeBeforeBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> noncurrentTimeBeforeBuilder_; /** - * - * *
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if it became noncurrent before
@@ -8625,15 +7739,12 @@ public Builder clearDaysSinceNoncurrentTime() {
            * 
* * .google.type.Date noncurrent_time_before = 10; - * * @return Whether the noncurrentTimeBefore field is set. */ public boolean hasNoncurrentTimeBefore() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if it became noncurrent before
@@ -8641,21 +7752,16 @@ public boolean hasNoncurrentTimeBefore() {
            * 
* * .google.type.Date noncurrent_time_before = 10; - * * @return The noncurrentTimeBefore. */ public com.google.type.Date getNoncurrentTimeBefore() { if (noncurrentTimeBeforeBuilder_ == null) { - return noncurrentTimeBefore_ == null - ? com.google.type.Date.getDefaultInstance() - : noncurrentTimeBefore_; + return noncurrentTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : noncurrentTimeBefore_; } else { return noncurrentTimeBeforeBuilder_.getMessage(); } } /** - * - * *
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if it became noncurrent before
@@ -8678,8 +7784,6 @@ public Builder setNoncurrentTimeBefore(com.google.type.Date value) {
             return this;
           }
           /**
-           *
-           *
            * 
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if it became noncurrent before
@@ -8688,7 +7792,8 @@ public Builder setNoncurrentTimeBefore(com.google.type.Date value) {
            *
            * .google.type.Date noncurrent_time_before = 10;
            */
-          public Builder setNoncurrentTimeBefore(com.google.type.Date.Builder builderForValue) {
+          public Builder setNoncurrentTimeBefore(
+              com.google.type.Date.Builder builderForValue) {
             if (noncurrentTimeBeforeBuilder_ == null) {
               noncurrentTimeBefore_ = builderForValue.build();
             } else {
@@ -8699,8 +7804,6 @@ public Builder setNoncurrentTimeBefore(com.google.type.Date.Builder builderForVa
             return this;
           }
           /**
-           *
-           *
            * 
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if it became noncurrent before
@@ -8711,9 +7814,9 @@ public Builder setNoncurrentTimeBefore(com.google.type.Date.Builder builderForVa
            */
           public Builder mergeNoncurrentTimeBefore(com.google.type.Date value) {
             if (noncurrentTimeBeforeBuilder_ == null) {
-              if (((bitField0_ & 0x00000100) != 0)
-                  && noncurrentTimeBefore_ != null
-                  && noncurrentTimeBefore_ != com.google.type.Date.getDefaultInstance()) {
+              if (((bitField0_ & 0x00000100) != 0) &&
+                noncurrentTimeBefore_ != null &&
+                noncurrentTimeBefore_ != com.google.type.Date.getDefaultInstance()) {
                 getNoncurrentTimeBeforeBuilder().mergeFrom(value);
               } else {
                 noncurrentTimeBefore_ = value;
@@ -8721,13 +7824,13 @@ public Builder mergeNoncurrentTimeBefore(com.google.type.Date value) {
             } else {
               noncurrentTimeBeforeBuilder_.mergeFrom(value);
             }
-            bitField0_ |= 0x00000100;
-            onChanged();
+            if (noncurrentTimeBefore_ != null) {
+              bitField0_ |= 0x00000100;
+              onChanged();
+            }
             return this;
           }
-          /**
-           *
-           *
+          /**
            * 
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if it became noncurrent before
@@ -8747,8 +7850,6 @@ public Builder clearNoncurrentTimeBefore() {
             return this;
           }
           /**
-           *
-           *
            * 
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if it became noncurrent before
@@ -8763,8 +7864,6 @@ public com.google.type.Date.Builder getNoncurrentTimeBeforeBuilder() {
             return getNoncurrentTimeBeforeFieldBuilder().getBuilder();
           }
           /**
-           *
-           *
            * 
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if it became noncurrent before
@@ -8777,14 +7876,11 @@ public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder() {
             if (noncurrentTimeBeforeBuilder_ != null) {
               return noncurrentTimeBeforeBuilder_.getMessageOrBuilder();
             } else {
-              return noncurrentTimeBefore_ == null
-                  ? com.google.type.Date.getDefaultInstance()
-                  : noncurrentTimeBefore_;
+              return noncurrentTimeBefore_ == null ?
+                  com.google.type.Date.getDefaultInstance() : noncurrentTimeBefore_;
             }
           }
           /**
-           *
-           *
            * 
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if it became noncurrent before
@@ -8794,15 +7890,14 @@ public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder() {
            * .google.type.Date noncurrent_time_before = 10;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
+              com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
               getNoncurrentTimeBeforeFieldBuilder() {
             if (noncurrentTimeBeforeBuilder_ == null) {
-              noncurrentTimeBeforeBuilder_ =
-                  new com.google.protobuf.SingleFieldBuilderV3<
-                      com.google.type.Date,
-                      com.google.type.Date.Builder,
-                      com.google.type.DateOrBuilder>(
-                      getNoncurrentTimeBefore(), getParentForChildren(), isClean());
+              noncurrentTimeBeforeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+                      getNoncurrentTimeBefore(),
+                      getParentForChildren(),
+                      isClean());
               noncurrentTimeBefore_ = null;
             }
             return noncurrentTimeBeforeBuilder_;
@@ -8810,7 +7905,6 @@ public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder() {
 
           private com.google.protobuf.LazyStringArrayList matchesPrefix_ =
               com.google.protobuf.LazyStringArrayList.emptyList();
-
           private void ensureMatchesPrefixIsMutable() {
             if (!matchesPrefix_.isModifiable()) {
               matchesPrefix_ = new com.google.protobuf.LazyStringArrayList(matchesPrefix_);
@@ -8818,46 +7912,38 @@ private void ensureMatchesPrefixIsMutable() {
             bitField0_ |= 0x00000200;
           }
           /**
-           *
-           *
            * 
            * List of object name prefixes. If any prefix exactly matches the
            * beginning of the object name, the condition evaluates to true.
            * 
* * repeated string matches_prefix = 11; - * * @return A list containing the matchesPrefix. */ - public com.google.protobuf.ProtocolStringList getMatchesPrefixList() { + public com.google.protobuf.ProtocolStringList + getMatchesPrefixList() { matchesPrefix_.makeImmutable(); return matchesPrefix_; } /** - * - * *
            * List of object name prefixes. If any prefix exactly matches the
            * beginning of the object name, the condition evaluates to true.
            * 
* * repeated string matches_prefix = 11; - * * @return The count of matchesPrefix. */ public int getMatchesPrefixCount() { return matchesPrefix_.size(); } /** - * - * *
            * List of object name prefixes. If any prefix exactly matches the
            * beginning of the object name, the condition evaluates to true.
            * 
* * repeated string matches_prefix = 11; - * * @param index The index of the element to return. * @return The matchesPrefix at the given index. */ @@ -8865,39 +7951,33 @@ public java.lang.String getMatchesPrefix(int index) { return matchesPrefix_.get(index); } /** - * - * *
            * List of object name prefixes. If any prefix exactly matches the
            * beginning of the object name, the condition evaluates to true.
            * 
* * repeated string matches_prefix = 11; - * * @param index The index of the value to return. * @return The bytes of the matchesPrefix at the given index. */ - public com.google.protobuf.ByteString getMatchesPrefixBytes(int index) { + public com.google.protobuf.ByteString + getMatchesPrefixBytes(int index) { return matchesPrefix_.getByteString(index); } /** - * - * *
            * List of object name prefixes. If any prefix exactly matches the
            * beginning of the object name, the condition evaluates to true.
            * 
* * repeated string matches_prefix = 11; - * * @param index The index to set the value at. * @param value The matchesPrefix to set. * @return This builder for chaining. */ - public Builder setMatchesPrefix(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMatchesPrefix( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesPrefixIsMutable(); matchesPrefix_.set(index, value); bitField0_ |= 0x00000200; @@ -8905,22 +7985,18 @@ public Builder setMatchesPrefix(int index, java.lang.String value) { return this; } /** - * - * *
            * List of object name prefixes. If any prefix exactly matches the
            * beginning of the object name, the condition evaluates to true.
            * 
* * repeated string matches_prefix = 11; - * * @param value The matchesPrefix to add. * @return This builder for chaining. */ - public Builder addMatchesPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMatchesPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesPrefixIsMutable(); matchesPrefix_.add(value); bitField0_ |= 0x00000200; @@ -8928,61 +8004,53 @@ public Builder addMatchesPrefix(java.lang.String value) { return this; } /** - * - * *
            * List of object name prefixes. If any prefix exactly matches the
            * beginning of the object name, the condition evaluates to true.
            * 
* * repeated string matches_prefix = 11; - * * @param values The matchesPrefix to add. * @return This builder for chaining. */ - public Builder addAllMatchesPrefix(java.lang.Iterable values) { + public Builder addAllMatchesPrefix( + java.lang.Iterable values) { ensureMatchesPrefixIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchesPrefix_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchesPrefix_); bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
            * List of object name prefixes. If any prefix exactly matches the
            * beginning of the object name, the condition evaluates to true.
            * 
* * repeated string matches_prefix = 11; - * * @return This builder for chaining. */ public Builder clearMatchesPrefix() { - matchesPrefix_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - ; + matchesPrefix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200);; onChanged(); return this; } /** - * - * *
            * List of object name prefixes. If any prefix exactly matches the
            * beginning of the object name, the condition evaluates to true.
            * 
* * repeated string matches_prefix = 11; - * * @param value The bytes of the matchesPrefix to add. * @return This builder for chaining. */ - public Builder addMatchesPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMatchesPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMatchesPrefixIsMutable(); matchesPrefix_.add(value); @@ -8993,7 +8061,6 @@ public Builder addMatchesPrefixBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMatchesSuffixIsMutable() { if (!matchesSuffix_.isModifiable()) { matchesSuffix_ = new com.google.protobuf.LazyStringArrayList(matchesSuffix_); @@ -9001,46 +8068,38 @@ private void ensureMatchesSuffixIsMutable() { bitField0_ |= 0x00000400; } /** - * - * *
            * List of object name suffixes. If any suffix exactly matches the
            * end of the object name, the condition evaluates to true.
            * 
* * repeated string matches_suffix = 12; - * * @return A list containing the matchesSuffix. */ - public com.google.protobuf.ProtocolStringList getMatchesSuffixList() { + public com.google.protobuf.ProtocolStringList + getMatchesSuffixList() { matchesSuffix_.makeImmutable(); return matchesSuffix_; } /** - * - * *
            * List of object name suffixes. If any suffix exactly matches the
            * end of the object name, the condition evaluates to true.
            * 
* * repeated string matches_suffix = 12; - * * @return The count of matchesSuffix. */ public int getMatchesSuffixCount() { return matchesSuffix_.size(); } /** - * - * *
            * List of object name suffixes. If any suffix exactly matches the
            * end of the object name, the condition evaluates to true.
            * 
* * repeated string matches_suffix = 12; - * * @param index The index of the element to return. * @return The matchesSuffix at the given index. */ @@ -9048,39 +8107,33 @@ public java.lang.String getMatchesSuffix(int index) { return matchesSuffix_.get(index); } /** - * - * *
            * List of object name suffixes. If any suffix exactly matches the
            * end of the object name, the condition evaluates to true.
            * 
* * repeated string matches_suffix = 12; - * * @param index The index of the value to return. * @return The bytes of the matchesSuffix at the given index. */ - public com.google.protobuf.ByteString getMatchesSuffixBytes(int index) { + public com.google.protobuf.ByteString + getMatchesSuffixBytes(int index) { return matchesSuffix_.getByteString(index); } /** - * - * *
            * List of object name suffixes. If any suffix exactly matches the
            * end of the object name, the condition evaluates to true.
            * 
* * repeated string matches_suffix = 12; - * * @param index The index to set the value at. * @param value The matchesSuffix to set. * @return This builder for chaining. */ - public Builder setMatchesSuffix(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMatchesSuffix( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesSuffixIsMutable(); matchesSuffix_.set(index, value); bitField0_ |= 0x00000400; @@ -9088,22 +8141,18 @@ public Builder setMatchesSuffix(int index, java.lang.String value) { return this; } /** - * - * *
            * List of object name suffixes. If any suffix exactly matches the
            * end of the object name, the condition evaluates to true.
            * 
* * repeated string matches_suffix = 12; - * * @param value The matchesSuffix to add. * @return This builder for chaining. */ - public Builder addMatchesSuffix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMatchesSuffix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesSuffixIsMutable(); matchesSuffix_.add(value); bitField0_ |= 0x00000400; @@ -9111,61 +8160,53 @@ public Builder addMatchesSuffix(java.lang.String value) { return this; } /** - * - * *
            * List of object name suffixes. If any suffix exactly matches the
            * end of the object name, the condition evaluates to true.
            * 
* * repeated string matches_suffix = 12; - * * @param values The matchesSuffix to add. * @return This builder for chaining. */ - public Builder addAllMatchesSuffix(java.lang.Iterable values) { + public Builder addAllMatchesSuffix( + java.lang.Iterable values) { ensureMatchesSuffixIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchesSuffix_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchesSuffix_); bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
            * List of object name suffixes. If any suffix exactly matches the
            * end of the object name, the condition evaluates to true.
            * 
* * repeated string matches_suffix = 12; - * * @return This builder for chaining. */ public Builder clearMatchesSuffix() { - matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - ; + matchesSuffix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400);; onChanged(); return this; } /** - * - * *
            * List of object name suffixes. If any suffix exactly matches the
            * end of the object name, the condition evaluates to true.
            * 
* * repeated string matches_suffix = 12; - * * @param value The bytes of the matchesSuffix to add. * @return This builder for chaining. */ - public Builder addMatchesSuffixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMatchesSuffixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMatchesSuffixIsMutable(); matchesSuffix_.add(value); @@ -9173,7 +8214,6 @@ public Builder addMatchesSuffixBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9186,12 +8226,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Lifecycle.Rule.Condition) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Lifecycle.Rule.Condition) private static final com.google.storage.v2.Bucket.Lifecycle.Rule.Condition DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Lifecycle.Rule.Condition(); } @@ -9200,28 +8240,27 @@ public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Condition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Condition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -9236,45 +8275,37 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + private int bitField0_; public static final int ACTION_FIELD_NUMBER = 1; private com.google.storage.v2.Bucket.Lifecycle.Rule.Action action_; /** - * - * *
        * The action to take.
        * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { - return action_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The action to take.
        * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return The action. */ @java.lang.Override public com.google.storage.v2.Bucket.Lifecycle.Rule.Action getAction() { - return action_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() - : action_; + return action_ == null ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() : action_; } /** - * - * *
        * The action to take.
        * 
@@ -9283,48 +8314,36 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Action getAction() { */ @java.lang.Override public com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBuilder() { - return action_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() - : action_; + return action_ == null ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() : action_; } public static final int CONDITION_FIELD_NUMBER = 2; private com.google.storage.v2.Bucket.Lifecycle.Rule.Condition condition_; /** - * - * *
        * The condition(s) under which the action will be taken.
        * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; - * * @return Whether the condition field is set. */ @java.lang.Override public boolean hasCondition() { - return condition_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * The condition(s) under which the action will be taken.
        * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; - * * @return The condition. */ @java.lang.Override public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getCondition() { - return condition_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() - : condition_; + return condition_ == null ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() : condition_; } /** - * - * *
        * The condition(s) under which the action will be taken.
        * 
@@ -9332,15 +8351,11 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getCondition() { * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; */ @java.lang.Override - public com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder - getConditionOrBuilder() { - return condition_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() - : condition_; + public com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder getConditionOrBuilder() { + return condition_ == null ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() : condition_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9352,11 +8367,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (action_ != null) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getAction()); } - if (condition_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getCondition()); } getUnknownFields().writeTo(output); @@ -9368,11 +8384,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (action_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAction()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAction()); } - if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCondition()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCondition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9382,21 +8400,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.storage.v2.Bucket.Lifecycle.Rule)) { return super.equals(obj); } - com.google.storage.v2.Bucket.Lifecycle.Rule other = - (com.google.storage.v2.Bucket.Lifecycle.Rule) obj; + com.google.storage.v2.Bucket.Lifecycle.Rule other = (com.google.storage.v2.Bucket.Lifecycle.Rule) obj; if (hasAction() != other.hasAction()) return false; if (hasAction()) { - if (!getAction().equals(other.getAction())) return false; + if (!getAction() + .equals(other.getAction())) return false; } if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { - if (!getCondition().equals(other.getCondition())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -9422,94 +8441,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule 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.storage.v2.Bucket.Lifecycle.Rule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule 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.storage.v2.Bucket.Lifecycle.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule 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.storage.v2.Bucket.Lifecycle.Rule 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.storage.v2.Bucket.Lifecycle.Rule 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.storage.v2.Bucket.Lifecycle.Rule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Lifecycle.Rule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Lifecycle.Rule 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.storage.v2.Bucket.Lifecycle.Rule 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.storage.v2.Bucket.Lifecycle.Rule 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.storage.v2.Bucket.Lifecycle.Rule 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 @@ -9519,8 +8534,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A lifecycle Rule, combining an action to take on an object and a
        * condition which will trigger that action.
@@ -9528,33 +8541,40 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.storage.v2.Bucket.Lifecycle.Rule}
        */
-      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.storage.v2.Bucket.Lifecycle.Rule)
           com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-          return com.google.storage.v2.StorageProto
-              .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor
+            getDescriptor() {
+          return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.storage.v2.StorageProto
-              .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable
+          return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.storage.v2.Bucket.Lifecycle.Rule.class,
-                  com.google.storage.v2.Bucket.Lifecycle.Rule.Builder.class);
+                  com.google.storage.v2.Bucket.Lifecycle.Rule.class, com.google.storage.v2.Bucket.Lifecycle.Rule.Builder.class);
         }
 
         // Construct using com.google.storage.v2.Bucket.Lifecycle.Rule.newBuilder()
-        private Builder() {}
+        private Builder() {
+          maybeForceBuilderInitialization();
+        }
 
-        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(
+            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
+          maybeForceBuilderInitialization();
+        }
+        private void maybeForceBuilderInitialization() {
+          if (com.google.protobuf.GeneratedMessageV3
+                  .alwaysUseFieldBuilders) {
+            getActionFieldBuilder();
+            getConditionFieldBuilder();
+          }
         }
-
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -9573,9 +8593,9 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-          return com.google.storage.v2.StorageProto
-              .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor
+            getDescriptorForType() {
+          return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor;
         }
 
         @java.lang.Override
@@ -9594,64 +8614,66 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule build() {
 
         @java.lang.Override
         public com.google.storage.v2.Bucket.Lifecycle.Rule buildPartial() {
-          com.google.storage.v2.Bucket.Lifecycle.Rule result =
-              new com.google.storage.v2.Bucket.Lifecycle.Rule(this);
-          if (bitField0_ != 0) {
-            buildPartial0(result);
-          }
+          com.google.storage.v2.Bucket.Lifecycle.Rule result = new com.google.storage.v2.Bucket.Lifecycle.Rule(this);
+          if (bitField0_ != 0) { buildPartial0(result); }
           onBuilt();
           return result;
         }
 
         private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule result) {
           int from_bitField0_ = bitField0_;
+          int to_bitField0_ = 0;
           if (((from_bitField0_ & 0x00000001) != 0)) {
-            result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build();
+            result.action_ = actionBuilder_ == null
+                ? action_
+                : actionBuilder_.build();
+            to_bitField0_ |= 0x00000001;
           }
           if (((from_bitField0_ & 0x00000002) != 0)) {
-            result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build();
+            result.condition_ = conditionBuilder_ == null
+                ? condition_
+                : conditionBuilder_.build();
+            to_bitField0_ |= 0x00000002;
           }
+          result.bitField0_ |= to_bitField0_;
         }
 
         @java.lang.Override
         public Builder clone() {
           return super.clone();
         }
-
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            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.storage.v2.Bucket.Lifecycle.Rule) {
-            return mergeFrom((com.google.storage.v2.Bucket.Lifecycle.Rule) other);
+            return mergeFrom((com.google.storage.v2.Bucket.Lifecycle.Rule)other);
           } else {
             super.mergeFrom(other);
             return this;
@@ -9659,8 +8681,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
 
         public Builder mergeFrom(com.google.storage.v2.Bucket.Lifecycle.Rule other) {
-          if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance())
-            return this;
+          if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance()) return this;
           if (other.hasAction()) {
             mergeAction(other.getAction());
           }
@@ -9693,25 +8714,26 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 10:
-                  {
-                    input.readMessage(getActionFieldBuilder().getBuilder(), extensionRegistry);
-                    bitField0_ |= 0x00000001;
-                    break;
-                  } // case 10
-                case 18:
-                  {
-                    input.readMessage(getConditionFieldBuilder().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(
+                      getActionFieldBuilder().getBuilder(),
+                      extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+                case 18: {
+                  input.readMessage(
+                      getConditionFieldBuilder().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) {
@@ -9721,52 +8743,38 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
-
         private int bitField0_;
 
         private com.google.storage.v2.Bucket.Lifecycle.Rule.Action action_;
         private com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Bucket.Lifecycle.Rule.Action,
-                com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder,
-                com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder>
-            actionBuilder_;
+            com.google.storage.v2.Bucket.Lifecycle.Rule.Action, com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder> actionBuilder_;
         /**
-         *
-         *
          * 
          * The action to take.
          * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return Whether the action field is set. */ public boolean hasAction() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
          * The action to take.
          * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return The action. */ public com.google.storage.v2.Bucket.Lifecycle.Rule.Action getAction() { if (actionBuilder_ == null) { - return action_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() - : action_; + return action_ == null ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() : action_; } else { return actionBuilder_.getMessage(); } } /** - * - * *
          * The action to take.
          * 
@@ -9787,8 +8795,6 @@ public Builder setAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action valu return this; } /** - * - * *
          * The action to take.
          * 
@@ -9807,8 +8813,6 @@ public Builder setAction( return this; } /** - * - * *
          * The action to take.
          * 
@@ -9817,10 +8821,9 @@ public Builder setAction( */ public Builder mergeAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action value) { if (actionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && action_ != null - && action_ - != com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + action_ != null && + action_ != com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance()) { getActionBuilder().mergeFrom(value); } else { action_ = value; @@ -9828,13 +8831,13 @@ public Builder mergeAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action va } else { actionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (action_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** - * - * *
          * The action to take.
          * 
@@ -9852,8 +8855,6 @@ public Builder clearAction() { return this; } /** - * - * *
          * The action to take.
          * 
@@ -9866,8 +8867,6 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder getActionBuild return getActionFieldBuilder().getBuilder(); } /** - * - * *
          * The action to take.
          * 
@@ -9878,14 +8877,11 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBu if (actionBuilder_ != null) { return actionBuilder_.getMessageOrBuilder(); } else { - return action_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() - : action_; + return action_ == null ? + com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() : action_; } } /** - * - * *
          * The action to take.
          * 
@@ -9893,17 +8889,14 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBu * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Lifecycle.Rule.Action, - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder, - com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder> + com.google.storage.v2.Bucket.Lifecycle.Rule.Action, com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { - actionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Lifecycle.Rule.Action, - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder, - com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder>( - getAction(), getParentForChildren(), isClean()); + actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.Lifecycle.Rule.Action, com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder>( + getAction(), + getParentForChildren(), + isClean()); action_ = null; } return actionBuilder_; @@ -9911,47 +8904,34 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBu private com.google.storage.v2.Bucket.Lifecycle.Rule.Condition condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, - com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder> - conditionBuilder_; + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder> conditionBuilder_; /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; - * * @return Whether the condition field is set. */ public boolean hasCondition() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; - * * @return The condition. */ public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getCondition() { if (conditionBuilder_ == null) { - return condition_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() - : condition_; + return condition_ == null ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() : condition_; } else { return conditionBuilder_.getMessage(); } } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
@@ -9972,8 +8952,6 @@ public Builder setCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Conditio return this; } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
@@ -9992,8 +8970,6 @@ public Builder setCondition( return this; } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
@@ -10002,10 +8978,9 @@ public Builder setCondition( */ public Builder mergeCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition value) { if (conditionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && condition_ != null - && condition_ - != com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + condition_ != null && + condition_ != com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance()) { getConditionBuilder().mergeFrom(value); } else { condition_ = value; @@ -10013,13 +8988,13 @@ public Builder mergeCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Condit } else { conditionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (condition_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
@@ -10037,8 +9012,6 @@ public Builder clearCondition() { return this; } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
@@ -10051,27 +9024,21 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder getConditio return getConditionFieldBuilder().getBuilder(); } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
* * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; */ - public com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder - getConditionOrBuilder() { + public com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder getConditionOrBuilder() { if (conditionBuilder_ != null) { return conditionBuilder_.getMessageOrBuilder(); } else { - return condition_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() - : condition_; + return condition_ == null ? + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() : condition_; } } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
@@ -10079,22 +9046,18 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder getConditio * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, - com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder> + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder> getConditionFieldBuilder() { if (conditionBuilder_ == null) { - conditionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, - com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder>( - getCondition(), getParentForChildren(), isClean()); + conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder>( + getCondition(), + getParentForChildren(), + isClean()); condition_ = null; } return conditionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10107,12 +9070,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Lifecycle.Rule) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Lifecycle.Rule) private static final com.google.storage.v2.Bucket.Lifecycle.Rule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Lifecycle.Rule(); } @@ -10121,28 +9084,27 @@ public static com.google.storage.v2.Bucket.Lifecycle.Rule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Rule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Rule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -10157,15 +9119,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Lifecycle.Rule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int RULE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List rule_; /** - * - * *
      * A lifecycle management rule, which is made of an action to take and the
      * condition(s) under which the action will be taken.
@@ -10178,8 +9138,6 @@ public java.util.List getRuleList()
       return rule_;
     }
     /**
-     *
-     *
      * 
      * A lifecycle management rule, which is made of an action to take and the
      * condition(s) under which the action will be taken.
@@ -10188,13 +9146,11 @@ public java.util.List getRuleList()
      * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
      */
     @java.lang.Override
-    public java.util.List
+    public java.util.List 
         getRuleOrBuilderList() {
       return rule_;
     }
     /**
-     *
-     *
      * 
      * A lifecycle management rule, which is made of an action to take and the
      * condition(s) under which the action will be taken.
@@ -10207,8 +9163,6 @@ public int getRuleCount() {
       return rule_.size();
     }
     /**
-     *
-     *
      * 
      * A lifecycle management rule, which is made of an action to take and the
      * condition(s) under which the action will be taken.
@@ -10221,8 +9175,6 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule getRule(int index) {
       return rule_.get(index);
     }
     /**
-     *
-     *
      * 
      * A lifecycle management rule, which is made of an action to take and the
      * condition(s) under which the action will be taken.
@@ -10231,12 +9183,12 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule getRule(int index) {
      * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
      */
     @java.lang.Override
-    public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int index) {
+    public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(
+        int index) {
       return rule_.get(index);
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -10248,7 +9200,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 < rule_.size(); i++) {
         output.writeMessage(1, rule_.get(i));
       }
@@ -10262,7 +9215,8 @@ public int getSerializedSize() {
 
       size = 0;
       for (int i = 0; i < rule_.size(); i++) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rule_.get(i));
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, rule_.get(i));
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -10272,14 +9226,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.storage.v2.Bucket.Lifecycle)) {
         return super.equals(obj);
       }
       com.google.storage.v2.Bucket.Lifecycle other = (com.google.storage.v2.Bucket.Lifecycle) obj;
 
-      if (!getRuleList().equals(other.getRuleList())) return false;
+      if (!getRuleList()
+          .equals(other.getRuleList())) return false;
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
     }
@@ -10300,94 +9255,90 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.storage.v2.Bucket.Lifecycle parseFrom(java.nio.ByteBuffer data)
+    public static com.google.storage.v2.Bucket.Lifecycle parseFrom(
+        java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.storage.v2.Bucket.Lifecycle 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.storage.v2.Bucket.Lifecycle parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.storage.v2.Bucket.Lifecycle 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.storage.v2.Bucket.Lifecycle parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.storage.v2.Bucket.Lifecycle 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.storage.v2.Bucket.Lifecycle 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.storage.v2.Bucket.Lifecycle 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.storage.v2.Bucket.Lifecycle parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.storage.v2.Bucket.Lifecycle parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.storage.v2.Bucket.Lifecycle 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.storage.v2.Bucket.Lifecycle 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.storage.v2.Bucket.Lifecycle 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.storage.v2.Bucket.Lifecycle 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
@@ -10397,8 +9348,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Lifecycle properties of a bucket.
      * For more information, see https://cloud.google.com/storage/docs/lifecycle.
@@ -10406,33 +9355,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.storage.v2.Bucket.Lifecycle}
      */
-    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.storage.v2.Bucket.Lifecycle)
         com.google.storage.v2.Bucket.LifecycleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.storage.v2.Bucket.Lifecycle.class,
-                com.google.storage.v2.Bucket.Lifecycle.Builder.class);
+                com.google.storage.v2.Bucket.Lifecycle.class, com.google.storage.v2.Bucket.Lifecycle.Builder.class);
       }
 
       // Construct using com.google.storage.v2.Bucket.Lifecycle.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();
@@ -10448,9 +9397,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
       }
 
       @java.lang.Override
@@ -10469,12 +9418,9 @@ public com.google.storage.v2.Bucket.Lifecycle build() {
 
       @java.lang.Override
       public com.google.storage.v2.Bucket.Lifecycle buildPartial() {
-        com.google.storage.v2.Bucket.Lifecycle result =
-            new com.google.storage.v2.Bucket.Lifecycle(this);
+        com.google.storage.v2.Bucket.Lifecycle result = new com.google.storage.v2.Bucket.Lifecycle(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -10499,41 +9445,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle 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) {
+          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.storage.v2.Bucket.Lifecycle) {
-          return mergeFrom((com.google.storage.v2.Bucket.Lifecycle) other);
+          return mergeFrom((com.google.storage.v2.Bucket.Lifecycle)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -10560,10 +9503,9 @@ public Builder mergeFrom(com.google.storage.v2.Bucket.Lifecycle other) {
               ruleBuilder_ = null;
               rule_ = other.rule_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              ruleBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getRuleFieldBuilder()
-                      : null;
+              ruleBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getRuleFieldBuilder() : null;
             } else {
               ruleBuilder_.addAllMessages(other.rule_);
             }
@@ -10595,26 +9537,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  com.google.storage.v2.Bucket.Lifecycle.Rule m =
-                      input.readMessage(
-                          com.google.storage.v2.Bucket.Lifecycle.Rule.parser(), extensionRegistry);
-                  if (ruleBuilder_ == null) {
-                    ensureRuleIsMutable();
-                    rule_.add(m);
-                  } else {
-                    ruleBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 10
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                com.google.storage.v2.Bucket.Lifecycle.Rule m =
+                    input.readMessage(
+                        com.google.storage.v2.Bucket.Lifecycle.Rule.parser(),
+                        extensionRegistry);
+                if (ruleBuilder_ == null) {
+                  ensureRuleIsMutable();
+                  rule_.add(m);
+                } else {
+                  ruleBuilder_.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) {
@@ -10624,28 +9565,21 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.util.List rule_ =
-          java.util.Collections.emptyList();
-
+        java.util.Collections.emptyList();
       private void ensureRuleIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           rule_ = new java.util.ArrayList(rule_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.storage.v2.Bucket.Lifecycle.Rule,
-              com.google.storage.v2.Bucket.Lifecycle.Rule.Builder,
-              com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder>
-          ruleBuilder_;
+          com.google.storage.v2.Bucket.Lifecycle.Rule, com.google.storage.v2.Bucket.Lifecycle.Rule.Builder, com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder> ruleBuilder_;
 
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10661,8 +9595,6 @@ public java.util.List getRuleList()
         }
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10678,8 +9610,6 @@ public int getRuleCount() {
         }
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10695,8 +9625,6 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule getRule(int index) {
         }
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10704,7 +9632,8 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule getRule(int index) {
        *
        * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
        */
-      public Builder setRule(int index, com.google.storage.v2.Bucket.Lifecycle.Rule value) {
+      public Builder setRule(
+          int index, com.google.storage.v2.Bucket.Lifecycle.Rule value) {
         if (ruleBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -10718,8 +9647,6 @@ public Builder setRule(int index, com.google.storage.v2.Bucket.Lifecycle.Rule va
         return this;
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10739,8 +9666,6 @@ public Builder setRule(
         return this;
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10762,8 +9687,6 @@ public Builder addRule(com.google.storage.v2.Bucket.Lifecycle.Rule value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10771,7 +9694,8 @@ public Builder addRule(com.google.storage.v2.Bucket.Lifecycle.Rule value) {
        *
        * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
        */
-      public Builder addRule(int index, com.google.storage.v2.Bucket.Lifecycle.Rule value) {
+      public Builder addRule(
+          int index, com.google.storage.v2.Bucket.Lifecycle.Rule value) {
         if (ruleBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -10785,8 +9709,6 @@ public Builder addRule(int index, com.google.storage.v2.Bucket.Lifecycle.Rule va
         return this;
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10794,7 +9716,8 @@ public Builder addRule(int index, com.google.storage.v2.Bucket.Lifecycle.Rule va
        *
        * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
        */
-      public Builder addRule(com.google.storage.v2.Bucket.Lifecycle.Rule.Builder builderForValue) {
+      public Builder addRule(
+          com.google.storage.v2.Bucket.Lifecycle.Rule.Builder builderForValue) {
         if (ruleBuilder_ == null) {
           ensureRuleIsMutable();
           rule_.add(builderForValue.build());
@@ -10805,8 +9728,6 @@ public Builder addRule(com.google.storage.v2.Bucket.Lifecycle.Rule.Builder build
         return this;
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10826,8 +9747,6 @@ public Builder addRule(
         return this;
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10839,7 +9758,8 @@ public Builder addAllRule(
           java.lang.Iterable values) {
         if (ruleBuilder_ == null) {
           ensureRuleIsMutable();
-          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rule_);
+          com.google.protobuf.AbstractMessageLite.Builder.addAll(
+              values, rule_);
           onChanged();
         } else {
           ruleBuilder_.addAllMessages(values);
@@ -10847,8 +9767,6 @@ public Builder addAllRule(
         return this;
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10867,8 +9785,6 @@ public Builder clearRule() {
         return this;
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10887,8 +9803,6 @@ public Builder removeRule(int index) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10896,12 +9810,11 @@ public Builder removeRule(int index) {
        *
        * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
        */
-      public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder getRuleBuilder(int index) {
+      public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder getRuleBuilder(
+          int index) {
         return getRuleFieldBuilder().getBuilder(index);
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10909,16 +9822,14 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder getRuleBuilder(int in
        *
        * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
        */
-      public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int index) {
+      public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(
+          int index) {
         if (ruleBuilder_ == null) {
-          return rule_.get(index);
-        } else {
+          return rule_.get(index);  } else {
           return ruleBuilder_.getMessageOrBuilder(index);
         }
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10926,8 +9837,8 @@ public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int
        *
        * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
        */
-      public java.util.List
-          getRuleOrBuilderList() {
+      public java.util.List 
+           getRuleOrBuilderList() {
         if (ruleBuilder_ != null) {
           return ruleBuilder_.getMessageOrBuilderList();
         } else {
@@ -10935,8 +9846,6 @@ public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int
         }
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10945,12 +9854,10 @@ public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int
        * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
        */
       public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder addRuleBuilder() {
-        return getRuleFieldBuilder()
-            .addBuilder(com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance());
+        return getRuleFieldBuilder().addBuilder(
+            com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance());
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10958,13 +9865,12 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder addRuleBuilder() {
        *
        * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
        */
-      public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder addRuleBuilder(int index) {
-        return getRuleFieldBuilder()
-            .addBuilder(index, com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance());
+      public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder addRuleBuilder(
+          int index) {
+        return getRuleFieldBuilder().addBuilder(
+            index, com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance());
       }
       /**
-       *
-       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -10972,28 +9878,24 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder addRuleBuilder(int in
        *
        * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
        */
-      public java.util.List
-          getRuleBuilderList() {
+      public java.util.List 
+           getRuleBuilderList() {
         return getRuleFieldBuilder().getBuilderList();
       }
-
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.storage.v2.Bucket.Lifecycle.Rule,
-              com.google.storage.v2.Bucket.Lifecycle.Rule.Builder,
-              com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder>
+          com.google.storage.v2.Bucket.Lifecycle.Rule, com.google.storage.v2.Bucket.Lifecycle.Rule.Builder, com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder> 
           getRuleFieldBuilder() {
         if (ruleBuilder_ == null) {
-          ruleBuilder_ =
-              new com.google.protobuf.RepeatedFieldBuilderV3<
-                  com.google.storage.v2.Bucket.Lifecycle.Rule,
-                  com.google.storage.v2.Bucket.Lifecycle.Rule.Builder,
-                  com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder>(
-                  rule_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+          ruleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+              com.google.storage.v2.Bucket.Lifecycle.Rule, com.google.storage.v2.Bucket.Lifecycle.Rule.Builder, com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder>(
+                  rule_,
+                  ((bitField0_ & 0x00000001) != 0),
+                  getParentForChildren(),
+                  isClean());
           rule_ = null;
         }
         return ruleBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -11006,12 +9908,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Lifecycle)
     }
 
     // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Lifecycle)
     private static final com.google.storage.v2.Bucket.Lifecycle DEFAULT_INSTANCE;
-
     static {
       DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Lifecycle();
     }
@@ -11020,28 +9922,27 @@ public static com.google.storage.v2.Bucket.Lifecycle getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public Lifecycle parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              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 Lifecycle parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          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;
@@ -11056,84 +9957,71 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.storage.v2.Bucket.Lifecycle getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface LoggingOrBuilder
-      extends
+  public interface LoggingOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Logging)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The destination bucket where the current bucket's logs should be placed,
      * using path format (like `projects/123456/buckets/foo`).
      * 
* * string log_bucket = 1; - * * @return The logBucket. */ java.lang.String getLogBucket(); /** - * - * *
      * The destination bucket where the current bucket's logs should be placed,
      * using path format (like `projects/123456/buckets/foo`).
      * 
* * string log_bucket = 1; - * * @return The bytes for logBucket. */ - com.google.protobuf.ByteString getLogBucketBytes(); + com.google.protobuf.ByteString + getLogBucketBytes(); /** - * - * *
      * A prefix for log object names.
      * 
* * string log_object_prefix = 2; - * * @return The logObjectPrefix. */ java.lang.String getLogObjectPrefix(); /** - * - * *
      * A prefix for log object names.
      * 
* * string log_object_prefix = 2; - * * @return The bytes for logObjectPrefix. */ - com.google.protobuf.ByteString getLogObjectPrefixBytes(); + com.google.protobuf.ByteString + getLogObjectPrefixBytes(); } /** - * - * *
    * Logging-related properties of a bucket.
    * 
* * Protobuf type {@code google.storage.v2.Bucket.Logging} */ - public static final class Logging extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Logging extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Logging) LoggingOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Logging.newBuilder() to construct. private Logging(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Logging() { logBucket_ = ""; logObjectPrefix_ = ""; @@ -11141,39 +10029,34 @@ private Logging() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Logging(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Logging_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Logging_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Logging.class, - com.google.storage.v2.Bucket.Logging.Builder.class); + com.google.storage.v2.Bucket.Logging.class, com.google.storage.v2.Bucket.Logging.Builder.class); } public static final int LOG_BUCKET_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object logBucket_ = ""; /** - * - * *
      * The destination bucket where the current bucket's logs should be placed,
      * using path format (like `projects/123456/buckets/foo`).
      * 
* * string log_bucket = 1; - * * @return The logBucket. */ @java.lang.Override @@ -11182,30 +10065,30 @@ public java.lang.String getLogBucket() { 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(); logBucket_ = s; return s; } } /** - * - * *
      * The destination bucket where the current bucket's logs should be placed,
      * using path format (like `projects/123456/buckets/foo`).
      * 
* * string log_bucket = 1; - * * @return The bytes for logBucket. */ @java.lang.Override - public com.google.protobuf.ByteString getLogBucketBytes() { + public com.google.protobuf.ByteString + getLogBucketBytes() { java.lang.Object ref = logBucket_; 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); logBucket_ = b; return b; } else { @@ -11214,18 +10097,14 @@ public com.google.protobuf.ByteString getLogBucketBytes() { } public static final int LOG_OBJECT_PREFIX_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object logObjectPrefix_ = ""; /** - * - * *
      * A prefix for log object names.
      * 
* * string log_object_prefix = 2; - * * @return The logObjectPrefix. */ @java.lang.Override @@ -11234,29 +10113,29 @@ public java.lang.String getLogObjectPrefix() { 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(); logObjectPrefix_ = s; return s; } } /** - * - * *
      * A prefix for log object names.
      * 
* * string log_object_prefix = 2; - * * @return The bytes for logObjectPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getLogObjectPrefixBytes() { + public com.google.protobuf.ByteString + getLogObjectPrefixBytes() { java.lang.Object ref = logObjectPrefix_; 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); logObjectPrefix_ = b; return b; } else { @@ -11265,7 +10144,6 @@ public com.google.protobuf.ByteString getLogObjectPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11277,7 +10155,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(logBucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logBucket_); } @@ -11307,15 +10186,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.storage.v2.Bucket.Logging)) { return super.equals(obj); } com.google.storage.v2.Bucket.Logging other = (com.google.storage.v2.Bucket.Logging) obj; - if (!getLogBucket().equals(other.getLogBucket())) return false; - if (!getLogObjectPrefix().equals(other.getLogObjectPrefix())) return false; + if (!getLogBucket() + .equals(other.getLogBucket())) return false; + if (!getLogObjectPrefix() + .equals(other.getLogObjectPrefix())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11336,94 +10217,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Logging parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Logging parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Logging 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.storage.v2.Bucket.Logging parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Logging 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.storage.v2.Bucket.Logging parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Logging 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.storage.v2.Bucket.Logging 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.storage.v2.Bucket.Logging 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.storage.v2.Bucket.Logging parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Logging 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.storage.v2.Bucket.Logging 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.storage.v2.Bucket.Logging 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.storage.v2.Bucket.Logging 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 @@ -11433,41 +10310,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Logging-related properties of a bucket.
      * 
* * Protobuf type {@code google.storage.v2.Bucket.Logging} */ - 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.storage.v2.Bucket.Logging) com.google.storage.v2.Bucket.LoggingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Logging_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Logging_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Logging.class, - com.google.storage.v2.Bucket.Logging.Builder.class); + com.google.storage.v2.Bucket.Logging.class, com.google.storage.v2.Bucket.Logging.Builder.class); } // Construct using com.google.storage.v2.Bucket.Logging.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(); @@ -11478,9 +10353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Logging_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Logging_descriptor; } @java.lang.Override @@ -11499,11 +10374,8 @@ public com.google.storage.v2.Bucket.Logging build() { @java.lang.Override public com.google.storage.v2.Bucket.Logging buildPartial() { - com.google.storage.v2.Bucket.Logging result = - new com.google.storage.v2.Bucket.Logging(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Logging result = new com.google.storage.v2.Bucket.Logging(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -11522,41 +10394,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Logging 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) { + 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.storage.v2.Bucket.Logging) { - return mergeFrom((com.google.storage.v2.Bucket.Logging) other); + return mergeFrom((com.google.storage.v2.Bucket.Logging)other); } else { super.mergeFrom(other); return this; @@ -11601,25 +10470,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - logBucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - logObjectPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + logBucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + logObjectPrefix_ = 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) { @@ -11629,26 +10495,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object logBucket_ = ""; /** - * - * *
        * The destination bucket where the current bucket's logs should be placed,
        * using path format (like `projects/123456/buckets/foo`).
        * 
* * string log_bucket = 1; - * * @return The logBucket. */ public java.lang.String getLogBucket() { java.lang.Object ref = logBucket_; 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(); logBucket_ = s; return s; @@ -11657,22 +10520,21 @@ public java.lang.String getLogBucket() { } } /** - * - * *
        * The destination bucket where the current bucket's logs should be placed,
        * using path format (like `projects/123456/buckets/foo`).
        * 
* * string log_bucket = 1; - * * @return The bytes for logBucket. */ - public com.google.protobuf.ByteString getLogBucketBytes() { + public com.google.protobuf.ByteString + getLogBucketBytes() { java.lang.Object ref = logBucket_; 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); logBucket_ = b; return b; } else { @@ -11680,37 +10542,30 @@ public com.google.protobuf.ByteString getLogBucketBytes() { } } /** - * - * *
        * The destination bucket where the current bucket's logs should be placed,
        * using path format (like `projects/123456/buckets/foo`).
        * 
* * string log_bucket = 1; - * * @param value The logBucket to set. * @return This builder for chaining. */ - public Builder setLogBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } logBucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The destination bucket where the current bucket's logs should be placed,
        * using path format (like `projects/123456/buckets/foo`).
        * 
* * string log_bucket = 1; - * * @return This builder for chaining. */ public Builder clearLogBucket() { @@ -11720,22 +10575,18 @@ public Builder clearLogBucket() { return this; } /** - * - * *
        * The destination bucket where the current bucket's logs should be placed,
        * using path format (like `projects/123456/buckets/foo`).
        * 
* * string log_bucket = 1; - * * @param value The bytes for logBucket to set. * @return This builder for chaining. */ - public Builder setLogBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logBucket_ = value; bitField0_ |= 0x00000001; @@ -11745,20 +10596,18 @@ public Builder setLogBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object logObjectPrefix_ = ""; /** - * - * *
        * A prefix for log object names.
        * 
* * string log_object_prefix = 2; - * * @return The logObjectPrefix. */ public java.lang.String getLogObjectPrefix() { java.lang.Object ref = logObjectPrefix_; 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(); logObjectPrefix_ = s; return s; @@ -11767,21 +10616,20 @@ public java.lang.String getLogObjectPrefix() { } } /** - * - * *
        * A prefix for log object names.
        * 
* * string log_object_prefix = 2; - * * @return The bytes for logObjectPrefix. */ - public com.google.protobuf.ByteString getLogObjectPrefixBytes() { + public com.google.protobuf.ByteString + getLogObjectPrefixBytes() { java.lang.Object ref = logObjectPrefix_; 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); logObjectPrefix_ = b; return b; } else { @@ -11789,35 +10637,28 @@ public com.google.protobuf.ByteString getLogObjectPrefixBytes() { } } /** - * - * *
        * A prefix for log object names.
        * 
* * string log_object_prefix = 2; - * * @param value The logObjectPrefix to set. * @return This builder for chaining. */ - public Builder setLogObjectPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogObjectPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } logObjectPrefix_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * A prefix for log object names.
        * 
* * string log_object_prefix = 2; - * * @return This builder for chaining. */ public Builder clearLogObjectPrefix() { @@ -11827,28 +10668,23 @@ public Builder clearLogObjectPrefix() { return this; } /** - * - * *
        * A prefix for log object names.
        * 
* * string log_object_prefix = 2; - * * @param value The bytes for logObjectPrefix to set. * @return This builder for chaining. */ - public Builder setLogObjectPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogObjectPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logObjectPrefix_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11861,12 +10697,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Logging) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Logging) private static final com.google.storage.v2.Bucket.Logging DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Logging(); } @@ -11875,28 +10711,27 @@ public static com.google.storage.v2.Bucket.Logging getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Logging parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Logging parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -11911,42 +10746,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Logging getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface RetentionPolicyOrBuilder - extends + public interface RetentionPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.RetentionPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Server-determined value that indicates the time from which policy was
      * enforced and effective.
      * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return Whether the effectiveTime field is set. */ boolean hasEffectiveTime(); /** - * - * *
      * Server-determined value that indicates the time from which policy was
      * enforced and effective.
      * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return The effectiveTime. */ com.google.protobuf.Timestamp getEffectiveTime(); /** - * - * *
      * Server-determined value that indicates the time from which policy was
      * enforced and effective.
@@ -11957,21 +10784,16 @@ public interface RetentionPolicyOrBuilder
     com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * Once locked, an object retention policy cannot be modified.
      * 
* * bool is_locked = 2; - * * @return The isLocked. */ boolean getIsLocked(); /** - * - * *
      * The duration that objects need to be retained. Retention duration must be
      * greater than zero and less than 100 years. Note that enforcement of
@@ -11981,13 +10803,10 @@ public interface RetentionPolicyOrBuilder
      * 
* * .google.protobuf.Duration retention_duration = 4; - * * @return Whether the retentionDuration field is set. */ boolean hasRetentionDuration(); /** - * - * *
      * The duration that objects need to be retained. Retention duration must be
      * greater than zero and less than 100 years. Note that enforcement of
@@ -11997,13 +10816,10 @@ public interface RetentionPolicyOrBuilder
      * 
* * .google.protobuf.Duration retention_duration = 4; - * * @return The retentionDuration. */ com.google.protobuf.Duration getRetentionDuration(); /** - * - * *
      * The duration that objects need to be retained. Retention duration must be
      * greater than zero and less than 100 years. Note that enforcement of
@@ -12017,86 +10833,74 @@ public interface RetentionPolicyOrBuilder
     com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Retention policy properties of a bucket.
    * 
* * Protobuf type {@code google.storage.v2.Bucket.RetentionPolicy} */ - public static final class RetentionPolicy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RetentionPolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.RetentionPolicy) RetentionPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RetentionPolicy.newBuilder() to construct. private RetentionPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RetentionPolicy() {} + private RetentionPolicy() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RetentionPolicy(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.RetentionPolicy.class, - com.google.storage.v2.Bucket.RetentionPolicy.Builder.class); + com.google.storage.v2.Bucket.RetentionPolicy.class, com.google.storage.v2.Bucket.RetentionPolicy.Builder.class); } + private int bitField0_; public static final int EFFECTIVE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp effectiveTime_; /** - * - * *
      * Server-determined value that indicates the time from which policy was
      * enforced and effective.
      * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return Whether the effectiveTime field is set. */ @java.lang.Override public boolean hasEffectiveTime() { - return effectiveTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Server-determined value that indicates the time from which policy was
      * enforced and effective.
      * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return The effectiveTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEffectiveTime() { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } /** - * - * *
      * Server-determined value that indicates the time from which policy was
      * enforced and effective.
@@ -12106,22 +10910,17 @@ public com.google.protobuf.Timestamp getEffectiveTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
-      return effectiveTime_ == null
-          ? com.google.protobuf.Timestamp.getDefaultInstance()
-          : effectiveTime_;
+      return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
     }
 
     public static final int IS_LOCKED_FIELD_NUMBER = 2;
     private boolean isLocked_ = false;
     /**
-     *
-     *
      * 
      * Once locked, an object retention policy cannot be modified.
      * 
* * bool is_locked = 2; - * * @return The isLocked. */ @java.lang.Override @@ -12132,8 +10931,6 @@ public boolean getIsLocked() { public static final int RETENTION_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration retentionDuration_; /** - * - * *
      * The duration that objects need to be retained. Retention duration must be
      * greater than zero and less than 100 years. Note that enforcement of
@@ -12143,16 +10940,13 @@ public boolean getIsLocked() {
      * 
* * .google.protobuf.Duration retention_duration = 4; - * * @return Whether the retentionDuration field is set. */ @java.lang.Override public boolean hasRetentionDuration() { - return retentionDuration_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The duration that objects need to be retained. Retention duration must be
      * greater than zero and less than 100 years. Note that enforcement of
@@ -12162,18 +10956,13 @@ public boolean hasRetentionDuration() {
      * 
* * .google.protobuf.Duration retention_duration = 4; - * * @return The retentionDuration. */ @java.lang.Override public com.google.protobuf.Duration getRetentionDuration() { - return retentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : retentionDuration_; + return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_; } /** - * - * *
      * The duration that objects need to be retained. Retention duration must be
      * greater than zero and less than 100 years. Note that enforcement of
@@ -12186,13 +10975,10 @@ public com.google.protobuf.Duration getRetentionDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
-      return retentionDuration_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : retentionDuration_;
+      return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_;
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -12204,14 +10990,15 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-      if (effectiveTime_ != null) {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(1, getEffectiveTime());
       }
       if (isLocked_ != false) {
         output.writeBool(2, isLocked_);
       }
-      if (retentionDuration_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(4, getRetentionDuration());
       }
       getUnknownFields().writeTo(output);
@@ -12223,14 +11010,17 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (effectiveTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEffectiveTime());
+      if (((bitField0_ & 0x00000001) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getEffectiveTime());
       }
       if (isLocked_ != false) {
-        size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isLocked_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeBoolSize(2, isLocked_);
       }
-      if (retentionDuration_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRetentionDuration());
+      if (((bitField0_ & 0x00000002) != 0)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, getRetentionDuration());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -12240,22 +11030,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.storage.v2.Bucket.RetentionPolicy)) {
         return super.equals(obj);
       }
-      com.google.storage.v2.Bucket.RetentionPolicy other =
-          (com.google.storage.v2.Bucket.RetentionPolicy) obj;
+      com.google.storage.v2.Bucket.RetentionPolicy other = (com.google.storage.v2.Bucket.RetentionPolicy) obj;
 
       if (hasEffectiveTime() != other.hasEffectiveTime()) return false;
       if (hasEffectiveTime()) {
-        if (!getEffectiveTime().equals(other.getEffectiveTime())) return false;
+        if (!getEffectiveTime()
+            .equals(other.getEffectiveTime())) return false;
       }
-      if (getIsLocked() != other.getIsLocked()) return false;
+      if (getIsLocked()
+          != other.getIsLocked()) return false;
       if (hasRetentionDuration() != other.hasRetentionDuration()) return false;
       if (hasRetentionDuration()) {
-        if (!getRetentionDuration().equals(other.getRetentionDuration())) return false;
+        if (!getRetentionDuration()
+            .equals(other.getRetentionDuration())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -12273,7 +11065,8 @@ public int hashCode() {
         hash = (53 * hash) + getEffectiveTime().hashCode();
       }
       hash = (37 * hash) + IS_LOCKED_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsLocked());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+          getIsLocked());
       if (hasRetentionDuration()) {
         hash = (37 * hash) + RETENTION_DURATION_FIELD_NUMBER;
         hash = (53 * hash) + getRetentionDuration().hashCode();
@@ -12283,94 +11076,90 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(java.nio.ByteBuffer data)
+    public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(
+        java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.storage.v2.Bucket.RetentionPolicy 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.storage.v2.Bucket.RetentionPolicy parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.storage.v2.Bucket.RetentionPolicy 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.storage.v2.Bucket.RetentionPolicy parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.storage.v2.Bucket.RetentionPolicy 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.storage.v2.Bucket.RetentionPolicy 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.storage.v2.Bucket.RetentionPolicy 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.storage.v2.Bucket.RetentionPolicy parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.storage.v2.Bucket.RetentionPolicy parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.storage.v2.Bucket.RetentionPolicy 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.storage.v2.Bucket.RetentionPolicy 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.storage.v2.Bucket.RetentionPolicy 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.storage.v2.Bucket.RetentionPolicy 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
@@ -12380,41 +11169,46 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Retention policy properties of a bucket.
      * 
* * Protobuf type {@code google.storage.v2.Bucket.RetentionPolicy} */ - 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.storage.v2.Bucket.RetentionPolicy) com.google.storage.v2.Bucket.RetentionPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.RetentionPolicy.class, - com.google.storage.v2.Bucket.RetentionPolicy.Builder.class); + com.google.storage.v2.Bucket.RetentionPolicy.class, com.google.storage.v2.Bucket.RetentionPolicy.Builder.class); } // Construct using com.google.storage.v2.Bucket.RetentionPolicy.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEffectiveTimeFieldBuilder(); + getRetentionDurationFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -12434,9 +11228,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; } @java.lang.Override @@ -12455,71 +11249,69 @@ public com.google.storage.v2.Bucket.RetentionPolicy build() { @java.lang.Override public com.google.storage.v2.Bucket.RetentionPolicy buildPartial() { - com.google.storage.v2.Bucket.RetentionPolicy result = - new com.google.storage.v2.Bucket.RetentionPolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.RetentionPolicy result = new com.google.storage.v2.Bucket.RetentionPolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.storage.v2.Bucket.RetentionPolicy result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.effectiveTime_ = - effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build(); + result.effectiveTime_ = effectiveTimeBuilder_ == null + ? effectiveTime_ + : effectiveTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.isLocked_ = isLocked_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.retentionDuration_ = - retentionDurationBuilder_ == null - ? retentionDuration_ - : retentionDurationBuilder_.build(); + result.retentionDuration_ = retentionDurationBuilder_ == null + ? retentionDuration_ + : retentionDurationBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.Bucket.RetentionPolicy) { - return mergeFrom((com.google.storage.v2.Bucket.RetentionPolicy) other); + return mergeFrom((com.google.storage.v2.Bucket.RetentionPolicy)other); } else { super.mergeFrom(other); return this; @@ -12563,32 +11355,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getEffectiveTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - isLocked_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: - { - input.readMessage( - getRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getEffectiveTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + isLocked_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: { + input.readMessage( + getRetentionDurationFieldBuilder().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) { @@ -12598,54 +11389,40 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp effectiveTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - effectiveTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveTimeBuilder_; /** - * - * *
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
        * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return Whether the effectiveTime field is set. */ public boolean hasEffectiveTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
        * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return The effectiveTime. */ public com.google.protobuf.Timestamp getEffectiveTime() { if (effectiveTimeBuilder_ == null) { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } else { return effectiveTimeBuilder_.getMessage(); } } /** - * - * *
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -12667,8 +11444,6 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -12676,7 +11451,8 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp effective_time = 1;
        */
-      public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setEffectiveTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (effectiveTimeBuilder_ == null) {
           effectiveTime_ = builderForValue.build();
         } else {
@@ -12687,8 +11463,6 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor
         return this;
       }
       /**
-       *
-       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -12698,9 +11472,9 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor
        */
       public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
         if (effectiveTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && effectiveTime_ != null
-              && effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            effectiveTime_ != null &&
+            effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getEffectiveTimeBuilder().mergeFrom(value);
           } else {
             effectiveTime_ = value;
@@ -12708,13 +11482,13 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
         } else {
           effectiveTimeBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000001;
-        onChanged();
+        if (effectiveTime_ != null) {
+          bitField0_ |= 0x00000001;
+          onChanged();
+        }
         return this;
       }
       /**
-       *
-       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -12733,8 +11507,6 @@ public Builder clearEffectiveTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -12748,8 +11520,6 @@ public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() {
         return getEffectiveTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -12761,14 +11531,11 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
         if (effectiveTimeBuilder_ != null) {
           return effectiveTimeBuilder_.getMessageOrBuilder();
         } else {
-          return effectiveTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : effectiveTime_;
+          return effectiveTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
         }
       }
       /**
-       *
-       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -12777,32 +11544,26 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
        * .google.protobuf.Timestamp effective_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> 
           getEffectiveTimeFieldBuilder() {
         if (effectiveTimeBuilder_ == null) {
-          effectiveTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getEffectiveTime(), getParentForChildren(), isClean());
+          effectiveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getEffectiveTime(),
+                  getParentForChildren(),
+                  isClean());
           effectiveTime_ = null;
         }
         return effectiveTimeBuilder_;
       }
 
-      private boolean isLocked_;
+      private boolean isLocked_ ;
       /**
-       *
-       *
        * 
        * Once locked, an object retention policy cannot be modified.
        * 
* * bool is_locked = 2; - * * @return The isLocked. */ @java.lang.Override @@ -12810,14 +11571,11 @@ public boolean getIsLocked() { return isLocked_; } /** - * - * *
        * Once locked, an object retention policy cannot be modified.
        * 
* * bool is_locked = 2; - * * @param value The isLocked to set. * @return This builder for chaining. */ @@ -12829,14 +11587,11 @@ public Builder setIsLocked(boolean value) { return this; } /** - * - * *
        * Once locked, an object retention policy cannot be modified.
        * 
* * bool is_locked = 2; - * * @return This builder for chaining. */ public Builder clearIsLocked() { @@ -12848,13 +11603,8 @@ public Builder clearIsLocked() { private com.google.protobuf.Duration retentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - retentionDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retentionDurationBuilder_; /** - * - * *
        * The duration that objects need to be retained. Retention duration must be
        * greater than zero and less than 100 years. Note that enforcement of
@@ -12864,15 +11614,12 @@ public Builder clearIsLocked() {
        * 
* * .google.protobuf.Duration retention_duration = 4; - * * @return Whether the retentionDuration field is set. */ public boolean hasRetentionDuration() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * The duration that objects need to be retained. Retention duration must be
        * greater than zero and less than 100 years. Note that enforcement of
@@ -12882,21 +11629,16 @@ public boolean hasRetentionDuration() {
        * 
* * .google.protobuf.Duration retention_duration = 4; - * * @return The retentionDuration. */ public com.google.protobuf.Duration getRetentionDuration() { if (retentionDurationBuilder_ == null) { - return retentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : retentionDuration_; + return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_; } else { return retentionDurationBuilder_.getMessage(); } } /** - * - * *
        * The duration that objects need to be retained. Retention duration must be
        * greater than zero and less than 100 years. Note that enforcement of
@@ -12921,8 +11663,6 @@ public Builder setRetentionDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The duration that objects need to be retained. Retention duration must be
        * greater than zero and less than 100 years. Note that enforcement of
@@ -12933,7 +11673,8 @@ public Builder setRetentionDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration retention_duration = 4;
        */
-      public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setRetentionDuration(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (retentionDurationBuilder_ == null) {
           retentionDuration_ = builderForValue.build();
         } else {
@@ -12944,8 +11685,6 @@ public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builder
         return this;
       }
       /**
-       *
-       *
        * 
        * The duration that objects need to be retained. Retention duration must be
        * greater than zero and less than 100 years. Note that enforcement of
@@ -12958,9 +11697,9 @@ public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builder
        */
       public Builder mergeRetentionDuration(com.google.protobuf.Duration value) {
         if (retentionDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0)
-              && retentionDuration_ != null
-              && retentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000004) != 0) &&
+            retentionDuration_ != null &&
+            retentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getRetentionDurationBuilder().mergeFrom(value);
           } else {
             retentionDuration_ = value;
@@ -12968,13 +11707,13 @@ public Builder mergeRetentionDuration(com.google.protobuf.Duration value) {
         } else {
           retentionDurationBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000004;
-        onChanged();
+        if (retentionDuration_ != null) {
+          bitField0_ |= 0x00000004;
+          onChanged();
+        }
         return this;
       }
       /**
-       *
-       *
        * 
        * The duration that objects need to be retained. Retention duration must be
        * greater than zero and less than 100 years. Note that enforcement of
@@ -12996,8 +11735,6 @@ public Builder clearRetentionDuration() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The duration that objects need to be retained. Retention duration must be
        * greater than zero and less than 100 years. Note that enforcement of
@@ -13014,8 +11751,6 @@ public com.google.protobuf.Duration.Builder getRetentionDurationBuilder() {
         return getRetentionDurationFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The duration that objects need to be retained. Retention duration must be
        * greater than zero and less than 100 years. Note that enforcement of
@@ -13030,14 +11765,11 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
         if (retentionDurationBuilder_ != null) {
           return retentionDurationBuilder_.getMessageOrBuilder();
         } else {
-          return retentionDuration_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : retentionDuration_;
+          return retentionDuration_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_;
         }
       }
       /**
-       *
-       *
        * 
        * The duration that objects need to be retained. Retention duration must be
        * greater than zero and less than 100 years. Note that enforcement of
@@ -13049,22 +11781,18 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
        * .google.protobuf.Duration retention_duration = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getRetentionDurationFieldBuilder() {
         if (retentionDurationBuilder_ == null) {
-          retentionDurationBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getRetentionDuration(), getParentForChildren(), isClean());
+          retentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getRetentionDuration(),
+                  getParentForChildren(),
+                  isClean());
           retentionDuration_ = null;
         }
         return retentionDurationBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -13077,12 +11805,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.RetentionPolicy)
     }
 
     // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.RetentionPolicy)
     private static final com.google.storage.v2.Bucket.RetentionPolicy DEFAULT_INSTANCE;
-
     static {
       DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.RetentionPolicy();
     }
@@ -13091,28 +11819,27 @@ public static com.google.storage.v2.Bucket.RetentionPolicy getDefaultInstance()
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public RetentionPolicy parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              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 RetentionPolicy parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          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;
@@ -13127,16 +11854,14 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.storage.v2.Bucket.RetentionPolicy getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface SoftDeletePolicyOrBuilder
-      extends
+  public interface SoftDeletePolicyOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.SoftDeletePolicy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The period of time that soft-deleted objects in the bucket must be
      * retained and cannot be permanently deleted. The duration must be greater
@@ -13144,13 +11869,10 @@ public interface SoftDeletePolicyOrBuilder
      * 
* * optional .google.protobuf.Duration retention_duration = 1; - * * @return Whether the retentionDuration field is set. */ boolean hasRetentionDuration(); /** - * - * *
      * The period of time that soft-deleted objects in the bucket must be
      * retained and cannot be permanently deleted. The duration must be greater
@@ -13158,13 +11880,10 @@ public interface SoftDeletePolicyOrBuilder
      * 
* * optional .google.protobuf.Duration retention_duration = 1; - * * @return The retentionDuration. */ com.google.protobuf.Duration getRetentionDuration(); /** - * - * *
      * The period of time that soft-deleted objects in the bucket must be
      * retained and cannot be permanently deleted. The duration must be greater
@@ -13176,32 +11895,24 @@ public interface SoftDeletePolicyOrBuilder
     com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder();
 
     /**
-     *
-     *
      * 
      * Time from which the policy was effective. This is service-provided.
      * 
* * optional .google.protobuf.Timestamp effective_time = 2; - * * @return Whether the effectiveTime field is set. */ boolean hasEffectiveTime(); /** - * - * *
      * Time from which the policy was effective. This is service-provided.
      * 
* * optional .google.protobuf.Timestamp effective_time = 2; - * * @return The effectiveTime. */ com.google.protobuf.Timestamp getEffectiveTime(); /** - * - * *
      * Time from which the policy was effective. This is service-provided.
      * 
@@ -13211,53 +11922,48 @@ public interface SoftDeletePolicyOrBuilder com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder(); } /** - * - * *
    * Soft delete policy properties of a bucket.
    * 
* * Protobuf type {@code google.storage.v2.Bucket.SoftDeletePolicy} */ - public static final class SoftDeletePolicy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SoftDeletePolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.SoftDeletePolicy) SoftDeletePolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SoftDeletePolicy.newBuilder() to construct. private SoftDeletePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SoftDeletePolicy() {} + private SoftDeletePolicy() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SoftDeletePolicy(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.SoftDeletePolicy.class, - com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); + com.google.storage.v2.Bucket.SoftDeletePolicy.class, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); } private int bitField0_; public static final int RETENTION_DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration retentionDuration_; /** - * - * *
      * The period of time that soft-deleted objects in the bucket must be
      * retained and cannot be permanently deleted. The duration must be greater
@@ -13265,7 +11971,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * optional .google.protobuf.Duration retention_duration = 1; - * * @return Whether the retentionDuration field is set. */ @java.lang.Override @@ -13273,8 +11978,6 @@ public boolean hasRetentionDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The period of time that soft-deleted objects in the bucket must be
      * retained and cannot be permanently deleted. The duration must be greater
@@ -13282,18 +11985,13 @@ public boolean hasRetentionDuration() {
      * 
* * optional .google.protobuf.Duration retention_duration = 1; - * * @return The retentionDuration. */ @java.lang.Override public com.google.protobuf.Duration getRetentionDuration() { - return retentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : retentionDuration_; + return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_; } /** - * - * *
      * The period of time that soft-deleted objects in the bucket must be
      * retained and cannot be permanently deleted. The duration must be greater
@@ -13304,22 +12002,17 @@ public com.google.protobuf.Duration getRetentionDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
-      return retentionDuration_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : retentionDuration_;
+      return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_;
     }
 
     public static final int EFFECTIVE_TIME_FIELD_NUMBER = 2;
     private com.google.protobuf.Timestamp effectiveTime_;
     /**
-     *
-     *
      * 
      * Time from which the policy was effective. This is service-provided.
      * 
* * optional .google.protobuf.Timestamp effective_time = 2; - * * @return Whether the effectiveTime field is set. */ @java.lang.Override @@ -13327,25 +12020,18 @@ public boolean hasEffectiveTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time from which the policy was effective. This is service-provided.
      * 
* * optional .google.protobuf.Timestamp effective_time = 2; - * * @return The effectiveTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEffectiveTime() { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } /** - * - * *
      * Time from which the policy was effective. This is service-provided.
      * 
@@ -13354,13 +12040,10 @@ public com.google.protobuf.Timestamp getEffectiveTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13372,7 +12055,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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRetentionDuration()); } @@ -13389,10 +12073,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRetentionDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRetentionDuration()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEffectiveTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEffectiveTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -13402,21 +12088,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.storage.v2.Bucket.SoftDeletePolicy)) { return super.equals(obj); } - com.google.storage.v2.Bucket.SoftDeletePolicy other = - (com.google.storage.v2.Bucket.SoftDeletePolicy) obj; + com.google.storage.v2.Bucket.SoftDeletePolicy other = (com.google.storage.v2.Bucket.SoftDeletePolicy) obj; if (hasRetentionDuration() != other.hasRetentionDuration()) return false; if (hasRetentionDuration()) { - if (!getRetentionDuration().equals(other.getRetentionDuration())) return false; + if (!getRetentionDuration() + .equals(other.getRetentionDuration())) return false; } if (hasEffectiveTime() != other.hasEffectiveTime()) return false; if (hasEffectiveTime()) { - if (!getEffectiveTime().equals(other.getEffectiveTime())) return false; + if (!getEffectiveTime() + .equals(other.getEffectiveTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -13442,94 +12129,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy 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.storage.v2.Bucket.SoftDeletePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy 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.storage.v2.Bucket.SoftDeletePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy 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.storage.v2.Bucket.SoftDeletePolicy 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.storage.v2.Bucket.SoftDeletePolicy 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.storage.v2.Bucket.SoftDeletePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.SoftDeletePolicy 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.storage.v2.Bucket.SoftDeletePolicy 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.storage.v2.Bucket.SoftDeletePolicy 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.storage.v2.Bucket.SoftDeletePolicy 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 @@ -13539,32 +12222,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Soft delete policy properties of a bucket.
      * 
* * Protobuf type {@code google.storage.v2.Bucket.SoftDeletePolicy} */ - 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.storage.v2.Bucket.SoftDeletePolicy) com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.SoftDeletePolicy.class, - com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); + com.google.storage.v2.Bucket.SoftDeletePolicy.class, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); } // Construct using com.google.storage.v2.Bucket.SoftDeletePolicy.newBuilder() @@ -13572,18 +12250,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRetentionDurationFieldBuilder(); getEffectiveTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -13602,9 +12280,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; } @java.lang.Override @@ -13623,11 +12301,8 @@ public com.google.storage.v2.Bucket.SoftDeletePolicy build() { @java.lang.Override public com.google.storage.v2.Bucket.SoftDeletePolicy buildPartial() { - com.google.storage.v2.Bucket.SoftDeletePolicy result = - new com.google.storage.v2.Bucket.SoftDeletePolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.SoftDeletePolicy result = new com.google.storage.v2.Bucket.SoftDeletePolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -13636,15 +12311,15 @@ private void buildPartial0(com.google.storage.v2.Bucket.SoftDeletePolicy result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.retentionDuration_ = - retentionDurationBuilder_ == null - ? retentionDuration_ - : retentionDurationBuilder_.build(); + result.retentionDuration_ = retentionDurationBuilder_ == null + ? retentionDuration_ + : retentionDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.effectiveTime_ = - effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build(); + result.effectiveTime_ = effectiveTimeBuilder_ == null + ? effectiveTime_ + : effectiveTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -13654,41 +12329,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.SoftDeletePolicy 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) { + 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.storage.v2.Bucket.SoftDeletePolicy) { - return mergeFrom((com.google.storage.v2.Bucket.SoftDeletePolicy) other); + return mergeFrom((com.google.storage.v2.Bucket.SoftDeletePolicy)other); } else { super.mergeFrom(other); return this; @@ -13696,8 +12368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.Bucket.SoftDeletePolicy other) { - if (other == com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) return this; if (other.hasRetentionDuration()) { mergeRetentionDuration(other.getRetentionDuration()); } @@ -13730,26 +12401,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEffectiveTimeFieldBuilder().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( + getRetentionDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEffectiveTimeFieldBuilder().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) { @@ -13759,18 +12430,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration retentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - retentionDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retentionDurationBuilder_; /** - * - * *
        * The period of time that soft-deleted objects in the bucket must be
        * retained and cannot be permanently deleted. The duration must be greater
@@ -13778,15 +12443,12 @@ public Builder mergeFrom(
        * 
* * optional .google.protobuf.Duration retention_duration = 1; - * * @return Whether the retentionDuration field is set. */ public boolean hasRetentionDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The period of time that soft-deleted objects in the bucket must be
        * retained and cannot be permanently deleted. The duration must be greater
@@ -13794,21 +12456,16 @@ public boolean hasRetentionDuration() {
        * 
* * optional .google.protobuf.Duration retention_duration = 1; - * * @return The retentionDuration. */ public com.google.protobuf.Duration getRetentionDuration() { if (retentionDurationBuilder_ == null) { - return retentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : retentionDuration_; + return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_; } else { return retentionDurationBuilder_.getMessage(); } } /** - * - * *
        * The period of time that soft-deleted objects in the bucket must be
        * retained and cannot be permanently deleted. The duration must be greater
@@ -13831,8 +12488,6 @@ public Builder setRetentionDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The period of time that soft-deleted objects in the bucket must be
        * retained and cannot be permanently deleted. The duration must be greater
@@ -13841,7 +12496,8 @@ public Builder setRetentionDuration(com.google.protobuf.Duration value) {
        *
        * optional .google.protobuf.Duration retention_duration = 1;
        */
-      public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setRetentionDuration(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (retentionDurationBuilder_ == null) {
           retentionDuration_ = builderForValue.build();
         } else {
@@ -13852,8 +12508,6 @@ public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builder
         return this;
       }
       /**
-       *
-       *
        * 
        * The period of time that soft-deleted objects in the bucket must be
        * retained and cannot be permanently deleted. The duration must be greater
@@ -13864,9 +12518,9 @@ public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builder
        */
       public Builder mergeRetentionDuration(com.google.protobuf.Duration value) {
         if (retentionDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && retentionDuration_ != null
-              && retentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            retentionDuration_ != null &&
+            retentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getRetentionDurationBuilder().mergeFrom(value);
           } else {
             retentionDuration_ = value;
@@ -13874,13 +12528,13 @@ public Builder mergeRetentionDuration(com.google.protobuf.Duration value) {
         } else {
           retentionDurationBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000001;
-        onChanged();
+        if (retentionDuration_ != null) {
+          bitField0_ |= 0x00000001;
+          onChanged();
+        }
         return this;
       }
       /**
-       *
-       *
        * 
        * The period of time that soft-deleted objects in the bucket must be
        * retained and cannot be permanently deleted. The duration must be greater
@@ -13900,8 +12554,6 @@ public Builder clearRetentionDuration() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The period of time that soft-deleted objects in the bucket must be
        * retained and cannot be permanently deleted. The duration must be greater
@@ -13916,8 +12568,6 @@ public com.google.protobuf.Duration.Builder getRetentionDurationBuilder() {
         return getRetentionDurationFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The period of time that soft-deleted objects in the bucket must be
        * retained and cannot be permanently deleted. The duration must be greater
@@ -13930,14 +12580,11 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
         if (retentionDurationBuilder_ != null) {
           return retentionDurationBuilder_.getMessageOrBuilder();
         } else {
-          return retentionDuration_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : retentionDuration_;
+          return retentionDuration_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_;
         }
       }
       /**
-       *
-       *
        * 
        * The period of time that soft-deleted objects in the bucket must be
        * retained and cannot be permanently deleted. The duration must be greater
@@ -13947,17 +12594,14 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
        * optional .google.protobuf.Duration retention_duration = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getRetentionDurationFieldBuilder() {
         if (retentionDurationBuilder_ == null) {
-          retentionDurationBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getRetentionDuration(), getParentForChildren(), isClean());
+          retentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getRetentionDuration(),
+                  getParentForChildren(),
+                  isClean());
           retentionDuration_ = null;
         }
         return retentionDurationBuilder_;
@@ -13965,47 +12609,34 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
 
       private com.google.protobuf.Timestamp effectiveTime_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
-          effectiveTimeBuilder_;
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveTimeBuilder_;
       /**
-       *
-       *
        * 
        * Time from which the policy was effective. This is service-provided.
        * 
* * optional .google.protobuf.Timestamp effective_time = 2; - * * @return Whether the effectiveTime field is set. */ public boolean hasEffectiveTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Time from which the policy was effective. This is service-provided.
        * 
* * optional .google.protobuf.Timestamp effective_time = 2; - * * @return The effectiveTime. */ public com.google.protobuf.Timestamp getEffectiveTime() { if (effectiveTimeBuilder_ == null) { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } else { return effectiveTimeBuilder_.getMessage(); } } /** - * - * *
        * Time from which the policy was effective. This is service-provided.
        * 
@@ -14026,15 +12657,14 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Time from which the policy was effective. This is service-provided.
        * 
* * optional .google.protobuf.Timestamp effective_time = 2; */ - public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEffectiveTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (effectiveTimeBuilder_ == null) { effectiveTime_ = builderForValue.build(); } else { @@ -14045,8 +12675,6 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * *
        * Time from which the policy was effective. This is service-provided.
        * 
@@ -14055,9 +12683,9 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor */ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) { if (effectiveTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && effectiveTime_ != null - && effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + effectiveTime_ != null && + effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEffectiveTimeBuilder().mergeFrom(value); } else { effectiveTime_ = value; @@ -14065,13 +12693,13 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) { } else { effectiveTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (effectiveTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** - * - * *
        * Time from which the policy was effective. This is service-provided.
        * 
@@ -14089,8 +12717,6 @@ public Builder clearEffectiveTime() { return this; } /** - * - * *
        * Time from which the policy was effective. This is service-provided.
        * 
@@ -14103,8 +12729,6 @@ public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() { return getEffectiveTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Time from which the policy was effective. This is service-provided.
        * 
@@ -14115,14 +12739,11 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { if (effectiveTimeBuilder_ != null) { return effectiveTimeBuilder_.getMessageOrBuilder(); } else { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } } /** - * - * *
        * Time from which the policy was effective. This is service-provided.
        * 
@@ -14130,22 +12751,18 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { * optional .google.protobuf.Timestamp effective_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> getEffectiveTimeFieldBuilder() { if (effectiveTimeBuilder_ == null) { - effectiveTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEffectiveTime(), getParentForChildren(), isClean()); + effectiveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEffectiveTime(), + getParentForChildren(), + isClean()); effectiveTime_ = null; } return effectiveTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14158,12 +12775,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.SoftDeletePolicy) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.SoftDeletePolicy) private static final com.google.storage.v2.Bucket.SoftDeletePolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.SoftDeletePolicy(); } @@ -14172,28 +12789,27 @@ public static com.google.storage.v2.Bucket.SoftDeletePolicy getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SoftDeletePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SoftDeletePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -14208,29 +12824,24 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.SoftDeletePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface VersioningOrBuilder - extends + public interface VersioningOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Versioning) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * While set to true, versioning is fully enabled for this bucket.
      * 
* * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); } /** - * - * *
    * Properties of a bucket related to versioning.
    * For more on Cloud Storage versioning, see
@@ -14239,50 +12850,46 @@ public interface VersioningOrBuilder
    *
    * Protobuf type {@code google.storage.v2.Bucket.Versioning}
    */
-  public static final class Versioning extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Versioning extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Versioning)
       VersioningOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Versioning.newBuilder() to construct.
     private Versioning(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private Versioning() {}
+    private Versioning() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Versioning();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_Bucket_Versioning_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Versioning_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.Bucket.Versioning.class,
-              com.google.storage.v2.Bucket.Versioning.Builder.class);
+              com.google.storage.v2.Bucket.Versioning.class, com.google.storage.v2.Bucket.Versioning.Builder.class);
     }
 
     public static final int ENABLED_FIELD_NUMBER = 1;
     private boolean enabled_ = false;
     /**
-     *
-     *
      * 
      * While set to true, versioning is fully enabled for this bucket.
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -14291,7 +12898,6 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -14303,7 +12909,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 (enabled_ != false) { output.writeBool(1, enabled_); } @@ -14317,7 +12924,8 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -14327,14 +12935,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.storage.v2.Bucket.Versioning)) { return super.equals(obj); } com.google.storage.v2.Bucket.Versioning other = (com.google.storage.v2.Bucket.Versioning) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -14347,100 +12956,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.Bucket.Versioning parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Versioning parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Versioning 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.storage.v2.Bucket.Versioning parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Versioning 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.storage.v2.Bucket.Versioning parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Versioning 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.storage.v2.Bucket.Versioning 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.storage.v2.Bucket.Versioning 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.storage.v2.Bucket.Versioning parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Versioning parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Versioning 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.storage.v2.Bucket.Versioning 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.storage.v2.Bucket.Versioning 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.storage.v2.Bucket.Versioning 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 @@ -14450,8 +13056,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Properties of a bucket related to versioning.
      * For more on Cloud Storage versioning, see
@@ -14460,33 +13064,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.storage.v2.Bucket.Versioning}
      */
-    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.storage.v2.Bucket.Versioning)
         com.google.storage.v2.Bucket.VersioningOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Versioning_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Versioning_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.storage.v2.Bucket.Versioning.class,
-                com.google.storage.v2.Bucket.Versioning.Builder.class);
+                com.google.storage.v2.Bucket.Versioning.class, com.google.storage.v2.Bucket.Versioning.Builder.class);
       }
 
       // Construct using com.google.storage.v2.Bucket.Versioning.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();
@@ -14496,9 +13100,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Versioning_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Versioning_descriptor;
       }
 
       @java.lang.Override
@@ -14517,11 +13121,8 @@ public com.google.storage.v2.Bucket.Versioning build() {
 
       @java.lang.Override
       public com.google.storage.v2.Bucket.Versioning buildPartial() {
-        com.google.storage.v2.Bucket.Versioning result =
-            new com.google.storage.v2.Bucket.Versioning(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.storage.v2.Bucket.Versioning result = new com.google.storage.v2.Bucket.Versioning(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -14537,41 +13138,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Versioning 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) {
+          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.storage.v2.Bucket.Versioning) {
-          return mergeFrom((com.google.storage.v2.Bucket.Versioning) other);
+          return mergeFrom((com.google.storage.v2.Bucket.Versioning)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -14609,19 +13207,17 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  enabled_ = input.readBool();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                enabled_ = 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) {
@@ -14631,19 +13227,15 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private boolean enabled_;
+      private boolean enabled_ ;
       /**
-       *
-       *
        * 
        * While set to true, versioning is fully enabled for this bucket.
        * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -14651,14 +13243,11 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
        * While set to true, versioning is fully enabled for this bucket.
        * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ @@ -14670,14 +13259,11 @@ public Builder setEnabled(boolean value) { return this; } /** - * - * *
        * While set to true, versioning is fully enabled for this bucket.
        * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -14686,7 +13272,6 @@ public Builder clearEnabled() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14699,12 +13284,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Versioning) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Versioning) private static final com.google.storage.v2.Bucket.Versioning DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Versioning(); } @@ -14713,28 +13298,27 @@ public static com.google.storage.v2.Bucket.Versioning getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Versioning parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Versioning parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -14749,16 +13333,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Versioning getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebsiteOrBuilder - extends + public interface WebsiteOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Website) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * If the requested object path is missing, the service will ensure the path
      * has a trailing '/', append this suffix, and attempt to retrieve the
@@ -14767,13 +13349,10 @@ public interface WebsiteOrBuilder
      * 
* * string main_page_suffix = 1; - * * @return The mainPageSuffix. */ java.lang.String getMainPageSuffix(); /** - * - * *
      * If the requested object path is missing, the service will ensure the path
      * has a trailing '/', append this suffix, and attempt to retrieve the
@@ -14782,14 +13361,12 @@ public interface WebsiteOrBuilder
      * 
* * string main_page_suffix = 1; - * * @return The bytes for mainPageSuffix. */ - com.google.protobuf.ByteString getMainPageSuffixBytes(); + com.google.protobuf.ByteString + getMainPageSuffixBytes(); /** - * - * *
      * If the requested object path is missing, and any
      * `mainPageSuffix` object is missing, if applicable, the service
@@ -14799,13 +13376,10 @@ public interface WebsiteOrBuilder
      * 
* * string not_found_page = 2; - * * @return The notFoundPage. */ java.lang.String getNotFoundPage(); /** - * - * *
      * If the requested object path is missing, and any
      * `mainPageSuffix` object is missing, if applicable, the service
@@ -14815,14 +13389,12 @@ public interface WebsiteOrBuilder
      * 
* * string not_found_page = 2; - * * @return The bytes for notFoundPage. */ - com.google.protobuf.ByteString getNotFoundPageBytes(); + com.google.protobuf.ByteString + getNotFoundPageBytes(); } /** - * - * *
    * Properties of a bucket related to accessing the contents as a static
    * website. For more on hosting a static website via Cloud Storage, see
@@ -14831,16 +13403,15 @@ public interface WebsiteOrBuilder
    *
    * Protobuf type {@code google.storage.v2.Bucket.Website}
    */
-  public static final class Website extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Website extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Website)
       WebsiteOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Website.newBuilder() to construct.
     private Website(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Website() {
       mainPageSuffix_ = "";
       notFoundPage_ = "";
@@ -14848,32 +13419,28 @@ private Website() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Website();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_Bucket_Website_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.Bucket.Website.class,
-              com.google.storage.v2.Bucket.Website.Builder.class);
+              com.google.storage.v2.Bucket.Website.class, com.google.storage.v2.Bucket.Website.Builder.class);
     }
 
     public static final int MAIN_PAGE_SUFFIX_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object mainPageSuffix_ = "";
     /**
-     *
-     *
      * 
      * If the requested object path is missing, the service will ensure the path
      * has a trailing '/', append this suffix, and attempt to retrieve the
@@ -14882,7 +13449,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string main_page_suffix = 1; - * * @return The mainPageSuffix. */ @java.lang.Override @@ -14891,15 +13457,14 @@ public java.lang.String getMainPageSuffix() { 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(); mainPageSuffix_ = s; return s; } } /** - * - * *
      * If the requested object path is missing, the service will ensure the path
      * has a trailing '/', append this suffix, and attempt to retrieve the
@@ -14908,15 +13473,16 @@ public java.lang.String getMainPageSuffix() {
      * 
* * string main_page_suffix = 1; - * * @return The bytes for mainPageSuffix. */ @java.lang.Override - public com.google.protobuf.ByteString getMainPageSuffixBytes() { + public com.google.protobuf.ByteString + getMainPageSuffixBytes() { java.lang.Object ref = mainPageSuffix_; 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); mainPageSuffix_ = b; return b; } else { @@ -14925,12 +13491,9 @@ public com.google.protobuf.ByteString getMainPageSuffixBytes() { } public static final int NOT_FOUND_PAGE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object notFoundPage_ = ""; /** - * - * *
      * If the requested object path is missing, and any
      * `mainPageSuffix` object is missing, if applicable, the service
@@ -14940,7 +13503,6 @@ public com.google.protobuf.ByteString getMainPageSuffixBytes() {
      * 
* * string not_found_page = 2; - * * @return The notFoundPage. */ @java.lang.Override @@ -14949,15 +13511,14 @@ public java.lang.String getNotFoundPage() { 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(); notFoundPage_ = s; return s; } } /** - * - * *
      * If the requested object path is missing, and any
      * `mainPageSuffix` object is missing, if applicable, the service
@@ -14967,15 +13528,16 @@ public java.lang.String getNotFoundPage() {
      * 
* * string not_found_page = 2; - * * @return The bytes for notFoundPage. */ @java.lang.Override - public com.google.protobuf.ByteString getNotFoundPageBytes() { + public com.google.protobuf.ByteString + getNotFoundPageBytes() { java.lang.Object ref = notFoundPage_; 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); notFoundPage_ = b; return b; } else { @@ -14984,7 +13546,6 @@ public com.google.protobuf.ByteString getNotFoundPageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -14996,7 +13557,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(mainPageSuffix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPageSuffix_); } @@ -15026,15 +13588,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.storage.v2.Bucket.Website)) { return super.equals(obj); } com.google.storage.v2.Bucket.Website other = (com.google.storage.v2.Bucket.Website) obj; - if (!getMainPageSuffix().equals(other.getMainPageSuffix())) return false; - if (!getNotFoundPage().equals(other.getNotFoundPage())) return false; + if (!getMainPageSuffix() + .equals(other.getMainPageSuffix())) return false; + if (!getNotFoundPage() + .equals(other.getNotFoundPage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15055,94 +13619,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Website parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Website parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Website 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.storage.v2.Bucket.Website parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Website 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.storage.v2.Bucket.Website parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Website 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.storage.v2.Bucket.Website 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.storage.v2.Bucket.Website 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.storage.v2.Bucket.Website parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Website 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.storage.v2.Bucket.Website 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.storage.v2.Bucket.Website 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.storage.v2.Bucket.Website 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 @@ -15152,8 +13712,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Properties of a bucket related to accessing the contents as a static
      * website. For more on hosting a static website via Cloud Storage, see
@@ -15162,33 +13720,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.storage.v2.Bucket.Website}
      */
-    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.storage.v2.Bucket.Website)
         com.google.storage.v2.Bucket.WebsiteOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Website_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.storage.v2.Bucket.Website.class,
-                com.google.storage.v2.Bucket.Website.Builder.class);
+                com.google.storage.v2.Bucket.Website.class, com.google.storage.v2.Bucket.Website.Builder.class);
       }
 
       // Construct using com.google.storage.v2.Bucket.Website.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();
@@ -15199,9 +13757,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_Website_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_descriptor;
       }
 
       @java.lang.Override
@@ -15220,11 +13778,8 @@ public com.google.storage.v2.Bucket.Website build() {
 
       @java.lang.Override
       public com.google.storage.v2.Bucket.Website buildPartial() {
-        com.google.storage.v2.Bucket.Website result =
-            new com.google.storage.v2.Bucket.Website(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.storage.v2.Bucket.Website result = new com.google.storage.v2.Bucket.Website(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -15243,41 +13798,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Website 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) {
+          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.storage.v2.Bucket.Website) {
-          return mergeFrom((com.google.storage.v2.Bucket.Website) other);
+          return mergeFrom((com.google.storage.v2.Bucket.Website)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -15322,25 +13874,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  mainPageSuffix_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  notFoundPage_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                mainPageSuffix_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                notFoundPage_ = 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) {
@@ -15350,13 +13899,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object mainPageSuffix_ = "";
       /**
-       *
-       *
        * 
        * If the requested object path is missing, the service will ensure the path
        * has a trailing '/', append this suffix, and attempt to retrieve the
@@ -15365,13 +13911,13 @@ public Builder mergeFrom(
        * 
* * string main_page_suffix = 1; - * * @return The mainPageSuffix. */ public java.lang.String getMainPageSuffix() { java.lang.Object ref = mainPageSuffix_; 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(); mainPageSuffix_ = s; return s; @@ -15380,8 +13926,6 @@ public java.lang.String getMainPageSuffix() { } } /** - * - * *
        * If the requested object path is missing, the service will ensure the path
        * has a trailing '/', append this suffix, and attempt to retrieve the
@@ -15390,14 +13934,15 @@ public java.lang.String getMainPageSuffix() {
        * 
* * string main_page_suffix = 1; - * * @return The bytes for mainPageSuffix. */ - public com.google.protobuf.ByteString getMainPageSuffixBytes() { + public com.google.protobuf.ByteString + getMainPageSuffixBytes() { java.lang.Object ref = mainPageSuffix_; 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); mainPageSuffix_ = b; return b; } else { @@ -15405,8 +13950,6 @@ public com.google.protobuf.ByteString getMainPageSuffixBytes() { } } /** - * - * *
        * If the requested object path is missing, the service will ensure the path
        * has a trailing '/', append this suffix, and attempt to retrieve the
@@ -15415,22 +13958,18 @@ public com.google.protobuf.ByteString getMainPageSuffixBytes() {
        * 
* * string main_page_suffix = 1; - * * @param value The mainPageSuffix to set. * @return This builder for chaining. */ - public Builder setMainPageSuffix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMainPageSuffix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mainPageSuffix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * If the requested object path is missing, the service will ensure the path
        * has a trailing '/', append this suffix, and attempt to retrieve the
@@ -15439,7 +13978,6 @@ public Builder setMainPageSuffix(java.lang.String value) {
        * 
* * string main_page_suffix = 1; - * * @return This builder for chaining. */ public Builder clearMainPageSuffix() { @@ -15449,8 +13987,6 @@ public Builder clearMainPageSuffix() { return this; } /** - * - * *
        * If the requested object path is missing, the service will ensure the path
        * has a trailing '/', append this suffix, and attempt to retrieve the
@@ -15459,14 +13995,12 @@ public Builder clearMainPageSuffix() {
        * 
* * string main_page_suffix = 1; - * * @param value The bytes for mainPageSuffix to set. * @return This builder for chaining. */ - public Builder setMainPageSuffixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMainPageSuffixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mainPageSuffix_ = value; bitField0_ |= 0x00000001; @@ -15476,8 +14010,6 @@ public Builder setMainPageSuffixBytes(com.google.protobuf.ByteString value) { private java.lang.Object notFoundPage_ = ""; /** - * - * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -15487,13 +14019,13 @@ public Builder setMainPageSuffixBytes(com.google.protobuf.ByteString value) {
        * 
* * string not_found_page = 2; - * * @return The notFoundPage. */ public java.lang.String getNotFoundPage() { java.lang.Object ref = notFoundPage_; 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(); notFoundPage_ = s; return s; @@ -15502,8 +14034,6 @@ public java.lang.String getNotFoundPage() { } } /** - * - * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -15513,14 +14043,15 @@ public java.lang.String getNotFoundPage() {
        * 
* * string not_found_page = 2; - * * @return The bytes for notFoundPage. */ - public com.google.protobuf.ByteString getNotFoundPageBytes() { + public com.google.protobuf.ByteString + getNotFoundPageBytes() { java.lang.Object ref = notFoundPage_; 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); notFoundPage_ = b; return b; } else { @@ -15528,8 +14059,6 @@ public com.google.protobuf.ByteString getNotFoundPageBytes() { } } /** - * - * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -15539,22 +14068,18 @@ public com.google.protobuf.ByteString getNotFoundPageBytes() {
        * 
* * string not_found_page = 2; - * * @param value The notFoundPage to set. * @return This builder for chaining. */ - public Builder setNotFoundPage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNotFoundPage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } notFoundPage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -15564,7 +14089,6 @@ public Builder setNotFoundPage(java.lang.String value) {
        * 
* * string not_found_page = 2; - * * @return This builder for chaining. */ public Builder clearNotFoundPage() { @@ -15574,8 +14098,6 @@ public Builder clearNotFoundPage() { return this; } /** - * - * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -15585,21 +14107,18 @@ public Builder clearNotFoundPage() {
        * 
* * string not_found_page = 2; - * * @param value The bytes for notFoundPage to set. * @return This builder for chaining. */ - public Builder setNotFoundPageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNotFoundPageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); notFoundPage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -15612,12 +14131,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Website) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Website) private static final com.google.storage.v2.Bucket.Website DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Website(); } @@ -15626,28 +14145,27 @@ public static com.google.storage.v2.Bucket.Website getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Website parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Website parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -15662,67 +14180,55 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Website getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CustomPlacementConfigOrBuilder - extends + public interface CustomPlacementConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.CustomPlacementConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - java.util.List getDataLocationsList(); + java.util.List + getDataLocationsList(); /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @return The count of dataLocations. */ int getDataLocationsCount(); /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ java.lang.String getDataLocations(int index); /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - com.google.protobuf.ByteString getDataLocationsBytes(int index); + com.google.protobuf.ByteString + getDataLocationsBytes(int index); } /** - * - * *
    * Configuration for Custom Dual Regions.  It should specify precisely two
    * eligible regions within the same Multiregion. More information on regions
@@ -15731,83 +14237,73 @@ public interface CustomPlacementConfigOrBuilder
    *
    * Protobuf type {@code google.storage.v2.Bucket.CustomPlacementConfig}
    */
-  public static final class CustomPlacementConfig extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class CustomPlacementConfig extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.CustomPlacementConfig)
       CustomPlacementConfigOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use CustomPlacementConfig.newBuilder() to construct.
     private CustomPlacementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private CustomPlacementConfig() {
-      dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      dataLocations_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new CustomPlacementConfig();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.Bucket.CustomPlacementConfig.class,
-              com.google.storage.v2.Bucket.CustomPlacementConfig.Builder.class);
+              com.google.storage.v2.Bucket.CustomPlacementConfig.class, com.google.storage.v2.Bucket.CustomPlacementConfig.Builder.class);
     }
 
     public static final int DATA_LOCATIONS_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private com.google.protobuf.LazyStringArrayList dataLocations_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
     /**
-     *
-     *
      * 
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList getDataLocationsList() { + public com.google.protobuf.ProtocolStringList + getDataLocationsList() { return dataLocations_; } /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -15815,23 +14311,20 @@ public java.lang.String getDataLocations(int index) { return dataLocations_.get(index); } /** - * - * *
      * List of locations to use for data placement.
      * 
* * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - public com.google.protobuf.ByteString getDataLocationsBytes(int index) { + public com.google.protobuf.ByteString + getDataLocationsBytes(int index) { return dataLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -15843,7 +14336,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 < dataLocations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataLocations_.getRaw(i)); } @@ -15872,15 +14366,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.storage.v2.Bucket.CustomPlacementConfig)) { return super.equals(obj); } - com.google.storage.v2.Bucket.CustomPlacementConfig other = - (com.google.storage.v2.Bucket.CustomPlacementConfig) obj; + com.google.storage.v2.Bucket.CustomPlacementConfig other = (com.google.storage.v2.Bucket.CustomPlacementConfig) obj; - if (!getDataLocationsList().equals(other.getDataLocationsList())) return false; + if (!getDataLocationsList() + .equals(other.getDataLocationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15902,93 +14396,89 @@ public int hashCode() { } public static com.google.storage.v2.Bucket.CustomPlacementConfig 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.storage.v2.Bucket.CustomPlacementConfig 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.storage.v2.Bucket.CustomPlacementConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig 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.storage.v2.Bucket.CustomPlacementConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig 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.storage.v2.Bucket.CustomPlacementConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig 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.storage.v2.Bucket.CustomPlacementConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.CustomPlacementConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.CustomPlacementConfig 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.storage.v2.Bucket.CustomPlacementConfig 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.storage.v2.Bucket.CustomPlacementConfig 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.storage.v2.Bucket.CustomPlacementConfig 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 @@ -15998,8 +14488,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration for Custom Dual Regions.  It should specify precisely two
      * eligible regions within the same Multiregion. More information on regions
@@ -16008,45 +14496,46 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.storage.v2.Bucket.CustomPlacementConfig}
      */
-    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.storage.v2.Bucket.CustomPlacementConfig)
         com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.storage.v2.Bucket.CustomPlacementConfig.class,
-                com.google.storage.v2.Bucket.CustomPlacementConfig.Builder.class);
+                com.google.storage.v2.Bucket.CustomPlacementConfig.class, com.google.storage.v2.Bucket.CustomPlacementConfig.Builder.class);
       }
 
       // Construct using com.google.storage.v2.Bucket.CustomPlacementConfig.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();
         bitField0_ = 0;
-        dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        dataLocations_ =
+            com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.storage.v2.StorageProto
-            .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
       }
 
       @java.lang.Override
@@ -16065,11 +14554,8 @@ public com.google.storage.v2.Bucket.CustomPlacementConfig build() {
 
       @java.lang.Override
       public com.google.storage.v2.Bucket.CustomPlacementConfig buildPartial() {
-        com.google.storage.v2.Bucket.CustomPlacementConfig result =
-            new com.google.storage.v2.Bucket.CustomPlacementConfig(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.storage.v2.Bucket.CustomPlacementConfig result = new com.google.storage.v2.Bucket.CustomPlacementConfig(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -16086,41 +14572,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.CustomPlacementConfig 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) {
+          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.storage.v2.Bucket.CustomPlacementConfig) {
-          return mergeFrom((com.google.storage.v2.Bucket.CustomPlacementConfig) other);
+          return mergeFrom((com.google.storage.v2.Bucket.CustomPlacementConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -16128,8 +14611,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.storage.v2.Bucket.CustomPlacementConfig other) {
-        if (other == com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance())
-          return this;
+        if (other == com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance()) return this;
         if (!other.dataLocations_.isEmpty()) {
           if (dataLocations_.isEmpty()) {
             dataLocations_ = other.dataLocations_;
@@ -16166,20 +14648,18 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureDataLocationsIsMutable();
-                  dataLocations_.add(s);
-                  break;
-                } // case 10
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureDataLocationsIsMutable();
+                dataLocations_.add(s);
+                break;
+              } // case 10
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -16189,12 +14669,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.protobuf.LazyStringArrayList dataLocations_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
-
       private void ensureDataLocationsIsMutable() {
         if (!dataLocations_.isModifiable()) {
           dataLocations_ = new com.google.protobuf.LazyStringArrayList(dataLocations_);
@@ -16202,43 +14680,35 @@ private void ensureDataLocationsIsMutable() {
         bitField0_ |= 0x00000001;
       }
       /**
-       *
-       *
        * 
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList getDataLocationsList() { + public com.google.protobuf.ProtocolStringList + getDataLocationsList() { dataLocations_.makeImmutable(); return dataLocations_; } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -16246,37 +14716,31 @@ public java.lang.String getDataLocations(int index) { return dataLocations_.get(index); } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - public com.google.protobuf.ByteString getDataLocationsBytes(int index) { + public com.google.protobuf.ByteString + getDataLocationsBytes(int index) { return dataLocations_.getByteString(index); } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param index The index to set the value at. * @param value The dataLocations to set. * @return This builder for chaining. */ - public Builder setDataLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataLocations( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDataLocationsIsMutable(); dataLocations_.set(index, value); bitField0_ |= 0x00000001; @@ -16284,21 +14748,17 @@ public Builder setDataLocations(int index, java.lang.String value) { return this; } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param value The dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDataLocations( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDataLocationsIsMutable(); dataLocations_.add(value); bitField0_ |= 0x00000001; @@ -16306,58 +14766,50 @@ public Builder addDataLocations(java.lang.String value) { return this; } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param values The dataLocations to add. * @return This builder for chaining. */ - public Builder addAllDataLocations(java.lang.Iterable values) { + public Builder addAllDataLocations( + java.lang.Iterable values) { ensureDataLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataLocations_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @return This builder for chaining. */ public Builder clearDataLocations() { - dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + dataLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @param value The bytes of the dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDataLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDataLocationsIsMutable(); dataLocations_.add(value); @@ -16365,7 +14817,6 @@ public Builder addDataLocationsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16378,12 +14829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.CustomPlacementConfig) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.CustomPlacementConfig) private static final com.google.storage.v2.Bucket.CustomPlacementConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.CustomPlacementConfig(); } @@ -16392,28 +14843,27 @@ public static com.google.storage.v2.Bucket.CustomPlacementConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomPlacementConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CustomPlacementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -16428,29 +14878,24 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.CustomPlacementConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AutoclassOrBuilder - extends + public interface AutoclassOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Autoclass) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Enables Autoclass.
      * 
* * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); /** - * - * *
      * Output only. Latest instant at which the `enabled` field was set to true
      * after being disabled/unconfigured or set to false after being enabled. If
@@ -16458,16 +14903,11 @@ public interface AutoclassOrBuilder
      * to the bucket creation time.
      * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the toggleTime field is set. */ boolean hasToggleTime(); /** - * - * *
      * Output only. Latest instant at which the `enabled` field was set to true
      * after being disabled/unconfigured or set to false after being enabled. If
@@ -16475,16 +14915,11 @@ public interface AutoclassOrBuilder
      * to the bucket creation time.
      * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The toggleTime. */ com.google.protobuf.Timestamp getToggleTime(); /** - * - * *
      * Output only. Latest instant at which the `enabled` field was set to true
      * after being disabled/unconfigured or set to false after being enabled. If
@@ -16492,15 +14927,11 @@ public interface AutoclassOrBuilder
      * to the bucket creation time.
      * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder(); /** - * - * *
      * An object in an Autoclass bucket will eventually cool down to the
      * terminal storage class if there is no access to the object.
@@ -16508,13 +14939,10 @@ public interface AutoclassOrBuilder
      * 
* * optional string terminal_storage_class = 3; - * * @return Whether the terminalStorageClass field is set. */ boolean hasTerminalStorageClass(); /** - * - * *
      * An object in an Autoclass bucket will eventually cool down to the
      * terminal storage class if there is no access to the object.
@@ -16522,13 +14950,10 @@ public interface AutoclassOrBuilder
      * 
* * optional string terminal_storage_class = 3; - * * @return The terminalStorageClass. */ java.lang.String getTerminalStorageClass(); /** - * - * *
      * An object in an Autoclass bucket will eventually cool down to the
      * terminal storage class if there is no access to the object.
@@ -16536,111 +14961,90 @@ public interface AutoclassOrBuilder
      * 
* * optional string terminal_storage_class = 3; - * * @return The bytes for terminalStorageClass. */ - com.google.protobuf.ByteString getTerminalStorageClassBytes(); + com.google.protobuf.ByteString + getTerminalStorageClassBytes(); /** - * - * *
      * Output only. Latest instant at which the autoclass terminal storage class
      * was updated.
      * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the terminalStorageClassUpdateTime field is set. */ boolean hasTerminalStorageClassUpdateTime(); /** - * - * *
      * Output only. Latest instant at which the autoclass terminal storage class
      * was updated.
      * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The terminalStorageClassUpdateTime. */ com.google.protobuf.Timestamp getTerminalStorageClassUpdateTime(); /** - * - * *
      * Output only. Latest instant at which the autoclass terminal storage class
      * was updated.
      * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder(); } /** - * - * *
    * Configuration for a bucket's Autoclass feature.
    * 
* * Protobuf type {@code google.storage.v2.Bucket.Autoclass} */ - public static final class Autoclass extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Autoclass extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Autoclass) AutoclassOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Autoclass.newBuilder() to construct. private Autoclass(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Autoclass() { terminalStorageClass_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Autoclass(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Autoclass_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Autoclass.class, - com.google.storage.v2.Bucket.Autoclass.Builder.class); + com.google.storage.v2.Bucket.Autoclass.class, com.google.storage.v2.Bucket.Autoclass.Builder.class); } private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** - * - * *
      * Enables Autoclass.
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -16651,8 +15055,6 @@ public boolean getEnabled() { public static final int TOGGLE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp toggleTime_; /** - * - * *
      * Output only. Latest instant at which the `enabled` field was set to true
      * after being disabled/unconfigured or set to false after being enabled. If
@@ -16660,19 +15062,14 @@ public boolean getEnabled() {
      * to the bucket creation time.
      * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the toggleTime field is set. */ @java.lang.Override public boolean hasToggleTime() { - return toggleTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. Latest instant at which the `enabled` field was set to true
      * after being disabled/unconfigured or set to false after being enabled. If
@@ -16680,10 +15077,7 @@ public boolean hasToggleTime() {
      * to the bucket creation time.
      * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The toggleTime. */ @java.lang.Override @@ -16691,8 +15085,6 @@ public com.google.protobuf.Timestamp getToggleTime() { return toggleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : toggleTime_; } /** - * - * *
      * Output only. Latest instant at which the `enabled` field was set to true
      * after being disabled/unconfigured or set to false after being enabled. If
@@ -16700,9 +15092,7 @@ public com.google.protobuf.Timestamp getToggleTime() {
      * to the bucket creation time.
      * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { @@ -16710,12 +15100,9 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { } public static final int TERMINAL_STORAGE_CLASS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object terminalStorageClass_ = ""; /** - * - * *
      * An object in an Autoclass bucket will eventually cool down to the
      * terminal storage class if there is no access to the object.
@@ -16723,16 +15110,13 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() {
      * 
* * optional string terminal_storage_class = 3; - * * @return Whether the terminalStorageClass field is set. */ @java.lang.Override public boolean hasTerminalStorageClass() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * An object in an Autoclass bucket will eventually cool down to the
      * terminal storage class if there is no access to the object.
@@ -16740,7 +15124,6 @@ public boolean hasTerminalStorageClass() {
      * 
* * optional string terminal_storage_class = 3; - * * @return The terminalStorageClass. */ @java.lang.Override @@ -16749,15 +15132,14 @@ public java.lang.String getTerminalStorageClass() { 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(); terminalStorageClass_ = s; return s; } } /** - * - * *
      * An object in an Autoclass bucket will eventually cool down to the
      * terminal storage class if there is no access to the object.
@@ -16765,15 +15147,16 @@ public java.lang.String getTerminalStorageClass() {
      * 
* * optional string terminal_storage_class = 3; - * * @return The bytes for terminalStorageClass. */ @java.lang.Override - public com.google.protobuf.ByteString getTerminalStorageClassBytes() { + public com.google.protobuf.ByteString + getTerminalStorageClassBytes() { java.lang.Object ref = terminalStorageClass_; 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); terminalStorageClass_ = b; return b; } else { @@ -16784,64 +15167,45 @@ public com.google.protobuf.ByteString getTerminalStorageClassBytes() { public static final int TERMINAL_STORAGE_CLASS_UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp terminalStorageClassUpdateTime_; /** - * - * *
      * Output only. Latest instant at which the autoclass terminal storage class
      * was updated.
      * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the terminalStorageClassUpdateTime field is set. */ @java.lang.Override public boolean hasTerminalStorageClassUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. Latest instant at which the autoclass terminal storage class
      * was updated.
      * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The terminalStorageClassUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getTerminalStorageClassUpdateTime() { - return terminalStorageClassUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; } /** - * - * *
      * Output only. Latest instant at which the autoclass terminal storage class
      * was updated.
      * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder() { - return terminalStorageClassUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -16853,17 +15217,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 (enabled_ != false) { output.writeBool(1, enabled_); } - if (toggleTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getToggleTime()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, terminalStorageClass_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getTerminalStorageClassUpdateTime()); } getUnknownFields().writeTo(output); @@ -16876,18 +15241,19 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - if (toggleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToggleTime()); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, terminalStorageClass_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getToggleTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, getTerminalStorageClassUpdateTime()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, terminalStorageClass_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTerminalStorageClassUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16897,27 +15263,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.storage.v2.Bucket.Autoclass)) { return super.equals(obj); } com.google.storage.v2.Bucket.Autoclass other = (com.google.storage.v2.Bucket.Autoclass) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (hasToggleTime() != other.hasToggleTime()) return false; if (hasToggleTime()) { - if (!getToggleTime().equals(other.getToggleTime())) return false; + if (!getToggleTime() + .equals(other.getToggleTime())) return false; } if (hasTerminalStorageClass() != other.hasTerminalStorageClass()) return false; if (hasTerminalStorageClass()) { - if (!getTerminalStorageClass().equals(other.getTerminalStorageClass())) return false; + if (!getTerminalStorageClass() + .equals(other.getTerminalStorageClass())) return false; } - if (hasTerminalStorageClassUpdateTime() != other.hasTerminalStorageClassUpdateTime()) - return false; + if (hasTerminalStorageClassUpdateTime() != other.hasTerminalStorageClassUpdateTime()) return false; if (hasTerminalStorageClassUpdateTime()) { - if (!getTerminalStorageClassUpdateTime().equals(other.getTerminalStorageClassUpdateTime())) - return false; + if (!getTerminalStorageClassUpdateTime() + .equals(other.getTerminalStorageClassUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -16931,7 +15299,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); if (hasToggleTime()) { hash = (37 * hash) + TOGGLE_TIME_FIELD_NUMBER; hash = (53 * hash) + getToggleTime().hashCode(); @@ -16949,94 +15318,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Autoclass parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Autoclass parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Autoclass 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.storage.v2.Bucket.Autoclass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Autoclass 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.storage.v2.Bucket.Autoclass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Autoclass 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.storage.v2.Bucket.Autoclass 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.storage.v2.Bucket.Autoclass 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.storage.v2.Bucket.Autoclass parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Autoclass parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Autoclass 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.storage.v2.Bucket.Autoclass 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.storage.v2.Bucket.Autoclass 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.storage.v2.Bucket.Autoclass 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 @@ -17046,32 +15411,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration for a bucket's Autoclass feature.
      * 
* * Protobuf type {@code google.storage.v2.Bucket.Autoclass} */ - 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.storage.v2.Bucket.Autoclass) com.google.storage.v2.Bucket.AutoclassOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Autoclass_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Autoclass.class, - com.google.storage.v2.Bucket.Autoclass.Builder.class); + com.google.storage.v2.Bucket.Autoclass.class, com.google.storage.v2.Bucket.Autoclass.Builder.class); } // Construct using com.google.storage.v2.Bucket.Autoclass.newBuilder() @@ -17079,18 +15439,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getToggleTimeFieldBuilder(); getTerminalStorageClassUpdateTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -17111,9 +15471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Autoclass_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_descriptor; } @java.lang.Override @@ -17132,11 +15492,8 @@ public com.google.storage.v2.Bucket.Autoclass build() { @java.lang.Override public com.google.storage.v2.Bucket.Autoclass buildPartial() { - com.google.storage.v2.Bucket.Autoclass result = - new com.google.storage.v2.Bucket.Autoclass(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Autoclass result = new com.google.storage.v2.Bucket.Autoclass(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -17146,21 +15503,22 @@ private void buildPartial0(com.google.storage.v2.Bucket.Autoclass result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.enabled_ = enabled_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.toggleTime_ = - toggleTimeBuilder_ == null ? toggleTime_ : toggleTimeBuilder_.build(); + result.toggleTime_ = toggleTimeBuilder_ == null + ? toggleTime_ + : toggleTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.terminalStorageClass_ = terminalStorageClass_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.terminalStorageClassUpdateTime_ = - terminalStorageClassUpdateTimeBuilder_ == null - ? terminalStorageClassUpdateTime_ - : terminalStorageClassUpdateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; + result.terminalStorageClassUpdateTime_ = terminalStorageClassUpdateTimeBuilder_ == null + ? terminalStorageClassUpdateTime_ + : terminalStorageClassUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @@ -17169,41 +15527,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Autoclass 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) { + 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.storage.v2.Bucket.Autoclass) { - return mergeFrom((com.google.storage.v2.Bucket.Autoclass) other); + return mergeFrom((com.google.storage.v2.Bucket.Autoclass)other); } else { super.mergeFrom(other); return this; @@ -17252,39 +15607,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getToggleTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - terminalStorageClass_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getTerminalStorageClassUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getToggleTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + terminalStorageClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getTerminalStorageClassUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -17294,19 +15646,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
        * Enables Autoclass.
        * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -17314,14 +15662,11 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
        * Enables Autoclass.
        * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ @@ -17333,14 +15678,11 @@ public Builder setEnabled(boolean value) { return this; } /** - * - * *
        * Enables Autoclass.
        * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -17352,13 +15694,8 @@ public Builder clearEnabled() { private com.google.protobuf.Timestamp toggleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - toggleTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> toggleTimeBuilder_; /** - * - * *
        * Output only. Latest instant at which the `enabled` field was set to true
        * after being disabled/unconfigured or set to false after being enabled. If
@@ -17366,18 +15703,13 @@ public Builder clearEnabled() {
        * to the bucket creation time.
        * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the toggleTime field is set. */ public boolean hasToggleTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Output only. Latest instant at which the `enabled` field was set to true
        * after being disabled/unconfigured or set to false after being enabled. If
@@ -17385,24 +15717,17 @@ public boolean hasToggleTime() {
        * to the bucket creation time.
        * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The toggleTime. */ public com.google.protobuf.Timestamp getToggleTime() { if (toggleTimeBuilder_ == null) { - return toggleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : toggleTime_; + return toggleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : toggleTime_; } else { return toggleTimeBuilder_.getMessage(); } } /** - * - * *
        * Output only. Latest instant at which the `enabled` field was set to true
        * after being disabled/unconfigured or set to false after being enabled. If
@@ -17410,9 +15735,7 @@ public com.google.protobuf.Timestamp getToggleTime() {
        * to the bucket creation time.
        * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setToggleTime(com.google.protobuf.Timestamp value) { if (toggleTimeBuilder_ == null) { @@ -17428,8 +15751,6 @@ public Builder setToggleTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Output only. Latest instant at which the `enabled` field was set to true
        * after being disabled/unconfigured or set to false after being enabled. If
@@ -17437,11 +15758,10 @@ public Builder setToggleTime(com.google.protobuf.Timestamp value) {
        * to the bucket creation time.
        * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setToggleTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setToggleTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (toggleTimeBuilder_ == null) { toggleTime_ = builderForValue.build(); } else { @@ -17452,8 +15772,6 @@ public Builder setToggleTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
        * Output only. Latest instant at which the `enabled` field was set to true
        * after being disabled/unconfigured or set to false after being enabled. If
@@ -17461,15 +15779,13 @@ public Builder setToggleTime(com.google.protobuf.Timestamp.Builder builderForVal
        * to the bucket creation time.
        * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeToggleTime(com.google.protobuf.Timestamp value) { if (toggleTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && toggleTime_ != null - && toggleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + toggleTime_ != null && + toggleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getToggleTimeBuilder().mergeFrom(value); } else { toggleTime_ = value; @@ -17477,13 +15793,13 @@ public Builder mergeToggleTime(com.google.protobuf.Timestamp value) { } else { toggleTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (toggleTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** - * - * *
        * Output only. Latest instant at which the `enabled` field was set to true
        * after being disabled/unconfigured or set to false after being enabled. If
@@ -17491,9 +15807,7 @@ public Builder mergeToggleTime(com.google.protobuf.Timestamp value) {
        * to the bucket creation time.
        * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearToggleTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -17506,8 +15820,6 @@ public Builder clearToggleTime() { return this; } /** - * - * *
        * Output only. Latest instant at which the `enabled` field was set to true
        * after being disabled/unconfigured or set to false after being enabled. If
@@ -17515,9 +15827,7 @@ public Builder clearToggleTime() {
        * to the bucket creation time.
        * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getToggleTimeBuilder() { bitField0_ |= 0x00000002; @@ -17525,8 +15835,6 @@ public com.google.protobuf.Timestamp.Builder getToggleTimeBuilder() { return getToggleTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Output only. Latest instant at which the `enabled` field was set to true
        * after being disabled/unconfigured or set to false after being enabled. If
@@ -17534,22 +15842,17 @@ public com.google.protobuf.Timestamp.Builder getToggleTimeBuilder() {
        * to the bucket creation time.
        * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { if (toggleTimeBuilder_ != null) { return toggleTimeBuilder_.getMessageOrBuilder(); } else { - return toggleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : toggleTime_; + return toggleTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : toggleTime_; } } /** - * - * *
        * Output only. Latest instant at which the `enabled` field was set to true
        * after being disabled/unconfigured or set to false after being enabled. If
@@ -17557,22 +15860,17 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() {
        * to the bucket creation time.
        * 
* - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_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> getToggleTimeFieldBuilder() { if (toggleTimeBuilder_ == null) { - toggleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getToggleTime(), getParentForChildren(), isClean()); + toggleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getToggleTime(), + getParentForChildren(), + isClean()); toggleTime_ = null; } return toggleTimeBuilder_; @@ -17580,8 +15878,6 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { private java.lang.Object terminalStorageClass_ = ""; /** - * - * *
        * An object in an Autoclass bucket will eventually cool down to the
        * terminal storage class if there is no access to the object.
@@ -17589,15 +15885,12 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() {
        * 
* * optional string terminal_storage_class = 3; - * * @return Whether the terminalStorageClass field is set. */ public boolean hasTerminalStorageClass() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * An object in an Autoclass bucket will eventually cool down to the
        * terminal storage class if there is no access to the object.
@@ -17605,13 +15898,13 @@ public boolean hasTerminalStorageClass() {
        * 
* * optional string terminal_storage_class = 3; - * * @return The terminalStorageClass. */ public java.lang.String getTerminalStorageClass() { java.lang.Object ref = terminalStorageClass_; 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(); terminalStorageClass_ = s; return s; @@ -17620,8 +15913,6 @@ public java.lang.String getTerminalStorageClass() { } } /** - * - * *
        * An object in an Autoclass bucket will eventually cool down to the
        * terminal storage class if there is no access to the object.
@@ -17629,14 +15920,15 @@ public java.lang.String getTerminalStorageClass() {
        * 
* * optional string terminal_storage_class = 3; - * * @return The bytes for terminalStorageClass. */ - public com.google.protobuf.ByteString getTerminalStorageClassBytes() { + public com.google.protobuf.ByteString + getTerminalStorageClassBytes() { java.lang.Object ref = terminalStorageClass_; 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); terminalStorageClass_ = b; return b; } else { @@ -17644,8 +15936,6 @@ public com.google.protobuf.ByteString getTerminalStorageClassBytes() { } } /** - * - * *
        * An object in an Autoclass bucket will eventually cool down to the
        * terminal storage class if there is no access to the object.
@@ -17653,22 +15943,18 @@ public com.google.protobuf.ByteString getTerminalStorageClassBytes() {
        * 
* * optional string terminal_storage_class = 3; - * * @param value The terminalStorageClass to set. * @return This builder for chaining. */ - public Builder setTerminalStorageClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTerminalStorageClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } terminalStorageClass_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * An object in an Autoclass bucket will eventually cool down to the
        * terminal storage class if there is no access to the object.
@@ -17676,7 +15962,6 @@ public Builder setTerminalStorageClass(java.lang.String value) {
        * 
* * optional string terminal_storage_class = 3; - * * @return This builder for chaining. */ public Builder clearTerminalStorageClass() { @@ -17686,8 +15971,6 @@ public Builder clearTerminalStorageClass() { return this; } /** - * - * *
        * An object in an Autoclass bucket will eventually cool down to the
        * terminal storage class if there is no access to the object.
@@ -17695,14 +15978,12 @@ public Builder clearTerminalStorageClass() {
        * 
* * optional string terminal_storage_class = 3; - * * @param value The bytes for terminalStorageClass to set. * @return This builder for chaining. */ - public Builder setTerminalStorageClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTerminalStorageClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); terminalStorageClass_ = value; bitField0_ |= 0x00000004; @@ -17712,61 +15993,42 @@ public Builder setTerminalStorageClassBytes(com.google.protobuf.ByteString value private com.google.protobuf.Timestamp terminalStorageClassUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - terminalStorageClassUpdateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> terminalStorageClassUpdateTimeBuilder_; /** - * - * *
        * Output only. Latest instant at which the autoclass terminal storage class
        * was updated.
        * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the terminalStorageClassUpdateTime field is set. */ public boolean hasTerminalStorageClassUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * Output only. Latest instant at which the autoclass terminal storage class
        * was updated.
        * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The terminalStorageClassUpdateTime. */ public com.google.protobuf.Timestamp getTerminalStorageClassUpdateTime() { if (terminalStorageClassUpdateTimeBuilder_ == null) { - return terminalStorageClassUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; } else { return terminalStorageClassUpdateTimeBuilder_.getMessage(); } } /** - * - * *
        * Output only. Latest instant at which the autoclass terminal storage class
        * was updated.
        * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp value) { if (terminalStorageClassUpdateTimeBuilder_ == null) { @@ -17782,16 +16044,12 @@ public Builder setTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp v return this; } /** - * - * *
        * Output only. Latest instant at which the autoclass terminal storage class
        * was updated.
        * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTerminalStorageClassUpdateTime( com.google.protobuf.Timestamp.Builder builderForValue) { @@ -17805,23 +16063,18 @@ public Builder setTerminalStorageClassUpdateTime( return this; } /** - * - * *
        * Output only. Latest instant at which the autoclass terminal storage class
        * was updated.
        * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp value) { if (terminalStorageClassUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && terminalStorageClassUpdateTime_ != null - && terminalStorageClassUpdateTime_ - != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + terminalStorageClassUpdateTime_ != null && + terminalStorageClassUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getTerminalStorageClassUpdateTimeBuilder().mergeFrom(value); } else { terminalStorageClassUpdateTime_ = value; @@ -17829,21 +16082,19 @@ public Builder mergeTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp } else { terminalStorageClassUpdateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (terminalStorageClassUpdateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** - * - * *
        * Output only. Latest instant at which the autoclass terminal storage class
        * was updated.
        * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTerminalStorageClassUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -17856,16 +16107,12 @@ public Builder clearTerminalStorageClassUpdateTime() { return this; } /** - * - * *
        * Output only. Latest instant at which the autoclass terminal storage class
        * was updated.
        * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getTerminalStorageClassUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -17873,55 +16120,42 @@ public com.google.protobuf.Timestamp.Builder getTerminalStorageClassUpdateTimeBu return getTerminalStorageClassUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Output only. Latest instant at which the autoclass terminal storage class
        * was updated.
        * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder() { if (terminalStorageClassUpdateTimeBuilder_ != null) { return terminalStorageClassUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return terminalStorageClassUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; } } /** - * - * *
        * Output only. Latest instant at which the autoclass terminal storage class
        * was updated.
        * 
* - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_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> getTerminalStorageClassUpdateTimeFieldBuilder() { if (terminalStorageClassUpdateTimeBuilder_ == null) { - terminalStorageClassUpdateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getTerminalStorageClassUpdateTime(), getParentForChildren(), isClean()); + terminalStorageClassUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getTerminalStorageClassUpdateTime(), + getParentForChildren(), + isClean()); terminalStorageClassUpdateTime_ = null; } return terminalStorageClassUpdateTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -17934,12 +16168,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Autoclass) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Autoclass) private static final com.google.storage.v2.Bucket.Autoclass DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Autoclass(); } @@ -17948,28 +16182,27 @@ public static com.google.storage.v2.Bucket.Autoclass getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Autoclass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Autoclass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -17984,22 +16217,20 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Autoclass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The name of the bucket.
    * Format: `projects/{project}/buckets/{bucket}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -18008,30 +16239,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; } } /** - * - * *
    * Immutable. The name of the bucket.
    * Format: `projects/{project}/buckets/{bucket}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -18040,12 +16271,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int BUCKET_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object bucketId_ = ""; /** - * - * *
    * Output only. The user-chosen part of the bucket name. The `{bucket}`
    * portion of the `name` field. For globally unique buckets, this is equal to
@@ -18053,7 +16281,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bucketId. */ @java.lang.Override @@ -18062,15 +16289,14 @@ public java.lang.String getBucketId() { 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(); bucketId_ = s; return s; } } /** - * - * *
    * Output only. The user-chosen part of the bucket name. The `{bucket}`
    * portion of the `name` field. For globally unique buckets, this is equal to
@@ -18078,15 +16304,16 @@ public java.lang.String getBucketId() {
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for bucketId. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketIdBytes() { + public com.google.protobuf.ByteString + getBucketIdBytes() { java.lang.Object ref = bucketId_; 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); bucketId_ = b; return b; } else { @@ -18095,12 +16322,9 @@ public com.google.protobuf.ByteString getBucketIdBytes() { } public static final int ETAG_FIELD_NUMBER = 29; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * The etag of the bucket.
    * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -18108,7 +16332,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
    * 
* * string etag = 29; - * * @return The etag. */ @java.lang.Override @@ -18117,15 +16340,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * The etag of the bucket.
    * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -18133,15 +16355,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 29; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -18150,22 +16373,16 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int PROJECT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
    * Immutable. The project which owns this bucket, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -18174,33 +16391,31 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** - * - * *
    * Immutable. The project which owns this bucket, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -18211,14 +16426,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int METAGENERATION_FIELD_NUMBER = 4; private long metageneration_ = 0L; /** - * - * *
    * Output only. The metadata generation of this bucket.
    * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -18227,12 +16439,9 @@ public long getMetageneration() { } public static final int LOCATION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** - * - * *
    * Immutable. The location of the bucket. Object data for objects in the
    * bucket resides in physical storage within this region.  Defaults to `US`.
@@ -18243,7 +16452,6 @@ public long getMetageneration() {
    * 
* * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The location. */ @java.lang.Override @@ -18252,15 +16460,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 location of the bucket. Object data for objects in the
    * bucket resides in physical storage within this region.  Defaults to `US`.
@@ -18271,15 +16478,16 @@ public java.lang.String getLocation() {
    * 
* * string location = 5 [(.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 { @@ -18288,19 +16496,15 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int LOCATION_TYPE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object locationType_ = ""; /** - * - * *
    * Output only. The location type of the bucket (region, dual-region,
    * multi-region, etc).
    * 
* * string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The locationType. */ @java.lang.Override @@ -18309,30 +16513,30 @@ public java.lang.String getLocationType() { 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(); locationType_ = s; return s; } } /** - * - * *
    * Output only. The location type of the bucket (region, dual-region,
    * multi-region, etc).
    * 
* * string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for locationType. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationTypeBytes() { + public com.google.protobuf.ByteString + getLocationTypeBytes() { java.lang.Object ref = locationType_; 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); locationType_ = b; return b; } else { @@ -18341,12 +16545,9 @@ public com.google.protobuf.ByteString getLocationTypeBytes() { } public static final int STORAGE_CLASS_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object storageClass_ = ""; /** - * - * *
    * The bucket's default storage class, used whenever no storageClass is
    * specified for a newly-created object. This defines how objects in the
@@ -18357,7 +16558,6 @@ public com.google.protobuf.ByteString getLocationTypeBytes() {
    * 
* * string storage_class = 7; - * * @return The storageClass. */ @java.lang.Override @@ -18366,15 +16566,14 @@ public java.lang.String getStorageClass() { 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(); storageClass_ = s; return s; } } /** - * - * *
    * The bucket's default storage class, used whenever no storageClass is
    * specified for a newly-created object. This defines how objects in the
@@ -18385,15 +16584,16 @@ public java.lang.String getStorageClass() {
    * 
* * string storage_class = 7; - * * @return The bytes for storageClass. */ @java.lang.Override - public com.google.protobuf.ByteString getStorageClassBytes() { + public com.google.protobuf.ByteString + getStorageClassBytes() { java.lang.Object ref = storageClass_; 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); storageClass_ = b; return b; } else { @@ -18402,12 +16602,9 @@ public com.google.protobuf.ByteString getStorageClassBytes() { } public static final int RPO_FIELD_NUMBER = 27; - @SuppressWarnings("serial") private volatile java.lang.Object rpo_ = ""; /** - * - * *
    * The recovery point objective for cross-region replication of the bucket.
    * Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
@@ -18418,7 +16615,6 @@ public com.google.protobuf.ByteString getStorageClassBytes() {
    * 
* * string rpo = 27; - * * @return The rpo. */ @java.lang.Override @@ -18427,15 +16623,14 @@ public java.lang.String getRpo() { 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(); rpo_ = s; return s; } } /** - * - * *
    * The recovery point objective for cross-region replication of the bucket.
    * Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
@@ -18446,15 +16641,16 @@ public java.lang.String getRpo() {
    * 
* * string rpo = 27; - * * @return The bytes for rpo. */ @java.lang.Override - public com.google.protobuf.ByteString getRpoBytes() { + public com.google.protobuf.ByteString + getRpoBytes() { java.lang.Object ref = rpo_; 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); rpo_ = b; return b; } else { @@ -18463,12 +16659,9 @@ public com.google.protobuf.ByteString getRpoBytes() { } public static final int ACL_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private java.util.List acl_; /** - * - * *
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18482,8 +16675,6 @@ public java.util.List getAclList() {
     return acl_;
   }
   /**
-   *
-   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18493,13 +16684,11 @@ public java.util.List getAclList() {
    * repeated .google.storage.v2.BucketAccessControl acl = 8;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAclOrBuilderList() {
     return acl_;
   }
   /**
-   *
-   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18513,8 +16702,6 @@ public int getAclCount() {
     return acl_.size();
   }
   /**
-   *
-   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18528,8 +16715,6 @@ public com.google.storage.v2.BucketAccessControl getAcl(int index) {
     return acl_.get(index);
   }
   /**
-   *
-   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18539,17 +16724,15 @@ public com.google.storage.v2.BucketAccessControl getAcl(int index) {
    * repeated .google.storage.v2.BucketAccessControl acl = 8;
    */
   @java.lang.Override
-  public com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(int index) {
+  public com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
+      int index) {
     return acl_.get(index);
   }
 
   public static final int DEFAULT_OBJECT_ACL_FIELD_NUMBER = 9;
-
   @SuppressWarnings("serial")
   private java.util.List defaultObjectAcl_;
   /**
-   *
-   *
    * 
    * Default access controls to apply to new objects when no ACL is provided.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18563,8 +16746,6 @@ public java.util.List getDefaultObjec
     return defaultObjectAcl_;
   }
   /**
-   *
-   *
    * 
    * Default access controls to apply to new objects when no ACL is provided.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18574,13 +16755,11 @@ public java.util.List getDefaultObjec
    * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getDefaultObjectAclOrBuilderList() {
     return defaultObjectAcl_;
   }
   /**
-   *
-   *
    * 
    * Default access controls to apply to new objects when no ACL is provided.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18594,8 +16773,6 @@ public int getDefaultObjectAclCount() {
     return defaultObjectAcl_.size();
   }
   /**
-   *
-   *
    * 
    * Default access controls to apply to new objects when no ACL is provided.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18609,8 +16786,6 @@ public com.google.storage.v2.ObjectAccessControl getDefaultObjectAcl(int index)
     return defaultObjectAcl_.get(index);
   }
   /**
-   *
-   *
    * 
    * Default access controls to apply to new objects when no ACL is provided.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18628,8 +16803,6 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrB
   public static final int LIFECYCLE_FIELD_NUMBER = 10;
   private com.google.storage.v2.Bucket.Lifecycle lifecycle_;
   /**
-   *
-   *
    * 
    * The bucket's lifecycle config. See
    * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -18637,16 +16810,13 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrB
    * 
* * .google.storage.v2.Bucket.Lifecycle lifecycle = 10; - * * @return Whether the lifecycle field is set. */ @java.lang.Override public boolean hasLifecycle() { - return lifecycle_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The bucket's lifecycle config. See
    * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -18654,18 +16824,13 @@ public boolean hasLifecycle() {
    * 
* * .google.storage.v2.Bucket.Lifecycle lifecycle = 10; - * * @return The lifecycle. */ @java.lang.Override public com.google.storage.v2.Bucket.Lifecycle getLifecycle() { - return lifecycle_ == null - ? com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance() - : lifecycle_; + return lifecycle_ == null ? com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance() : lifecycle_; } - /** - * - * + /** *
    * The bucket's lifecycle config. See
    * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -18676,39 +16841,29 @@ public com.google.storage.v2.Bucket.Lifecycle getLifecycle() {
    */
   @java.lang.Override
   public com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder() {
-    return lifecycle_ == null
-        ? com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance()
-        : lifecycle_;
+    return lifecycle_ == null ? com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance() : lifecycle_;
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 11;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. The creation time of the bucket.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The creation time of the bucket.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -18716,14 +16871,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time of the bucket.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -18731,12 +16883,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int CORS_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private java.util.List cors_; /** - * - * *
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -18749,8 +16898,6 @@ public java.util.List getCorsList() {
     return cors_;
   }
   /**
-   *
-   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -18759,13 +16906,11 @@ public java.util.List getCorsList() {
    * repeated .google.storage.v2.Bucket.Cors cors = 12;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getCorsOrBuilderList() {
     return cors_;
   }
   /**
-   *
-   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -18778,8 +16923,6 @@ public int getCorsCount() {
     return cors_.size();
   }
   /**
-   *
-   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -18792,8 +16935,6 @@ public com.google.storage.v2.Bucket.Cors getCors(int index) {
     return cors_.get(index);
   }
   /**
-   *
-   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -18802,38 +16943,31 @@ public com.google.storage.v2.Bucket.Cors getCors(int index) {
    * repeated .google.storage.v2.Bucket.Cors cors = 12;
    */
   @java.lang.Override
-  public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(int index) {
+  public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(
+      int index) {
     return cors_.get(index);
   }
 
   public static final int UPDATE_TIME_FIELD_NUMBER = 13;
   private com.google.protobuf.Timestamp updateTime_;
   /**
-   *
-   *
    * 
    * Output only. The modification time of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { - return updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Output only. The modification time of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -18841,14 +16975,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The modification time of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -18858,8 +16989,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DEFAULT_EVENT_BASED_HOLD_FIELD_NUMBER = 14; private boolean defaultEventBasedHold_ = false; /** - * - * *
    * The default value for event-based hold on newly created objects in this
    * bucket.  Event-based hold is a way to retain objects indefinitely until an
@@ -18877,7 +17006,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * bool default_event_based_hold = 14; - * * @return The defaultEventBasedHold. */ @java.lang.Override @@ -18886,34 +17014,32 @@ public boolean getDefaultEventBasedHold() { } public static final int LABELS_FIELD_NUMBER = 15; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * User-provided labels, in key/value pairs.
    * 
@@ -18921,21 +17047,20 @@ public int getLabelsCount() { * map<string, string> labels = 15; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * User-provided labels, in key/value pairs.
    * 
@@ -18947,8 +17072,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * User-provided labels, in key/value pairs.
    * 
@@ -18956,19 +17079,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * User-provided labels, in key/value pairs.
    * 
@@ -18976,11 +17097,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -18990,8 +17111,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int WEBSITE_FIELD_NUMBER = 16; private com.google.storage.v2.Bucket.Website website_; /** - * - * *
    * The bucket's website config, controlling how the service behaves
    * when accessing bucket contents as a web site. See the
@@ -19000,16 +17119,13 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * .google.storage.v2.Bucket.Website website = 16; - * * @return Whether the website field is set. */ @java.lang.Override public boolean hasWebsite() { - return website_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * The bucket's website config, controlling how the service behaves
    * when accessing bucket contents as a web site. See the
@@ -19018,7 +17134,6 @@ public boolean hasWebsite() {
    * 
* * .google.storage.v2.Bucket.Website website = 16; - * * @return The website. */ @java.lang.Override @@ -19026,8 +17141,6 @@ public com.google.storage.v2.Bucket.Website getWebsite() { return website_ == null ? com.google.storage.v2.Bucket.Website.getDefaultInstance() : website_; } /** - * - * *
    * The bucket's website config, controlling how the service behaves
    * when accessing bucket contents as a web site. See the
@@ -19045,40 +17158,30 @@ public com.google.storage.v2.Bucket.WebsiteOrBuilder getWebsiteOrBuilder() {
   public static final int VERSIONING_FIELD_NUMBER = 17;
   private com.google.storage.v2.Bucket.Versioning versioning_;
   /**
-   *
-   *
    * 
    * The bucket's versioning config.
    * 
* * .google.storage.v2.Bucket.Versioning versioning = 17; - * * @return Whether the versioning field is set. */ @java.lang.Override public boolean hasVersioning() { - return versioning_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * The bucket's versioning config.
    * 
* * .google.storage.v2.Bucket.Versioning versioning = 17; - * * @return The versioning. */ @java.lang.Override public com.google.storage.v2.Bucket.Versioning getVersioning() { - return versioning_ == null - ? com.google.storage.v2.Bucket.Versioning.getDefaultInstance() - : versioning_; + return versioning_ == null ? com.google.storage.v2.Bucket.Versioning.getDefaultInstance() : versioning_; } /** - * - * *
    * The bucket's versioning config.
    * 
@@ -19087,39 +17190,31 @@ public com.google.storage.v2.Bucket.Versioning getVersioning() { */ @java.lang.Override public com.google.storage.v2.Bucket.VersioningOrBuilder getVersioningOrBuilder() { - return versioning_ == null - ? com.google.storage.v2.Bucket.Versioning.getDefaultInstance() - : versioning_; + return versioning_ == null ? com.google.storage.v2.Bucket.Versioning.getDefaultInstance() : versioning_; } public static final int LOGGING_FIELD_NUMBER = 18; private com.google.storage.v2.Bucket.Logging logging_; /** - * - * *
    * The bucket's logging config, which defines the destination bucket
    * and name prefix (if any) for the current bucket's logs.
    * 
* * .google.storage.v2.Bucket.Logging logging = 18; - * * @return Whether the logging field is set. */ @java.lang.Override public boolean hasLogging() { - return logging_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
    * The bucket's logging config, which defines the destination bucket
    * and name prefix (if any) for the current bucket's logs.
    * 
* * .google.storage.v2.Bucket.Logging logging = 18; - * * @return The logging. */ @java.lang.Override @@ -19127,8 +17222,6 @@ public com.google.storage.v2.Bucket.Logging getLogging() { return logging_ == null ? com.google.storage.v2.Bucket.Logging.getDefaultInstance() : logging_; } /** - * - * *
    * The bucket's logging config, which defines the destination bucket
    * and name prefix (if any) for the current bucket's logs.
@@ -19144,31 +17237,25 @@ public com.google.storage.v2.Bucket.LoggingOrBuilder getLoggingOrBuilder() {
   public static final int OWNER_FIELD_NUMBER = 19;
   private com.google.storage.v2.Owner owner_;
   /**
-   *
-   *
    * 
    * Output only. The owner of the bucket. This is always the project team's
    * owner group.
    * 
* * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { - return owner_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
    * Output only. The owner of the bucket. This is always the project team's
    * owner group.
    * 
* * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The owner. */ @java.lang.Override @@ -19176,8 +17263,6 @@ public com.google.storage.v2.Owner getOwner() { return owner_ == null ? com.google.storage.v2.Owner.getDefaultInstance() : owner_; } /** - * - * *
    * Output only. The owner of the bucket. This is always the project team's
    * owner group.
@@ -19193,40 +17278,30 @@ public com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder() {
   public static final int ENCRYPTION_FIELD_NUMBER = 20;
   private com.google.storage.v2.Bucket.Encryption encryption_;
   /**
-   *
-   *
    * 
    * Encryption config for a bucket.
    * 
* * .google.storage.v2.Bucket.Encryption encryption = 20; - * * @return Whether the encryption field is set. */ @java.lang.Override public boolean hasEncryption() { - return encryption_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
    * Encryption config for a bucket.
    * 
* * .google.storage.v2.Bucket.Encryption encryption = 20; - * * @return The encryption. */ @java.lang.Override public com.google.storage.v2.Bucket.Encryption getEncryption() { - return encryption_ == null - ? com.google.storage.v2.Bucket.Encryption.getDefaultInstance() - : encryption_; + return encryption_ == null ? com.google.storage.v2.Bucket.Encryption.getDefaultInstance() : encryption_; } /** - * - * *
    * Encryption config for a bucket.
    * 
@@ -19235,37 +17310,29 @@ public com.google.storage.v2.Bucket.Encryption getEncryption() { */ @java.lang.Override public com.google.storage.v2.Bucket.EncryptionOrBuilder getEncryptionOrBuilder() { - return encryption_ == null - ? com.google.storage.v2.Bucket.Encryption.getDefaultInstance() - : encryption_; + return encryption_ == null ? com.google.storage.v2.Bucket.Encryption.getDefaultInstance() : encryption_; } public static final int BILLING_FIELD_NUMBER = 21; private com.google.storage.v2.Bucket.Billing billing_; /** - * - * *
    * The bucket's billing config.
    * 
* * .google.storage.v2.Bucket.Billing billing = 21; - * * @return Whether the billing field is set. */ @java.lang.Override public boolean hasBilling() { - return billing_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
    * The bucket's billing config.
    * 
* * .google.storage.v2.Bucket.Billing billing = 21; - * * @return The billing. */ @java.lang.Override @@ -19273,8 +17340,6 @@ public com.google.storage.v2.Bucket.Billing getBilling() { return billing_ == null ? com.google.storage.v2.Bucket.Billing.getDefaultInstance() : billing_; } /** - * - * *
    * The bucket's billing config.
    * 
@@ -19289,8 +17354,6 @@ public com.google.storage.v2.Bucket.BillingOrBuilder getBillingOrBuilder() { public static final int RETENTION_POLICY_FIELD_NUMBER = 22; private com.google.storage.v2.Bucket.RetentionPolicy retentionPolicy_; /** - * - * *
    * The bucket's retention policy. The retention policy enforces a minimum
    * retention time for all objects contained in the bucket, based on their
@@ -19304,16 +17367,13 @@ public com.google.storage.v2.Bucket.BillingOrBuilder getBillingOrBuilder() {
    * 
* * .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22; - * * @return Whether the retentionPolicy field is set. */ @java.lang.Override public boolean hasRetentionPolicy() { - return retentionPolicy_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
    * The bucket's retention policy. The retention policy enforces a minimum
    * retention time for all objects contained in the bucket, based on their
@@ -19327,18 +17387,13 @@ public boolean hasRetentionPolicy() {
    * 
* * .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22; - * * @return The retentionPolicy. */ @java.lang.Override public com.google.storage.v2.Bucket.RetentionPolicy getRetentionPolicy() { - return retentionPolicy_ == null - ? com.google.storage.v2.Bucket.RetentionPolicy.getDefaultInstance() - : retentionPolicy_; + return retentionPolicy_ == null ? com.google.storage.v2.Bucket.RetentionPolicy.getDefaultInstance() : retentionPolicy_; } /** - * - * *
    * The bucket's retention policy. The retention policy enforces a minimum
    * retention time for all objects contained in the bucket, based on their
@@ -19355,48 +17410,36 @@ public com.google.storage.v2.Bucket.RetentionPolicy getRetentionPolicy() {
    */
   @java.lang.Override
   public com.google.storage.v2.Bucket.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder() {
-    return retentionPolicy_ == null
-        ? com.google.storage.v2.Bucket.RetentionPolicy.getDefaultInstance()
-        : retentionPolicy_;
+    return retentionPolicy_ == null ? com.google.storage.v2.Bucket.RetentionPolicy.getDefaultInstance() : retentionPolicy_;
   }
 
   public static final int IAM_CONFIG_FIELD_NUMBER = 23;
   private com.google.storage.v2.Bucket.IamConfig iamConfig_;
   /**
-   *
-   *
    * 
    * The bucket's IAM config.
    * 
* * .google.storage.v2.Bucket.IamConfig iam_config = 23; - * * @return Whether the iamConfig field is set. */ @java.lang.Override public boolean hasIamConfig() { - return iamConfig_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
    * The bucket's IAM config.
    * 
* * .google.storage.v2.Bucket.IamConfig iam_config = 23; - * * @return The iamConfig. */ @java.lang.Override public com.google.storage.v2.Bucket.IamConfig getIamConfig() { - return iamConfig_ == null - ? com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() - : iamConfig_; + return iamConfig_ == null ? com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() : iamConfig_; } /** - * - * *
    * The bucket's IAM config.
    * 
@@ -19405,22 +17448,17 @@ public com.google.storage.v2.Bucket.IamConfig getIamConfig() { */ @java.lang.Override public com.google.storage.v2.Bucket.IamConfigOrBuilder getIamConfigOrBuilder() { - return iamConfig_ == null - ? com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() - : iamConfig_; + return iamConfig_ == null ? com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() : iamConfig_; } public static final int SATISFIES_PZS_FIELD_NUMBER = 25; private boolean satisfiesPzs_ = false; /** - * - * *
    * Reserved for future use.
    * 
* * bool satisfies_pzs = 25; - * * @return The satisfiesPzs. */ @java.lang.Override @@ -19431,42 +17469,32 @@ public boolean getSatisfiesPzs() { public static final int CUSTOM_PLACEMENT_CONFIG_FIELD_NUMBER = 26; private com.google.storage.v2.Bucket.CustomPlacementConfig customPlacementConfig_; /** - * - * *
    * Configuration that, if present, specifies the data placement for a
    * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
    * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; - * * @return Whether the customPlacementConfig field is set. */ @java.lang.Override public boolean hasCustomPlacementConfig() { - return customPlacementConfig_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
    * Configuration that, if present, specifies the data placement for a
    * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
    * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; - * * @return The customPlacementConfig. */ @java.lang.Override public com.google.storage.v2.Bucket.CustomPlacementConfig getCustomPlacementConfig() { - return customPlacementConfig_ == null - ? com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance() - : customPlacementConfig_; + return customPlacementConfig_ == null ? com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; } /** - * - * *
    * Configuration that, if present, specifies the data placement for a
    * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -19475,52 +17503,39 @@ public com.google.storage.v2.Bucket.CustomPlacementConfig getCustomPlacementConf
    * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
    */
   @java.lang.Override
-  public com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder
-      getCustomPlacementConfigOrBuilder() {
-    return customPlacementConfig_ == null
-        ? com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance()
-        : customPlacementConfig_;
+  public com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder() {
+    return customPlacementConfig_ == null ? com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_;
   }
 
   public static final int AUTOCLASS_FIELD_NUMBER = 28;
   private com.google.storage.v2.Bucket.Autoclass autoclass_;
   /**
-   *
-   *
    * 
    * The bucket's Autoclass configuration. If there is no configuration, the
    * Autoclass feature will be disabled and have no effect on the bucket.
    * 
* * .google.storage.v2.Bucket.Autoclass autoclass = 28; - * * @return Whether the autoclass field is set. */ @java.lang.Override public boolean hasAutoclass() { - return autoclass_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
    * The bucket's Autoclass configuration. If there is no configuration, the
    * Autoclass feature will be disabled and have no effect on the bucket.
    * 
* * .google.storage.v2.Bucket.Autoclass autoclass = 28; - * * @return The autoclass. */ @java.lang.Override public com.google.storage.v2.Bucket.Autoclass getAutoclass() { - return autoclass_ == null - ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() - : autoclass_; + return autoclass_ == null ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() : autoclass_; } /** - * - * *
    * The bucket's Autoclass configuration. If there is no configuration, the
    * Autoclass feature will be disabled and have no effect on the bucket.
@@ -19530,72 +17545,51 @@ public com.google.storage.v2.Bucket.Autoclass getAutoclass() {
    */
   @java.lang.Override
   public com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder() {
-    return autoclass_ == null
-        ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance()
-        : autoclass_;
+    return autoclass_ == null ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() : autoclass_;
   }
 
   public static final int SOFT_DELETE_POLICY_FIELD_NUMBER = 31;
   private com.google.storage.v2.Bucket.SoftDeletePolicy softDeletePolicy_;
   /**
-   *
-   *
    * 
    * Optional. The bucket's soft delete policy. The soft delete policy prevents
    * soft-deleted objects from being permanently deleted.
    * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the softDeletePolicy field is set. */ @java.lang.Override public boolean hasSoftDeletePolicy() { - return softDeletePolicy_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
    * Optional. The bucket's soft delete policy. The soft delete policy prevents
    * soft-deleted objects from being permanently deleted.
    * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return The softDeletePolicy. */ @java.lang.Override public com.google.storage.v2.Bucket.SoftDeletePolicy getSoftDeletePolicy() { - return softDeletePolicy_ == null - ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() - : softDeletePolicy_; + return softDeletePolicy_ == null ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; } /** - * - * *
    * Optional. The bucket's soft delete policy. The soft delete policy prevents
    * soft-deleted objects from being permanently deleted.
    * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder getSoftDeletePolicyOrBuilder() { - return softDeletePolicy_ == null - ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() - : softDeletePolicy_; + return softDeletePolicy_ == null ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -19607,7 +17601,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_); } @@ -19635,63 +17630,67 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < defaultObjectAcl_.size(); i++) { output.writeMessage(9, defaultObjectAcl_.get(i)); } - if (lifecycle_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(10, getLifecycle()); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getCreateTime()); } for (int i = 0; i < cors_.size(); i++) { output.writeMessage(12, cors_.get(i)); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(13, getUpdateTime()); } if (defaultEventBasedHold_ != false) { output.writeBool(14, defaultEventBasedHold_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15); - if (website_ != null) { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 15); + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(16, getWebsite()); } - if (versioning_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(17, getVersioning()); } - if (logging_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(18, getLogging()); } - if (owner_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(19, getOwner()); } - if (encryption_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(20, getEncryption()); } - if (billing_ != null) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(21, getBilling()); } - if (retentionPolicy_ != null) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(22, getRetentionPolicy()); } - if (iamConfig_ != null) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(23, getIamConfig()); } if (satisfiesPzs_ != false) { output.writeBool(25, satisfiesPzs_); } - if (customPlacementConfig_ != null) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(26, getCustomPlacementConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rpo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, rpo_); } - if (autoclass_ != null) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(28, getAutoclass()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, etag_); } - if (softDeletePolicy_ != null) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(31, getSoftDeletePolicy()); } getUnknownFields().writeTo(output); @@ -19713,7 +17712,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, project_); } if (metageneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, metageneration_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, metageneration_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, location_); @@ -19725,78 +17725,96 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, storageClass_); } for (int i = 0; i < acl_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, acl_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, acl_.get(i)); } for (int i = 0; i < defaultObjectAcl_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, defaultObjectAcl_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, defaultObjectAcl_.get(i)); } - if (lifecycle_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLifecycle()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getLifecycle()); } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getCreateTime()); } for (int i = 0; i < cors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, cors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, cors_.get(i)); } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getUpdateTime()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getUpdateTime()); } if (defaultEventBasedHold_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, defaultEventBasedHold_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, labels__); - } - if (website_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getWebsite()); - } - if (versioning_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getVersioning()); - } - if (logging_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLogging()); - } - if (owner_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getOwner()); - } - if (encryption_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getEncryption()); - } - if (billing_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getBilling()); - } - if (retentionPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getRetentionPolicy()); - } - if (iamConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getIamConfig()); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, defaultEventBasedHold_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, labels__); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getWebsite()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getVersioning()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getLogging()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getOwner()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getEncryption()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getBilling()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getRetentionPolicy()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getIamConfig()); } if (satisfiesPzs_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, satisfiesPzs_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(25, satisfiesPzs_); } - if (customPlacementConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(26, getCustomPlacementConfig()); + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getCustomPlacementConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rpo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, rpo_); } - if (autoclass_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getAutoclass()); + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, getAutoclass()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, etag_); } - if (softDeletePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getSoftDeletePolicy()); + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, getSoftDeletePolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -19806,83 +17824,112 @@ 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.storage.v2.Bucket)) { return super.equals(obj); } com.google.storage.v2.Bucket other = (com.google.storage.v2.Bucket) obj; - if (!getName().equals(other.getName())) return false; - if (!getBucketId().equals(other.getBucketId())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getProject().equals(other.getProject())) return false; - if (getMetageneration() != other.getMetageneration()) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getLocationType().equals(other.getLocationType())) return false; - if (!getStorageClass().equals(other.getStorageClass())) return false; - if (!getRpo().equals(other.getRpo())) return false; - if (!getAclList().equals(other.getAclList())) return false; - if (!getDefaultObjectAclList().equals(other.getDefaultObjectAclList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getBucketId() + .equals(other.getBucketId())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (getMetageneration() + != other.getMetageneration()) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!getLocationType() + .equals(other.getLocationType())) return false; + if (!getStorageClass() + .equals(other.getStorageClass())) return false; + if (!getRpo() + .equals(other.getRpo())) return false; + if (!getAclList() + .equals(other.getAclList())) return false; + if (!getDefaultObjectAclList() + .equals(other.getDefaultObjectAclList())) return false; if (hasLifecycle() != other.hasLifecycle()) return false; if (hasLifecycle()) { - if (!getLifecycle().equals(other.getLifecycle())) return false; + if (!getLifecycle() + .equals(other.getLifecycle())) 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 (!getCorsList().equals(other.getCorsList())) return false; + if (!getCorsList() + .equals(other.getCorsList())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (getDefaultEventBasedHold() != other.getDefaultEventBasedHold()) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getDefaultEventBasedHold() + != other.getDefaultEventBasedHold()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasWebsite() != other.hasWebsite()) return false; if (hasWebsite()) { - if (!getWebsite().equals(other.getWebsite())) return false; + if (!getWebsite() + .equals(other.getWebsite())) return false; } if (hasVersioning() != other.hasVersioning()) return false; if (hasVersioning()) { - if (!getVersioning().equals(other.getVersioning())) return false; + if (!getVersioning() + .equals(other.getVersioning())) return false; } if (hasLogging() != other.hasLogging()) return false; if (hasLogging()) { - if (!getLogging().equals(other.getLogging())) return false; + if (!getLogging() + .equals(other.getLogging())) return false; } if (hasOwner() != other.hasOwner()) return false; if (hasOwner()) { - if (!getOwner().equals(other.getOwner())) return false; + if (!getOwner() + .equals(other.getOwner())) return false; } if (hasEncryption() != other.hasEncryption()) return false; if (hasEncryption()) { - if (!getEncryption().equals(other.getEncryption())) return false; + if (!getEncryption() + .equals(other.getEncryption())) return false; } if (hasBilling() != other.hasBilling()) return false; if (hasBilling()) { - if (!getBilling().equals(other.getBilling())) return false; + if (!getBilling() + .equals(other.getBilling())) return false; } if (hasRetentionPolicy() != other.hasRetentionPolicy()) return false; if (hasRetentionPolicy()) { - if (!getRetentionPolicy().equals(other.getRetentionPolicy())) return false; + if (!getRetentionPolicy() + .equals(other.getRetentionPolicy())) return false; } if (hasIamConfig() != other.hasIamConfig()) return false; if (hasIamConfig()) { - if (!getIamConfig().equals(other.getIamConfig())) return false; + if (!getIamConfig() + .equals(other.getIamConfig())) return false; } - if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzs() + != other.getSatisfiesPzs()) return false; if (hasCustomPlacementConfig() != other.hasCustomPlacementConfig()) return false; if (hasCustomPlacementConfig()) { - if (!getCustomPlacementConfig().equals(other.getCustomPlacementConfig())) return false; + if (!getCustomPlacementConfig() + .equals(other.getCustomPlacementConfig())) return false; } if (hasAutoclass() != other.hasAutoclass()) return false; if (hasAutoclass()) { - if (!getAutoclass().equals(other.getAutoclass())) return false; + if (!getAutoclass() + .equals(other.getAutoclass())) return false; } if (hasSoftDeletePolicy() != other.hasSoftDeletePolicy()) return false; if (hasSoftDeletePolicy()) { - if (!getSoftDeletePolicy().equals(other.getSoftDeletePolicy())) return false; + if (!getSoftDeletePolicy() + .equals(other.getSoftDeletePolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -19904,7 +17951,8 @@ public int hashCode() { hash = (37 * hash) + PROJECT_FIELD_NUMBER; hash = (53 * hash) + getProject().hashCode(); hash = (37 * hash) + METAGENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMetageneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMetageneration()); hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); hash = (37 * hash) + LOCATION_TYPE_FIELD_NUMBER; @@ -19938,7 +17986,8 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + DEFAULT_EVENT_BASED_HOLD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultEventBasedHold()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDefaultEventBasedHold()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -19976,7 +18025,8 @@ public int hashCode() { hash = (53 * hash) + getIamConfig().hashCode(); } hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSatisfiesPzs()); if (hasCustomPlacementConfig()) { hash = (37 * hash) + CUSTOM_PLACEMENT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getCustomPlacementConfig().hashCode(); @@ -19994,153 +18044,176 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket 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.storage.v2.Bucket parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.Bucket parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket 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.storage.v2.Bucket parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket 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.storage.v2.Bucket 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.storage.v2.Bucket 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.storage.v2.Bucket parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket 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.storage.v2.Bucket parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.storage.v2.Bucket parseFrom( + com.google.protobuf.CodedInputStream 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.storage.v2.Bucket 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.storage.v2.Bucket 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 bucket.
    * 
* * Protobuf type {@code google.storage.v2.Bucket} */ - 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.storage.v2.Bucket) com.google.storage.v2.BucketOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 15: return internalGetLabels(); 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 15: return internalGetMutableLabels(); 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.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.Bucket.class, com.google.storage.v2.Bucket.Builder.class); } // Construct using com.google.storage.v2.Bucket.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAclFieldBuilder(); + getDefaultObjectAclFieldBuilder(); + getLifecycleFieldBuilder(); + getCreateTimeFieldBuilder(); + getCorsFieldBuilder(); + getUpdateTimeFieldBuilder(); + getWebsiteFieldBuilder(); + getVersioningFieldBuilder(); + getLoggingFieldBuilder(); + getOwnerFieldBuilder(); + getEncryptionFieldBuilder(); + getBillingFieldBuilder(); + getRetentionPolicyFieldBuilder(); + getIamConfigFieldBuilder(); + getCustomPlacementConfigFieldBuilder(); + getAutoclassFieldBuilder(); + getSoftDeletePolicyFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -20252,7 +18325,8 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_descriptor; } @@ -20274,9 +18348,7 @@ public com.google.storage.v2.Bucket build() { public com.google.storage.v2.Bucket buildPartial() { com.google.storage.v2.Bucket result = new com.google.storage.v2.Bucket(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -20340,14 +18412,24 @@ private void buildPartial0(com.google.storage.v2.Bucket result) { if (((from_bitField0_ & 0x00000100) != 0)) { result.rpo_ = rpo_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000800) != 0)) { - result.lifecycle_ = lifecycleBuilder_ == null ? lifecycle_ : lifecycleBuilder_.build(); + result.lifecycle_ = lifecycleBuilder_ == null + ? lifecycle_ + : lifecycleBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00008000) != 0)) { result.defaultEventBasedHold_ = defaultEventBasedHold_; @@ -20357,85 +18439,113 @@ private void buildPartial0(com.google.storage.v2.Bucket result) { result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00020000) != 0)) { - result.website_ = websiteBuilder_ == null ? website_ : websiteBuilder_.build(); + result.website_ = websiteBuilder_ == null + ? website_ + : websiteBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.versioning_ = versioningBuilder_ == null ? versioning_ : versioningBuilder_.build(); + result.versioning_ = versioningBuilder_ == null + ? versioning_ + : versioningBuilder_.build(); + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.logging_ = loggingBuilder_ == null ? logging_ : loggingBuilder_.build(); + result.logging_ = loggingBuilder_ == null + ? logging_ + : loggingBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00100000) != 0)) { - result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); + result.owner_ = ownerBuilder_ == null + ? owner_ + : ownerBuilder_.build(); + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + result.encryption_ = encryptionBuilder_ == null + ? encryption_ + : encryptionBuilder_.build(); + to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.billing_ = billingBuilder_ == null ? billing_ : billingBuilder_.build(); + result.billing_ = billingBuilder_ == null + ? billing_ + : billingBuilder_.build(); + to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00800000) != 0)) { - result.retentionPolicy_ = - retentionPolicyBuilder_ == null ? retentionPolicy_ : retentionPolicyBuilder_.build(); + result.retentionPolicy_ = retentionPolicyBuilder_ == null + ? retentionPolicy_ + : retentionPolicyBuilder_.build(); + to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x01000000) != 0)) { - result.iamConfig_ = iamConfigBuilder_ == null ? iamConfig_ : iamConfigBuilder_.build(); + result.iamConfig_ = iamConfigBuilder_ == null + ? iamConfig_ + : iamConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x02000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } if (((from_bitField0_ & 0x04000000) != 0)) { - result.customPlacementConfig_ = - customPlacementConfigBuilder_ == null - ? customPlacementConfig_ - : customPlacementConfigBuilder_.build(); + result.customPlacementConfig_ = customPlacementConfigBuilder_ == null + ? customPlacementConfig_ + : customPlacementConfigBuilder_.build(); + to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x08000000) != 0)) { - result.autoclass_ = autoclassBuilder_ == null ? autoclass_ : autoclassBuilder_.build(); + result.autoclass_ = autoclassBuilder_ == null + ? autoclass_ + : autoclassBuilder_.build(); + to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x10000000) != 0)) { - result.softDeletePolicy_ = - softDeletePolicyBuilder_ == null ? softDeletePolicy_ : softDeletePolicyBuilder_.build(); + result.softDeletePolicy_ = softDeletePolicyBuilder_ == null + ? softDeletePolicy_ + : softDeletePolicyBuilder_.build(); + to_bitField0_ |= 0x00002000; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.Bucket) { - return mergeFrom((com.google.storage.v2.Bucket) other); + return mergeFrom((com.google.storage.v2.Bucket)other); } else { super.mergeFrom(other); return this; @@ -20505,10 +18615,9 @@ public Builder mergeFrom(com.google.storage.v2.Bucket other) { aclBuilder_ = null; acl_ = other.acl_; bitField0_ = (bitField0_ & ~0x00000200); - aclBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAclFieldBuilder() - : null; + aclBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAclFieldBuilder() : null; } else { aclBuilder_.addAllMessages(other.acl_); } @@ -20532,10 +18641,9 @@ public Builder mergeFrom(com.google.storage.v2.Bucket other) { defaultObjectAclBuilder_ = null; defaultObjectAcl_ = other.defaultObjectAcl_; bitField0_ = (bitField0_ & ~0x00000400); - defaultObjectAclBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDefaultObjectAclFieldBuilder() - : null; + defaultObjectAclBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDefaultObjectAclFieldBuilder() : null; } else { defaultObjectAclBuilder_.addAllMessages(other.defaultObjectAcl_); } @@ -20565,10 +18673,9 @@ public Builder mergeFrom(com.google.storage.v2.Bucket other) { corsBuilder_ = null; cors_ = other.cors_; bitField0_ = (bitField0_ & ~0x00002000); - corsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCorsFieldBuilder() - : null; + corsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCorsFieldBuilder() : null; } else { corsBuilder_.addAllMessages(other.cors_); } @@ -20580,7 +18687,8 @@ public Builder mergeFrom(com.google.storage.v2.Bucket other) { if (other.getDefaultEventBasedHold() != false) { setDefaultEventBasedHold(other.getDefaultEventBasedHold()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00010000; if (other.hasWebsite()) { mergeWebsite(other.getWebsite()); @@ -20644,216 +18752,213 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - bucketId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 32: - { - metageneration_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: - { - locationType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - storageClass_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - com.google.storage.v2.BucketAccessControl m = - input.readMessage( - com.google.storage.v2.BucketAccessControl.parser(), extensionRegistry); - if (aclBuilder_ == null) { - ensureAclIsMutable(); - acl_.add(m); - } else { - aclBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: - { - com.google.storage.v2.ObjectAccessControl m = - input.readMessage( - com.google.storage.v2.ObjectAccessControl.parser(), extensionRegistry); - if (defaultObjectAclBuilder_ == null) { - ensureDefaultObjectAclIsMutable(); - defaultObjectAcl_.add(m); - } else { - defaultObjectAclBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: - { - input.readMessage(getLifecycleFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 82 - case 90: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 90 - case 98: - { - com.google.storage.v2.Bucket.Cors m = - input.readMessage( - com.google.storage.v2.Bucket.Cors.parser(), extensionRegistry); - if (corsBuilder_ == null) { - ensureCorsIsMutable(); - cors_.add(m); - } else { - corsBuilder_.addMessage(m); - } - break; - } // case 98 - case 106: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 106 - case 112: - { - defaultEventBasedHold_ = input.readBool(); - bitField0_ |= 0x00008000; - break; - } // case 112 - case 122: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00010000; - break; - } // case 122 - case 130: - { - input.readMessage(getWebsiteFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 130 - case 138: - { - input.readMessage(getVersioningFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 138 - case 146: - { - input.readMessage(getLoggingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 146 - case 154: - { - input.readMessage(getOwnerFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 154 - case 162: - { - input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 162 - case 170: - { - input.readMessage(getBillingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 170 - case 178: - { - input.readMessage(getRetentionPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 178 - case 186: - { - input.readMessage(getIamConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 186 - case 200: - { - satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x02000000; - break; - } // case 200 - case 210: - { - input.readMessage( - getCustomPlacementConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; - break; - } // case 210 - case 218: - { - rpo_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 218 - case 226: - { - input.readMessage(getAutoclassFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 226 - case 234: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 234 - case 250: - { - input.readMessage( - getSoftDeletePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 250 - 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: { + bucketId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 32: { + metageneration_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: { + locationType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + storageClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + com.google.storage.v2.BucketAccessControl m = + input.readMessage( + com.google.storage.v2.BucketAccessControl.parser(), + extensionRegistry); + if (aclBuilder_ == null) { + ensureAclIsMutable(); + acl_.add(m); + } else { + aclBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: { + com.google.storage.v2.ObjectAccessControl m = + input.readMessage( + com.google.storage.v2.ObjectAccessControl.parser(), + extensionRegistry); + if (defaultObjectAclBuilder_ == null) { + ensureDefaultObjectAclIsMutable(); + defaultObjectAcl_.add(m); + } else { + defaultObjectAclBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: { + input.readMessage( + getLifecycleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 82 + case 90: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 90 + case 98: { + com.google.storage.v2.Bucket.Cors m = + input.readMessage( + com.google.storage.v2.Bucket.Cors.parser(), + extensionRegistry); + if (corsBuilder_ == null) { + ensureCorsIsMutable(); + cors_.add(m); + } else { + corsBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 106 + case 112: { + defaultEventBasedHold_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 112 + case 122: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00010000; + break; + } // case 122 + case 130: { + input.readMessage( + getWebsiteFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 130 + case 138: { + input.readMessage( + getVersioningFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 138 + case 146: { + input.readMessage( + getLoggingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 146 + case 154: { + input.readMessage( + getOwnerFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 154 + case 162: { + input.readMessage( + getEncryptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 162 + case 170: { + input.readMessage( + getBillingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 170 + case 178: { + input.readMessage( + getRetentionPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 178 + case 186: { + input.readMessage( + getIamConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 186 + case 200: { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x02000000; + break; + } // case 200 + case 210: { + input.readMessage( + getCustomPlacementConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 210 + case 218: { + rpo_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 218 + case 226: { + input.readMessage( + getAutoclassFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 226 + case 234: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 234 + case 250: { + input.readMessage( + getSoftDeletePolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 250 + 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) { @@ -20863,26 +18968,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The name of the bucket.
      * Format: `projects/{project}/buckets/{bucket}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -20891,22 +18993,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of the bucket.
      * Format: `projects/{project}/buckets/{bucket}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -20914,37 +19015,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of the bucket.
      * Format: `projects/{project}/buckets/{bucket}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; } /** - * - * *
      * Immutable. The name of the bucket.
      * Format: `projects/{project}/buckets/{bucket}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -20954,22 +19048,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of the bucket.
      * Format: `projects/{project}/buckets/{bucket}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -20979,8 +19069,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object bucketId_ = ""; /** - * - * *
      * Output only. The user-chosen part of the bucket name. The `{bucket}`
      * portion of the `name` field. For globally unique buckets, this is equal to
@@ -20988,13 +19076,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bucketId. */ public java.lang.String getBucketId() { java.lang.Object ref = bucketId_; 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(); bucketId_ = s; return s; @@ -21003,8 +19091,6 @@ public java.lang.String getBucketId() { } } /** - * - * *
      * Output only. The user-chosen part of the bucket name. The `{bucket}`
      * portion of the `name` field. For globally unique buckets, this is equal to
@@ -21012,14 +19098,15 @@ public java.lang.String getBucketId() {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for bucketId. */ - public com.google.protobuf.ByteString getBucketIdBytes() { + public com.google.protobuf.ByteString + getBucketIdBytes() { java.lang.Object ref = bucketId_; 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); bucketId_ = b; return b; } else { @@ -21027,8 +19114,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() { } } /** - * - * *
      * Output only. The user-chosen part of the bucket name. The `{bucket}`
      * portion of the `name` field. For globally unique buckets, this is equal to
@@ -21036,22 +19121,18 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bucketId to set. * @return This builder for chaining. */ - public Builder setBucketId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucketId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. The user-chosen part of the bucket name. The `{bucket}`
      * portion of the `name` field. For globally unique buckets, this is equal to
@@ -21059,7 +19140,6 @@ public Builder setBucketId(java.lang.String value) {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearBucketId() { @@ -21069,8 +19149,6 @@ public Builder clearBucketId() { return this; } /** - * - * *
      * Output only. The user-chosen part of the bucket name. The `{bucket}`
      * portion of the `name` field. For globally unique buckets, this is equal to
@@ -21078,14 +19156,12 @@ public Builder clearBucketId() {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for bucketId to set. * @return This builder for chaining. */ - public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucketId_ = value; bitField0_ |= 0x00000002; @@ -21095,8 +19171,6 @@ public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -21104,13 +19178,13 @@ public Builder setBucketIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 29; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -21119,8 +19193,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -21128,14 +19200,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 29; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -21143,8 +19216,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -21152,22 +19223,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 29; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -21175,7 +19242,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 29; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -21185,8 +19251,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -21194,14 +19258,12 @@ public Builder clearEtag() {
      * 
* * string etag = 29; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -21211,24 +19273,20 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
      * Immutable. The project which owns this bucket, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -21237,25 +19295,22 @@ public java.lang.String getProject() { } } /** - * - * *
      * Immutable. The project which owns this bucket, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -21263,43 +19318,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Immutable. The project which owns this bucket, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Immutable. The project which owns this bucket, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -21309,25 +19353,19 @@ public Builder clearProject() { return this; } /** - * - * *
      * Immutable. The project which owns this bucket, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000008; @@ -21335,16 +19373,13 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { return this; } - private long metageneration_; + private long metageneration_ ; /** - * - * *
      * Output only. The metadata generation of this bucket.
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -21352,14 +19387,11 @@ public long getMetageneration() { return metageneration_; } /** - * - * *
      * Output only. The metadata generation of this bucket.
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The metageneration to set. * @return This builder for chaining. */ @@ -21371,14 +19403,11 @@ public Builder setMetageneration(long value) { return this; } /** - * - * *
      * Output only. The metadata generation of this bucket.
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -21390,8 +19419,6 @@ public Builder clearMetageneration() { private java.lang.Object location_ = ""; /** - * - * *
      * Immutable. The location of the bucket. Object data for objects in the
      * bucket resides in physical storage within this region.  Defaults to `US`.
@@ -21402,13 +19429,13 @@ public Builder clearMetageneration() {
      * 
* * string location = 5 [(.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; @@ -21417,8 +19444,6 @@ public java.lang.String getLocation() { } } /** - * - * *
      * Immutable. The location of the bucket. Object data for objects in the
      * bucket resides in physical storage within this region.  Defaults to `US`.
@@ -21429,14 +19454,15 @@ public java.lang.String getLocation() {
      * 
* * string location = 5 [(.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 { @@ -21444,8 +19470,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
      * Immutable. The location of the bucket. Object data for objects in the
      * bucket resides in physical storage within this region.  Defaults to `US`.
@@ -21456,22 +19480,18 @@ public com.google.protobuf.ByteString getLocationBytes() {
      * 
* * string location = 5 [(.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_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Immutable. The location of the bucket. Object data for objects in the
      * bucket resides in physical storage within this region.  Defaults to `US`.
@@ -21482,7 +19502,6 @@ public Builder setLocation(java.lang.String value) {
      * 
* * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearLocation() { @@ -21492,8 +19511,6 @@ public Builder clearLocation() { return this; } /** - * - * *
      * Immutable. The location of the bucket. Object data for objects in the
      * bucket resides in physical storage within this region.  Defaults to `US`.
@@ -21504,14 +19521,12 @@ public Builder clearLocation() {
      * 
* * string location = 5 [(.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_ |= 0x00000020; @@ -21521,21 +19536,19 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { private java.lang.Object locationType_ = ""; /** - * - * *
      * Output only. The location type of the bucket (region, dual-region,
      * multi-region, etc).
      * 
* * string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The locationType. */ public java.lang.String getLocationType() { java.lang.Object ref = locationType_; 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(); locationType_ = s; return s; @@ -21544,22 +19557,21 @@ public java.lang.String getLocationType() { } } /** - * - * *
      * Output only. The location type of the bucket (region, dual-region,
      * multi-region, etc).
      * 
* * string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for locationType. */ - public com.google.protobuf.ByteString getLocationTypeBytes() { + public com.google.protobuf.ByteString + getLocationTypeBytes() { java.lang.Object ref = locationType_; 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); locationType_ = b; return b; } else { @@ -21567,37 +19579,30 @@ public com.google.protobuf.ByteString getLocationTypeBytes() { } } /** - * - * *
      * Output only. The location type of the bucket (region, dual-region,
      * multi-region, etc).
      * 
* * string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The locationType to set. * @return This builder for chaining. */ - public Builder setLocationType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } locationType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. The location type of the bucket (region, dual-region,
      * multi-region, etc).
      * 
* * string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLocationType() { @@ -21607,22 +19612,18 @@ public Builder clearLocationType() { return this; } /** - * - * *
      * Output only. The location type of the bucket (region, dual-region,
      * multi-region, etc).
      * 
* * string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for locationType to set. * @return This builder for chaining. */ - public Builder setLocationTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); locationType_ = value; bitField0_ |= 0x00000040; @@ -21632,8 +19633,6 @@ public Builder setLocationTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object storageClass_ = ""; /** - * - * *
      * The bucket's default storage class, used whenever no storageClass is
      * specified for a newly-created object. This defines how objects in the
@@ -21644,13 +19643,13 @@ public Builder setLocationTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string storage_class = 7; - * * @return The storageClass. */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; 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(); storageClass_ = s; return s; @@ -21659,8 +19658,6 @@ public java.lang.String getStorageClass() { } } /** - * - * *
      * The bucket's default storage class, used whenever no storageClass is
      * specified for a newly-created object. This defines how objects in the
@@ -21671,14 +19668,15 @@ public java.lang.String getStorageClass() {
      * 
* * string storage_class = 7; - * * @return The bytes for storageClass. */ - public com.google.protobuf.ByteString getStorageClassBytes() { + public com.google.protobuf.ByteString + getStorageClassBytes() { java.lang.Object ref = storageClass_; 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); storageClass_ = b; return b; } else { @@ -21686,8 +19684,6 @@ public com.google.protobuf.ByteString getStorageClassBytes() { } } /** - * - * *
      * The bucket's default storage class, used whenever no storageClass is
      * specified for a newly-created object. This defines how objects in the
@@ -21698,22 +19694,18 @@ public com.google.protobuf.ByteString getStorageClassBytes() {
      * 
* * string storage_class = 7; - * * @param value The storageClass to set. * @return This builder for chaining. */ - public Builder setStorageClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStorageClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } storageClass_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * The bucket's default storage class, used whenever no storageClass is
      * specified for a newly-created object. This defines how objects in the
@@ -21724,7 +19716,6 @@ public Builder setStorageClass(java.lang.String value) {
      * 
* * string storage_class = 7; - * * @return This builder for chaining. */ public Builder clearStorageClass() { @@ -21734,8 +19725,6 @@ public Builder clearStorageClass() { return this; } /** - * - * *
      * The bucket's default storage class, used whenever no storageClass is
      * specified for a newly-created object. This defines how objects in the
@@ -21746,14 +19735,12 @@ public Builder clearStorageClass() {
      * 
* * string storage_class = 7; - * * @param value The bytes for storageClass to set. * @return This builder for chaining. */ - public Builder setStorageClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStorageClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageClass_ = value; bitField0_ |= 0x00000080; @@ -21763,8 +19750,6 @@ public Builder setStorageClassBytes(com.google.protobuf.ByteString value) { private java.lang.Object rpo_ = ""; /** - * - * *
      * The recovery point objective for cross-region replication of the bucket.
      * Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
@@ -21775,13 +19760,13 @@ public Builder setStorageClassBytes(com.google.protobuf.ByteString value) {
      * 
* * string rpo = 27; - * * @return The rpo. */ public java.lang.String getRpo() { java.lang.Object ref = rpo_; 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(); rpo_ = s; return s; @@ -21790,8 +19775,6 @@ public java.lang.String getRpo() { } } /** - * - * *
      * The recovery point objective for cross-region replication of the bucket.
      * Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
@@ -21802,14 +19785,15 @@ public java.lang.String getRpo() {
      * 
* * string rpo = 27; - * * @return The bytes for rpo. */ - public com.google.protobuf.ByteString getRpoBytes() { + public com.google.protobuf.ByteString + getRpoBytes() { java.lang.Object ref = rpo_; 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); rpo_ = b; return b; } else { @@ -21817,8 +19801,6 @@ public com.google.protobuf.ByteString getRpoBytes() { } } /** - * - * *
      * The recovery point objective for cross-region replication of the bucket.
      * Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
@@ -21829,22 +19811,18 @@ public com.google.protobuf.ByteString getRpoBytes() {
      * 
* * string rpo = 27; - * * @param value The rpo to set. * @return This builder for chaining. */ - public Builder setRpo(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRpo( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rpo_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * The recovery point objective for cross-region replication of the bucket.
      * Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
@@ -21855,7 +19833,6 @@ public Builder setRpo(java.lang.String value) {
      * 
* * string rpo = 27; - * * @return This builder for chaining. */ public Builder clearRpo() { @@ -21865,8 +19842,6 @@ public Builder clearRpo() { return this; } /** - * - * *
      * The recovery point objective for cross-region replication of the bucket.
      * Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
@@ -21877,14 +19852,12 @@ public Builder clearRpo() {
      * 
* * string rpo = 27; - * * @param value The bytes for rpo to set. * @return This builder for chaining. */ - public Builder setRpoBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRpoBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rpo_ = value; bitField0_ |= 0x00000100; @@ -21893,24 +19866,18 @@ public Builder setRpoBytes(com.google.protobuf.ByteString value) { } private java.util.List acl_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAclIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { acl_ = new java.util.ArrayList(acl_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.BucketAccessControl, - com.google.storage.v2.BucketAccessControl.Builder, - com.google.storage.v2.BucketAccessControlOrBuilder> - aclBuilder_; + com.google.storage.v2.BucketAccessControl, com.google.storage.v2.BucketAccessControl.Builder, com.google.storage.v2.BucketAccessControlOrBuilder> aclBuilder_; /** - * - * *
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -21927,8 +19894,6 @@ public java.util.List getAclList() {
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -21945,8 +19910,6 @@ public int getAclCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -21963,8 +19926,6 @@ public com.google.storage.v2.BucketAccessControl getAcl(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -21973,7 +19934,8 @@ public com.google.storage.v2.BucketAccessControl getAcl(int index) {
      *
      * repeated .google.storage.v2.BucketAccessControl acl = 8;
      */
-    public Builder setAcl(int index, com.google.storage.v2.BucketAccessControl value) {
+    public Builder setAcl(
+        int index, com.google.storage.v2.BucketAccessControl value) {
       if (aclBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -21987,8 +19949,6 @@ public Builder setAcl(int index, com.google.storage.v2.BucketAccessControl value
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22009,8 +19969,6 @@ public Builder setAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22033,8 +19991,6 @@ public Builder addAcl(com.google.storage.v2.BucketAccessControl value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22043,7 +19999,8 @@ public Builder addAcl(com.google.storage.v2.BucketAccessControl value) {
      *
      * repeated .google.storage.v2.BucketAccessControl acl = 8;
      */
-    public Builder addAcl(int index, com.google.storage.v2.BucketAccessControl value) {
+    public Builder addAcl(
+        int index, com.google.storage.v2.BucketAccessControl value) {
       if (aclBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -22057,8 +20014,6 @@ public Builder addAcl(int index, com.google.storage.v2.BucketAccessControl value
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22067,7 +20022,8 @@ public Builder addAcl(int index, com.google.storage.v2.BucketAccessControl value
      *
      * repeated .google.storage.v2.BucketAccessControl acl = 8;
      */
-    public Builder addAcl(com.google.storage.v2.BucketAccessControl.Builder builderForValue) {
+    public Builder addAcl(
+        com.google.storage.v2.BucketAccessControl.Builder builderForValue) {
       if (aclBuilder_ == null) {
         ensureAclIsMutable();
         acl_.add(builderForValue.build());
@@ -22078,8 +20034,6 @@ public Builder addAcl(com.google.storage.v2.BucketAccessControl.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22100,8 +20054,6 @@ public Builder addAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22114,7 +20066,8 @@ public Builder addAllAcl(
         java.lang.Iterable values) {
       if (aclBuilder_ == null) {
         ensureAclIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, acl_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, acl_);
         onChanged();
       } else {
         aclBuilder_.addAllMessages(values);
@@ -22122,8 +20075,6 @@ public Builder addAllAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22143,8 +20094,6 @@ public Builder clearAcl() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22164,8 +20113,6 @@ public Builder removeAcl(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22174,12 +20121,11 @@ public Builder removeAcl(int index) {
      *
      * repeated .google.storage.v2.BucketAccessControl acl = 8;
      */
-    public com.google.storage.v2.BucketAccessControl.Builder getAclBuilder(int index) {
+    public com.google.storage.v2.BucketAccessControl.Builder getAclBuilder(
+        int index) {
       return getAclFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22188,16 +20134,14 @@ public com.google.storage.v2.BucketAccessControl.Builder getAclBuilder(int index
      *
      * repeated .google.storage.v2.BucketAccessControl acl = 8;
      */
-    public com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(int index) {
+    public com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
+        int index) {
       if (aclBuilder_ == null) {
-        return acl_.get(index);
-      } else {
+        return acl_.get(index);  } else {
         return aclBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22206,8 +20150,8 @@ public com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(int in
      *
      * repeated .google.storage.v2.BucketAccessControl acl = 8;
      */
-    public java.util.List
-        getAclOrBuilderList() {
+    public java.util.List 
+         getAclOrBuilderList() {
       if (aclBuilder_ != null) {
         return aclBuilder_.getMessageOrBuilderList();
       } else {
@@ -22215,8 +20159,6 @@ public com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(int in
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22226,12 +20168,10 @@ public com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(int in
      * repeated .google.storage.v2.BucketAccessControl acl = 8;
      */
     public com.google.storage.v2.BucketAccessControl.Builder addAclBuilder() {
-      return getAclFieldBuilder()
-          .addBuilder(com.google.storage.v2.BucketAccessControl.getDefaultInstance());
+      return getAclFieldBuilder().addBuilder(
+          com.google.storage.v2.BucketAccessControl.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22240,13 +20180,12 @@ public com.google.storage.v2.BucketAccessControl.Builder addAclBuilder() {
      *
      * repeated .google.storage.v2.BucketAccessControl acl = 8;
      */
-    public com.google.storage.v2.BucketAccessControl.Builder addAclBuilder(int index) {
-      return getAclFieldBuilder()
-          .addBuilder(index, com.google.storage.v2.BucketAccessControl.getDefaultInstance());
+    public com.google.storage.v2.BucketAccessControl.Builder addAclBuilder(
+        int index) {
+      return getAclFieldBuilder().addBuilder(
+          index, com.google.storage.v2.BucketAccessControl.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22255,47 +20194,38 @@ public com.google.storage.v2.BucketAccessControl.Builder addAclBuilder(int index
      *
      * repeated .google.storage.v2.BucketAccessControl acl = 8;
      */
-    public java.util.List getAclBuilderList() {
+    public java.util.List 
+         getAclBuilderList() {
       return getAclFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.storage.v2.BucketAccessControl,
-            com.google.storage.v2.BucketAccessControl.Builder,
-            com.google.storage.v2.BucketAccessControlOrBuilder>
+        com.google.storage.v2.BucketAccessControl, com.google.storage.v2.BucketAccessControl.Builder, com.google.storage.v2.BucketAccessControlOrBuilder> 
         getAclFieldBuilder() {
       if (aclBuilder_ == null) {
-        aclBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.storage.v2.BucketAccessControl,
-                com.google.storage.v2.BucketAccessControl.Builder,
-                com.google.storage.v2.BucketAccessControlOrBuilder>(
-                acl_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean());
+        aclBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.storage.v2.BucketAccessControl, com.google.storage.v2.BucketAccessControl.Builder, com.google.storage.v2.BucketAccessControlOrBuilder>(
+                acl_,
+                ((bitField0_ & 0x00000200) != 0),
+                getParentForChildren(),
+                isClean());
         acl_ = null;
       }
       return aclBuilder_;
     }
 
     private java.util.List defaultObjectAcl_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureDefaultObjectAclIsMutable() {
       if (!((bitField0_ & 0x00000400) != 0)) {
-        defaultObjectAcl_ =
-            new java.util.ArrayList(defaultObjectAcl_);
+        defaultObjectAcl_ = new java.util.ArrayList(defaultObjectAcl_);
         bitField0_ |= 0x00000400;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.storage.v2.ObjectAccessControl,
-            com.google.storage.v2.ObjectAccessControl.Builder,
-            com.google.storage.v2.ObjectAccessControlOrBuilder>
-        defaultObjectAclBuilder_;
+        com.google.storage.v2.ObjectAccessControl, com.google.storage.v2.ObjectAccessControl.Builder, com.google.storage.v2.ObjectAccessControlOrBuilder> defaultObjectAclBuilder_;
 
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22312,8 +20242,6 @@ public java.util.List getDefaultObjec
       }
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22330,8 +20258,6 @@ public int getDefaultObjectAclCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22348,8 +20274,6 @@ public com.google.storage.v2.ObjectAccessControl getDefaultObjectAcl(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22358,7 +20282,8 @@ public com.google.storage.v2.ObjectAccessControl getDefaultObjectAcl(int index)
      *
      * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      */
-    public Builder setDefaultObjectAcl(int index, com.google.storage.v2.ObjectAccessControl value) {
+    public Builder setDefaultObjectAcl(
+        int index, com.google.storage.v2.ObjectAccessControl value) {
       if (defaultObjectAclBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -22372,8 +20297,6 @@ public Builder setDefaultObjectAcl(int index, com.google.storage.v2.ObjectAccess
       return this;
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22394,8 +20317,6 @@ public Builder setDefaultObjectAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22418,8 +20339,6 @@ public Builder addDefaultObjectAcl(com.google.storage.v2.ObjectAccessControl val
       return this;
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22428,7 +20347,8 @@ public Builder addDefaultObjectAcl(com.google.storage.v2.ObjectAccessControl val
      *
      * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      */
-    public Builder addDefaultObjectAcl(int index, com.google.storage.v2.ObjectAccessControl value) {
+    public Builder addDefaultObjectAcl(
+        int index, com.google.storage.v2.ObjectAccessControl value) {
       if (defaultObjectAclBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -22442,8 +20362,6 @@ public Builder addDefaultObjectAcl(int index, com.google.storage.v2.ObjectAccess
       return this;
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22464,8 +20382,6 @@ public Builder addDefaultObjectAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22486,8 +20402,6 @@ public Builder addDefaultObjectAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22500,7 +20414,8 @@ public Builder addAllDefaultObjectAcl(
         java.lang.Iterable values) {
       if (defaultObjectAclBuilder_ == null) {
         ensureDefaultObjectAclIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, defaultObjectAcl_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, defaultObjectAcl_);
         onChanged();
       } else {
         defaultObjectAclBuilder_.addAllMessages(values);
@@ -22508,8 +20423,6 @@ public Builder addAllDefaultObjectAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22529,8 +20442,6 @@ public Builder clearDefaultObjectAcl() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22550,8 +20461,6 @@ public Builder removeDefaultObjectAcl(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22560,12 +20469,11 @@ public Builder removeDefaultObjectAcl(int index) {
      *
      * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      */
-    public com.google.storage.v2.ObjectAccessControl.Builder getDefaultObjectAclBuilder(int index) {
+    public com.google.storage.v2.ObjectAccessControl.Builder getDefaultObjectAclBuilder(
+        int index) {
       return getDefaultObjectAclFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22577,14 +20485,11 @@ public com.google.storage.v2.ObjectAccessControl.Builder getDefaultObjectAclBuil
     public com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
         int index) {
       if (defaultObjectAclBuilder_ == null) {
-        return defaultObjectAcl_.get(index);
-      } else {
+        return defaultObjectAcl_.get(index);  } else {
         return defaultObjectAclBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22593,8 +20498,8 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrB
      *
      * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      */
-    public java.util.List
-        getDefaultObjectAclOrBuilderList() {
+    public java.util.List 
+         getDefaultObjectAclOrBuilderList() {
       if (defaultObjectAclBuilder_ != null) {
         return defaultObjectAclBuilder_.getMessageOrBuilderList();
       } else {
@@ -22602,8 +20507,6 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrB
       }
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22613,12 +20516,10 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrB
      * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      */
     public com.google.storage.v2.ObjectAccessControl.Builder addDefaultObjectAclBuilder() {
-      return getDefaultObjectAclFieldBuilder()
-          .addBuilder(com.google.storage.v2.ObjectAccessControl.getDefaultInstance());
+      return getDefaultObjectAclFieldBuilder().addBuilder(
+          com.google.storage.v2.ObjectAccessControl.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22627,13 +20528,12 @@ public com.google.storage.v2.ObjectAccessControl.Builder addDefaultObjectAclBuil
      *
      * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      */
-    public com.google.storage.v2.ObjectAccessControl.Builder addDefaultObjectAclBuilder(int index) {
-      return getDefaultObjectAclFieldBuilder()
-          .addBuilder(index, com.google.storage.v2.ObjectAccessControl.getDefaultInstance());
+    public com.google.storage.v2.ObjectAccessControl.Builder addDefaultObjectAclBuilder(
+        int index) {
+      return getDefaultObjectAclFieldBuilder().addBuilder(
+          index, com.google.storage.v2.ObjectAccessControl.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Default access controls to apply to new objects when no ACL is provided.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -22642,22 +20542,16 @@ public com.google.storage.v2.ObjectAccessControl.Builder addDefaultObjectAclBuil
      *
      * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      */
-    public java.util.List
-        getDefaultObjectAclBuilderList() {
+    public java.util.List 
+         getDefaultObjectAclBuilderList() {
       return getDefaultObjectAclFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.storage.v2.ObjectAccessControl,
-            com.google.storage.v2.ObjectAccessControl.Builder,
-            com.google.storage.v2.ObjectAccessControlOrBuilder>
+        com.google.storage.v2.ObjectAccessControl, com.google.storage.v2.ObjectAccessControl.Builder, com.google.storage.v2.ObjectAccessControlOrBuilder> 
         getDefaultObjectAclFieldBuilder() {
       if (defaultObjectAclBuilder_ == null) {
-        defaultObjectAclBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.storage.v2.ObjectAccessControl,
-                com.google.storage.v2.ObjectAccessControl.Builder,
-                com.google.storage.v2.ObjectAccessControlOrBuilder>(
+        defaultObjectAclBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.storage.v2.ObjectAccessControl, com.google.storage.v2.ObjectAccessControl.Builder, com.google.storage.v2.ObjectAccessControlOrBuilder>(
                 defaultObjectAcl_,
                 ((bitField0_ & 0x00000400) != 0),
                 getParentForChildren(),
@@ -22669,13 +20563,8 @@ public com.google.storage.v2.ObjectAccessControl.Builder addDefaultObjectAclBuil
 
     private com.google.storage.v2.Bucket.Lifecycle lifecycle_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket.Lifecycle,
-            com.google.storage.v2.Bucket.Lifecycle.Builder,
-            com.google.storage.v2.Bucket.LifecycleOrBuilder>
-        lifecycleBuilder_;
+        com.google.storage.v2.Bucket.Lifecycle, com.google.storage.v2.Bucket.Lifecycle.Builder, com.google.storage.v2.Bucket.LifecycleOrBuilder> lifecycleBuilder_;
     /**
-     *
-     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -22683,15 +20572,12 @@ public com.google.storage.v2.ObjectAccessControl.Builder addDefaultObjectAclBuil
      * 
* * .google.storage.v2.Bucket.Lifecycle lifecycle = 10; - * * @return Whether the lifecycle field is set. */ public boolean hasLifecycle() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -22699,21 +20585,16 @@ public boolean hasLifecycle() {
      * 
* * .google.storage.v2.Bucket.Lifecycle lifecycle = 10; - * * @return The lifecycle. */ public com.google.storage.v2.Bucket.Lifecycle getLifecycle() { if (lifecycleBuilder_ == null) { - return lifecycle_ == null - ? com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance() - : lifecycle_; + return lifecycle_ == null ? com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance() : lifecycle_; } else { return lifecycleBuilder_.getMessage(); } } /** - * - * *
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -22736,8 +20617,6 @@ public Builder setLifecycle(com.google.storage.v2.Bucket.Lifecycle value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -22746,7 +20625,8 @@ public Builder setLifecycle(com.google.storage.v2.Bucket.Lifecycle value) {
      *
      * .google.storage.v2.Bucket.Lifecycle lifecycle = 10;
      */
-    public Builder setLifecycle(com.google.storage.v2.Bucket.Lifecycle.Builder builderForValue) {
+    public Builder setLifecycle(
+        com.google.storage.v2.Bucket.Lifecycle.Builder builderForValue) {
       if (lifecycleBuilder_ == null) {
         lifecycle_ = builderForValue.build();
       } else {
@@ -22757,8 +20637,6 @@ public Builder setLifecycle(com.google.storage.v2.Bucket.Lifecycle.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -22769,9 +20647,9 @@ public Builder setLifecycle(com.google.storage.v2.Bucket.Lifecycle.Builder build
      */
     public Builder mergeLifecycle(com.google.storage.v2.Bucket.Lifecycle value) {
       if (lifecycleBuilder_ == null) {
-        if (((bitField0_ & 0x00000800) != 0)
-            && lifecycle_ != null
-            && lifecycle_ != com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000800) != 0) &&
+          lifecycle_ != null &&
+          lifecycle_ != com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance()) {
           getLifecycleBuilder().mergeFrom(value);
         } else {
           lifecycle_ = value;
@@ -22779,13 +20657,13 @@ public Builder mergeLifecycle(com.google.storage.v2.Bucket.Lifecycle value) {
       } else {
         lifecycleBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000800;
-      onChanged();
+      if (lifecycle_ != null) {
+        bitField0_ |= 0x00000800;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -22805,8 +20683,6 @@ public Builder clearLifecycle() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -22821,8 +20697,6 @@ public com.google.storage.v2.Bucket.Lifecycle.Builder getLifecycleBuilder() {
       return getLifecycleFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -22835,14 +20709,11 @@ public com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder() {
       if (lifecycleBuilder_ != null) {
         return lifecycleBuilder_.getMessageOrBuilder();
       } else {
-        return lifecycle_ == null
-            ? com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance()
-            : lifecycle_;
+        return lifecycle_ == null ?
+            com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance() : lifecycle_;
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -22852,17 +20723,14 @@ public com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder() {
      * .google.storage.v2.Bucket.Lifecycle lifecycle = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket.Lifecycle,
-            com.google.storage.v2.Bucket.Lifecycle.Builder,
-            com.google.storage.v2.Bucket.LifecycleOrBuilder>
+        com.google.storage.v2.Bucket.Lifecycle, com.google.storage.v2.Bucket.Lifecycle.Builder, com.google.storage.v2.Bucket.LifecycleOrBuilder> 
         getLifecycleFieldBuilder() {
       if (lifecycleBuilder_ == null) {
-        lifecycleBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Bucket.Lifecycle,
-                com.google.storage.v2.Bucket.Lifecycle.Builder,
-                com.google.storage.v2.Bucket.LifecycleOrBuilder>(
-                getLifecycle(), getParentForChildren(), isClean());
+        lifecycleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Bucket.Lifecycle, com.google.storage.v2.Bucket.Lifecycle.Builder, com.google.storage.v2.Bucket.LifecycleOrBuilder>(
+                getLifecycle(),
+                getParentForChildren(),
+                isClean());
         lifecycle_ = null;
       }
       return lifecycleBuilder_;
@@ -22870,58 +20738,39 @@ public com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder() {
 
     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. The creation time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Output only. The creation time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.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. The creation time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -22937,17 +20786,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.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 { @@ -22958,21 +20804,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -22980,20 +20822,18 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00001000; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } return this; } /** - * - * *
      * Output only. The creation time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -23006,15 +20846,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00001000; @@ -23022,72 +20858,54 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.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. The creation time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.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_; } private java.util.List cors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCorsIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { cors_ = new java.util.ArrayList(cors_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Bucket.Cors, - com.google.storage.v2.Bucket.Cors.Builder, - com.google.storage.v2.Bucket.CorsOrBuilder> - corsBuilder_; + com.google.storage.v2.Bucket.Cors, com.google.storage.v2.Bucket.Cors.Builder, com.google.storage.v2.Bucket.CorsOrBuilder> corsBuilder_; /** - * - * *
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23103,8 +20921,6 @@ public java.util.List getCorsList() {
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23120,8 +20936,6 @@ public int getCorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23137,8 +20951,6 @@ public com.google.storage.v2.Bucket.Cors getCors(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23146,7 +20958,8 @@ public com.google.storage.v2.Bucket.Cors getCors(int index) {
      *
      * repeated .google.storage.v2.Bucket.Cors cors = 12;
      */
-    public Builder setCors(int index, com.google.storage.v2.Bucket.Cors value) {
+    public Builder setCors(
+        int index, com.google.storage.v2.Bucket.Cors value) {
       if (corsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -23160,8 +20973,6 @@ public Builder setCors(int index, com.google.storage.v2.Bucket.Cors value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23169,7 +20980,8 @@ public Builder setCors(int index, com.google.storage.v2.Bucket.Cors value) {
      *
      * repeated .google.storage.v2.Bucket.Cors cors = 12;
      */
-    public Builder setCors(int index, com.google.storage.v2.Bucket.Cors.Builder builderForValue) {
+    public Builder setCors(
+        int index, com.google.storage.v2.Bucket.Cors.Builder builderForValue) {
       if (corsBuilder_ == null) {
         ensureCorsIsMutable();
         cors_.set(index, builderForValue.build());
@@ -23180,8 +20992,6 @@ public Builder setCors(int index, com.google.storage.v2.Bucket.Cors.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23203,8 +21013,6 @@ public Builder addCors(com.google.storage.v2.Bucket.Cors value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23212,7 +21020,8 @@ public Builder addCors(com.google.storage.v2.Bucket.Cors value) {
      *
      * repeated .google.storage.v2.Bucket.Cors cors = 12;
      */
-    public Builder addCors(int index, com.google.storage.v2.Bucket.Cors value) {
+    public Builder addCors(
+        int index, com.google.storage.v2.Bucket.Cors value) {
       if (corsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -23226,8 +21035,6 @@ public Builder addCors(int index, com.google.storage.v2.Bucket.Cors value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23235,7 +21042,8 @@ public Builder addCors(int index, com.google.storage.v2.Bucket.Cors value) {
      *
      * repeated .google.storage.v2.Bucket.Cors cors = 12;
      */
-    public Builder addCors(com.google.storage.v2.Bucket.Cors.Builder builderForValue) {
+    public Builder addCors(
+        com.google.storage.v2.Bucket.Cors.Builder builderForValue) {
       if (corsBuilder_ == null) {
         ensureCorsIsMutable();
         cors_.add(builderForValue.build());
@@ -23246,8 +21054,6 @@ public Builder addCors(com.google.storage.v2.Bucket.Cors.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23255,7 +21061,8 @@ public Builder addCors(com.google.storage.v2.Bucket.Cors.Builder builderForValue
      *
      * repeated .google.storage.v2.Bucket.Cors cors = 12;
      */
-    public Builder addCors(int index, com.google.storage.v2.Bucket.Cors.Builder builderForValue) {
+    public Builder addCors(
+        int index, com.google.storage.v2.Bucket.Cors.Builder builderForValue) {
       if (corsBuilder_ == null) {
         ensureCorsIsMutable();
         cors_.add(index, builderForValue.build());
@@ -23266,8 +21073,6 @@ public Builder addCors(int index, com.google.storage.v2.Bucket.Cors.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23279,7 +21084,8 @@ public Builder addAllCors(
         java.lang.Iterable values) {
       if (corsBuilder_ == null) {
         ensureCorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, cors_);
         onChanged();
       } else {
         corsBuilder_.addAllMessages(values);
@@ -23287,8 +21093,6 @@ public Builder addAllCors(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23307,8 +21111,6 @@ public Builder clearCors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23327,8 +21129,6 @@ public Builder removeCors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23336,12 +21136,11 @@ public Builder removeCors(int index) {
      *
      * repeated .google.storage.v2.Bucket.Cors cors = 12;
      */
-    public com.google.storage.v2.Bucket.Cors.Builder getCorsBuilder(int index) {
+    public com.google.storage.v2.Bucket.Cors.Builder getCorsBuilder(
+        int index) {
       return getCorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23349,16 +21148,14 @@ public com.google.storage.v2.Bucket.Cors.Builder getCorsBuilder(int index) {
      *
      * repeated .google.storage.v2.Bucket.Cors cors = 12;
      */
-    public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(int index) {
+    public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(
+        int index) {
       if (corsBuilder_ == null) {
-        return cors_.get(index);
-      } else {
+        return cors_.get(index);  } else {
         return corsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23366,8 +21163,8 @@ public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(int index) {
      *
      * repeated .google.storage.v2.Bucket.Cors cors = 12;
      */
-    public java.util.List
-        getCorsOrBuilderList() {
+    public java.util.List 
+         getCorsOrBuilderList() {
       if (corsBuilder_ != null) {
         return corsBuilder_.getMessageOrBuilderList();
       } else {
@@ -23375,8 +21172,6 @@ public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23385,12 +21180,10 @@ public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(int index) {
      * repeated .google.storage.v2.Bucket.Cors cors = 12;
      */
     public com.google.storage.v2.Bucket.Cors.Builder addCorsBuilder() {
-      return getCorsFieldBuilder()
-          .addBuilder(com.google.storage.v2.Bucket.Cors.getDefaultInstance());
+      return getCorsFieldBuilder().addBuilder(
+          com.google.storage.v2.Bucket.Cors.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23398,13 +21191,12 @@ public com.google.storage.v2.Bucket.Cors.Builder addCorsBuilder() {
      *
      * repeated .google.storage.v2.Bucket.Cors cors = 12;
      */
-    public com.google.storage.v2.Bucket.Cors.Builder addCorsBuilder(int index) {
-      return getCorsFieldBuilder()
-          .addBuilder(index, com.google.storage.v2.Bucket.Cors.getDefaultInstance());
+    public com.google.storage.v2.Bucket.Cors.Builder addCorsBuilder(
+        int index) {
+      return getCorsFieldBuilder().addBuilder(
+          index, com.google.storage.v2.Bucket.Cors.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -23412,22 +21204,20 @@ public com.google.storage.v2.Bucket.Cors.Builder addCorsBuilder(int index) {
      *
      * repeated .google.storage.v2.Bucket.Cors cors = 12;
      */
-    public java.util.List getCorsBuilderList() {
+    public java.util.List 
+         getCorsBuilderList() {
       return getCorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.storage.v2.Bucket.Cors,
-            com.google.storage.v2.Bucket.Cors.Builder,
-            com.google.storage.v2.Bucket.CorsOrBuilder>
+        com.google.storage.v2.Bucket.Cors, com.google.storage.v2.Bucket.Cors.Builder, com.google.storage.v2.Bucket.CorsOrBuilder> 
         getCorsFieldBuilder() {
       if (corsBuilder_ == null) {
-        corsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.storage.v2.Bucket.Cors,
-                com.google.storage.v2.Bucket.Cors.Builder,
-                com.google.storage.v2.Bucket.CorsOrBuilder>(
-                cors_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean());
+        corsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.storage.v2.Bucket.Cors, com.google.storage.v2.Bucket.Cors.Builder, com.google.storage.v2.Bucket.CorsOrBuilder>(
+                cors_,
+                ((bitField0_ & 0x00002000) != 0),
+                getParentForChildren(),
+                isClean());
         cors_ = null;
       }
       return corsBuilder_;
@@ -23435,58 +21225,39 @@ public java.util.List getCorsBuilderL
 
     private com.google.protobuf.Timestamp updateTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        updateTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. The modification time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * Output only. The modification time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The modification time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -23502,17 +21273,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The modification time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -23523,21 +21291,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The modification time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -23545,20 +21309,18 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00004000; - onChanged(); + if (updateTime_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } return this; } /** - * - * *
      * Output only. The modification time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00004000); @@ -23571,15 +21333,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The modification time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00004000; @@ -23587,57 +21345,43 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The modification time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The modification time of the bucket.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private boolean defaultEventBasedHold_; + private boolean defaultEventBasedHold_ ; /** - * - * *
      * The default value for event-based hold on newly created objects in this
      * bucket.  Event-based hold is a way to retain objects indefinitely until an
@@ -23655,7 +21399,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * bool default_event_based_hold = 14; - * * @return The defaultEventBasedHold. */ @java.lang.Override @@ -23663,8 +21406,6 @@ public boolean getDefaultEventBasedHold() { return defaultEventBasedHold_; } /** - * - * *
      * The default value for event-based hold on newly created objects in this
      * bucket.  Event-based hold is a way to retain objects indefinitely until an
@@ -23682,7 +21423,6 @@ public boolean getDefaultEventBasedHold() {
      * 
* * bool default_event_based_hold = 14; - * * @param value The defaultEventBasedHold to set. * @return This builder for chaining. */ @@ -23694,8 +21434,6 @@ public Builder setDefaultEventBasedHold(boolean value) { return this; } /** - * - * *
      * The default value for event-based hold on newly created objects in this
      * bucket.  Event-based hold is a way to retain objects indefinitely until an
@@ -23713,7 +21451,6 @@ public Builder setDefaultEventBasedHold(boolean value) {
      * 
* * bool default_event_based_hold = 14; - * * @return This builder for chaining. */ public Builder clearDefaultEventBasedHold() { @@ -23723,19 +21460,21 @@ public Builder clearDefaultEventBasedHold() { return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -23744,13 +21483,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * User-provided labels, in key/value pairs.
      * 
@@ -23758,21 +21494,20 @@ public int getLabelsCount() { * map<string, string> labels = 15; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * User-provided labels, in key/value pairs.
      * 
@@ -23784,8 +21519,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * User-provided labels, in key/value pairs.
      * 
@@ -23793,19 +21526,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * User-provided labels, in key/value pairs.
      * 
@@ -23813,88 +21544,81 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00010000); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * User-provided labels, in key/value pairs.
      * 
* * map<string, string> labels = 15; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00010000; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * User-provided labels, in key/value pairs.
      * 
* * map<string, string> labels = 15; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00010000; return this; } /** - * - * *
      * User-provided labels, in key/value pairs.
      * 
* * map<string, string> labels = 15; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00010000; return this; } private com.google.storage.v2.Bucket.Website website_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Website, - com.google.storage.v2.Bucket.Website.Builder, - com.google.storage.v2.Bucket.WebsiteOrBuilder> - websiteBuilder_; + com.google.storage.v2.Bucket.Website, com.google.storage.v2.Bucket.Website.Builder, com.google.storage.v2.Bucket.WebsiteOrBuilder> websiteBuilder_; /** - * - * *
      * The bucket's website config, controlling how the service behaves
      * when accessing bucket contents as a web site. See the
@@ -23903,15 +21627,12 @@ public Builder putAllLabels(java.util.Map va
      * 
* * .google.storage.v2.Bucket.Website website = 16; - * * @return Whether the website field is set. */ public boolean hasWebsite() { return ((bitField0_ & 0x00020000) != 0); } /** - * - * *
      * The bucket's website config, controlling how the service behaves
      * when accessing bucket contents as a web site. See the
@@ -23920,21 +21641,16 @@ public boolean hasWebsite() {
      * 
* * .google.storage.v2.Bucket.Website website = 16; - * * @return The website. */ public com.google.storage.v2.Bucket.Website getWebsite() { if (websiteBuilder_ == null) { - return website_ == null - ? com.google.storage.v2.Bucket.Website.getDefaultInstance() - : website_; + return website_ == null ? com.google.storage.v2.Bucket.Website.getDefaultInstance() : website_; } else { return websiteBuilder_.getMessage(); } } /** - * - * *
      * The bucket's website config, controlling how the service behaves
      * when accessing bucket contents as a web site. See the
@@ -23958,8 +21674,6 @@ public Builder setWebsite(com.google.storage.v2.Bucket.Website value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's website config, controlling how the service behaves
      * when accessing bucket contents as a web site. See the
@@ -23969,7 +21683,8 @@ public Builder setWebsite(com.google.storage.v2.Bucket.Website value) {
      *
      * .google.storage.v2.Bucket.Website website = 16;
      */
-    public Builder setWebsite(com.google.storage.v2.Bucket.Website.Builder builderForValue) {
+    public Builder setWebsite(
+        com.google.storage.v2.Bucket.Website.Builder builderForValue) {
       if (websiteBuilder_ == null) {
         website_ = builderForValue.build();
       } else {
@@ -23980,8 +21695,6 @@ public Builder setWebsite(com.google.storage.v2.Bucket.Website.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's website config, controlling how the service behaves
      * when accessing bucket contents as a web site. See the
@@ -23993,9 +21706,9 @@ public Builder setWebsite(com.google.storage.v2.Bucket.Website.Builder builderFo
      */
     public Builder mergeWebsite(com.google.storage.v2.Bucket.Website value) {
       if (websiteBuilder_ == null) {
-        if (((bitField0_ & 0x00020000) != 0)
-            && website_ != null
-            && website_ != com.google.storage.v2.Bucket.Website.getDefaultInstance()) {
+        if (((bitField0_ & 0x00020000) != 0) &&
+          website_ != null &&
+          website_ != com.google.storage.v2.Bucket.Website.getDefaultInstance()) {
           getWebsiteBuilder().mergeFrom(value);
         } else {
           website_ = value;
@@ -24003,13 +21716,13 @@ public Builder mergeWebsite(com.google.storage.v2.Bucket.Website value) {
       } else {
         websiteBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00020000;
-      onChanged();
+      if (website_ != null) {
+        bitField0_ |= 0x00020000;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's website config, controlling how the service behaves
      * when accessing bucket contents as a web site. See the
@@ -24030,8 +21743,6 @@ public Builder clearWebsite() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's website config, controlling how the service behaves
      * when accessing bucket contents as a web site. See the
@@ -24047,8 +21758,6 @@ public com.google.storage.v2.Bucket.Website.Builder getWebsiteBuilder() {
       return getWebsiteFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bucket's website config, controlling how the service behaves
      * when accessing bucket contents as a web site. See the
@@ -24062,14 +21771,11 @@ public com.google.storage.v2.Bucket.WebsiteOrBuilder getWebsiteOrBuilder() {
       if (websiteBuilder_ != null) {
         return websiteBuilder_.getMessageOrBuilder();
       } else {
-        return website_ == null
-            ? com.google.storage.v2.Bucket.Website.getDefaultInstance()
-            : website_;
+        return website_ == null ?
+            com.google.storage.v2.Bucket.Website.getDefaultInstance() : website_;
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's website config, controlling how the service behaves
      * when accessing bucket contents as a web site. See the
@@ -24080,17 +21786,14 @@ public com.google.storage.v2.Bucket.WebsiteOrBuilder getWebsiteOrBuilder() {
      * .google.storage.v2.Bucket.Website website = 16;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket.Website,
-            com.google.storage.v2.Bucket.Website.Builder,
-            com.google.storage.v2.Bucket.WebsiteOrBuilder>
+        com.google.storage.v2.Bucket.Website, com.google.storage.v2.Bucket.Website.Builder, com.google.storage.v2.Bucket.WebsiteOrBuilder> 
         getWebsiteFieldBuilder() {
       if (websiteBuilder_ == null) {
-        websiteBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Bucket.Website,
-                com.google.storage.v2.Bucket.Website.Builder,
-                com.google.storage.v2.Bucket.WebsiteOrBuilder>(
-                getWebsite(), getParentForChildren(), isClean());
+        websiteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Bucket.Website, com.google.storage.v2.Bucket.Website.Builder, com.google.storage.v2.Bucket.WebsiteOrBuilder>(
+                getWebsite(),
+                getParentForChildren(),
+                isClean());
         website_ = null;
       }
       return websiteBuilder_;
@@ -24098,47 +21801,34 @@ public com.google.storage.v2.Bucket.WebsiteOrBuilder getWebsiteOrBuilder() {
 
     private com.google.storage.v2.Bucket.Versioning versioning_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket.Versioning,
-            com.google.storage.v2.Bucket.Versioning.Builder,
-            com.google.storage.v2.Bucket.VersioningOrBuilder>
-        versioningBuilder_;
+        com.google.storage.v2.Bucket.Versioning, com.google.storage.v2.Bucket.Versioning.Builder, com.google.storage.v2.Bucket.VersioningOrBuilder> versioningBuilder_;
     /**
-     *
-     *
      * 
      * The bucket's versioning config.
      * 
* * .google.storage.v2.Bucket.Versioning versioning = 17; - * * @return Whether the versioning field is set. */ public boolean hasVersioning() { return ((bitField0_ & 0x00040000) != 0); } /** - * - * *
      * The bucket's versioning config.
      * 
* * .google.storage.v2.Bucket.Versioning versioning = 17; - * * @return The versioning. */ public com.google.storage.v2.Bucket.Versioning getVersioning() { if (versioningBuilder_ == null) { - return versioning_ == null - ? com.google.storage.v2.Bucket.Versioning.getDefaultInstance() - : versioning_; + return versioning_ == null ? com.google.storage.v2.Bucket.Versioning.getDefaultInstance() : versioning_; } else { return versioningBuilder_.getMessage(); } } /** - * - * *
      * The bucket's versioning config.
      * 
@@ -24159,15 +21849,14 @@ public Builder setVersioning(com.google.storage.v2.Bucket.Versioning value) { return this; } /** - * - * *
      * The bucket's versioning config.
      * 
* * .google.storage.v2.Bucket.Versioning versioning = 17; */ - public Builder setVersioning(com.google.storage.v2.Bucket.Versioning.Builder builderForValue) { + public Builder setVersioning( + com.google.storage.v2.Bucket.Versioning.Builder builderForValue) { if (versioningBuilder_ == null) { versioning_ = builderForValue.build(); } else { @@ -24178,8 +21867,6 @@ public Builder setVersioning(com.google.storage.v2.Bucket.Versioning.Builder bui return this; } /** - * - * *
      * The bucket's versioning config.
      * 
@@ -24188,9 +21875,9 @@ public Builder setVersioning(com.google.storage.v2.Bucket.Versioning.Builder bui */ public Builder mergeVersioning(com.google.storage.v2.Bucket.Versioning value) { if (versioningBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && versioning_ != null - && versioning_ != com.google.storage.v2.Bucket.Versioning.getDefaultInstance()) { + if (((bitField0_ & 0x00040000) != 0) && + versioning_ != null && + versioning_ != com.google.storage.v2.Bucket.Versioning.getDefaultInstance()) { getVersioningBuilder().mergeFrom(value); } else { versioning_ = value; @@ -24198,13 +21885,13 @@ public Builder mergeVersioning(com.google.storage.v2.Bucket.Versioning value) { } else { versioningBuilder_.mergeFrom(value); } - bitField0_ |= 0x00040000; - onChanged(); + if (versioning_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } return this; } /** - * - * *
      * The bucket's versioning config.
      * 
@@ -24222,8 +21909,6 @@ public Builder clearVersioning() { return this; } /** - * - * *
      * The bucket's versioning config.
      * 
@@ -24236,8 +21921,6 @@ public com.google.storage.v2.Bucket.Versioning.Builder getVersioningBuilder() { return getVersioningFieldBuilder().getBuilder(); } /** - * - * *
      * The bucket's versioning config.
      * 
@@ -24248,14 +21931,11 @@ public com.google.storage.v2.Bucket.VersioningOrBuilder getVersioningOrBuilder() if (versioningBuilder_ != null) { return versioningBuilder_.getMessageOrBuilder(); } else { - return versioning_ == null - ? com.google.storage.v2.Bucket.Versioning.getDefaultInstance() - : versioning_; + return versioning_ == null ? + com.google.storage.v2.Bucket.Versioning.getDefaultInstance() : versioning_; } } /** - * - * *
      * The bucket's versioning config.
      * 
@@ -24263,17 +21943,14 @@ public com.google.storage.v2.Bucket.VersioningOrBuilder getVersioningOrBuilder() * .google.storage.v2.Bucket.Versioning versioning = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Versioning, - com.google.storage.v2.Bucket.Versioning.Builder, - com.google.storage.v2.Bucket.VersioningOrBuilder> + com.google.storage.v2.Bucket.Versioning, com.google.storage.v2.Bucket.Versioning.Builder, com.google.storage.v2.Bucket.VersioningOrBuilder> getVersioningFieldBuilder() { if (versioningBuilder_ == null) { - versioningBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Versioning, - com.google.storage.v2.Bucket.Versioning.Builder, - com.google.storage.v2.Bucket.VersioningOrBuilder>( - getVersioning(), getParentForChildren(), isClean()); + versioningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.Versioning, com.google.storage.v2.Bucket.Versioning.Builder, com.google.storage.v2.Bucket.VersioningOrBuilder>( + getVersioning(), + getParentForChildren(), + isClean()); versioning_ = null; } return versioningBuilder_; @@ -24281,49 +21958,36 @@ public com.google.storage.v2.Bucket.VersioningOrBuilder getVersioningOrBuilder() private com.google.storage.v2.Bucket.Logging logging_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Logging, - com.google.storage.v2.Bucket.Logging.Builder, - com.google.storage.v2.Bucket.LoggingOrBuilder> - loggingBuilder_; + com.google.storage.v2.Bucket.Logging, com.google.storage.v2.Bucket.Logging.Builder, com.google.storage.v2.Bucket.LoggingOrBuilder> loggingBuilder_; /** - * - * *
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
      * 
* * .google.storage.v2.Bucket.Logging logging = 18; - * * @return Whether the logging field is set. */ public boolean hasLogging() { return ((bitField0_ & 0x00080000) != 0); } /** - * - * *
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
      * 
* * .google.storage.v2.Bucket.Logging logging = 18; - * * @return The logging. */ public com.google.storage.v2.Bucket.Logging getLogging() { if (loggingBuilder_ == null) { - return logging_ == null - ? com.google.storage.v2.Bucket.Logging.getDefaultInstance() - : logging_; + return logging_ == null ? com.google.storage.v2.Bucket.Logging.getDefaultInstance() : logging_; } else { return loggingBuilder_.getMessage(); } } /** - * - * *
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
@@ -24345,8 +22009,6 @@ public Builder setLogging(com.google.storage.v2.Bucket.Logging value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
@@ -24354,7 +22016,8 @@ public Builder setLogging(com.google.storage.v2.Bucket.Logging value) {
      *
      * .google.storage.v2.Bucket.Logging logging = 18;
      */
-    public Builder setLogging(com.google.storage.v2.Bucket.Logging.Builder builderForValue) {
+    public Builder setLogging(
+        com.google.storage.v2.Bucket.Logging.Builder builderForValue) {
       if (loggingBuilder_ == null) {
         logging_ = builderForValue.build();
       } else {
@@ -24365,8 +22028,6 @@ public Builder setLogging(com.google.storage.v2.Bucket.Logging.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
@@ -24376,9 +22037,9 @@ public Builder setLogging(com.google.storage.v2.Bucket.Logging.Builder builderFo
      */
     public Builder mergeLogging(com.google.storage.v2.Bucket.Logging value) {
       if (loggingBuilder_ == null) {
-        if (((bitField0_ & 0x00080000) != 0)
-            && logging_ != null
-            && logging_ != com.google.storage.v2.Bucket.Logging.getDefaultInstance()) {
+        if (((bitField0_ & 0x00080000) != 0) &&
+          logging_ != null &&
+          logging_ != com.google.storage.v2.Bucket.Logging.getDefaultInstance()) {
           getLoggingBuilder().mergeFrom(value);
         } else {
           logging_ = value;
@@ -24386,13 +22047,13 @@ public Builder mergeLogging(com.google.storage.v2.Bucket.Logging value) {
       } else {
         loggingBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00080000;
-      onChanged();
+      if (logging_ != null) {
+        bitField0_ |= 0x00080000;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
@@ -24411,8 +22072,6 @@ public Builder clearLogging() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
@@ -24425,9 +22084,7 @@ public com.google.storage.v2.Bucket.Logging.Builder getLoggingBuilder() {
       onChanged();
       return getLoggingFieldBuilder().getBuilder();
     }
-    /**
-     *
-     *
+    /**
      * 
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
@@ -24439,14 +22096,11 @@ public com.google.storage.v2.Bucket.LoggingOrBuilder getLoggingOrBuilder() {
       if (loggingBuilder_ != null) {
         return loggingBuilder_.getMessageOrBuilder();
       } else {
-        return logging_ == null
-            ? com.google.storage.v2.Bucket.Logging.getDefaultInstance()
-            : logging_;
+        return logging_ == null ?
+            com.google.storage.v2.Bucket.Logging.getDefaultInstance() : logging_;
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
@@ -24455,17 +22109,14 @@ public com.google.storage.v2.Bucket.LoggingOrBuilder getLoggingOrBuilder() {
      * .google.storage.v2.Bucket.Logging logging = 18;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket.Logging,
-            com.google.storage.v2.Bucket.Logging.Builder,
-            com.google.storage.v2.Bucket.LoggingOrBuilder>
+        com.google.storage.v2.Bucket.Logging, com.google.storage.v2.Bucket.Logging.Builder, com.google.storage.v2.Bucket.LoggingOrBuilder> 
         getLoggingFieldBuilder() {
       if (loggingBuilder_ == null) {
-        loggingBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Bucket.Logging,
-                com.google.storage.v2.Bucket.Logging.Builder,
-                com.google.storage.v2.Bucket.LoggingOrBuilder>(
-                getLogging(), getParentForChildren(), isClean());
+        loggingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Bucket.Logging, com.google.storage.v2.Bucket.Logging.Builder, com.google.storage.v2.Bucket.LoggingOrBuilder>(
+                getLogging(),
+                getParentForChildren(),
+                isClean());
         logging_ = null;
       }
       return loggingBuilder_;
@@ -24473,37 +22124,26 @@ public com.google.storage.v2.Bucket.LoggingOrBuilder getLoggingOrBuilder() {
 
     private com.google.storage.v2.Owner owner_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Owner,
-            com.google.storage.v2.Owner.Builder,
-            com.google.storage.v2.OwnerOrBuilder>
-        ownerBuilder_;
+        com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder> ownerBuilder_;
     /**
-     *
-     *
      * 
      * Output only. The owner of the bucket. This is always the project team's
      * owner group.
      * 
* - * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the owner field is set. */ public boolean hasOwner() { return ((bitField0_ & 0x00100000) != 0); } /** - * - * *
      * Output only. The owner of the bucket. This is always the project team's
      * owner group.
      * 
* - * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The owner. */ public com.google.storage.v2.Owner getOwner() { @@ -24514,15 +22154,12 @@ public com.google.storage.v2.Owner getOwner() { } } /** - * - * *
      * Output only. The owner of the bucket. This is always the project team's
      * owner group.
      * 
* - * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOwner(com.google.storage.v2.Owner value) { if (ownerBuilder_ == null) { @@ -24538,17 +22175,15 @@ public Builder setOwner(com.google.storage.v2.Owner value) { return this; } /** - * - * *
      * Output only. The owner of the bucket. This is always the project team's
      * owner group.
      * 
* - * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setOwner(com.google.storage.v2.Owner.Builder builderForValue) { + public Builder setOwner( + com.google.storage.v2.Owner.Builder builderForValue) { if (ownerBuilder_ == null) { owner_ = builderForValue.build(); } else { @@ -24559,21 +22194,18 @@ public Builder setOwner(com.google.storage.v2.Owner.Builder builderForValue) { return this; } /** - * - * *
      * Output only. The owner of the bucket. This is always the project team's
      * owner group.
      * 
* - * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeOwner(com.google.storage.v2.Owner value) { if (ownerBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && owner_ != null - && owner_ != com.google.storage.v2.Owner.getDefaultInstance()) { + if (((bitField0_ & 0x00100000) != 0) && + owner_ != null && + owner_ != com.google.storage.v2.Owner.getDefaultInstance()) { getOwnerBuilder().mergeFrom(value); } else { owner_ = value; @@ -24581,20 +22213,19 @@ public Builder mergeOwner(com.google.storage.v2.Owner value) { } else { ownerBuilder_.mergeFrom(value); } - bitField0_ |= 0x00100000; - onChanged(); + if (owner_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } return this; } /** - * - * *
      * Output only. The owner of the bucket. This is always the project team's
      * owner group.
      * 
* - * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00100000); @@ -24607,15 +22238,12 @@ public Builder clearOwner() { return this; } /** - * - * *
      * Output only. The owner of the bucket. This is always the project team's
      * owner group.
      * 
* - * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.storage.v2.Owner.Builder getOwnerBuilder() { bitField0_ |= 0x00100000; @@ -24623,46 +22251,38 @@ public com.google.storage.v2.Owner.Builder getOwnerBuilder() { return getOwnerFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The owner of the bucket. This is always the project team's
      * owner group.
      * 
* - * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder() { if (ownerBuilder_ != null) { return ownerBuilder_.getMessageOrBuilder(); } else { - return owner_ == null ? com.google.storage.v2.Owner.getDefaultInstance() : owner_; + return owner_ == null ? + com.google.storage.v2.Owner.getDefaultInstance() : owner_; } } /** - * - * *
      * Output only. The owner of the bucket. This is always the project team's
      * owner group.
      * 
* - * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Owner, - com.google.storage.v2.Owner.Builder, - com.google.storage.v2.OwnerOrBuilder> + com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder> getOwnerFieldBuilder() { if (ownerBuilder_ == null) { - ownerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Owner, - com.google.storage.v2.Owner.Builder, - com.google.storage.v2.OwnerOrBuilder>( - getOwner(), getParentForChildren(), isClean()); + ownerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder>( + getOwner(), + getParentForChildren(), + isClean()); owner_ = null; } return ownerBuilder_; @@ -24670,47 +22290,34 @@ public com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder() { private com.google.storage.v2.Bucket.Encryption encryption_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Encryption, - com.google.storage.v2.Bucket.Encryption.Builder, - com.google.storage.v2.Bucket.EncryptionOrBuilder> - encryptionBuilder_; + com.google.storage.v2.Bucket.Encryption, com.google.storage.v2.Bucket.Encryption.Builder, com.google.storage.v2.Bucket.EncryptionOrBuilder> encryptionBuilder_; /** - * - * *
      * Encryption config for a bucket.
      * 
* * .google.storage.v2.Bucket.Encryption encryption = 20; - * * @return Whether the encryption field is set. */ public boolean hasEncryption() { return ((bitField0_ & 0x00200000) != 0); } /** - * - * *
      * Encryption config for a bucket.
      * 
* * .google.storage.v2.Bucket.Encryption encryption = 20; - * * @return The encryption. */ public com.google.storage.v2.Bucket.Encryption getEncryption() { if (encryptionBuilder_ == null) { - return encryption_ == null - ? com.google.storage.v2.Bucket.Encryption.getDefaultInstance() - : encryption_; + return encryption_ == null ? com.google.storage.v2.Bucket.Encryption.getDefaultInstance() : encryption_; } else { return encryptionBuilder_.getMessage(); } } /** - * - * *
      * Encryption config for a bucket.
      * 
@@ -24731,15 +22338,14 @@ public Builder setEncryption(com.google.storage.v2.Bucket.Encryption value) { return this; } /** - * - * *
      * Encryption config for a bucket.
      * 
* * .google.storage.v2.Bucket.Encryption encryption = 20; */ - public Builder setEncryption(com.google.storage.v2.Bucket.Encryption.Builder builderForValue) { + public Builder setEncryption( + com.google.storage.v2.Bucket.Encryption.Builder builderForValue) { if (encryptionBuilder_ == null) { encryption_ = builderForValue.build(); } else { @@ -24750,8 +22356,6 @@ public Builder setEncryption(com.google.storage.v2.Bucket.Encryption.Builder bui return this; } /** - * - * *
      * Encryption config for a bucket.
      * 
@@ -24760,9 +22364,9 @@ public Builder setEncryption(com.google.storage.v2.Bucket.Encryption.Builder bui */ public Builder mergeEncryption(com.google.storage.v2.Bucket.Encryption value) { if (encryptionBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && encryption_ != null - && encryption_ != com.google.storage.v2.Bucket.Encryption.getDefaultInstance()) { + if (((bitField0_ & 0x00200000) != 0) && + encryption_ != null && + encryption_ != com.google.storage.v2.Bucket.Encryption.getDefaultInstance()) { getEncryptionBuilder().mergeFrom(value); } else { encryption_ = value; @@ -24770,13 +22374,13 @@ public Builder mergeEncryption(com.google.storage.v2.Bucket.Encryption value) { } else { encryptionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00200000; - onChanged(); + if (encryption_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } return this; } /** - * - * *
      * Encryption config for a bucket.
      * 
@@ -24794,8 +22398,6 @@ public Builder clearEncryption() { return this; } /** - * - * *
      * Encryption config for a bucket.
      * 
@@ -24808,8 +22410,6 @@ public com.google.storage.v2.Bucket.Encryption.Builder getEncryptionBuilder() { return getEncryptionFieldBuilder().getBuilder(); } /** - * - * *
      * Encryption config for a bucket.
      * 
@@ -24820,14 +22420,11 @@ public com.google.storage.v2.Bucket.EncryptionOrBuilder getEncryptionOrBuilder() if (encryptionBuilder_ != null) { return encryptionBuilder_.getMessageOrBuilder(); } else { - return encryption_ == null - ? com.google.storage.v2.Bucket.Encryption.getDefaultInstance() - : encryption_; + return encryption_ == null ? + com.google.storage.v2.Bucket.Encryption.getDefaultInstance() : encryption_; } } /** - * - * *
      * Encryption config for a bucket.
      * 
@@ -24835,17 +22432,14 @@ public com.google.storage.v2.Bucket.EncryptionOrBuilder getEncryptionOrBuilder() * .google.storage.v2.Bucket.Encryption encryption = 20; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Encryption, - com.google.storage.v2.Bucket.Encryption.Builder, - com.google.storage.v2.Bucket.EncryptionOrBuilder> + com.google.storage.v2.Bucket.Encryption, com.google.storage.v2.Bucket.Encryption.Builder, com.google.storage.v2.Bucket.EncryptionOrBuilder> getEncryptionFieldBuilder() { if (encryptionBuilder_ == null) { - encryptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Encryption, - com.google.storage.v2.Bucket.Encryption.Builder, - com.google.storage.v2.Bucket.EncryptionOrBuilder>( - getEncryption(), getParentForChildren(), isClean()); + encryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.Encryption, com.google.storage.v2.Bucket.Encryption.Builder, com.google.storage.v2.Bucket.EncryptionOrBuilder>( + getEncryption(), + getParentForChildren(), + isClean()); encryption_ = null; } return encryptionBuilder_; @@ -24853,47 +22447,34 @@ public com.google.storage.v2.Bucket.EncryptionOrBuilder getEncryptionOrBuilder() private com.google.storage.v2.Bucket.Billing billing_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Billing, - com.google.storage.v2.Bucket.Billing.Builder, - com.google.storage.v2.Bucket.BillingOrBuilder> - billingBuilder_; + com.google.storage.v2.Bucket.Billing, com.google.storage.v2.Bucket.Billing.Builder, com.google.storage.v2.Bucket.BillingOrBuilder> billingBuilder_; /** - * - * *
      * The bucket's billing config.
      * 
* * .google.storage.v2.Bucket.Billing billing = 21; - * * @return Whether the billing field is set. */ public boolean hasBilling() { return ((bitField0_ & 0x00400000) != 0); } /** - * - * *
      * The bucket's billing config.
      * 
* * .google.storage.v2.Bucket.Billing billing = 21; - * * @return The billing. */ public com.google.storage.v2.Bucket.Billing getBilling() { if (billingBuilder_ == null) { - return billing_ == null - ? com.google.storage.v2.Bucket.Billing.getDefaultInstance() - : billing_; + return billing_ == null ? com.google.storage.v2.Bucket.Billing.getDefaultInstance() : billing_; } else { return billingBuilder_.getMessage(); } } /** - * - * *
      * The bucket's billing config.
      * 
@@ -24914,15 +22495,14 @@ public Builder setBilling(com.google.storage.v2.Bucket.Billing value) { return this; } /** - * - * *
      * The bucket's billing config.
      * 
* * .google.storage.v2.Bucket.Billing billing = 21; */ - public Builder setBilling(com.google.storage.v2.Bucket.Billing.Builder builderForValue) { + public Builder setBilling( + com.google.storage.v2.Bucket.Billing.Builder builderForValue) { if (billingBuilder_ == null) { billing_ = builderForValue.build(); } else { @@ -24933,8 +22513,6 @@ public Builder setBilling(com.google.storage.v2.Bucket.Billing.Builder builderFo return this; } /** - * - * *
      * The bucket's billing config.
      * 
@@ -24943,9 +22521,9 @@ public Builder setBilling(com.google.storage.v2.Bucket.Billing.Builder builderFo */ public Builder mergeBilling(com.google.storage.v2.Bucket.Billing value) { if (billingBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) - && billing_ != null - && billing_ != com.google.storage.v2.Bucket.Billing.getDefaultInstance()) { + if (((bitField0_ & 0x00400000) != 0) && + billing_ != null && + billing_ != com.google.storage.v2.Bucket.Billing.getDefaultInstance()) { getBillingBuilder().mergeFrom(value); } else { billing_ = value; @@ -24953,13 +22531,13 @@ public Builder mergeBilling(com.google.storage.v2.Bucket.Billing value) { } else { billingBuilder_.mergeFrom(value); } - bitField0_ |= 0x00400000; - onChanged(); + if (billing_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } return this; } /** - * - * *
      * The bucket's billing config.
      * 
@@ -24977,8 +22555,6 @@ public Builder clearBilling() { return this; } /** - * - * *
      * The bucket's billing config.
      * 
@@ -24991,8 +22567,6 @@ public com.google.storage.v2.Bucket.Billing.Builder getBillingBuilder() { return getBillingFieldBuilder().getBuilder(); } /** - * - * *
      * The bucket's billing config.
      * 
@@ -25003,14 +22577,11 @@ public com.google.storage.v2.Bucket.BillingOrBuilder getBillingOrBuilder() { if (billingBuilder_ != null) { return billingBuilder_.getMessageOrBuilder(); } else { - return billing_ == null - ? com.google.storage.v2.Bucket.Billing.getDefaultInstance() - : billing_; + return billing_ == null ? + com.google.storage.v2.Bucket.Billing.getDefaultInstance() : billing_; } } /** - * - * *
      * The bucket's billing config.
      * 
@@ -25018,17 +22589,14 @@ public com.google.storage.v2.Bucket.BillingOrBuilder getBillingOrBuilder() { * .google.storage.v2.Bucket.Billing billing = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Billing, - com.google.storage.v2.Bucket.Billing.Builder, - com.google.storage.v2.Bucket.BillingOrBuilder> + com.google.storage.v2.Bucket.Billing, com.google.storage.v2.Bucket.Billing.Builder, com.google.storage.v2.Bucket.BillingOrBuilder> getBillingFieldBuilder() { if (billingBuilder_ == null) { - billingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Billing, - com.google.storage.v2.Bucket.Billing.Builder, - com.google.storage.v2.Bucket.BillingOrBuilder>( - getBilling(), getParentForChildren(), isClean()); + billingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.Billing, com.google.storage.v2.Bucket.Billing.Builder, com.google.storage.v2.Bucket.BillingOrBuilder>( + getBilling(), + getParentForChildren(), + isClean()); billing_ = null; } return billingBuilder_; @@ -25036,13 +22604,8 @@ public com.google.storage.v2.Bucket.BillingOrBuilder getBillingOrBuilder() { private com.google.storage.v2.Bucket.RetentionPolicy retentionPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.RetentionPolicy, - com.google.storage.v2.Bucket.RetentionPolicy.Builder, - com.google.storage.v2.Bucket.RetentionPolicyOrBuilder> - retentionPolicyBuilder_; + com.google.storage.v2.Bucket.RetentionPolicy, com.google.storage.v2.Bucket.RetentionPolicy.Builder, com.google.storage.v2.Bucket.RetentionPolicyOrBuilder> retentionPolicyBuilder_; /** - * - * *
      * The bucket's retention policy. The retention policy enforces a minimum
      * retention time for all objects contained in the bucket, based on their
@@ -25056,15 +22619,12 @@ public com.google.storage.v2.Bucket.BillingOrBuilder getBillingOrBuilder() {
      * 
* * .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22; - * * @return Whether the retentionPolicy field is set. */ public boolean hasRetentionPolicy() { return ((bitField0_ & 0x00800000) != 0); } /** - * - * *
      * The bucket's retention policy. The retention policy enforces a minimum
      * retention time for all objects contained in the bucket, based on their
@@ -25078,21 +22638,16 @@ public boolean hasRetentionPolicy() {
      * 
* * .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22; - * * @return The retentionPolicy. */ public com.google.storage.v2.Bucket.RetentionPolicy getRetentionPolicy() { if (retentionPolicyBuilder_ == null) { - return retentionPolicy_ == null - ? com.google.storage.v2.Bucket.RetentionPolicy.getDefaultInstance() - : retentionPolicy_; + return retentionPolicy_ == null ? com.google.storage.v2.Bucket.RetentionPolicy.getDefaultInstance() : retentionPolicy_; } else { return retentionPolicyBuilder_.getMessage(); } } /** - * - * *
      * The bucket's retention policy. The retention policy enforces a minimum
      * retention time for all objects contained in the bucket, based on their
@@ -25121,8 +22676,6 @@ public Builder setRetentionPolicy(com.google.storage.v2.Bucket.RetentionPolicy v
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's retention policy. The retention policy enforces a minimum
      * retention time for all objects contained in the bucket, based on their
@@ -25149,8 +22702,6 @@ public Builder setRetentionPolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's retention policy. The retention policy enforces a minimum
      * retention time for all objects contained in the bucket, based on their
@@ -25167,10 +22718,9 @@ public Builder setRetentionPolicy(
      */
     public Builder mergeRetentionPolicy(com.google.storage.v2.Bucket.RetentionPolicy value) {
       if (retentionPolicyBuilder_ == null) {
-        if (((bitField0_ & 0x00800000) != 0)
-            && retentionPolicy_ != null
-            && retentionPolicy_
-                != com.google.storage.v2.Bucket.RetentionPolicy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00800000) != 0) &&
+          retentionPolicy_ != null &&
+          retentionPolicy_ != com.google.storage.v2.Bucket.RetentionPolicy.getDefaultInstance()) {
           getRetentionPolicyBuilder().mergeFrom(value);
         } else {
           retentionPolicy_ = value;
@@ -25178,13 +22728,13 @@ public Builder mergeRetentionPolicy(com.google.storage.v2.Bucket.RetentionPolicy
       } else {
         retentionPolicyBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00800000;
-      onChanged();
+      if (retentionPolicy_ != null) {
+        bitField0_ |= 0x00800000;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's retention policy. The retention policy enforces a minimum
      * retention time for all objects contained in the bucket, based on their
@@ -25210,8 +22760,6 @@ public Builder clearRetentionPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's retention policy. The retention policy enforces a minimum
      * retention time for all objects contained in the bucket, based on their
@@ -25232,8 +22780,6 @@ public com.google.storage.v2.Bucket.RetentionPolicy.Builder getRetentionPolicyBu
       return getRetentionPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bucket's retention policy. The retention policy enforces a minimum
      * retention time for all objects contained in the bucket, based on their
@@ -25252,14 +22798,11 @@ public com.google.storage.v2.Bucket.RetentionPolicyOrBuilder getRetentionPolicyO
       if (retentionPolicyBuilder_ != null) {
         return retentionPolicyBuilder_.getMessageOrBuilder();
       } else {
-        return retentionPolicy_ == null
-            ? com.google.storage.v2.Bucket.RetentionPolicy.getDefaultInstance()
-            : retentionPolicy_;
+        return retentionPolicy_ == null ?
+            com.google.storage.v2.Bucket.RetentionPolicy.getDefaultInstance() : retentionPolicy_;
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's retention policy. The retention policy enforces a minimum
      * retention time for all objects contained in the bucket, based on their
@@ -25275,17 +22818,14 @@ public com.google.storage.v2.Bucket.RetentionPolicyOrBuilder getRetentionPolicyO
      * .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket.RetentionPolicy,
-            com.google.storage.v2.Bucket.RetentionPolicy.Builder,
-            com.google.storage.v2.Bucket.RetentionPolicyOrBuilder>
+        com.google.storage.v2.Bucket.RetentionPolicy, com.google.storage.v2.Bucket.RetentionPolicy.Builder, com.google.storage.v2.Bucket.RetentionPolicyOrBuilder> 
         getRetentionPolicyFieldBuilder() {
       if (retentionPolicyBuilder_ == null) {
-        retentionPolicyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Bucket.RetentionPolicy,
-                com.google.storage.v2.Bucket.RetentionPolicy.Builder,
-                com.google.storage.v2.Bucket.RetentionPolicyOrBuilder>(
-                getRetentionPolicy(), getParentForChildren(), isClean());
+        retentionPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Bucket.RetentionPolicy, com.google.storage.v2.Bucket.RetentionPolicy.Builder, com.google.storage.v2.Bucket.RetentionPolicyOrBuilder>(
+                getRetentionPolicy(),
+                getParentForChildren(),
+                isClean());
         retentionPolicy_ = null;
       }
       return retentionPolicyBuilder_;
@@ -25293,47 +22833,34 @@ public com.google.storage.v2.Bucket.RetentionPolicyOrBuilder getRetentionPolicyO
 
     private com.google.storage.v2.Bucket.IamConfig iamConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket.IamConfig,
-            com.google.storage.v2.Bucket.IamConfig.Builder,
-            com.google.storage.v2.Bucket.IamConfigOrBuilder>
-        iamConfigBuilder_;
+        com.google.storage.v2.Bucket.IamConfig, com.google.storage.v2.Bucket.IamConfig.Builder, com.google.storage.v2.Bucket.IamConfigOrBuilder> iamConfigBuilder_;
     /**
-     *
-     *
      * 
      * The bucket's IAM config.
      * 
* * .google.storage.v2.Bucket.IamConfig iam_config = 23; - * * @return Whether the iamConfig field is set. */ public boolean hasIamConfig() { return ((bitField0_ & 0x01000000) != 0); } /** - * - * *
      * The bucket's IAM config.
      * 
* * .google.storage.v2.Bucket.IamConfig iam_config = 23; - * * @return The iamConfig. */ public com.google.storage.v2.Bucket.IamConfig getIamConfig() { if (iamConfigBuilder_ == null) { - return iamConfig_ == null - ? com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() - : iamConfig_; + return iamConfig_ == null ? com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() : iamConfig_; } else { return iamConfigBuilder_.getMessage(); } } /** - * - * *
      * The bucket's IAM config.
      * 
@@ -25354,15 +22881,14 @@ public Builder setIamConfig(com.google.storage.v2.Bucket.IamConfig value) { return this; } /** - * - * *
      * The bucket's IAM config.
      * 
* * .google.storage.v2.Bucket.IamConfig iam_config = 23; */ - public Builder setIamConfig(com.google.storage.v2.Bucket.IamConfig.Builder builderForValue) { + public Builder setIamConfig( + com.google.storage.v2.Bucket.IamConfig.Builder builderForValue) { if (iamConfigBuilder_ == null) { iamConfig_ = builderForValue.build(); } else { @@ -25373,8 +22899,6 @@ public Builder setIamConfig(com.google.storage.v2.Bucket.IamConfig.Builder build return this; } /** - * - * *
      * The bucket's IAM config.
      * 
@@ -25383,9 +22907,9 @@ public Builder setIamConfig(com.google.storage.v2.Bucket.IamConfig.Builder build */ public Builder mergeIamConfig(com.google.storage.v2.Bucket.IamConfig value) { if (iamConfigBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) - && iamConfig_ != null - && iamConfig_ != com.google.storage.v2.Bucket.IamConfig.getDefaultInstance()) { + if (((bitField0_ & 0x01000000) != 0) && + iamConfig_ != null && + iamConfig_ != com.google.storage.v2.Bucket.IamConfig.getDefaultInstance()) { getIamConfigBuilder().mergeFrom(value); } else { iamConfig_ = value; @@ -25393,13 +22917,13 @@ public Builder mergeIamConfig(com.google.storage.v2.Bucket.IamConfig value) { } else { iamConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x01000000; - onChanged(); + if (iamConfig_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } return this; } /** - * - * *
      * The bucket's IAM config.
      * 
@@ -25417,8 +22941,6 @@ public Builder clearIamConfig() { return this; } /** - * - * *
      * The bucket's IAM config.
      * 
@@ -25431,8 +22953,6 @@ public com.google.storage.v2.Bucket.IamConfig.Builder getIamConfigBuilder() { return getIamConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The bucket's IAM config.
      * 
@@ -25443,14 +22963,11 @@ public com.google.storage.v2.Bucket.IamConfigOrBuilder getIamConfigOrBuilder() { if (iamConfigBuilder_ != null) { return iamConfigBuilder_.getMessageOrBuilder(); } else { - return iamConfig_ == null - ? com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() - : iamConfig_; + return iamConfig_ == null ? + com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() : iamConfig_; } } /** - * - * *
      * The bucket's IAM config.
      * 
@@ -25458,32 +22975,26 @@ public com.google.storage.v2.Bucket.IamConfigOrBuilder getIamConfigOrBuilder() { * .google.storage.v2.Bucket.IamConfig iam_config = 23; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.IamConfig, - com.google.storage.v2.Bucket.IamConfig.Builder, - com.google.storage.v2.Bucket.IamConfigOrBuilder> + com.google.storage.v2.Bucket.IamConfig, com.google.storage.v2.Bucket.IamConfig.Builder, com.google.storage.v2.Bucket.IamConfigOrBuilder> getIamConfigFieldBuilder() { if (iamConfigBuilder_ == null) { - iamConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.IamConfig, - com.google.storage.v2.Bucket.IamConfig.Builder, - com.google.storage.v2.Bucket.IamConfigOrBuilder>( - getIamConfig(), getParentForChildren(), isClean()); + iamConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.IamConfig, com.google.storage.v2.Bucket.IamConfig.Builder, com.google.storage.v2.Bucket.IamConfigOrBuilder>( + getIamConfig(), + getParentForChildren(), + isClean()); iamConfig_ = null; } return iamConfigBuilder_; } - private boolean satisfiesPzs_; + private boolean satisfiesPzs_ ; /** - * - * *
      * Reserved for future use.
      * 
* * bool satisfies_pzs = 25; - * * @return The satisfiesPzs. */ @java.lang.Override @@ -25491,14 +23002,11 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } /** - * - * *
      * Reserved for future use.
      * 
* * bool satisfies_pzs = 25; - * * @param value The satisfiesPzs to set. * @return This builder for chaining. */ @@ -25510,14 +23018,11 @@ public Builder setSatisfiesPzs(boolean value) { return this; } /** - * - * *
      * Reserved for future use.
      * 
* * bool satisfies_pzs = 25; - * * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { @@ -25529,49 +23034,36 @@ public Builder clearSatisfiesPzs() { private com.google.storage.v2.Bucket.CustomPlacementConfig customPlacementConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.CustomPlacementConfig, - com.google.storage.v2.Bucket.CustomPlacementConfig.Builder, - com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder> - customPlacementConfigBuilder_; + com.google.storage.v2.Bucket.CustomPlacementConfig, com.google.storage.v2.Bucket.CustomPlacementConfig.Builder, com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder> customPlacementConfigBuilder_; /** - * - * *
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
      * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; - * * @return Whether the customPlacementConfig field is set. */ public boolean hasCustomPlacementConfig() { return ((bitField0_ & 0x04000000) != 0); } /** - * - * *
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
      * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; - * * @return The customPlacementConfig. */ public com.google.storage.v2.Bucket.CustomPlacementConfig getCustomPlacementConfig() { if (customPlacementConfigBuilder_ == null) { - return customPlacementConfig_ == null - ? com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance() - : customPlacementConfig_; + return customPlacementConfig_ == null ? com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; } else { return customPlacementConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -25579,8 +23071,7 @@ public com.google.storage.v2.Bucket.CustomPlacementConfig getCustomPlacementConf
      *
      * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
      */
-    public Builder setCustomPlacementConfig(
-        com.google.storage.v2.Bucket.CustomPlacementConfig value) {
+    public Builder setCustomPlacementConfig(com.google.storage.v2.Bucket.CustomPlacementConfig value) {
       if (customPlacementConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -25594,8 +23085,6 @@ public Builder setCustomPlacementConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -25615,8 +23104,6 @@ public Builder setCustomPlacementConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -25624,13 +23111,11 @@ public Builder setCustomPlacementConfig(
      *
      * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
      */
-    public Builder mergeCustomPlacementConfig(
-        com.google.storage.v2.Bucket.CustomPlacementConfig value) {
+    public Builder mergeCustomPlacementConfig(com.google.storage.v2.Bucket.CustomPlacementConfig value) {
       if (customPlacementConfigBuilder_ == null) {
-        if (((bitField0_ & 0x04000000) != 0)
-            && customPlacementConfig_ != null
-            && customPlacementConfig_
-                != com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x04000000) != 0) &&
+          customPlacementConfig_ != null &&
+          customPlacementConfig_ != com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance()) {
           getCustomPlacementConfigBuilder().mergeFrom(value);
         } else {
           customPlacementConfig_ = value;
@@ -25638,13 +23123,13 @@ public Builder mergeCustomPlacementConfig(
       } else {
         customPlacementConfigBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x04000000;
-      onChanged();
+      if (customPlacementConfig_ != null) {
+        bitField0_ |= 0x04000000;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -25663,8 +23148,6 @@ public Builder clearCustomPlacementConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -25672,15 +23155,12 @@ public Builder clearCustomPlacementConfig() {
      *
      * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
      */
-    public com.google.storage.v2.Bucket.CustomPlacementConfig.Builder
-        getCustomPlacementConfigBuilder() {
+    public com.google.storage.v2.Bucket.CustomPlacementConfig.Builder getCustomPlacementConfigBuilder() {
       bitField0_ |= 0x04000000;
       onChanged();
       return getCustomPlacementConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -25688,19 +23168,15 @@ public Builder clearCustomPlacementConfig() {
      *
      * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
      */
-    public com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder
-        getCustomPlacementConfigOrBuilder() {
+    public com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder() {
       if (customPlacementConfigBuilder_ != null) {
         return customPlacementConfigBuilder_.getMessageOrBuilder();
       } else {
-        return customPlacementConfig_ == null
-            ? com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance()
-            : customPlacementConfig_;
+        return customPlacementConfig_ == null ?
+            com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -25709,17 +23185,14 @@ public Builder clearCustomPlacementConfig() {
      * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket.CustomPlacementConfig,
-            com.google.storage.v2.Bucket.CustomPlacementConfig.Builder,
-            com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder>
+        com.google.storage.v2.Bucket.CustomPlacementConfig, com.google.storage.v2.Bucket.CustomPlacementConfig.Builder, com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder> 
         getCustomPlacementConfigFieldBuilder() {
       if (customPlacementConfigBuilder_ == null) {
-        customPlacementConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Bucket.CustomPlacementConfig,
-                com.google.storage.v2.Bucket.CustomPlacementConfig.Builder,
-                com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder>(
-                getCustomPlacementConfig(), getParentForChildren(), isClean());
+        customPlacementConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Bucket.CustomPlacementConfig, com.google.storage.v2.Bucket.CustomPlacementConfig.Builder, com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder>(
+                getCustomPlacementConfig(),
+                getParentForChildren(),
+                isClean());
         customPlacementConfig_ = null;
       }
       return customPlacementConfigBuilder_;
@@ -25727,49 +23200,36 @@ public Builder clearCustomPlacementConfig() {
 
     private com.google.storage.v2.Bucket.Autoclass autoclass_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket.Autoclass,
-            com.google.storage.v2.Bucket.Autoclass.Builder,
-            com.google.storage.v2.Bucket.AutoclassOrBuilder>
-        autoclassBuilder_;
+        com.google.storage.v2.Bucket.Autoclass, com.google.storage.v2.Bucket.Autoclass.Builder, com.google.storage.v2.Bucket.AutoclassOrBuilder> autoclassBuilder_;
     /**
-     *
-     *
      * 
      * The bucket's Autoclass configuration. If there is no configuration, the
      * Autoclass feature will be disabled and have no effect on the bucket.
      * 
* * .google.storage.v2.Bucket.Autoclass autoclass = 28; - * * @return Whether the autoclass field is set. */ public boolean hasAutoclass() { return ((bitField0_ & 0x08000000) != 0); } /** - * - * *
      * The bucket's Autoclass configuration. If there is no configuration, the
      * Autoclass feature will be disabled and have no effect on the bucket.
      * 
* * .google.storage.v2.Bucket.Autoclass autoclass = 28; - * * @return The autoclass. */ public com.google.storage.v2.Bucket.Autoclass getAutoclass() { if (autoclassBuilder_ == null) { - return autoclass_ == null - ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() - : autoclass_; + return autoclass_ == null ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() : autoclass_; } else { return autoclassBuilder_.getMessage(); } } /** - * - * *
      * The bucket's Autoclass configuration. If there is no configuration, the
      * Autoclass feature will be disabled and have no effect on the bucket.
@@ -25791,8 +23251,6 @@ public Builder setAutoclass(com.google.storage.v2.Bucket.Autoclass value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's Autoclass configuration. If there is no configuration, the
      * Autoclass feature will be disabled and have no effect on the bucket.
@@ -25800,7 +23258,8 @@ public Builder setAutoclass(com.google.storage.v2.Bucket.Autoclass value) {
      *
      * .google.storage.v2.Bucket.Autoclass autoclass = 28;
      */
-    public Builder setAutoclass(com.google.storage.v2.Bucket.Autoclass.Builder builderForValue) {
+    public Builder setAutoclass(
+        com.google.storage.v2.Bucket.Autoclass.Builder builderForValue) {
       if (autoclassBuilder_ == null) {
         autoclass_ = builderForValue.build();
       } else {
@@ -25811,8 +23270,6 @@ public Builder setAutoclass(com.google.storage.v2.Bucket.Autoclass.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's Autoclass configuration. If there is no configuration, the
      * Autoclass feature will be disabled and have no effect on the bucket.
@@ -25822,9 +23279,9 @@ public Builder setAutoclass(com.google.storage.v2.Bucket.Autoclass.Builder build
      */
     public Builder mergeAutoclass(com.google.storage.v2.Bucket.Autoclass value) {
       if (autoclassBuilder_ == null) {
-        if (((bitField0_ & 0x08000000) != 0)
-            && autoclass_ != null
-            && autoclass_ != com.google.storage.v2.Bucket.Autoclass.getDefaultInstance()) {
+        if (((bitField0_ & 0x08000000) != 0) &&
+          autoclass_ != null &&
+          autoclass_ != com.google.storage.v2.Bucket.Autoclass.getDefaultInstance()) {
           getAutoclassBuilder().mergeFrom(value);
         } else {
           autoclass_ = value;
@@ -25832,13 +23289,13 @@ public Builder mergeAutoclass(com.google.storage.v2.Bucket.Autoclass value) {
       } else {
         autoclassBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x08000000;
-      onChanged();
+      if (autoclass_ != null) {
+        bitField0_ |= 0x08000000;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's Autoclass configuration. If there is no configuration, the
      * Autoclass feature will be disabled and have no effect on the bucket.
@@ -25857,8 +23314,6 @@ public Builder clearAutoclass() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's Autoclass configuration. If there is no configuration, the
      * Autoclass feature will be disabled and have no effect on the bucket.
@@ -25872,8 +23327,6 @@ public com.google.storage.v2.Bucket.Autoclass.Builder getAutoclassBuilder() {
       return getAutoclassFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bucket's Autoclass configuration. If there is no configuration, the
      * Autoclass feature will be disabled and have no effect on the bucket.
@@ -25885,14 +23338,11 @@ public com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder() {
       if (autoclassBuilder_ != null) {
         return autoclassBuilder_.getMessageOrBuilder();
       } else {
-        return autoclass_ == null
-            ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance()
-            : autoclass_;
+        return autoclass_ == null ?
+            com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() : autoclass_;
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's Autoclass configuration. If there is no configuration, the
      * Autoclass feature will be disabled and have no effect on the bucket.
@@ -25901,17 +23351,14 @@ public com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder() {
      * .google.storage.v2.Bucket.Autoclass autoclass = 28;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket.Autoclass,
-            com.google.storage.v2.Bucket.Autoclass.Builder,
-            com.google.storage.v2.Bucket.AutoclassOrBuilder>
+        com.google.storage.v2.Bucket.Autoclass, com.google.storage.v2.Bucket.Autoclass.Builder, com.google.storage.v2.Bucket.AutoclassOrBuilder> 
         getAutoclassFieldBuilder() {
       if (autoclassBuilder_ == null) {
-        autoclassBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Bucket.Autoclass,
-                com.google.storage.v2.Bucket.Autoclass.Builder,
-                com.google.storage.v2.Bucket.AutoclassOrBuilder>(
-                getAutoclass(), getParentForChildren(), isClean());
+        autoclassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Bucket.Autoclass, com.google.storage.v2.Bucket.Autoclass.Builder, com.google.storage.v2.Bucket.AutoclassOrBuilder>(
+                getAutoclass(),
+                getParentForChildren(),
+                isClean());
         autoclass_ = null;
       }
       return autoclassBuilder_;
@@ -25919,61 +23366,42 @@ public com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder() {
 
     private com.google.storage.v2.Bucket.SoftDeletePolicy softDeletePolicy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket.SoftDeletePolicy,
-            com.google.storage.v2.Bucket.SoftDeletePolicy.Builder,
-            com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder>
-        softDeletePolicyBuilder_;
+        com.google.storage.v2.Bucket.SoftDeletePolicy, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder> softDeletePolicyBuilder_;
     /**
-     *
-     *
      * 
      * Optional. The bucket's soft delete policy. The soft delete policy prevents
      * soft-deleted objects from being permanently deleted.
      * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the softDeletePolicy field is set. */ public boolean hasSoftDeletePolicy() { return ((bitField0_ & 0x10000000) != 0); } /** - * - * *
      * Optional. The bucket's soft delete policy. The soft delete policy prevents
      * soft-deleted objects from being permanently deleted.
      * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return The softDeletePolicy. */ public com.google.storage.v2.Bucket.SoftDeletePolicy getSoftDeletePolicy() { if (softDeletePolicyBuilder_ == null) { - return softDeletePolicy_ == null - ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() - : softDeletePolicy_; + return softDeletePolicy_ == null ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; } else { return softDeletePolicyBuilder_.getMessage(); } } /** - * - * *
      * Optional. The bucket's soft delete policy. The soft delete policy prevents
      * soft-deleted objects from being permanently deleted.
      * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePolicy value) { if (softDeletePolicyBuilder_ == null) { @@ -25989,16 +23417,12 @@ public Builder setSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePolicy return this; } /** - * - * *
      * Optional. The bucket's soft delete policy. The soft delete policy prevents
      * soft-deleted objects from being permanently deleted.
      * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSoftDeletePolicy( com.google.storage.v2.Bucket.SoftDeletePolicy.Builder builderForValue) { @@ -26012,23 +23436,18 @@ public Builder setSoftDeletePolicy( return this; } /** - * - * *
      * Optional. The bucket's soft delete policy. The soft delete policy prevents
      * soft-deleted objects from being permanently deleted.
      * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePolicy value) { if (softDeletePolicyBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) - && softDeletePolicy_ != null - && softDeletePolicy_ - != com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) { + if (((bitField0_ & 0x10000000) != 0) && + softDeletePolicy_ != null && + softDeletePolicy_ != com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) { getSoftDeletePolicyBuilder().mergeFrom(value); } else { softDeletePolicy_ = value; @@ -26036,21 +23455,19 @@ public Builder mergeSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePoli } else { softDeletePolicyBuilder_.mergeFrom(value); } - bitField0_ |= 0x10000000; - onChanged(); + if (softDeletePolicy_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } return this; } /** - * - * *
      * Optional. The bucket's soft delete policy. The soft delete policy prevents
      * soft-deleted objects from being permanently deleted.
      * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSoftDeletePolicy() { bitField0_ = (bitField0_ & ~0x10000000); @@ -26063,16 +23480,12 @@ public Builder clearSoftDeletePolicy() { return this; } /** - * - * *
      * Optional. The bucket's soft delete policy. The soft delete policy prevents
      * soft-deleted objects from being permanently deleted.
      * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.storage.v2.Bucket.SoftDeletePolicy.Builder getSoftDeletePolicyBuilder() { bitField0_ |= 0x10000000; @@ -26080,57 +23493,45 @@ public com.google.storage.v2.Bucket.SoftDeletePolicy.Builder getSoftDeletePolicy return getSoftDeletePolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The bucket's soft delete policy. The soft delete policy prevents
      * soft-deleted objects from being permanently deleted.
      * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder getSoftDeletePolicyOrBuilder() { if (softDeletePolicyBuilder_ != null) { return softDeletePolicyBuilder_.getMessageOrBuilder(); } else { - return softDeletePolicy_ == null - ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() - : softDeletePolicy_; + return softDeletePolicy_ == null ? + com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; } } /** - * - * *
      * Optional. The bucket's soft delete policy. The soft delete policy prevents
      * soft-deleted objects from being permanently deleted.
      * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.SoftDeletePolicy, - com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, - com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder> + com.google.storage.v2.Bucket.SoftDeletePolicy, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder> getSoftDeletePolicyFieldBuilder() { if (softDeletePolicyBuilder_ == null) { - softDeletePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.SoftDeletePolicy, - com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, - com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder>( - getSoftDeletePolicy(), getParentForChildren(), isClean()); + softDeletePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.SoftDeletePolicy, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder>( + getSoftDeletePolicy(), + getParentForChildren(), + isClean()); softDeletePolicy_ = null; } return softDeletePolicyBuilder_; } - @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); } @@ -26140,12 +23541,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket) private static final com.google.storage.v2.Bucket DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket(); } @@ -26154,27 +23555,27 @@ public static com.google.storage.v2.Bucket getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Bucket parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Bucket parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -26189,4 +23590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java similarity index 74% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java index ebb4a5a1f2..3953d7889d 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * An access-control entry.
  * 
* * Protobuf type {@code google.storage.v2.BucketAccessControl} */ -public final class BucketAccessControl extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BucketAccessControl extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.BucketAccessControl) BucketAccessControlOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BucketAccessControl.newBuilder() to construct. private BucketAccessControl(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BucketAccessControl() { role_ = ""; id_ = ""; @@ -50,38 +33,34 @@ private BucketAccessControl() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BucketAccessControl(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BucketAccessControl_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BucketAccessControl_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BucketAccessControl.class, - com.google.storage.v2.BucketAccessControl.Builder.class); + com.google.storage.v2.BucketAccessControl.class, com.google.storage.v2.BucketAccessControl.Builder.class); } + private int bitField0_; public static final int ROLE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object role_ = ""; /** - * - * *
    * The access permission for the entity.
    * 
* * string role = 1; - * * @return The role. */ @java.lang.Override @@ -90,29 +69,29 @@ public java.lang.String getRole() { 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(); role_ = s; return s; } } /** - * - * *
    * The access permission for the entity.
    * 
* * string role = 1; - * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; 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); role_ = b; return b; } else { @@ -121,18 +100,14 @@ public com.google.protobuf.ByteString getRoleBytes() { } public static final int ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
    * The ID of the access-control entry.
    * 
* * string id = 2; - * * @return The id. */ @java.lang.Override @@ -141,29 +116,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** - * - * *
    * The ID of the access-control entry.
    * 
* * string id = 2; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -172,12 +147,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int ENTITY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** - * - * *
    * The entity holding the permission, in one of the following forms:
    * * `user-{userid}`
@@ -200,7 +172,6 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string entity = 3; - * * @return The entity. */ @java.lang.Override @@ -209,15 +180,14 @@ 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; } } /** - * - * *
    * The entity holding the permission, in one of the following forms:
    * * `user-{userid}`
@@ -240,15 +210,16 @@ public java.lang.String getEntity() {
    * 
* * string entity = 3; - * * @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 { @@ -257,19 +228,15 @@ public com.google.protobuf.ByteString getEntityBytes() { } public static final int ENTITY_ALT_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object entityAlt_ = ""; /** - * - * *
    * Output only. The alternative entity format, if exists. For project
    * entities, `project-{team}-{projectid}` format will be returned on response.
    * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ @java.lang.Override @@ -278,30 +245,30 @@ public java.lang.String getEntityAlt() { 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(); entityAlt_ = s; return s; } } /** - * - * *
    * Output only. The alternative entity format, if exists. For project
    * entities, `project-{team}-{projectid}` format will be returned on response.
    * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityAltBytes() { + public com.google.protobuf.ByteString + getEntityAltBytes() { java.lang.Object ref = entityAlt_; 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); entityAlt_ = b; return b; } else { @@ -310,18 +277,14 @@ public com.google.protobuf.ByteString getEntityAltBytes() { } public static final int ENTITY_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object entityId_ = ""; /** - * - * *
    * The ID for the entity, if any.
    * 
* * string entity_id = 4; - * * @return The entityId. */ @java.lang.Override @@ -330,29 +293,29 @@ public java.lang.String getEntityId() { 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(); entityId_ = s; return s; } } /** - * - * *
    * The ID for the entity, if any.
    * 
* * string entity_id = 4; - * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; 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); entityId_ = b; return b; } else { @@ -361,12 +324,9 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } public static final int ETAG_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * The etag of the BucketAccessControl.
    * If included in the metadata of an update or delete request message, the
@@ -375,7 +335,6 @@ public com.google.protobuf.ByteString getEntityIdBytes() {
    * 
* * string etag = 8; - * * @return The etag. */ @java.lang.Override @@ -384,15 +343,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * The etag of the BucketAccessControl.
    * If included in the metadata of an update or delete request message, the
@@ -401,15 +359,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 8; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -418,18 +377,14 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int EMAIL_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** - * - * *
    * The email address associated with the entity, if any.
    * 
* * string email = 5; - * * @return The email. */ @java.lang.Override @@ -438,29 +393,29 @@ public java.lang.String getEmail() { 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(); email_ = s; return s; } } /** - * - * *
    * The email address associated with the entity, if any.
    * 
* * string email = 5; - * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; 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); email_ = b; return b; } else { @@ -469,18 +424,14 @@ public com.google.protobuf.ByteString getEmailBytes() { } public static final int DOMAIN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object domain_ = ""; /** - * - * *
    * The domain associated with the entity, if any.
    * 
* * string domain = 6; - * * @return The domain. */ @java.lang.Override @@ -489,29 +440,29 @@ public java.lang.String getDomain() { 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(); domain_ = s; return s; } } /** - * - * *
    * The domain associated with the entity, if any.
    * 
* * string domain = 6; - * * @return The bytes for domain. */ @java.lang.Override - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; 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); domain_ = b; return b; } else { @@ -522,40 +473,30 @@ public com.google.protobuf.ByteString getDomainBytes() { public static final int PROJECT_TEAM_FIELD_NUMBER = 7; private com.google.storage.v2.ProjectTeam projectTeam_; /** - * - * *
    * The project team associated with the entity, if any.
    * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return Whether the projectTeam field is set. */ @java.lang.Override public boolean hasProjectTeam() { - return projectTeam_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The project team associated with the entity, if any.
    * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ @java.lang.Override public com.google.storage.v2.ProjectTeam getProjectTeam() { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } /** - * - * *
    * The project team associated with the entity, if any.
    * 
@@ -564,13 +505,10 @@ public com.google.storage.v2.ProjectTeam getProjectTeam() { */ @java.lang.Override public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -582,7 +520,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(role_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } @@ -601,7 +540,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, domain_); } - if (projectTeam_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getProjectTeam()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { @@ -637,8 +576,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_); } - if (projectTeam_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProjectTeam()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getProjectTeam()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); @@ -654,25 +594,33 @@ 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.storage.v2.BucketAccessControl)) { return super.equals(obj); } - com.google.storage.v2.BucketAccessControl other = - (com.google.storage.v2.BucketAccessControl) obj; - - if (!getRole().equals(other.getRole())) return false; - if (!getId().equals(other.getId())) return false; - if (!getEntity().equals(other.getEntity())) return false; - if (!getEntityAlt().equals(other.getEntityAlt())) return false; - if (!getEntityId().equals(other.getEntityId())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getEmail().equals(other.getEmail())) return false; - if (!getDomain().equals(other.getDomain())) return false; + com.google.storage.v2.BucketAccessControl other = (com.google.storage.v2.BucketAccessControl) obj; + + if (!getRole() + .equals(other.getRole())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getEntity() + .equals(other.getEntity())) return false; + if (!getEntityAlt() + .equals(other.getEntityAlt())) return false; + if (!getEntityId() + .equals(other.getEntityId())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; if (hasProjectTeam() != other.hasProjectTeam()) return false; if (hasProjectTeam()) { - if (!getProjectTeam().equals(other.getProjectTeam())) return false; + if (!getProjectTeam() + .equals(other.getProjectTeam())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -710,136 +658,138 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.BucketAccessControl parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.BucketAccessControl parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.BucketAccessControl 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.storage.v2.BucketAccessControl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.BucketAccessControl 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.storage.v2.BucketAccessControl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.BucketAccessControl 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.storage.v2.BucketAccessControl 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.storage.v2.BucketAccessControl 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.storage.v2.BucketAccessControl parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.BucketAccessControl parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.BucketAccessControl 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.storage.v2.BucketAccessControl 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.storage.v2.BucketAccessControl 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.storage.v2.BucketAccessControl 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; } /** - * - * *
    * An access-control entry.
    * 
* * Protobuf type {@code google.storage.v2.BucketAccessControl} */ - 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.storage.v2.BucketAccessControl) com.google.storage.v2.BucketAccessControlOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BucketAccessControl_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BucketAccessControl_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BucketAccessControl.class, - com.google.storage.v2.BucketAccessControl.Builder.class); + com.google.storage.v2.BucketAccessControl.class, com.google.storage.v2.BucketAccessControl.Builder.class); } // Construct using com.google.storage.v2.BucketAccessControl.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getProjectTeamFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -861,9 +811,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BucketAccessControl_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BucketAccessControl_descriptor; } @java.lang.Override @@ -882,11 +832,8 @@ public com.google.storage.v2.BucketAccessControl build() { @java.lang.Override public com.google.storage.v2.BucketAccessControl buildPartial() { - com.google.storage.v2.BucketAccessControl result = - new com.google.storage.v2.BucketAccessControl(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.BucketAccessControl result = new com.google.storage.v2.BucketAccessControl(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -917,49 +864,52 @@ private void buildPartial0(com.google.storage.v2.BucketAccessControl result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.domain_ = domain_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000100) != 0)) { - result.projectTeam_ = - projectTeamBuilder_ == null ? projectTeam_ : projectTeamBuilder_.build(); + result.projectTeam_ = projectTeamBuilder_ == null + ? projectTeam_ + : projectTeamBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.BucketAccessControl) { - return mergeFrom((com.google.storage.v2.BucketAccessControl) other); + return mergeFrom((com.google.storage.v2.BucketAccessControl)other); } else { super.mergeFrom(other); return this; @@ -1037,67 +987,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - role_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - entity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - entityId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - email_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 42 - case 50: - { - domain_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: - { - input.readMessage(getProjectTeamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 66: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 74: - { - entityAlt_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + entity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + entityId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: { + input.readMessage( + getProjectTeamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 66: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: { + entityAlt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 74 + 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) { @@ -1107,25 +1049,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object role_ = ""; /** - * - * *
      * The access permission for the entity.
      * 
* * string role = 1; - * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; 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(); role_ = s; return s; @@ -1134,21 +1073,20 @@ public java.lang.String getRole() { } } /** - * - * *
      * The access permission for the entity.
      * 
* * string role = 1; - * * @return The bytes for role. */ - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; 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); role_ = b; return b; } else { @@ -1156,35 +1094,28 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
      * The access permission for the entity.
      * 
* * string role = 1; - * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } role_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The access permission for the entity.
      * 
* * string role = 1; - * * @return This builder for chaining. */ public Builder clearRole() { @@ -1194,21 +1125,17 @@ public Builder clearRole() { return this; } /** - * - * *
      * The access permission for the entity.
      * 
* * string role = 1; - * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; bitField0_ |= 0x00000001; @@ -1218,20 +1145,18 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * The ID of the access-control entry.
      * 
* * string id = 2; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -1240,21 +1165,20 @@ public java.lang.String getId() { } } /** - * - * *
      * The ID of the access-control entry.
      * 
* * string id = 2; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -1262,35 +1186,28 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * The ID of the access-control entry.
      * 
* * string id = 2; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The ID of the access-control entry.
      * 
* * string id = 2; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1300,21 +1217,17 @@ public Builder clearId() { return this; } /** - * - * *
      * The ID of the access-control entry.
      * 
* * string id = 2; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000002; @@ -1324,8 +1237,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object entity_ = ""; /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1348,13 +1259,13 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string entity = 3; - * * @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; @@ -1363,8 +1274,6 @@ public java.lang.String getEntity() { } } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1387,14 +1296,15 @@ public java.lang.String getEntity() {
      * 
* * string entity = 3; - * * @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 { @@ -1402,8 +1312,6 @@ public com.google.protobuf.ByteString getEntityBytes() { } } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1426,22 +1334,18 @@ public com.google.protobuf.ByteString getEntityBytes() {
      * 
* * string entity = 3; - * * @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_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1464,7 +1368,6 @@ public Builder setEntity(java.lang.String value) {
      * 
* * string entity = 3; - * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1474,8 +1377,6 @@ public Builder clearEntity() { return this; } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1498,14 +1399,12 @@ public Builder clearEntity() {
      * 
* * string entity = 3; - * * @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_ |= 0x00000004; @@ -1515,21 +1414,19 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityAlt_ = ""; /** - * - * *
      * Output only. The alternative entity format, if exists. For project
      * entities, `project-{team}-{projectid}` format will be returned on response.
      * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ public java.lang.String getEntityAlt() { java.lang.Object ref = entityAlt_; 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(); entityAlt_ = s; return s; @@ -1538,22 +1435,21 @@ public java.lang.String getEntityAlt() { } } /** - * - * *
      * Output only. The alternative entity format, if exists. For project
      * entities, `project-{team}-{projectid}` format will be returned on response.
      * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ - public com.google.protobuf.ByteString getEntityAltBytes() { + public com.google.protobuf.ByteString + getEntityAltBytes() { java.lang.Object ref = entityAlt_; 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); entityAlt_ = b; return b; } else { @@ -1561,37 +1457,30 @@ public com.google.protobuf.ByteString getEntityAltBytes() { } } /** - * - * *
      * Output only. The alternative entity format, if exists. For project
      * entities, `project-{team}-{projectid}` format will be returned on response.
      * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The entityAlt to set. * @return This builder for chaining. */ - public Builder setEntityAlt(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityAlt( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entityAlt_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. The alternative entity format, if exists. For project
      * entities, `project-{team}-{projectid}` format will be returned on response.
      * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEntityAlt() { @@ -1601,22 +1490,18 @@ public Builder clearEntityAlt() { return this; } /** - * - * *
      * Output only. The alternative entity format, if exists. For project
      * entities, `project-{team}-{projectid}` format will be returned on response.
      * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for entityAlt to set. * @return This builder for chaining. */ - public Builder setEntityAltBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityAltBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityAlt_ = value; bitField0_ |= 0x00000008; @@ -1626,20 +1511,18 @@ public Builder setEntityAltBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityId_ = ""; /** - * - * *
      * The ID for the entity, if any.
      * 
* * string entity_id = 4; - * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; 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(); entityId_ = s; return s; @@ -1648,21 +1531,20 @@ public java.lang.String getEntityId() { } } /** - * - * *
      * The ID for the entity, if any.
      * 
* * string entity_id = 4; - * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; 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); entityId_ = b; return b; } else { @@ -1670,35 +1552,28 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } } /** - * - * *
      * The ID for the entity, if any.
      * 
* * string entity_id = 4; - * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entityId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The ID for the entity, if any.
      * 
* * string entity_id = 4; - * * @return This builder for chaining. */ public Builder clearEntityId() { @@ -1708,21 +1583,17 @@ public Builder clearEntityId() { return this; } /** - * - * *
      * The ID for the entity, if any.
      * 
* * string entity_id = 4; - * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityId_ = value; bitField0_ |= 0x00000010; @@ -1732,8 +1603,6 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * The etag of the BucketAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1742,13 +1611,13 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 8; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -1757,8 +1626,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * The etag of the BucketAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1767,14 +1634,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 8; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1782,8 +1650,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * The etag of the BucketAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1792,22 +1658,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 8; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The etag of the BucketAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1816,7 +1678,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 8; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1826,8 +1687,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * The etag of the BucketAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1836,14 +1695,12 @@ public Builder clearEtag() {
      * 
* * string etag = 8; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000020; @@ -1853,20 +1710,18 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private java.lang.Object email_ = ""; /** - * - * *
      * The email address associated with the entity, if any.
      * 
* * string email = 5; - * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; 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(); email_ = s; return s; @@ -1875,21 +1730,20 @@ public java.lang.String getEmail() { } } /** - * - * *
      * The email address associated with the entity, if any.
      * 
* * string email = 5; - * * @return The bytes for email. */ - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; 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); email_ = b; return b; } else { @@ -1897,35 +1751,28 @@ public com.google.protobuf.ByteString getEmailBytes() { } } /** - * - * *
      * The email address associated with the entity, if any.
      * 
* * string email = 5; - * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } email_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * The email address associated with the entity, if any.
      * 
* * string email = 5; - * * @return This builder for chaining. */ public Builder clearEmail() { @@ -1935,21 +1782,17 @@ public Builder clearEmail() { return this; } /** - * - * *
      * The email address associated with the entity, if any.
      * 
* * string email = 5; - * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000040; @@ -1959,20 +1802,18 @@ public Builder setEmailBytes(com.google.protobuf.ByteString value) { private java.lang.Object domain_ = ""; /** - * - * *
      * The domain associated with the entity, if any.
      * 
* * string domain = 6; - * * @return The domain. */ public java.lang.String getDomain() { java.lang.Object ref = domain_; 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(); domain_ = s; return s; @@ -1981,21 +1822,20 @@ public java.lang.String getDomain() { } } /** - * - * *
      * The domain associated with the entity, if any.
      * 
* * string domain = 6; - * * @return The bytes for domain. */ - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; 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); domain_ = b; return b; } else { @@ -2003,35 +1843,28 @@ public com.google.protobuf.ByteString getDomainBytes() { } } /** - * - * *
      * The domain associated with the entity, if any.
      * 
* * string domain = 6; - * * @param value The domain to set. * @return This builder for chaining. */ - public Builder setDomain(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDomain( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } domain_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * The domain associated with the entity, if any.
      * 
* * string domain = 6; - * * @return This builder for chaining. */ public Builder clearDomain() { @@ -2041,21 +1874,17 @@ public Builder clearDomain() { return this; } /** - * - * *
      * The domain associated with the entity, if any.
      * 
* * string domain = 6; - * * @param value The bytes for domain to set. * @return This builder for chaining. */ - public Builder setDomainBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); domain_ = value; bitField0_ |= 0x00000080; @@ -2065,47 +1894,34 @@ public Builder setDomainBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.ProjectTeam projectTeam_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder> - projectTeamBuilder_; + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder> projectTeamBuilder_; /** - * - * *
      * The project team associated with the entity, if any.
      * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return Whether the projectTeam field is set. */ public boolean hasProjectTeam() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * The project team associated with the entity, if any.
      * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ public com.google.storage.v2.ProjectTeam getProjectTeam() { if (projectTeamBuilder_ == null) { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } else { return projectTeamBuilder_.getMessage(); } } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2126,15 +1942,14 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
* * .google.storage.v2.ProjectTeam project_team = 7; */ - public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderForValue) { + public Builder setProjectTeam( + com.google.storage.v2.ProjectTeam.Builder builderForValue) { if (projectTeamBuilder_ == null) { projectTeam_ = builderForValue.build(); } else { @@ -2145,8 +1960,6 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderF return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2155,9 +1968,9 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderF */ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { if (projectTeamBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && projectTeam_ != null - && projectTeam_ != com.google.storage.v2.ProjectTeam.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + projectTeam_ != null && + projectTeam_ != com.google.storage.v2.ProjectTeam.getDefaultInstance()) { getProjectTeamBuilder().mergeFrom(value); } else { projectTeam_ = value; @@ -2165,13 +1978,13 @@ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { } else { projectTeamBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (projectTeam_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2189,8 +2002,6 @@ public Builder clearProjectTeam() { return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2203,8 +2014,6 @@ public com.google.storage.v2.ProjectTeam.Builder getProjectTeamBuilder() { return getProjectTeamFieldBuilder().getBuilder(); } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2215,14 +2024,11 @@ public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { if (projectTeamBuilder_ != null) { return projectTeamBuilder_.getMessageOrBuilder(); } else { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? + com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2230,24 +2036,21 @@ public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { * .google.storage.v2.ProjectTeam project_team = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder> + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder> getProjectTeamFieldBuilder() { if (projectTeamBuilder_ == null) { - projectTeamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder>( - getProjectTeam(), getParentForChildren(), isClean()); + projectTeamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder>( + getProjectTeam(), + getParentForChildren(), + isClean()); projectTeam_ = null; } return projectTeamBuilder_; } - @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); } @@ -2257,12 +2060,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.BucketAccessControl) } // @@protoc_insertion_point(class_scope:google.storage.v2.BucketAccessControl) private static final com.google.storage.v2.BucketAccessControl DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.BucketAccessControl(); } @@ -2271,27 +2074,27 @@ public static com.google.storage.v2.BucketAccessControl getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BucketAccessControl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 BucketAccessControl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2306,4 +2109,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.BucketAccessControl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java similarity index 81% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java index 95779435cb..abe769b8a0 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java @@ -1,81 +1,54 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface BucketAccessControlOrBuilder - extends +public interface BucketAccessControlOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.BucketAccessControl) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The access permission for the entity.
    * 
* * string role = 1; - * * @return The role. */ java.lang.String getRole(); /** - * - * *
    * The access permission for the entity.
    * 
* * string role = 1; - * * @return The bytes for role. */ - com.google.protobuf.ByteString getRoleBytes(); + com.google.protobuf.ByteString + getRoleBytes(); /** - * - * *
    * The ID of the access-control entry.
    * 
* * string id = 2; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * The ID of the access-control entry.
    * 
* * string id = 2; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The entity holding the permission, in one of the following forms:
    * * `user-{userid}`
@@ -98,13 +71,10 @@ public interface BucketAccessControlOrBuilder
    * 
* * string entity = 3; - * * @return The entity. */ java.lang.String getEntity(); /** - * - * *
    * The entity holding the permission, in one of the following forms:
    * * `user-{userid}`
@@ -127,66 +97,54 @@ public interface BucketAccessControlOrBuilder
    * 
* * string entity = 3; - * * @return The bytes for entity. */ - com.google.protobuf.ByteString getEntityBytes(); + com.google.protobuf.ByteString + getEntityBytes(); /** - * - * *
    * Output only. The alternative entity format, if exists. For project
    * entities, `project-{team}-{projectid}` format will be returned on response.
    * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ java.lang.String getEntityAlt(); /** - * - * *
    * Output only. The alternative entity format, if exists. For project
    * entities, `project-{team}-{projectid}` format will be returned on response.
    * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ - com.google.protobuf.ByteString getEntityAltBytes(); + com.google.protobuf.ByteString + getEntityAltBytes(); /** - * - * *
    * The ID for the entity, if any.
    * 
* * string entity_id = 4; - * * @return The entityId. */ java.lang.String getEntityId(); /** - * - * *
    * The ID for the entity, if any.
    * 
* * string entity_id = 4; - * * @return The bytes for entityId. */ - com.google.protobuf.ByteString getEntityIdBytes(); + com.google.protobuf.ByteString + getEntityIdBytes(); /** - * - * *
    * The etag of the BucketAccessControl.
    * If included in the metadata of an update or delete request message, the
@@ -195,13 +153,10 @@ public interface BucketAccessControlOrBuilder
    * 
* * string etag = 8; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * The etag of the BucketAccessControl.
    * If included in the metadata of an update or delete request message, the
@@ -210,88 +165,70 @@ public interface BucketAccessControlOrBuilder
    * 
* * string etag = 8; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * The email address associated with the entity, if any.
    * 
* * string email = 5; - * * @return The email. */ java.lang.String getEmail(); /** - * - * *
    * The email address associated with the entity, if any.
    * 
* * string email = 5; - * * @return The bytes for email. */ - com.google.protobuf.ByteString getEmailBytes(); + com.google.protobuf.ByteString + getEmailBytes(); /** - * - * *
    * The domain associated with the entity, if any.
    * 
* * string domain = 6; - * * @return The domain. */ java.lang.String getDomain(); /** - * - * *
    * The domain associated with the entity, if any.
    * 
* * string domain = 6; - * * @return The bytes for domain. */ - com.google.protobuf.ByteString getDomainBytes(); + com.google.protobuf.ByteString + getDomainBytes(); /** - * - * *
    * The project team associated with the entity, if any.
    * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return Whether the projectTeam field is set. */ boolean hasProjectTeam(); /** - * - * *
    * The project team associated with the entity, if any.
    * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ com.google.storage.v2.ProjectTeam getProjectTeam(); /** - * - * *
    * The project team associated with the entity, if any.
    * 
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java similarity index 100% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java similarity index 87% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java index e507f90f52..6bd7fefd32 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java @@ -1,58 +1,36 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface BucketOrBuilder - extends +public interface BucketOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The name of the bucket.
    * Format: `projects/{project}/buckets/{bucket}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of the bucket.
    * Format: `projects/{project}/buckets/{bucket}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The user-chosen part of the bucket name. The `{bucket}`
    * portion of the `name` field. For globally unique buckets, this is equal to
@@ -60,13 +38,10 @@ public interface BucketOrBuilder
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bucketId. */ java.lang.String getBucketId(); /** - * - * *
    * Output only. The user-chosen part of the bucket name. The `{bucket}`
    * portion of the `name` field. For globally unique buckets, this is equal to
@@ -74,14 +49,12 @@ public interface BucketOrBuilder
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for bucketId. */ - com.google.protobuf.ByteString getBucketIdBytes(); + com.google.protobuf.ByteString + getBucketIdBytes(); /** - * - * *
    * The etag of the bucket.
    * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -89,13 +62,10 @@ public interface BucketOrBuilder
    * 
* * string etag = 29; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * The etag of the bucket.
    * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -103,60 +73,46 @@ public interface BucketOrBuilder
    * 
* * string etag = 29; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Immutable. The project which owns this bucket, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
    * Immutable. The project which owns this bucket, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * Output only. The metadata generation of this bucket.
    * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ long getMetageneration(); /** - * - * *
    * Immutable. The location of the bucket. Object data for objects in the
    * bucket resides in physical storage within this region.  Defaults to `US`.
@@ -167,13 +123,10 @@ public interface BucketOrBuilder
    * 
* * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
    * Immutable. The location of the bucket. Object data for objects in the
    * bucket resides in physical storage within this region.  Defaults to `US`.
@@ -184,41 +137,34 @@ public interface BucketOrBuilder
    * 
* * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
    * Output only. The location type of the bucket (region, dual-region,
    * multi-region, etc).
    * 
* * string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The locationType. */ java.lang.String getLocationType(); /** - * - * *
    * Output only. The location type of the bucket (region, dual-region,
    * multi-region, etc).
    * 
* * string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for locationType. */ - com.google.protobuf.ByteString getLocationTypeBytes(); + com.google.protobuf.ByteString + getLocationTypeBytes(); /** - * - * *
    * The bucket's default storage class, used whenever no storageClass is
    * specified for a newly-created object. This defines how objects in the
@@ -229,13 +175,10 @@ public interface BucketOrBuilder
    * 
* * string storage_class = 7; - * * @return The storageClass. */ java.lang.String getStorageClass(); /** - * - * *
    * The bucket's default storage class, used whenever no storageClass is
    * specified for a newly-created object. This defines how objects in the
@@ -246,14 +189,12 @@ public interface BucketOrBuilder
    * 
* * string storage_class = 7; - * * @return The bytes for storageClass. */ - com.google.protobuf.ByteString getStorageClassBytes(); + com.google.protobuf.ByteString + getStorageClassBytes(); /** - * - * *
    * The recovery point objective for cross-region replication of the bucket.
    * Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
@@ -264,13 +205,10 @@ public interface BucketOrBuilder
    * 
* * string rpo = 27; - * * @return The rpo. */ java.lang.String getRpo(); /** - * - * *
    * The recovery point objective for cross-region replication of the bucket.
    * Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
@@ -281,14 +219,12 @@ public interface BucketOrBuilder
    * 
* * string rpo = 27; - * * @return The bytes for rpo. */ - com.google.protobuf.ByteString getRpoBytes(); + com.google.protobuf.ByteString + getRpoBytes(); /** - * - * *
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -297,10 +233,9 @@ public interface BucketOrBuilder
    *
    * repeated .google.storage.v2.BucketAccessControl acl = 8;
    */
-  java.util.List getAclList();
+  java.util.List 
+      getAclList();
   /**
-   *
-   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -311,8 +246,6 @@ public interface BucketOrBuilder
    */
   com.google.storage.v2.BucketAccessControl getAcl(int index);
   /**
-   *
-   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -323,8 +256,6 @@ public interface BucketOrBuilder
    */
   int getAclCount();
   /**
-   *
-   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -333,11 +264,9 @@ public interface BucketOrBuilder
    *
    * repeated .google.storage.v2.BucketAccessControl acl = 8;
    */
-  java.util.List
+  java.util.List 
       getAclOrBuilderList();
   /**
-   *
-   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -346,11 +275,10 @@ public interface BucketOrBuilder
    *
    * repeated .google.storage.v2.BucketAccessControl acl = 8;
    */
-  com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(int index);
+  com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Default access controls to apply to new objects when no ACL is provided.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -359,10 +287,9 @@ public interface BucketOrBuilder
    *
    * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    */
-  java.util.List getDefaultObjectAclList();
+  java.util.List 
+      getDefaultObjectAclList();
   /**
-   *
-   *
    * 
    * Default access controls to apply to new objects when no ACL is provided.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -373,8 +300,6 @@ public interface BucketOrBuilder
    */
   com.google.storage.v2.ObjectAccessControl getDefaultObjectAcl(int index);
   /**
-   *
-   *
    * 
    * Default access controls to apply to new objects when no ACL is provided.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -385,8 +310,6 @@ public interface BucketOrBuilder
    */
   int getDefaultObjectAclCount();
   /**
-   *
-   *
    * 
    * Default access controls to apply to new objects when no ACL is provided.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -395,11 +318,9 @@ public interface BucketOrBuilder
    *
    * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    */
-  java.util.List
+  java.util.List 
       getDefaultObjectAclOrBuilderList();
   /**
-   *
-   *
    * 
    * Default access controls to apply to new objects when no ACL is provided.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -408,11 +329,10 @@ public interface BucketOrBuilder
    *
    * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    */
-  com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(int index);
+  com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The bucket's lifecycle config. See
    * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -420,13 +340,10 @@ public interface BucketOrBuilder
    * 
* * .google.storage.v2.Bucket.Lifecycle lifecycle = 10; - * * @return Whether the lifecycle field is set. */ boolean hasLifecycle(); /** - * - * *
    * The bucket's lifecycle config. See
    * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -434,13 +351,10 @@ public interface BucketOrBuilder
    * 
* * .google.storage.v2.Bucket.Lifecycle lifecycle = 10; - * * @return The lifecycle. */ com.google.storage.v2.Bucket.Lifecycle getLifecycle(); /** - * - * *
    * The bucket's lifecycle config. See
    * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -452,46 +366,33 @@ public interface BucketOrBuilder
   com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The creation time of the bucket.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time of the bucket.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time of the bucket.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -499,10 +400,9 @@ public interface BucketOrBuilder
    *
    * repeated .google.storage.v2.Bucket.Cors cors = 12;
    */
-  java.util.List getCorsList();
+  java.util.List 
+      getCorsList();
   /**
-   *
-   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -512,8 +412,6 @@ public interface BucketOrBuilder
    */
   com.google.storage.v2.Bucket.Cors getCors(int index);
   /**
-   *
-   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -523,8 +421,6 @@ public interface BucketOrBuilder
    */
   int getCorsCount();
   /**
-   *
-   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -532,10 +428,9 @@ public interface BucketOrBuilder
    *
    * repeated .google.storage.v2.Bucket.Cors cors = 12;
    */
-  java.util.List getCorsOrBuilderList();
+  java.util.List 
+      getCorsOrBuilderList();
   /**
-   *
-   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -543,49 +438,37 @@ public interface BucketOrBuilder
    *
    * repeated .google.storage.v2.Bucket.Cors cors = 12;
    */
-  com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(int index);
+  com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Output only. The modification time of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The modification time of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The modification time of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * The default value for event-based hold on newly created objects in this
    * bucket.  Event-based hold is a way to retain objects indefinitely until an
@@ -603,14 +486,11 @@ public interface BucketOrBuilder
    * 
* * bool default_event_based_hold = 14; - * * @return The defaultEventBasedHold. */ boolean getDefaultEventBasedHold(); /** - * - * *
    * User-provided labels, in key/value pairs.
    * 
@@ -619,31 +499,30 @@ public interface BucketOrBuilder */ int getLabelsCount(); /** - * - * *
    * User-provided labels, in key/value pairs.
    * 
* * map<string, string> labels = 15; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * User-provided labels, in key/value pairs.
    * 
* * map<string, string> labels = 15; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * User-provided labels, in key/value pairs.
    * 
@@ -651,24 +530,21 @@ public interface BucketOrBuilder * map<string, string> labels = 15; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * User-provided labels, in key/value pairs.
    * 
* * map<string, string> labels = 15; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * The bucket's website config, controlling how the service behaves
    * when accessing bucket contents as a web site. See the
@@ -677,13 +553,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.storage.v2.Bucket.Website website = 16; - * * @return Whether the website field is set. */ boolean hasWebsite(); /** - * - * *
    * The bucket's website config, controlling how the service behaves
    * when accessing bucket contents as a web site. See the
@@ -692,13 +565,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.storage.v2.Bucket.Website website = 16; - * * @return The website. */ com.google.storage.v2.Bucket.Website getWebsite(); /** - * - * *
    * The bucket's website config, controlling how the service behaves
    * when accessing bucket contents as a web site. See the
@@ -711,32 +581,24 @@ java.lang.String getLabelsOrDefault(
   com.google.storage.v2.Bucket.WebsiteOrBuilder getWebsiteOrBuilder();
 
   /**
-   *
-   *
    * 
    * The bucket's versioning config.
    * 
* * .google.storage.v2.Bucket.Versioning versioning = 17; - * * @return Whether the versioning field is set. */ boolean hasVersioning(); /** - * - * *
    * The bucket's versioning config.
    * 
* * .google.storage.v2.Bucket.Versioning versioning = 17; - * * @return The versioning. */ com.google.storage.v2.Bucket.Versioning getVersioning(); /** - * - * *
    * The bucket's versioning config.
    * 
@@ -746,34 +608,26 @@ java.lang.String getLabelsOrDefault( com.google.storage.v2.Bucket.VersioningOrBuilder getVersioningOrBuilder(); /** - * - * *
    * The bucket's logging config, which defines the destination bucket
    * and name prefix (if any) for the current bucket's logs.
    * 
* * .google.storage.v2.Bucket.Logging logging = 18; - * * @return Whether the logging field is set. */ boolean hasLogging(); /** - * - * *
    * The bucket's logging config, which defines the destination bucket
    * and name prefix (if any) for the current bucket's logs.
    * 
* * .google.storage.v2.Bucket.Logging logging = 18; - * * @return The logging. */ com.google.storage.v2.Bucket.Logging getLogging(); /** - * - * *
    * The bucket's logging config, which defines the destination bucket
    * and name prefix (if any) for the current bucket's logs.
@@ -784,34 +638,26 @@ java.lang.String getLabelsOrDefault(
   com.google.storage.v2.Bucket.LoggingOrBuilder getLoggingOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The owner of the bucket. This is always the project team's
    * owner group.
    * 
* * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the owner field is set. */ boolean hasOwner(); /** - * - * *
    * Output only. The owner of the bucket. This is always the project team's
    * owner group.
    * 
* * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The owner. */ com.google.storage.v2.Owner getOwner(); /** - * - * *
    * Output only. The owner of the bucket. This is always the project team's
    * owner group.
@@ -822,32 +668,24 @@ java.lang.String getLabelsOrDefault(
   com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder();
 
   /**
-   *
-   *
    * 
    * Encryption config for a bucket.
    * 
* * .google.storage.v2.Bucket.Encryption encryption = 20; - * * @return Whether the encryption field is set. */ boolean hasEncryption(); /** - * - * *
    * Encryption config for a bucket.
    * 
* * .google.storage.v2.Bucket.Encryption encryption = 20; - * * @return The encryption. */ com.google.storage.v2.Bucket.Encryption getEncryption(); /** - * - * *
    * Encryption config for a bucket.
    * 
@@ -857,32 +695,24 @@ java.lang.String getLabelsOrDefault( com.google.storage.v2.Bucket.EncryptionOrBuilder getEncryptionOrBuilder(); /** - * - * *
    * The bucket's billing config.
    * 
* * .google.storage.v2.Bucket.Billing billing = 21; - * * @return Whether the billing field is set. */ boolean hasBilling(); /** - * - * *
    * The bucket's billing config.
    * 
* * .google.storage.v2.Bucket.Billing billing = 21; - * * @return The billing. */ com.google.storage.v2.Bucket.Billing getBilling(); /** - * - * *
    * The bucket's billing config.
    * 
@@ -892,8 +722,6 @@ java.lang.String getLabelsOrDefault( com.google.storage.v2.Bucket.BillingOrBuilder getBillingOrBuilder(); /** - * - * *
    * The bucket's retention policy. The retention policy enforces a minimum
    * retention time for all objects contained in the bucket, based on their
@@ -907,13 +735,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22; - * * @return Whether the retentionPolicy field is set. */ boolean hasRetentionPolicy(); /** - * - * *
    * The bucket's retention policy. The retention policy enforces a minimum
    * retention time for all objects contained in the bucket, based on their
@@ -927,13 +752,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22; - * * @return The retentionPolicy. */ com.google.storage.v2.Bucket.RetentionPolicy getRetentionPolicy(); /** - * - * *
    * The bucket's retention policy. The retention policy enforces a minimum
    * retention time for all objects contained in the bucket, based on their
@@ -951,32 +773,24 @@ java.lang.String getLabelsOrDefault(
   com.google.storage.v2.Bucket.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The bucket's IAM config.
    * 
* * .google.storage.v2.Bucket.IamConfig iam_config = 23; - * * @return Whether the iamConfig field is set. */ boolean hasIamConfig(); /** - * - * *
    * The bucket's IAM config.
    * 
* * .google.storage.v2.Bucket.IamConfig iam_config = 23; - * * @return The iamConfig. */ com.google.storage.v2.Bucket.IamConfig getIamConfig(); /** - * - * *
    * The bucket's IAM config.
    * 
@@ -986,47 +800,36 @@ java.lang.String getLabelsOrDefault( com.google.storage.v2.Bucket.IamConfigOrBuilder getIamConfigOrBuilder(); /** - * - * *
    * Reserved for future use.
    * 
* * bool satisfies_pzs = 25; - * * @return The satisfiesPzs. */ boolean getSatisfiesPzs(); /** - * - * *
    * Configuration that, if present, specifies the data placement for a
    * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
    * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; - * * @return Whether the customPlacementConfig field is set. */ boolean hasCustomPlacementConfig(); /** - * - * *
    * Configuration that, if present, specifies the data placement for a
    * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
    * 
* * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; - * * @return The customPlacementConfig. */ com.google.storage.v2.Bucket.CustomPlacementConfig getCustomPlacementConfig(); /** - * - * *
    * Configuration that, if present, specifies the data placement for a
    * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -1037,34 +840,26 @@ java.lang.String getLabelsOrDefault(
   com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The bucket's Autoclass configuration. If there is no configuration, the
    * Autoclass feature will be disabled and have no effect on the bucket.
    * 
* * .google.storage.v2.Bucket.Autoclass autoclass = 28; - * * @return Whether the autoclass field is set. */ boolean hasAutoclass(); /** - * - * *
    * The bucket's Autoclass configuration. If there is no configuration, the
    * Autoclass feature will be disabled and have no effect on the bucket.
    * 
* * .google.storage.v2.Bucket.Autoclass autoclass = 28; - * * @return The autoclass. */ com.google.storage.v2.Bucket.Autoclass getAutoclass(); /** - * - * *
    * The bucket's Autoclass configuration. If there is no configuration, the
    * Autoclass feature will be disabled and have no effect on the bucket.
@@ -1075,46 +870,32 @@ java.lang.String getLabelsOrDefault(
   com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. The bucket's soft delete policy. The soft delete policy prevents
    * soft-deleted objects from being permanently deleted.
    * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the softDeletePolicy field is set. */ boolean hasSoftDeletePolicy(); /** - * - * *
    * Optional. The bucket's soft delete policy. The soft delete policy prevents
    * soft-deleted objects from being permanently deleted.
    * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return The softDeletePolicy. */ com.google.storage.v2.Bucket.SoftDeletePolicy getSoftDeletePolicy(); /** - * - * *
    * Optional. The bucket's soft delete policy. The soft delete policy prevents
    * soft-deleted objects from being permanently deleted.
    * 
* - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder getSoftDeletePolicyOrBuilder(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java similarity index 67% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java index c2aaa53c65..f43de5681e 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java @@ -1,26 +1,10 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Message for canceling an in-progress resumable upload.
  * `upload_id` **must** be set.
@@ -28,55 +12,49 @@
  *
  * Protobuf type {@code google.storage.v2.CancelResumableWriteRequest}
  */
-public final class CancelResumableWriteRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CancelResumableWriteRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.storage.v2.CancelResumableWriteRequest)
     CancelResumableWriteRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CancelResumableWriteRequest.newBuilder() to construct.
   private CancelResumableWriteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CancelResumableWriteRequest() {
     uploadId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CancelResumableWriteRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.storage.v2.CancelResumableWriteRequest.class,
-            com.google.storage.v2.CancelResumableWriteRequest.Builder.class);
+            com.google.storage.v2.CancelResumableWriteRequest.class, com.google.storage.v2.CancelResumableWriteRequest.Builder.class);
   }
 
   public static final int UPLOAD_ID_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object uploadId_ = "";
   /**
-   *
-   *
    * 
    * Required. The upload_id of the resumable upload to cancel. This should be
    * copied from the `upload_id` field of `StartResumableWriteResponse`.
    * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uploadId. */ @java.lang.Override @@ -85,30 +63,30 @@ public java.lang.String getUploadId() { 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(); uploadId_ = s; return s; } } /** - * - * *
    * Required. The upload_id of the resumable upload to cancel. This should be
    * copied from the `upload_id` field of `StartResumableWriteResponse`.
    * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uploadId. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; 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); uploadId_ = b; return b; } else { @@ -117,7 +95,6 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,7 +106,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(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } @@ -153,15 +131,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.storage.v2.CancelResumableWriteRequest)) { return super.equals(obj); } - com.google.storage.v2.CancelResumableWriteRequest other = - (com.google.storage.v2.CancelResumableWriteRequest) obj; + com.google.storage.v2.CancelResumableWriteRequest other = (com.google.storage.v2.CancelResumableWriteRequest) obj; - if (!getUploadId().equals(other.getUploadId())) return false; + if (!getUploadId() + .equals(other.getUploadId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,103 +159,98 @@ public int hashCode() { } public static com.google.storage.v2.CancelResumableWriteRequest 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.storage.v2.CancelResumableWriteRequest 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.storage.v2.CancelResumableWriteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CancelResumableWriteRequest 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.storage.v2.CancelResumableWriteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CancelResumableWriteRequest 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.storage.v2.CancelResumableWriteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.CancelResumableWriteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.CancelResumableWriteRequest 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.storage.v2.CancelResumableWriteRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.CancelResumableWriteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.CancelResumableWriteRequest 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.storage.v2.CancelResumableWriteRequest 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.storage.v2.CancelResumableWriteRequest 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.storage.v2.CancelResumableWriteRequest 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; } /** - * - * *
    * Message for canceling an in-progress resumable upload.
    * `upload_id` **must** be set.
@@ -285,32 +258,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.storage.v2.CancelResumableWriteRequest}
    */
-  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.storage.v2.CancelResumableWriteRequest)
       com.google.storage.v2.CancelResumableWriteRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.CancelResumableWriteRequest.class,
-              com.google.storage.v2.CancelResumableWriteRequest.Builder.class);
+              com.google.storage.v2.CancelResumableWriteRequest.class, com.google.storage.v2.CancelResumableWriteRequest.Builder.class);
     }
 
     // Construct using com.google.storage.v2.CancelResumableWriteRequest.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();
@@ -320,9 +294,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
     }
 
     @java.lang.Override
@@ -341,11 +315,8 @@ public com.google.storage.v2.CancelResumableWriteRequest build() {
 
     @java.lang.Override
     public com.google.storage.v2.CancelResumableWriteRequest buildPartial() {
-      com.google.storage.v2.CancelResumableWriteRequest result =
-          new com.google.storage.v2.CancelResumableWriteRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.storage.v2.CancelResumableWriteRequest result = new com.google.storage.v2.CancelResumableWriteRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -361,39 +332,38 @@ private void buildPartial0(com.google.storage.v2.CancelResumableWriteRequest 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.storage.v2.CancelResumableWriteRequest) {
-        return mergeFrom((com.google.storage.v2.CancelResumableWriteRequest) other);
+        return mergeFrom((com.google.storage.v2.CancelResumableWriteRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -401,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.storage.v2.CancelResumableWriteRequest other) {
-      if (other == com.google.storage.v2.CancelResumableWriteRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.storage.v2.CancelResumableWriteRequest.getDefaultInstance()) return this;
       if (!other.getUploadId().isEmpty()) {
         uploadId_ = other.uploadId_;
         bitField0_ |= 0x00000001;
@@ -434,19 +403,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                uploadId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              uploadId_ = 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) {
@@ -456,26 +423,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object uploadId_ = "";
     /**
-     *
-     *
      * 
      * Required. The upload_id of the resumable upload to cancel. This should be
      * copied from the `upload_id` field of `StartResumableWriteResponse`.
      * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uploadId. */ public java.lang.String getUploadId() { java.lang.Object ref = uploadId_; 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(); uploadId_ = s; return s; @@ -484,22 +448,21 @@ public java.lang.String getUploadId() { } } /** - * - * *
      * Required. The upload_id of the resumable upload to cancel. This should be
      * copied from the `upload_id` field of `StartResumableWriteResponse`.
      * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uploadId. */ - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; 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); uploadId_ = b; return b; } else { @@ -507,37 +470,30 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } } /** - * - * *
      * Required. The upload_id of the resumable upload to cancel. This should be
      * copied from the `upload_id` field of `StartResumableWriteResponse`.
      * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uploadId to set. * @return This builder for chaining. */ - public Builder setUploadId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uploadId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The upload_id of the resumable upload to cancel. This should be
      * copied from the `upload_id` field of `StartResumableWriteResponse`.
      * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUploadId() { @@ -547,31 +503,27 @@ public Builder clearUploadId() { return this; } /** - * - * *
      * Required. The upload_id of the resumable upload to cancel. This should be
      * copied from the `upload_id` field of `StartResumableWriteResponse`.
      * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uploadId to set. * @return This builder for chaining. */ - public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uploadId_ = 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); } @@ -581,12 +533,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CancelResumableWriteRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.CancelResumableWriteRequest) private static final com.google.storage.v2.CancelResumableWriteRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CancelResumableWriteRequest(); } @@ -595,27 +547,27 @@ public static com.google.storage.v2.CancelResumableWriteRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelResumableWriteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CancelResumableWriteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -630,4 +582,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.storage.v2.CancelResumableWriteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java index 891dd597af..31ef6be1dd 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java @@ -1,52 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface CancelResumableWriteRequestOrBuilder - extends +public interface CancelResumableWriteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.CancelResumableWriteRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The upload_id of the resumable upload to cancel. This should be
    * copied from the `upload_id` field of `StartResumableWriteResponse`.
    * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uploadId. */ java.lang.String getUploadId(); /** - * - * *
    * Required. The upload_id of the resumable upload to cancel. This should be
    * copied from the `upload_id` field of `StartResumableWriteResponse`.
    * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uploadId. */ - com.google.protobuf.ByteString getUploadIdBytes(); + com.google.protobuf.ByteString + getUploadIdBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java similarity index 62% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java index 3bf5e08167..d8d1591236 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java @@ -1,26 +1,10 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Empty response message for canceling an in-progress resumable upload, will be
  * extended as needed.
@@ -28,41 +12,39 @@
  *
  * Protobuf type {@code google.storage.v2.CancelResumableWriteResponse}
  */
-public final class CancelResumableWriteResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CancelResumableWriteResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.storage.v2.CancelResumableWriteResponse)
     CancelResumableWriteResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CancelResumableWriteResponse.newBuilder() to construct.
   private CancelResumableWriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private CancelResumableWriteResponse() {}
+  private CancelResumableWriteResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CancelResumableWriteResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.storage.v2.CancelResumableWriteResponse.class,
-            com.google.storage.v2.CancelResumableWriteResponse.Builder.class);
+            com.google.storage.v2.CancelResumableWriteResponse.class, com.google.storage.v2.CancelResumableWriteResponse.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -74,7 +56,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -92,13 +75,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.storage.v2.CancelResumableWriteResponse)) {
       return super.equals(obj);
     }
-    com.google.storage.v2.CancelResumableWriteResponse other =
-        (com.google.storage.v2.CancelResumableWriteResponse) obj;
+    com.google.storage.v2.CancelResumableWriteResponse other = (com.google.storage.v2.CancelResumableWriteResponse) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -117,103 +99,98 @@ public int hashCode() {
   }
 
   public static com.google.storage.v2.CancelResumableWriteResponse 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.storage.v2.CancelResumableWriteResponse 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.storage.v2.CancelResumableWriteResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.CancelResumableWriteResponse 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.storage.v2.CancelResumableWriteResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.CancelResumableWriteResponse 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.storage.v2.CancelResumableWriteResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.storage.v2.CancelResumableWriteResponse 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.storage.v2.CancelResumableWriteResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.storage.v2.CancelResumableWriteResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.CancelResumableWriteResponse 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.storage.v2.CancelResumableWriteResponse 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.storage.v2.CancelResumableWriteResponse 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.storage.v2.CancelResumableWriteResponse 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;
   }
   /**
-   *
-   *
    * 
    * Empty response message for canceling an in-progress resumable upload, will be
    * extended as needed.
@@ -221,32 +198,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.storage.v2.CancelResumableWriteResponse}
    */
-  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.storage.v2.CancelResumableWriteResponse)
       com.google.storage.v2.CancelResumableWriteResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.CancelResumableWriteResponse.class,
-              com.google.storage.v2.CancelResumableWriteResponse.Builder.class);
+              com.google.storage.v2.CancelResumableWriteResponse.class, com.google.storage.v2.CancelResumableWriteResponse.Builder.class);
     }
 
     // Construct using com.google.storage.v2.CancelResumableWriteResponse.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();
@@ -254,9 +232,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
     }
 
     @java.lang.Override
@@ -275,8 +253,7 @@ public com.google.storage.v2.CancelResumableWriteResponse build() {
 
     @java.lang.Override
     public com.google.storage.v2.CancelResumableWriteResponse buildPartial() {
-      com.google.storage.v2.CancelResumableWriteResponse result =
-          new com.google.storage.v2.CancelResumableWriteResponse(this);
+      com.google.storage.v2.CancelResumableWriteResponse result = new com.google.storage.v2.CancelResumableWriteResponse(this);
       onBuilt();
       return result;
     }
@@ -285,39 +262,38 @@ public com.google.storage.v2.CancelResumableWriteResponse buildPartial() {
     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.storage.v2.CancelResumableWriteResponse) {
-        return mergeFrom((com.google.storage.v2.CancelResumableWriteResponse) other);
+        return mergeFrom((com.google.storage.v2.CancelResumableWriteResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -325,8 +301,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.storage.v2.CancelResumableWriteResponse other) {
-      if (other == com.google.storage.v2.CancelResumableWriteResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.storage.v2.CancelResumableWriteResponse.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -353,13 +328,12 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            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) {
@@ -369,9 +343,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -381,12 +355,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.CancelResumableWriteResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.CancelResumableWriteResponse)
   private static final com.google.storage.v2.CancelResumableWriteResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.CancelResumableWriteResponse();
   }
@@ -395,27 +369,27 @@ public static com.google.storage.v2.CancelResumableWriteResponse getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CancelResumableWriteResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 CancelResumableWriteResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -430,4 +404,6 @@ public com.google.protobuf.Parser getParserForType
   public com.google.storage.v2.CancelResumableWriteResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java
new file mode 100644
index 0000000000..6a65be0067
--- /dev/null
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java
@@ -0,0 +1,10 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/storage/v2/storage.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.storage.v2;
+
+public interface CancelResumableWriteResponseOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.storage.v2.CancelResumableWriteResponse)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
similarity index 68%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
index e0d35ae0b2..89eedece97 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
@@ -1,26 +1,10 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Message used to convey content being read or written, along with an optional
  * checksum.
@@ -28,53 +12,48 @@
  *
  * Protobuf type {@code google.storage.v2.ChecksummedData}
  */
-public final class ChecksummedData extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ChecksummedData extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.storage.v2.ChecksummedData)
     ChecksummedDataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ChecksummedData.newBuilder() to construct.
   private ChecksummedData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ChecksummedData() {
     content_ = 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 ChecksummedData();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_ChecksummedData_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.storage.v2.ChecksummedData.class,
-            com.google.storage.v2.ChecksummedData.Builder.class);
+            com.google.storage.v2.ChecksummedData.class, com.google.storage.v2.ChecksummedData.Builder.class);
   }
 
   private int bitField0_;
   public static final int CONTENT_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
   /**
-   *
-   *
    * 
    * Optional. The data.
    * 
* * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; - * * @return The content. */ @java.lang.Override @@ -85,14 +64,11 @@ public com.google.protobuf.ByteString getContent() { public static final int CRC32C_FIELD_NUMBER = 2; private int crc32C_ = 0; /** - * - * *
    * If set, the CRC32C digest of the content field.
    * 
* * optional fixed32 crc32c = 2; - * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -100,14 +76,11 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * If set, the CRC32C digest of the content field.
    * 
* * optional fixed32 crc32c = 2; - * * @return The crc32c. */ @java.lang.Override @@ -116,7 +89,6 @@ public int getCrc32C() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,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 (!content_.isEmpty()) { output.writeBytes(1, content_); } @@ -145,10 +118,12 @@ public int getSerializedSize() { size = 0; if (!content_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, content_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFixed32Size(2, crc32C_); + size += com.google.protobuf.CodedOutputStream + .computeFixed32Size(2, crc32C_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -158,17 +133,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.storage.v2.ChecksummedData)) { return super.equals(obj); } com.google.storage.v2.ChecksummedData other = (com.google.storage.v2.ChecksummedData) obj; - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; if (hasCrc32C() != other.hasCrc32C()) return false; if (hasCrc32C()) { - if (getCrc32C() != other.getCrc32C()) return false; + if (getCrc32C() + != other.getCrc32C()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -192,103 +169,99 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ChecksummedData parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ChecksummedData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ChecksummedData 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.storage.v2.ChecksummedData parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.ChecksummedData parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ChecksummedData 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.storage.v2.ChecksummedData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ChecksummedData 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.storage.v2.ChecksummedData 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.storage.v2.ChecksummedData 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.storage.v2.ChecksummedData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ChecksummedData 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.storage.v2.ChecksummedData 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.storage.v2.ChecksummedData 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.storage.v2.ChecksummedData 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; } /** - * - * *
    * Message used to convey content being read or written, along with an optional
    * checksum.
@@ -296,32 +269,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.storage.v2.ChecksummedData}
    */
-  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.storage.v2.ChecksummedData)
       com.google.storage.v2.ChecksummedDataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_ChecksummedData_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.ChecksummedData.class,
-              com.google.storage.v2.ChecksummedData.Builder.class);
+              com.google.storage.v2.ChecksummedData.class, com.google.storage.v2.ChecksummedData.Builder.class);
     }
 
     // Construct using com.google.storage.v2.ChecksummedData.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();
@@ -332,9 +306,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_ChecksummedData_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_descriptor;
     }
 
     @java.lang.Override
@@ -353,11 +327,8 @@ public com.google.storage.v2.ChecksummedData build() {
 
     @java.lang.Override
     public com.google.storage.v2.ChecksummedData buildPartial() {
-      com.google.storage.v2.ChecksummedData result =
-          new com.google.storage.v2.ChecksummedData(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.storage.v2.ChecksummedData result = new com.google.storage.v2.ChecksummedData(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -379,39 +350,38 @@ private void buildPartial0(com.google.storage.v2.ChecksummedData 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.storage.v2.ChecksummedData) {
-        return mergeFrom((com.google.storage.v2.ChecksummedData) other);
+        return mergeFrom((com.google.storage.v2.ChecksummedData)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -452,25 +422,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                content_ = input.readBytes();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 21:
-              {
-                crc32C_ = input.readFixed32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 21
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              content_ = input.readBytes();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 21: {
+              crc32C_ = input.readFixed32();
+              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) {
@@ -480,19 +447,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * Optional. The data.
      * 
* * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; - * * @return The content. */ @java.lang.Override @@ -500,35 +463,27 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** - * - * *
      * Optional. The data.
      * 
* * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. The data.
      * 
* * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -538,16 +493,13 @@ public Builder clearContent() { return this; } - private int crc32C_; + private int crc32C_ ; /** - * - * *
      * If set, the CRC32C digest of the content field.
      * 
* * optional fixed32 crc32c = 2; - * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -555,14 +507,11 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * If set, the CRC32C digest of the content field.
      * 
* * optional fixed32 crc32c = 2; - * * @return The crc32c. */ @java.lang.Override @@ -570,14 +519,11 @@ public int getCrc32C() { return crc32C_; } /** - * - * *
      * If set, the CRC32C digest of the content field.
      * 
* * optional fixed32 crc32c = 2; - * * @param value The crc32c to set. * @return This builder for chaining. */ @@ -589,14 +535,11 @@ public Builder setCrc32C(int value) { return this; } /** - * - * *
      * If set, the CRC32C digest of the content field.
      * 
* * optional fixed32 crc32c = 2; - * * @return This builder for chaining. */ public Builder clearCrc32C() { @@ -605,9 +548,9 @@ public Builder clearCrc32C() { 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 +560,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ChecksummedData) } // @@protoc_insertion_point(class_scope:google.storage.v2.ChecksummedData) private static final com.google.storage.v2.ChecksummedData DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ChecksummedData(); } @@ -631,27 +574,27 @@ public static com.google.storage.v2.ChecksummedData getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChecksummedData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ChecksummedData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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,4 +609,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ChecksummedData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java similarity index 56% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java index 7a1686d92a..cf2b8ce5b7 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java @@ -1,62 +1,38 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ChecksummedDataOrBuilder - extends +public interface ChecksummedDataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ChecksummedData) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The data.
    * 
* * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * If set, the CRC32C digest of the content field.
    * 
* * optional fixed32 crc32c = 2; - * * @return Whether the crc32c field is set. */ boolean hasCrc32C(); /** - * - * *
    * If set, the CRC32C digest of the content field.
    * 
* * optional fixed32 crc32c = 2; - * * @return The crc32c. */ int getCrc32C(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java similarity index 70% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java index 659a27f6c5..787d3d9bd1 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Parameters that can be passed to any object request.
  * 
* * Protobuf type {@code google.storage.v2.CommonObjectRequestParams} */ -public final class CommonObjectRequestParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommonObjectRequestParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.CommonObjectRequestParams) CommonObjectRequestParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommonObjectRequestParams.newBuilder() to construct. private CommonObjectRequestParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommonObjectRequestParams() { encryptionAlgorithm_ = ""; encryptionKeyBytes_ = com.google.protobuf.ByteString.EMPTY; @@ -45,39 +28,34 @@ private CommonObjectRequestParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonObjectRequestParams(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CommonObjectRequestParams.class, - com.google.storage.v2.CommonObjectRequestParams.Builder.class); + com.google.storage.v2.CommonObjectRequestParams.class, com.google.storage.v2.CommonObjectRequestParams.Builder.class); } public static final int ENCRYPTION_ALGORITHM_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object encryptionAlgorithm_ = ""; /** - * - * *
    * Encryption algorithm used with the Customer-Supplied Encryption Keys
    * feature.
    * 
* * string encryption_algorithm = 1; - * * @return The encryptionAlgorithm. */ @java.lang.Override @@ -86,30 +64,30 @@ public java.lang.String getEncryptionAlgorithm() { 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(); encryptionAlgorithm_ = s; return s; } } /** - * - * *
    * Encryption algorithm used with the Customer-Supplied Encryption Keys
    * feature.
    * 
* * string encryption_algorithm = 1; - * * @return The bytes for encryptionAlgorithm. */ @java.lang.Override - public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getEncryptionAlgorithmBytes() { java.lang.Object ref = encryptionAlgorithm_; 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); encryptionAlgorithm_ = b; return b; } else { @@ -120,15 +98,12 @@ public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { public static final int ENCRYPTION_KEY_BYTES_FIELD_NUMBER = 4; private com.google.protobuf.ByteString encryptionKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Encryption key used with the Customer-Supplied Encryption Keys feature.
    * In raw bytes format (not base64-encoded).
    * 
* * bytes encryption_key_bytes = 4; - * * @return The encryptionKeyBytes. */ @java.lang.Override @@ -137,18 +112,14 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { } public static final int ENCRYPTION_KEY_SHA256_BYTES_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString encryptionKeySha256Bytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString encryptionKeySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * SHA256 hash of encryption key used with the Customer-Supplied Encryption
    * Keys feature.
    * 
* * bytes encryption_key_sha256_bytes = 5; - * * @return The encryptionKeySha256Bytes. */ @java.lang.Override @@ -157,7 +128,6 @@ public com.google.protobuf.ByteString getEncryptionKeySha256Bytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,7 +139,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(encryptionAlgorithm_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encryptionAlgorithm_); } @@ -192,10 +163,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, encryptionAlgorithm_); } if (!encryptionKeyBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, encryptionKeyBytes_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, encryptionKeyBytes_); } if (!encryptionKeySha256Bytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, encryptionKeySha256Bytes_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, encryptionKeySha256Bytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -205,17 +178,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.storage.v2.CommonObjectRequestParams)) { return super.equals(obj); } - com.google.storage.v2.CommonObjectRequestParams other = - (com.google.storage.v2.CommonObjectRequestParams) obj; + com.google.storage.v2.CommonObjectRequestParams other = (com.google.storage.v2.CommonObjectRequestParams) obj; - if (!getEncryptionAlgorithm().equals(other.getEncryptionAlgorithm())) return false; - if (!getEncryptionKeyBytes().equals(other.getEncryptionKeyBytes())) return false; - if (!getEncryptionKeySha256Bytes().equals(other.getEncryptionKeySha256Bytes())) return false; + if (!getEncryptionAlgorithm() + .equals(other.getEncryptionAlgorithm())) return false; + if (!getEncryptionKeyBytes() + .equals(other.getEncryptionKeyBytes())) return false; + if (!getEncryptionKeySha256Bytes() + .equals(other.getEncryptionKeySha256Bytes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,136 +213,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.CommonObjectRequestParams parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.CommonObjectRequestParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CommonObjectRequestParams 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.storage.v2.CommonObjectRequestParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CommonObjectRequestParams 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.storage.v2.CommonObjectRequestParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CommonObjectRequestParams 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.storage.v2.CommonObjectRequestParams 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.storage.v2.CommonObjectRequestParams 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.storage.v2.CommonObjectRequestParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.CommonObjectRequestParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.CommonObjectRequestParams 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.storage.v2.CommonObjectRequestParams 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.storage.v2.CommonObjectRequestParams 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.storage.v2.CommonObjectRequestParams 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; } /** - * - * *
    * Parameters that can be passed to any object request.
    * 
* * Protobuf type {@code google.storage.v2.CommonObjectRequestParams} */ - 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.storage.v2.CommonObjectRequestParams) com.google.storage.v2.CommonObjectRequestParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CommonObjectRequestParams.class, - com.google.storage.v2.CommonObjectRequestParams.Builder.class); + com.google.storage.v2.CommonObjectRequestParams.class, com.google.storage.v2.CommonObjectRequestParams.Builder.class); } // Construct using com.google.storage.v2.CommonObjectRequestParams.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(); @@ -379,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; } @java.lang.Override @@ -400,11 +371,8 @@ public com.google.storage.v2.CommonObjectRequestParams build() { @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams buildPartial() { - com.google.storage.v2.CommonObjectRequestParams result = - new com.google.storage.v2.CommonObjectRequestParams(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.CommonObjectRequestParams result = new com.google.storage.v2.CommonObjectRequestParams(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -426,39 +394,38 @@ private void buildPartial0(com.google.storage.v2.CommonObjectRequestParams 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.storage.v2.CommonObjectRequestParams) { - return mergeFrom((com.google.storage.v2.CommonObjectRequestParams) other); + return mergeFrom((com.google.storage.v2.CommonObjectRequestParams)other); } else { super.mergeFrom(other); return this; @@ -466,8 +433,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.CommonObjectRequestParams other) { - if (other == com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) return this; if (!other.getEncryptionAlgorithm().isEmpty()) { encryptionAlgorithm_ = other.encryptionAlgorithm_; bitField0_ |= 0x00000001; @@ -505,31 +471,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - encryptionAlgorithm_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 34: - { - encryptionKeyBytes_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: - { - encryptionKeySha256Bytes_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + encryptionAlgorithm_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: { + encryptionKeyBytes_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: { + encryptionKeySha256Bytes_ = input.readBytes(); + bitField0_ |= 0x00000004; + 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) { @@ -539,26 +501,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object encryptionAlgorithm_ = ""; /** - * - * *
      * Encryption algorithm used with the Customer-Supplied Encryption Keys
      * feature.
      * 
* * string encryption_algorithm = 1; - * * @return The encryptionAlgorithm. */ public java.lang.String getEncryptionAlgorithm() { java.lang.Object ref = encryptionAlgorithm_; 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(); encryptionAlgorithm_ = s; return s; @@ -567,22 +526,21 @@ public java.lang.String getEncryptionAlgorithm() { } } /** - * - * *
      * Encryption algorithm used with the Customer-Supplied Encryption Keys
      * feature.
      * 
* * string encryption_algorithm = 1; - * * @return The bytes for encryptionAlgorithm. */ - public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getEncryptionAlgorithmBytes() { java.lang.Object ref = encryptionAlgorithm_; 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); encryptionAlgorithm_ = b; return b; } else { @@ -590,37 +548,30 @@ public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { } } /** - * - * *
      * Encryption algorithm used with the Customer-Supplied Encryption Keys
      * feature.
      * 
* * string encryption_algorithm = 1; - * * @param value The encryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setEncryptionAlgorithm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncryptionAlgorithm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } encryptionAlgorithm_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Encryption algorithm used with the Customer-Supplied Encryption Keys
      * feature.
      * 
* * string encryption_algorithm = 1; - * * @return This builder for chaining. */ public Builder clearEncryptionAlgorithm() { @@ -630,22 +581,18 @@ public Builder clearEncryptionAlgorithm() { return this; } /** - * - * *
      * Encryption algorithm used with the Customer-Supplied Encryption Keys
      * feature.
      * 
* * string encryption_algorithm = 1; - * * @param value The bytes for encryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setEncryptionAlgorithmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncryptionAlgorithmBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); encryptionAlgorithm_ = value; bitField0_ |= 0x00000001; @@ -653,18 +600,14 @@ public Builder setEncryptionAlgorithmBytes(com.google.protobuf.ByteString value) return this; } - private com.google.protobuf.ByteString encryptionKeyBytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString encryptionKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Encryption key used with the Customer-Supplied Encryption Keys feature.
      * In raw bytes format (not base64-encoded).
      * 
* * bytes encryption_key_bytes = 4; - * * @return The encryptionKeyBytes. */ @java.lang.Override @@ -672,37 +615,29 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { return encryptionKeyBytes_; } /** - * - * *
      * Encryption key used with the Customer-Supplied Encryption Keys feature.
      * In raw bytes format (not base64-encoded).
      * 
* * bytes encryption_key_bytes = 4; - * * @param value The encryptionKeyBytes to set. * @return This builder for chaining. */ public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } encryptionKeyBytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Encryption key used with the Customer-Supplied Encryption Keys feature.
      * In raw bytes format (not base64-encoded).
      * 
* * bytes encryption_key_bytes = 4; - * * @return This builder for chaining. */ public Builder clearEncryptionKeyBytes() { @@ -712,18 +647,14 @@ public Builder clearEncryptionKeyBytes() { return this; } - private com.google.protobuf.ByteString encryptionKeySha256Bytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString encryptionKeySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * SHA256 hash of encryption key used with the Customer-Supplied Encryption
      * Keys feature.
      * 
* * bytes encryption_key_sha256_bytes = 5; - * * @return The encryptionKeySha256Bytes. */ @java.lang.Override @@ -731,37 +662,29 @@ public com.google.protobuf.ByteString getEncryptionKeySha256Bytes() { return encryptionKeySha256Bytes_; } /** - * - * *
      * SHA256 hash of encryption key used with the Customer-Supplied Encryption
      * Keys feature.
      * 
* * bytes encryption_key_sha256_bytes = 5; - * * @param value The encryptionKeySha256Bytes to set. * @return This builder for chaining. */ public Builder setEncryptionKeySha256Bytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } encryptionKeySha256Bytes_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * SHA256 hash of encryption key used with the Customer-Supplied Encryption
      * Keys feature.
      * 
* * bytes encryption_key_sha256_bytes = 5; - * * @return This builder for chaining. */ public Builder clearEncryptionKeySha256Bytes() { @@ -770,9 +693,9 @@ public Builder clearEncryptionKeySha256Bytes() { 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); } @@ -782,12 +705,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CommonObjectRequestParams) } // @@protoc_insertion_point(class_scope:google.storage.v2.CommonObjectRequestParams) private static final com.google.storage.v2.CommonObjectRequestParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CommonObjectRequestParams(); } @@ -796,27 +719,27 @@ public static com.google.storage.v2.CommonObjectRequestParams getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonObjectRequestParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CommonObjectRequestParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -831,4 +754,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.storage.v2.CommonObjectRequestParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java similarity index 63% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java index 9182e76351..6c618b7a96 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java @@ -1,79 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface CommonObjectRequestParamsOrBuilder - extends +public interface CommonObjectRequestParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.CommonObjectRequestParams) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Encryption algorithm used with the Customer-Supplied Encryption Keys
    * feature.
    * 
* * string encryption_algorithm = 1; - * * @return The encryptionAlgorithm. */ java.lang.String getEncryptionAlgorithm(); /** - * - * *
    * Encryption algorithm used with the Customer-Supplied Encryption Keys
    * feature.
    * 
* * string encryption_algorithm = 1; - * * @return The bytes for encryptionAlgorithm. */ - com.google.protobuf.ByteString getEncryptionAlgorithmBytes(); + com.google.protobuf.ByteString + getEncryptionAlgorithmBytes(); /** - * - * *
    * Encryption key used with the Customer-Supplied Encryption Keys feature.
    * In raw bytes format (not base64-encoded).
    * 
* * bytes encryption_key_bytes = 4; - * * @return The encryptionKeyBytes. */ com.google.protobuf.ByteString getEncryptionKeyBytes(); /** - * - * *
    * SHA256 hash of encryption key used with the Customer-Supplied Encryption
    * Keys feature.
    * 
* * bytes encryption_key_sha256_bytes = 5; - * * @return The encryptionKeySha256Bytes. */ com.google.protobuf.ByteString getEncryptionKeySha256Bytes(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java similarity index 70% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java index 51000d502d..319f5f47b2 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for ComposeObject.
  * 
* * Protobuf type {@code google.storage.v2.ComposeObjectRequest} */ -public final class ComposeObjectRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComposeObjectRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ComposeObjectRequest) ComposeObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComposeObjectRequest.newBuilder() to construct. private ComposeObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComposeObjectRequest() { sourceObjects_ = java.util.Collections.emptyList(); destinationPredefinedAcl_ = ""; @@ -45,165 +28,132 @@ private ComposeObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComposeObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.class, - com.google.storage.v2.ComposeObjectRequest.Builder.class); + com.google.storage.v2.ComposeObjectRequest.class, com.google.storage.v2.ComposeObjectRequest.Builder.class); } - public interface SourceObjectOrBuilder - extends + public interface SourceObjectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ComposeObjectRequest.SourceObject) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The source object's name. All source objects must reside in the
      * same bucket.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required. The source object's name. All source objects must reside in the
      * same bucket.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * The generation of this object to use as the source.
      * 
* * int64 generation = 2; - * * @return The generation. */ long getGeneration(); /** - * - * *
      * Conditions that must be met for this operation to execute.
      * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; * @return Whether the objectPreconditions field is set. */ boolean hasObjectPreconditions(); /** - * - * *
      * Conditions that must be met for this operation to execute.
      * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; * @return The objectPreconditions. */ - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - getObjectPreconditions(); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getObjectPreconditions(); /** - * - * *
      * Conditions that must be met for this operation to execute.
      * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder - getObjectPreconditionsOrBuilder(); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder getObjectPreconditionsOrBuilder(); } /** - * - * *
    * Description of a source object for a composition request.
    * 
* * Protobuf type {@code google.storage.v2.ComposeObjectRequest.SourceObject} */ - public static final class SourceObject extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SourceObject extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ComposeObjectRequest.SourceObject) SourceObjectOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SourceObject.newBuilder() to construct. private SourceObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SourceObject() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SourceObject(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.SourceObject.class, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder.class); + com.google.storage.v2.ComposeObjectRequest.SourceObject.class, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder.class); } - public interface ObjectPreconditionsOrBuilder - extends + public interface ObjectPreconditionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Only perform the composition if the generation of the source object
        * that would be used matches this value.  If this value and a generation
@@ -211,13 +161,10 @@ public interface ObjectPreconditionsOrBuilder
        * 
* * optional int64 if_generation_match = 1; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
        * Only perform the composition if the generation of the source object
        * that would be used matches this value.  If this value and a generation
@@ -225,60 +172,53 @@ public interface ObjectPreconditionsOrBuilder
        * 
* * optional int64 if_generation_match = 1; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); } /** - * - * *
      * Preconditions for a source object of a composition request.
      * 
* * Protobuf type {@code google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions} */ - public static final class ObjectPreconditions extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ObjectPreconditions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) ObjectPreconditionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectPreconditions.newBuilder() to construct. private ObjectPreconditions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ObjectPreconditions() {} + private ObjectPreconditions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectPreconditions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.class, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder - .class); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.class, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder.class); } private int bitField0_; public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 1; private long ifGenerationMatch_ = 0L; /** - * - * *
        * Only perform the composition if the generation of the source object
        * that would be used matches this value.  If this value and a generation
@@ -286,7 +226,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * optional int64 if_generation_match = 1; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -294,8 +233,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Only perform the composition if the generation of the source object
        * that would be used matches this value.  If this value and a generation
@@ -303,7 +240,6 @@ public boolean hasIfGenerationMatch() {
        * 
* * optional int64 if_generation_match = 1; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -312,7 +248,6 @@ public long getIfGenerationMatch() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +259,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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, ifGenerationMatch_); } @@ -338,7 +274,8 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, ifGenerationMatch_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -348,19 +285,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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions)) { + if (!(obj instanceof com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions)) { return super.equals(obj); } - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions other = - (com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) obj; + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions other = (com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) obj; if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { - if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; + if (getIfGenerationMatch() + != other.getIfGenerationMatch()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -375,110 +310,98 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasIfGenerationMatch()) { hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationMatch()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions 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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - 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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions 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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - 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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions 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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - 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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions 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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions prototype) { + public static Builder newBuilder(com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions 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 @@ -488,44 +411,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Preconditions for a source object of a composition request.
        * 
* - * Protobuf type {@code - * google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions} + * Protobuf type {@code google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions} */ - 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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.class, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .Builder.class); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.class, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder.class); } - // Construct using - // com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.newBuilder() - private Builder() {} + // Construct using com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.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(); @@ -535,22 +453,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; } @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - getDefaultInstanceForType() { - return com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance(); + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getDefaultInstanceForType() { + return com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance(); } @java.lang.Override public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions build() { - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result = - buildPartial(); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -558,19 +473,14 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditio } @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - buildPartial() { - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result = - new com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions buildPartial() { + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result = new com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result) { + private void buildPartial0(com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -584,56 +494,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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) { - return mergeFrom( - (com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) - other); + if (other instanceof com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) { + return mergeFrom((com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions other) { - if (other - == com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions other) { + if (other == com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance()) return this; if (other.hasIfGenerationMatch()) { setIfGenerationMatch(other.getIfGenerationMatch()); } @@ -663,19 +563,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + ifGenerationMatch_ = 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) { @@ -685,13 +583,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
          * Only perform the composition if the generation of the source object
          * that would be used matches this value.  If this value and a generation
@@ -699,7 +594,6 @@ public Builder mergeFrom(
          * 
* * optional int64 if_generation_match = 1; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -707,8 +601,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
          * Only perform the composition if the generation of the source object
          * that would be used matches this value.  If this value and a generation
@@ -716,7 +608,6 @@ public boolean hasIfGenerationMatch() {
          * 
* * optional int64 if_generation_match = 1; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -724,8 +615,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
          * Only perform the composition if the generation of the source object
          * that would be used matches this value.  If this value and a generation
@@ -733,7 +622,6 @@ public long getIfGenerationMatch() {
          * 
* * optional int64 if_generation_match = 1; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -745,8 +633,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
          * Only perform the composition if the generation of the source object
          * that would be used matches this value.  If this value and a generation
@@ -754,7 +640,6 @@ public Builder setIfGenerationMatch(long value) {
          * 
* * optional int64 if_generation_match = 1; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -763,7 +648,6 @@ public Builder clearIfGenerationMatch() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -776,46 +660,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) } // @@protoc_insertion_point(class_scope:google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) - private static final com.google.storage.v2.ComposeObjectRequest.SourceObject - .ObjectPreconditions - DEFAULT_INSTANCE; - + private static final com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions(); + DEFAULT_INSTANCE = new com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions(); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - getDefaultInstance() { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectPreconditions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ObjectPreconditions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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,26 +706,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - getDefaultInstanceForType() { + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * Required. The source object's name. All source objects must reside in the
      * same bucket.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -855,30 +731,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. The source object's name. All source objects must reside in the
      * same bucket.
      * 
* * 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 { @@ -889,14 +765,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int GENERATION_FIELD_NUMBER = 2; private long generation_ = 0L; /** - * - * *
      * The generation of this object to use as the source.
      * 
* * int64 generation = 2; - * * @return The generation. */ @java.lang.Override @@ -905,68 +778,44 @@ public long getGeneration() { } public static final int OBJECT_PRECONDITIONS_FIELD_NUMBER = 3; - private com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - objectPreconditions_; + private com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions objectPreconditions_; /** - * - * *
      * Conditions that must be met for this operation to execute.
      * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; * @return Whether the objectPreconditions field is set. */ @java.lang.Override public boolean hasObjectPreconditions() { - return objectPreconditions_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Conditions that must be met for this operation to execute.
      * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; * @return The objectPreconditions. */ @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - getObjectPreconditions() { - return objectPreconditions_ == null - ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance() - : objectPreconditions_; + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getObjectPreconditions() { + return objectPreconditions_ == null ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance() : objectPreconditions_; } /** - * - * *
      * Conditions that must be met for this operation to execute.
      * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder - getObjectPreconditionsOrBuilder() { - return objectPreconditions_ == null - ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance() - : objectPreconditions_; + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder getObjectPreconditionsOrBuilder() { + return objectPreconditions_ == null ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance() : objectPreconditions_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -978,14 +827,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 (generation_ != 0L) { output.writeInt64(2, generation_); } - if (objectPreconditions_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getObjectPreconditions()); } getUnknownFields().writeTo(output); @@ -1001,11 +851,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, generation_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, generation_); } - if (objectPreconditions_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getObjectPreconditions()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getObjectPreconditions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1015,19 +866,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.storage.v2.ComposeObjectRequest.SourceObject)) { return super.equals(obj); } - com.google.storage.v2.ComposeObjectRequest.SourceObject other = - (com.google.storage.v2.ComposeObjectRequest.SourceObject) obj; + com.google.storage.v2.ComposeObjectRequest.SourceObject other = (com.google.storage.v2.ComposeObjectRequest.SourceObject) obj; - if (!getName().equals(other.getName())) return false; - if (getGeneration() != other.getGeneration()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getGeneration() + != other.getGeneration()) return false; if (hasObjectPreconditions() != other.hasObjectPreconditions()) return false; if (hasObjectPreconditions()) { - if (!getObjectPreconditions().equals(other.getObjectPreconditions())) return false; + if (!getObjectPreconditions() + .equals(other.getObjectPreconditions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1043,7 +896,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); if (hasObjectPreconditions()) { hash = (37 * hash) + OBJECT_PRECONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getObjectPreconditions().hashCode(); @@ -1054,94 +908,89 @@ public int hashCode() { } public static com.google.storage.v2.ComposeObjectRequest.SourceObject 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.storage.v2.ComposeObjectRequest.SourceObject 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.storage.v2.ComposeObjectRequest.SourceObject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject 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.storage.v2.ComposeObjectRequest.SourceObject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject 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.storage.v2.ComposeObjectRequest.SourceObject parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject 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.storage.v2.ComposeObjectRequest.SourceObject parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ComposeObjectRequest.SourceObject 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.storage.v2.ComposeObjectRequest.SourceObject 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.storage.v2.ComposeObjectRequest.SourceObject 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.storage.v2.ComposeObjectRequest.SourceObject prototype) { + public static Builder newBuilder(com.google.storage.v2.ComposeObjectRequest.SourceObject 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 @@ -1151,41 +1000,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Description of a source object for a composition request.
      * 
* * Protobuf type {@code google.storage.v2.ComposeObjectRequest.SourceObject} */ - 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.storage.v2.ComposeObjectRequest.SourceObject) com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.SourceObject.class, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder.class); + com.google.storage.v2.ComposeObjectRequest.SourceObject.class, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder.class); } // Construct using com.google.storage.v2.ComposeObjectRequest.SourceObject.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getObjectPreconditionsFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1201,9 +1054,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; } @java.lang.Override @@ -1222,11 +1075,8 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject build() { @java.lang.Override public com.google.storage.v2.ComposeObjectRequest.SourceObject buildPartial() { - com.google.storage.v2.ComposeObjectRequest.SourceObject result = - new com.google.storage.v2.ComposeObjectRequest.SourceObject(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ComposeObjectRequest.SourceObject result = new com.google.storage.v2.ComposeObjectRequest.SourceObject(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1239,53 +1089,52 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest.SourceObje if (((from_bitField0_ & 0x00000002) != 0)) { result.generation_ = generation_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectPreconditions_ = - objectPreconditionsBuilder_ == null - ? objectPreconditions_ - : objectPreconditionsBuilder_.build(); + result.objectPreconditions_ = objectPreconditionsBuilder_ == null + ? objectPreconditions_ + : objectPreconditionsBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.ComposeObjectRequest.SourceObject) { - return mergeFrom((com.google.storage.v2.ComposeObjectRequest.SourceObject) other); + return mergeFrom((com.google.storage.v2.ComposeObjectRequest.SourceObject)other); } else { super.mergeFrom(other); return this; @@ -1293,8 +1142,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.ComposeObjectRequest.SourceObject other) { - if (other == com.google.storage.v2.ComposeObjectRequest.SourceObject.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.ComposeObjectRequest.SourceObject.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1332,32 +1180,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - generation_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage( - getObjectPreconditionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - 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: { + generation_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getObjectPreconditionsFieldBuilder().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) { @@ -1367,26 +1212,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
        * Required. The source object's name. All source objects must reside in the
        * same bucket.
        * 
* * 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; @@ -1395,22 +1237,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Required. The source object's name. All source objects must reside in the
        * same bucket.
        * 
* * 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 { @@ -1418,37 +1259,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Required. The source object's name. All source objects must reside in the
        * same bucket.
        * 
* * 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 source object's name. All source objects must reside in the
        * same bucket.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1458,22 +1292,18 @@ public Builder clearName() { return this; } /** - * - * *
        * Required. The source object's name. All source objects must reside in the
        * same bucket.
        * 
* * 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; @@ -1481,16 +1311,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long generation_; + private long generation_ ; /** - * - * *
        * The generation of this object to use as the source.
        * 
* * int64 generation = 2; - * * @return The generation. */ @java.lang.Override @@ -1498,14 +1325,11 @@ public long getGeneration() { return generation_; } /** - * - * *
        * The generation of this object to use as the source.
        * 
* * int64 generation = 2; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -1517,14 +1341,11 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
        * The generation of this object to use as the source.
        * 
* * int64 generation = 2; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1534,66 +1355,43 @@ public Builder clearGeneration() { return this; } - private com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - objectPreconditions_; + private com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions objectPreconditions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder> - objectPreconditionsBuilder_; + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder> objectPreconditionsBuilder_; /** - * - * *
        * Conditions that must be met for this operation to execute.
        * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; * @return Whether the objectPreconditions field is set. */ public boolean hasObjectPreconditions() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * Conditions that must be met for this operation to execute.
        * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; * @return The objectPreconditions. */ - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - getObjectPreconditions() { + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getObjectPreconditions() { if (objectPreconditionsBuilder_ == null) { - return objectPreconditions_ == null - ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance() - : objectPreconditions_; + return objectPreconditions_ == null ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance() : objectPreconditions_; } else { return objectPreconditionsBuilder_.getMessage(); } } /** - * - * *
        * Conditions that must be met for this operation to execute.
        * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ - public Builder setObjectPreconditions( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions value) { + public Builder setObjectPreconditions(com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions value) { if (objectPreconditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1607,19 +1405,14 @@ public Builder setObjectPreconditions( return this; } /** - * - * *
        * Conditions that must be met for this operation to execute.
        * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ public Builder setObjectPreconditions( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder - builderForValue) { + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder builderForValue) { if (objectPreconditionsBuilder_ == null) { objectPreconditions_ = builderForValue.build(); } else { @@ -1630,24 +1423,17 @@ public Builder setObjectPreconditions( return this; } /** - * - * *
        * Conditions that must be met for this operation to execute.
        * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ - public Builder mergeObjectPreconditions( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions value) { + public Builder mergeObjectPreconditions(com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions value) { if (objectPreconditionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && objectPreconditions_ != null - && objectPreconditions_ - != com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + objectPreconditions_ != null && + objectPreconditions_ != com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance()) { getObjectPreconditionsBuilder().mergeFrom(value); } else { objectPreconditions_ = value; @@ -1655,20 +1441,18 @@ public Builder mergeObjectPreconditions( } else { objectPreconditionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (objectPreconditions_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** - * - * *
        * Conditions that must be met for this operation to execute.
        * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ public Builder clearObjectPreconditions() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1681,74 +1465,52 @@ public Builder clearObjectPreconditions() { return this; } /** - * - * *
        * Conditions that must be met for this operation to execute.
        * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder - getObjectPreconditionsBuilder() { + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder getObjectPreconditionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getObjectPreconditionsFieldBuilder().getBuilder(); } /** - * - * *
        * Conditions that must be met for this operation to execute.
        * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder - getObjectPreconditionsOrBuilder() { + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder getObjectPreconditionsOrBuilder() { if (objectPreconditionsBuilder_ != null) { return objectPreconditionsBuilder_.getMessageOrBuilder(); } else { - return objectPreconditions_ == null - ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance() - : objectPreconditions_; + return objectPreconditions_ == null ? + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance() : objectPreconditions_; } } /** - * - * *
        * Conditions that must be met for this operation to execute.
        * 
* - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder> + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder> getObjectPreconditionsFieldBuilder() { if (objectPreconditionsBuilder_ == null) { - objectPreconditionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .Builder, - com.google.storage.v2.ComposeObjectRequest.SourceObject - .ObjectPreconditionsOrBuilder>( - getObjectPreconditions(), getParentForChildren(), isClean()); + objectPreconditionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder>( + getObjectPreconditions(), + getParentForChildren(), + isClean()); objectPreconditions_ = null; } return objectPreconditionsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1761,12 +1523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ComposeObjectRequest.SourceObject) } // @@protoc_insertion_point(class_scope:google.storage.v2.ComposeObjectRequest.SourceObject) private static final com.google.storage.v2.ComposeObjectRequest.SourceObject DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ComposeObjectRequest.SourceObject(); } @@ -1775,28 +1537,27 @@ public static com.google.storage.v2.ComposeObjectRequest.SourceObject getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceObject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 SourceObject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1811,37 +1572,30 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ComposeObjectRequest.SourceObject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int DESTINATION_FIELD_NUMBER = 1; private com.google.storage.v2.Object destination_; /** - * - * *
    * Required. Properties of the resulting object.
    * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destination field is set. */ @java.lang.Override public boolean hasDestination() { - return destination_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. Properties of the resulting object.
    * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The destination. */ @java.lang.Override @@ -1849,14 +1603,11 @@ public com.google.storage.v2.Object getDestination() { return destination_ == null ? com.google.storage.v2.Object.getDefaultInstance() : destination_; } /** - * - * *
    * Required. Properties of the resulting object.
    * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() { @@ -1864,12 +1615,9 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() { } public static final int SOURCE_OBJECTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List sourceObjects_; /** - * - * *
    * The list of source objects that will be concatenated into a single object.
    * 
@@ -1877,13 +1625,10 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() { * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ @java.lang.Override - public java.util.List - getSourceObjectsList() { + public java.util.List getSourceObjectsList() { return sourceObjects_; } /** - * - * *
    * The list of source objects that will be concatenated into a single object.
    * 
@@ -1891,13 +1636,11 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() { * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ @java.lang.Override - public java.util.List + public java.util.List getSourceObjectsOrBuilderList() { return sourceObjects_; } /** - * - * *
    * The list of source objects that will be concatenated into a single object.
    * 
@@ -1909,8 +1652,6 @@ public int getSourceObjectsCount() { return sourceObjects_.size(); } /** - * - * *
    * The list of source objects that will be concatenated into a single object.
    * 
@@ -1922,8 +1663,6 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject getSourceObjects( return sourceObjects_.get(index); } /** - * - * *
    * The list of source objects that will be concatenated into a single object.
    * 
@@ -1937,12 +1676,9 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourc } public static final int DESTINATION_PREDEFINED_ACL_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object destinationPredefinedAcl_ = ""; /** - * - * *
    * Apply a predefined set of access controls to the destination object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1950,7 +1686,6 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourc
    * 
* * string destination_predefined_acl = 9; - * * @return The destinationPredefinedAcl. */ @java.lang.Override @@ -1959,15 +1694,14 @@ public java.lang.String getDestinationPredefinedAcl() { 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(); destinationPredefinedAcl_ = s; return s; } } /** - * - * *
    * Apply a predefined set of access controls to the destination object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1975,15 +1709,16 @@ public java.lang.String getDestinationPredefinedAcl() {
    * 
* * string destination_predefined_acl = 9; - * * @return The bytes for destinationPredefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { + public com.google.protobuf.ByteString + getDestinationPredefinedAclBytes() { java.lang.Object ref = destinationPredefinedAcl_; 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); destinationPredefinedAcl_ = b; return b; } else { @@ -1994,8 +1729,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 4; private long ifGenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -2003,16 +1736,13 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() {
    * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override public boolean hasIfGenerationMatch() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -2020,7 +1750,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -2031,31 +1760,25 @@ public long getIfGenerationMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 5; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 5; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationMatch() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 5; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -2064,12 +1787,9 @@ public long getIfMetagenerationMatch() { } public static final int KMS_KEY_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKey_ = ""; /** - * - * *
    * Resource name of the Cloud KMS key, of the form
    * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
@@ -2078,7 +1798,6 @@ public long getIfMetagenerationMatch() {
    * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ @java.lang.Override @@ -2087,15 +1806,14 @@ public java.lang.String getKmsKey() { 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(); kmsKey_ = s; return s; } } /** - * - * *
    * Resource name of the Cloud KMS key, of the form
    * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
@@ -2104,15 +1822,16 @@ public java.lang.String getKmsKey() {
    * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; 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); kmsKey_ = b; return b; } else { @@ -2123,40 +1842,30 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 7; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { - return commonObjectRequestParams_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -2164,52 +1873,39 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 10; private com.google.storage.v2.ObjectChecksums objectChecksums_; /** - * - * *
    * The checksums of the complete object. This will be validated against the
    * combined checksums of the component objects.
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 10; - * * @return Whether the objectChecksums field is set. */ @java.lang.Override public boolean hasObjectChecksums() { - return objectChecksums_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * The checksums of the complete object. This will be validated against the
    * combined checksums of the component objects.
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 10; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
    * The checksums of the complete object. This will be validated against the
    * combined checksums of the component objects.
@@ -2219,13 +1915,10 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
    */
   @java.lang.Override
   public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
-    return objectChecksums_ == null
-        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-        : objectChecksums_;
+    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -2237,29 +1930,30 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (destination_ != null) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getDestination());
     }
     for (int i = 0; i < sourceObjects_.size(); i++) {
       output.writeMessage(2, sourceObjects_.get(i));
     }
-    if (((bitField0_ & 0x00000001) != 0)) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeInt64(4, ifGenerationMatch_);
     }
-    if (((bitField0_ & 0x00000002) != 0)) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       output.writeInt64(5, ifMetagenerationMatch_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, kmsKey_);
     }
-    if (commonObjectRequestParams_ != null) {
+    if (((bitField0_ & 0x00000008) != 0)) {
       output.writeMessage(7, getCommonObjectRequestParams());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationPredefinedAcl_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 9, destinationPredefinedAcl_);
     }
-    if (objectChecksums_ != null) {
+    if (((bitField0_ & 0x00000010) != 0)) {
       output.writeMessage(10, getObjectChecksums());
     }
     getUnknownFields().writeTo(output);
@@ -2271,32 +1965,35 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (destination_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDestination());
+    if (((bitField0_ & 0x00000001) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getDestination());
     }
     for (int i = 0; i < sourceObjects_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, sourceObjects_.get(i));
-    }
-    if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, sourceObjects_.get(i));
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(4, ifGenerationMatch_);
+    }
+    if (((bitField0_ & 0x00000004) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(5, ifMetagenerationMatch_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, kmsKey_);
     }
-    if (commonObjectRequestParams_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              7, getCommonObjectRequestParams());
+    if (((bitField0_ & 0x00000008) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getCommonObjectRequestParams());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationPredefinedAcl_)) {
-      size +=
-          com.google.protobuf.GeneratedMessageV3.computeStringSize(9, destinationPredefinedAcl_);
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, destinationPredefinedAcl_);
     }
-    if (objectChecksums_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getObjectChecksums());
+    if (((bitField0_ & 0x00000010) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getObjectChecksums());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -2306,37 +2003,43 @@ 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.storage.v2.ComposeObjectRequest)) {
       return super.equals(obj);
     }
-    com.google.storage.v2.ComposeObjectRequest other =
-        (com.google.storage.v2.ComposeObjectRequest) obj;
+    com.google.storage.v2.ComposeObjectRequest other = (com.google.storage.v2.ComposeObjectRequest) obj;
 
     if (hasDestination() != other.hasDestination()) return false;
     if (hasDestination()) {
-      if (!getDestination().equals(other.getDestination())) return false;
+      if (!getDestination()
+          .equals(other.getDestination())) return false;
     }
-    if (!getSourceObjectsList().equals(other.getSourceObjectsList())) return false;
-    if (!getDestinationPredefinedAcl().equals(other.getDestinationPredefinedAcl())) return false;
+    if (!getSourceObjectsList()
+        .equals(other.getSourceObjectsList())) return false;
+    if (!getDestinationPredefinedAcl()
+        .equals(other.getDestinationPredefinedAcl())) return false;
     if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false;
     if (hasIfGenerationMatch()) {
-      if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false;
+      if (getIfGenerationMatch()
+          != other.getIfGenerationMatch()) return false;
     }
     if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false;
     if (hasIfMetagenerationMatch()) {
-      if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false;
+      if (getIfMetagenerationMatch()
+          != other.getIfMetagenerationMatch()) return false;
     }
-    if (!getKmsKey().equals(other.getKmsKey())) return false;
+    if (!getKmsKey()
+        .equals(other.getKmsKey())) return false;
     if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false;
     if (hasCommonObjectRequestParams()) {
-      if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams()))
-        return false;
+      if (!getCommonObjectRequestParams()
+          .equals(other.getCommonObjectRequestParams())) return false;
     }
     if (hasObjectChecksums() != other.hasObjectChecksums()) return false;
     if (hasObjectChecksums()) {
-      if (!getObjectChecksums().equals(other.getObjectChecksums())) return false;
+      if (!getObjectChecksums()
+          .equals(other.getObjectChecksums())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -2361,11 +2064,13 @@ public int hashCode() {
     hash = (53 * hash) + getDestinationPredefinedAcl().hashCode();
     if (hasIfGenerationMatch()) {
       hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfGenerationMatch());
     }
     if (hasIfMetagenerationMatch()) {
       hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfMetagenerationMatch());
     }
     hash = (37 * hash) + KMS_KEY_FIELD_NUMBER;
     hash = (53 * hash) + getKmsKey().hashCode();
@@ -2382,136 +2087,141 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.ComposeObjectRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.ComposeObjectRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ComposeObjectRequest 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.storage.v2.ComposeObjectRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ComposeObjectRequest 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.storage.v2.ComposeObjectRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ComposeObjectRequest 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.storage.v2.ComposeObjectRequest 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.storage.v2.ComposeObjectRequest 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.storage.v2.ComposeObjectRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.storage.v2.ComposeObjectRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.ComposeObjectRequest 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.storage.v2.ComposeObjectRequest 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.storage.v2.ComposeObjectRequest 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.storage.v2.ComposeObjectRequest 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 ComposeObject.
    * 
* * Protobuf type {@code google.storage.v2.ComposeObjectRequest} */ - 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.storage.v2.ComposeObjectRequest) com.google.storage.v2.ComposeObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.class, - com.google.storage.v2.ComposeObjectRequest.Builder.class); + com.google.storage.v2.ComposeObjectRequest.class, com.google.storage.v2.ComposeObjectRequest.Builder.class); } // Construct using com.google.storage.v2.ComposeObjectRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDestinationFieldBuilder(); + getSourceObjectsFieldBuilder(); + getCommonObjectRequestParamsFieldBuilder(); + getObjectChecksumsFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2546,9 +2256,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_descriptor; } @java.lang.Override @@ -2567,12 +2277,9 @@ public com.google.storage.v2.ComposeObjectRequest build() { @java.lang.Override public com.google.storage.v2.ComposeObjectRequest buildPartial() { - com.google.storage.v2.ComposeObjectRequest result = - new com.google.storage.v2.ComposeObjectRequest(this); + com.google.storage.v2.ComposeObjectRequest result = new com.google.storage.v2.ComposeObjectRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2591,34 +2298,38 @@ private void buildPartialRepeatedFields(com.google.storage.v2.ComposeObjectReque private void buildPartial0(com.google.storage.v2.ComposeObjectRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.destination_ = - destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + result.destination_ = destinationBuilder_ == null + ? destination_ + : destinationBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.destinationPredefinedAcl_ = destinationPredefinedAcl_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.ifGenerationMatch_ = ifGenerationMatch_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.ifMetagenerationMatch_ = ifMetagenerationMatch_; - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.kmsKey_ = kmsKey_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); + to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @@ -2627,39 +2338,38 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest 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.storage.v2.ComposeObjectRequest) { - return mergeFrom((com.google.storage.v2.ComposeObjectRequest) other); + return mergeFrom((com.google.storage.v2.ComposeObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -2689,10 +2399,9 @@ public Builder mergeFrom(com.google.storage.v2.ComposeObjectRequest other) { sourceObjectsBuilder_ = null; sourceObjects_ = other.sourceObjects_; bitField0_ = (bitField0_ & ~0x00000002); - sourceObjectsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSourceObjectsFieldBuilder() - : null; + sourceObjectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSourceObjectsFieldBuilder() : null; } else { sourceObjectsBuilder_.addAllMessages(other.sourceObjects_); } @@ -2746,70 +2455,66 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.storage.v2.ComposeObjectRequest.SourceObject m = - input.readMessage( - com.google.storage.v2.ComposeObjectRequest.SourceObject.parser(), - extensionRegistry); - if (sourceObjectsBuilder_ == null) { - ensureSourceObjectsIsMutable(); - sourceObjects_.add(m); - } else { - sourceObjectsBuilder_.addMessage(m); - } - break; - } // case 18 - case 32: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - kmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 74: - { - destinationPredefinedAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 74 - case 82: - { - input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getDestinationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.storage.v2.ComposeObjectRequest.SourceObject m = + input.readMessage( + com.google.storage.v2.ComposeObjectRequest.SourceObject.parser(), + extensionRegistry); + if (sourceObjectsBuilder_ == null) { + ensureSourceObjectsIsMutable(); + sourceObjects_.add(m); + } else { + sourceObjectsBuilder_.addMessage(m); + } + break; + } // case 18 + case 32: { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: { + destinationPredefinedAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 74 + case 82: { + input.readMessage( + getObjectChecksumsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + 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) { @@ -2819,60 +2524,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.Object destination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - destinationBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> destinationBuilder_; /** - * - * *
      * Required. Properties of the resulting object.
      * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Properties of the resulting object.
      * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The destination. */ public com.google.storage.v2.Object getDestination() { if (destinationBuilder_ == null) { - return destination_ == null - ? com.google.storage.v2.Object.getDefaultInstance() - : destination_; + return destination_ == null ? com.google.storage.v2.Object.getDefaultInstance() : destination_; } else { return destinationBuilder_.getMessage(); } } /** - * - * *
      * Required. Properties of the resulting object.
      * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDestination(com.google.storage.v2.Object value) { if (destinationBuilder_ == null) { @@ -2888,16 +2576,14 @@ public Builder setDestination(com.google.storage.v2.Object value) { return this; } /** - * - * *
      * Required. Properties of the resulting object.
      * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDestination(com.google.storage.v2.Object.Builder builderForValue) { + public Builder setDestination( + com.google.storage.v2.Object.Builder builderForValue) { if (destinationBuilder_ == null) { destination_ = builderForValue.build(); } else { @@ -2908,20 +2594,17 @@ public Builder setDestination(com.google.storage.v2.Object.Builder builderForVal return this; } /** - * - * *
      * Required. Properties of the resulting object.
      * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDestination(com.google.storage.v2.Object value) { if (destinationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && destination_ != null - && destination_ != com.google.storage.v2.Object.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + destination_ != null && + destination_ != com.google.storage.v2.Object.getDefaultInstance()) { getDestinationBuilder().mergeFrom(value); } else { destination_ = value; @@ -2929,19 +2612,18 @@ public Builder mergeDestination(com.google.storage.v2.Object value) { } else { destinationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (destination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** - * - * *
      * Required. Properties of the resulting object.
      * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDestination() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2954,14 +2636,11 @@ public Builder clearDestination() { return this; } /** - * - * *
      * Required. Properties of the resulting object.
      * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.Object.Builder getDestinationBuilder() { bitField0_ |= 0x00000001; @@ -2969,81 +2648,61 @@ public com.google.storage.v2.Object.Builder getDestinationBuilder() { return getDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Properties of the resulting object.
      * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() { if (destinationBuilder_ != null) { return destinationBuilder_.getMessageOrBuilder(); } else { - return destination_ == null - ? com.google.storage.v2.Object.getDefaultInstance() - : destination_; + return destination_ == null ? + com.google.storage.v2.Object.getDefaultInstance() : destination_; } } /** - * - * *
      * Required. Properties of the resulting object.
      * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> getDestinationFieldBuilder() { if (destinationBuilder_ == null) { - destinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder>( - getDestination(), getParentForChildren(), isClean()); + destinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>( + getDestination(), + getParentForChildren(), + isClean()); destination_ = null; } return destinationBuilder_; } private java.util.List sourceObjects_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSourceObjectsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - sourceObjects_ = - new java.util.ArrayList( - sourceObjects_); + sourceObjects_ = new java.util.ArrayList(sourceObjects_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.ComposeObjectRequest.SourceObject, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, - com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder> - sourceObjectsBuilder_; + com.google.storage.v2.ComposeObjectRequest.SourceObject, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder> sourceObjectsBuilder_; /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - public java.util.List - getSourceObjectsList() { + public java.util.List getSourceObjectsList() { if (sourceObjectsBuilder_ == null) { return java.util.Collections.unmodifiableList(sourceObjects_); } else { @@ -3051,14 +2710,11 @@ private void ensureSourceObjectsIsMutable() { } } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public int getSourceObjectsCount() { if (sourceObjectsBuilder_ == null) { @@ -3068,14 +2724,11 @@ public int getSourceObjectsCount() { } } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public com.google.storage.v2.ComposeObjectRequest.SourceObject getSourceObjects(int index) { if (sourceObjectsBuilder_ == null) { @@ -3085,14 +2738,11 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject getSourceObjects( } } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder setSourceObjects( int index, com.google.storage.v2.ComposeObjectRequest.SourceObject value) { @@ -3109,18 +2759,14 @@ public Builder setSourceObjects( return this; } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder setSourceObjects( - int index, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder builderForValue) { + int index, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder builderForValue) { if (sourceObjectsBuilder_ == null) { ensureSourceObjectsIsMutable(); sourceObjects_.set(index, builderForValue.build()); @@ -3131,14 +2777,11 @@ public Builder setSourceObjects( return this; } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder addSourceObjects(com.google.storage.v2.ComposeObjectRequest.SourceObject value) { if (sourceObjectsBuilder_ == null) { @@ -3154,14 +2797,11 @@ public Builder addSourceObjects(com.google.storage.v2.ComposeObjectRequest.Sourc return this; } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder addSourceObjects( int index, com.google.storage.v2.ComposeObjectRequest.SourceObject value) { @@ -3178,14 +2818,11 @@ public Builder addSourceObjects( return this; } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder addSourceObjects( com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder builderForValue) { @@ -3199,18 +2836,14 @@ public Builder addSourceObjects( return this; } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder addSourceObjects( - int index, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder builderForValue) { + int index, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder builderForValue) { if (sourceObjectsBuilder_ == null) { ensureSourceObjectsIsMutable(); sourceObjects_.add(index, builderForValue.build()); @@ -3221,21 +2854,18 @@ public Builder addSourceObjects( return this; } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder addAllSourceObjects( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (sourceObjectsBuilder_ == null) { ensureSourceObjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceObjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sourceObjects_); onChanged(); } else { sourceObjectsBuilder_.addAllMessages(values); @@ -3243,14 +2873,11 @@ public Builder addAllSourceObjects( return this; } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder clearSourceObjects() { if (sourceObjectsBuilder_ == null) { @@ -3263,14 +2890,11 @@ public Builder clearSourceObjects() { return this; } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder removeSourceObjects(int index) { if (sourceObjectsBuilder_ == null) { @@ -3283,50 +2907,39 @@ public Builder removeSourceObjects(int index) { return this; } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder getSourceObjectsBuilder( int index) { return getSourceObjectsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder - getSourceObjectsOrBuilder(int index) { + public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObjectsOrBuilder( + int index) { if (sourceObjectsBuilder_ == null) { - return sourceObjects_.get(index); - } else { + return sourceObjects_.get(index); } else { return sourceObjectsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - public java.util.List< - ? extends com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder> - getSourceObjectsOrBuilderList() { + public java.util.List + getSourceObjectsOrBuilderList() { if (sourceObjectsBuilder_ != null) { return sourceObjectsBuilder_.getMessageOrBuilderList(); } else { @@ -3334,62 +2947,45 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder getSource } } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder - addSourceObjectsBuilder() { - return getSourceObjectsFieldBuilder() - .addBuilder(com.google.storage.v2.ComposeObjectRequest.SourceObject.getDefaultInstance()); + public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder addSourceObjectsBuilder() { + return getSourceObjectsFieldBuilder().addBuilder( + com.google.storage.v2.ComposeObjectRequest.SourceObject.getDefaultInstance()); } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder addSourceObjectsBuilder( int index) { - return getSourceObjectsFieldBuilder() - .addBuilder( - index, com.google.storage.v2.ComposeObjectRequest.SourceObject.getDefaultInstance()); + return getSourceObjectsFieldBuilder().addBuilder( + index, com.google.storage.v2.ComposeObjectRequest.SourceObject.getDefaultInstance()); } /** - * - * *
      * The list of source objects that will be concatenated into a single object.
      * 
* - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - public java.util.List - getSourceObjectsBuilderList() { + public java.util.List + getSourceObjectsBuilderList() { return getSourceObjectsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.ComposeObjectRequest.SourceObject, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, - com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder> + com.google.storage.v2.ComposeObjectRequest.SourceObject, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder> getSourceObjectsFieldBuilder() { if (sourceObjectsBuilder_ == null) { - sourceObjectsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.ComposeObjectRequest.SourceObject, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, - com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder>( + sourceObjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.v2.ComposeObjectRequest.SourceObject, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder>( sourceObjects_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3401,8 +2997,6 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder addSource private java.lang.Object destinationPredefinedAcl_ = ""; /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3410,13 +3004,13 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder addSource
      * 
* * string destination_predefined_acl = 9; - * * @return The destinationPredefinedAcl. */ public java.lang.String getDestinationPredefinedAcl() { java.lang.Object ref = destinationPredefinedAcl_; 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(); destinationPredefinedAcl_ = s; return s; @@ -3425,8 +3019,6 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3434,14 +3026,15 @@ public java.lang.String getDestinationPredefinedAcl() {
      * 
* * string destination_predefined_acl = 9; - * * @return The bytes for destinationPredefinedAcl. */ - public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { + public com.google.protobuf.ByteString + getDestinationPredefinedAclBytes() { java.lang.Object ref = destinationPredefinedAcl_; 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); destinationPredefinedAcl_ = b; return b; } else { @@ -3449,8 +3042,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3458,22 +3049,18 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() {
      * 
* * string destination_predefined_acl = 9; - * * @param value The destinationPredefinedAcl to set. * @return This builder for chaining. */ - public Builder setDestinationPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationPredefinedAcl_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3481,7 +3068,6 @@ public Builder setDestinationPredefinedAcl(java.lang.String value) {
      * 
* * string destination_predefined_acl = 9; - * * @return This builder for chaining. */ public Builder clearDestinationPredefinedAcl() { @@ -3491,8 +3077,6 @@ public Builder clearDestinationPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3500,14 +3084,12 @@ public Builder clearDestinationPredefinedAcl() {
      * 
* * string destination_predefined_acl = 9; - * * @param value The bytes for destinationPredefinedAcl to set. * @return This builder for chaining. */ - public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationPredefinedAcl_ = value; bitField0_ |= 0x00000004; @@ -3515,10 +3097,8 @@ public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString v return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -3526,7 +3106,6 @@ public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString v
      * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -3534,8 +3113,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -3543,7 +3120,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -3551,8 +3127,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -3560,7 +3134,6 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -3572,8 +3145,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -3581,7 +3152,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 4; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -3591,17 +3161,14 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 5; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -3609,15 +3176,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 5; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -3625,15 +3189,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 5; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -3645,15 +3206,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 5; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -3665,8 +3223,6 @@ public Builder clearIfMetagenerationMatch() { private java.lang.Object kmsKey_ = ""; /** - * - * *
      * Resource name of the Cloud KMS key, of the form
      * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
@@ -3675,13 +3231,13 @@ public Builder clearIfMetagenerationMatch() {
      * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; 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(); kmsKey_ = s; return s; @@ -3690,8 +3246,6 @@ public java.lang.String getKmsKey() { } } /** - * - * *
      * Resource name of the Cloud KMS key, of the form
      * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
@@ -3700,14 +3254,15 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; 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); kmsKey_ = b; return b; } else { @@ -3715,8 +3270,6 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } } /** - * - * *
      * Resource name of the Cloud KMS key, of the form
      * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
@@ -3725,22 +3278,18 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
      * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKey_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Resource name of the Cloud KMS key, of the form
      * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
@@ -3749,7 +3298,6 @@ public Builder setKmsKey(java.lang.String value) {
      * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -3759,8 +3307,6 @@ public Builder clearKmsKey() { return this; } /** - * - * *
      * Resource name of the Cloud KMS key, of the form
      * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
@@ -3769,14 +3315,12 @@ public Builder clearKmsKey() {
      * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKey_ = value; bitField0_ |= 0x00000020; @@ -3786,55 +3330,41 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3848,8 +3378,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -3868,21 +3396,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -3890,13 +3414,13 @@ public Builder mergeCommonObjectRequestParams( } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (commonObjectRequestParams_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -3914,42 +3438,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -3957,17 +3472,14 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; @@ -3975,49 +3487,36 @@ public Builder clearCommonObjectRequestParams() { private com.google.storage.v2.ObjectChecksums objectChecksums_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ObjectChecksums, - com.google.storage.v2.ObjectChecksums.Builder, - com.google.storage.v2.ObjectChecksumsOrBuilder> - objectChecksumsBuilder_; + com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_; /** - * - * *
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 10; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 10; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
@@ -4039,8 +3538,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
@@ -4060,8 +3557,6 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
@@ -4071,9 +3566,9 @@ public Builder setObjectChecksums(
      */
     public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       if (objectChecksumsBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0)
-            && objectChecksums_ != null
-            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0) &&
+          objectChecksums_ != null &&
+          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
           getObjectChecksumsBuilder().mergeFrom(value);
         } else {
           objectChecksums_ = value;
@@ -4081,13 +3576,13 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
       } else {
         objectChecksumsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000080;
-      onChanged();
+      if (objectChecksums_ != null) {
+        bitField0_ |= 0x00000080;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
@@ -4106,8 +3601,6 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
@@ -4121,8 +3614,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
       return getObjectChecksumsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
@@ -4134,14 +3625,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
       if (objectChecksumsBuilder_ != null) {
         return objectChecksumsBuilder_.getMessageOrBuilder();
       } else {
-        return objectChecksums_ == null
-            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-            : objectChecksums_;
+        return objectChecksums_ == null ?
+            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
       }
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
@@ -4150,24 +3638,21 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
      * .google.storage.v2.ObjectChecksums object_checksums = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ObjectChecksums,
-            com.google.storage.v2.ObjectChecksums.Builder,
-            com.google.storage.v2.ObjectChecksumsOrBuilder>
+        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
         getObjectChecksumsFieldBuilder() {
       if (objectChecksumsBuilder_ == null) {
-        objectChecksumsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.ObjectChecksums,
-                com.google.storage.v2.ObjectChecksums.Builder,
-                com.google.storage.v2.ObjectChecksumsOrBuilder>(
-                getObjectChecksums(), getParentForChildren(), isClean());
+        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
+                getObjectChecksums(),
+                getParentForChildren(),
+                isClean());
         objectChecksums_ = null;
       }
       return objectChecksumsBuilder_;
     }
-
     @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);
     }
 
@@ -4177,12 +3662,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.ComposeObjectRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.ComposeObjectRequest)
   private static final com.google.storage.v2.ComposeObjectRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.ComposeObjectRequest();
   }
@@ -4191,27 +3676,27 @@ public static com.google.storage.v2.ComposeObjectRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ComposeObjectRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 ComposeObjectRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -4226,4 +3711,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.ComposeObjectRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
similarity index 85%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
index 07a5239e04..5bee2f82f9 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
@@ -1,79 +1,50 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface ComposeObjectRequestOrBuilder
-    extends
+public interface ComposeObjectRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.ComposeObjectRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Properties of the resulting object.
    * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destination field is set. */ boolean hasDestination(); /** - * - * *
    * Required. Properties of the resulting object.
    * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The destination. */ com.google.storage.v2.Object getDestination(); /** - * - * *
    * Required. Properties of the resulting object.
    * 
* - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder(); /** - * - * *
    * The list of source objects that will be concatenated into a single object.
    * 
* * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - java.util.List getSourceObjectsList(); + java.util.List + getSourceObjectsList(); /** - * - * *
    * The list of source objects that will be concatenated into a single object.
    * 
@@ -82,8 +53,6 @@ public interface ComposeObjectRequestOrBuilder */ com.google.storage.v2.ComposeObjectRequest.SourceObject getSourceObjects(int index); /** - * - * *
    * The list of source objects that will be concatenated into a single object.
    * 
@@ -92,19 +61,15 @@ public interface ComposeObjectRequestOrBuilder */ int getSourceObjectsCount(); /** - * - * *
    * The list of source objects that will be concatenated into a single object.
    * 
* * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - java.util.List + java.util.List getSourceObjectsOrBuilderList(); /** - * - * *
    * The list of source objects that will be concatenated into a single object.
    * 
@@ -115,8 +80,6 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject int index); /** - * - * *
    * Apply a predefined set of access controls to the destination object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -124,13 +87,10 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
    * 
* * string destination_predefined_acl = 9; - * * @return The destinationPredefinedAcl. */ java.lang.String getDestinationPredefinedAcl(); /** - * - * *
    * Apply a predefined set of access controls to the destination object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -138,14 +98,12 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
    * 
* * string destination_predefined_acl = 9; - * * @return The bytes for destinationPredefinedAcl. */ - com.google.protobuf.ByteString getDestinationPredefinedAclBytes(); + com.google.protobuf.ByteString + getDestinationPredefinedAclBytes(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -153,13 +111,10 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
    * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -167,41 +122,32 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
    * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 5; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 5; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * Resource name of the Cloud KMS key, of the form
    * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
@@ -210,13 +156,10 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
    * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ java.lang.String getKmsKey(); /** - * - * *
    * Resource name of the Cloud KMS key, of the form
    * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
@@ -225,38 +168,30 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
    * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString getKmsKeyBytes(); + com.google.protobuf.ByteString + getKmsKeyBytes(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -266,34 +201,26 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder(); /** - * - * *
    * The checksums of the complete object. This will be validated against the
    * combined checksums of the component objects.
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 10; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
    * The checksums of the complete object. This will be validated against the
    * combined checksums of the component objects.
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 10; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
    * The checksums of the complete object. This will be validated against the
    * combined checksums of the component objects.
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java
similarity index 64%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java
index 25119c1320..fa57b6f719 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java
@@ -1,76 +1,56 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Specifies a requested range of bytes to download.
  * 
* * Protobuf type {@code google.storage.v2.ContentRange} */ -public final class ContentRange extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ContentRange extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ContentRange) ContentRangeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ContentRange.newBuilder() to construct. private ContentRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ContentRange() {} + private ContentRange() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ContentRange(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ContentRange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ContentRange_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ContentRange.class, - com.google.storage.v2.ContentRange.Builder.class); + com.google.storage.v2.ContentRange.class, com.google.storage.v2.ContentRange.Builder.class); } public static final int START_FIELD_NUMBER = 1; private long start_ = 0L; /** - * - * *
-   * The starting offset of the object data.
+   * The starting offset of the object data. This value is inclusive.
    * 
* * int64 start = 1; - * * @return The start. */ @java.lang.Override @@ -81,14 +61,11 @@ public long getStart() { public static final int END_FIELD_NUMBER = 2; private long end_ = 0L; /** - * - * *
-   * The ending offset of the object data.
+   * The ending offset of the object data. This value is exclusive.
    * 
* * int64 end = 2; - * * @return The end. */ @java.lang.Override @@ -99,14 +76,11 @@ public long getEnd() { public static final int COMPLETE_LENGTH_FIELD_NUMBER = 3; private long completeLength_ = 0L; /** - * - * *
    * The complete length of the object data.
    * 
* * int64 complete_length = 3; - * * @return The completeLength. */ @java.lang.Override @@ -115,7 +89,6 @@ public long getCompleteLength() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,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 (start_ != 0L) { output.writeInt64(1, start_); } @@ -147,13 +121,16 @@ public int getSerializedSize() { size = 0; if (start_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, start_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, start_); } if (end_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, end_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, end_); } if (completeLength_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, completeLength_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, completeLength_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -163,16 +140,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.storage.v2.ContentRange)) { return super.equals(obj); } com.google.storage.v2.ContentRange other = (com.google.storage.v2.ContentRange) obj; - if (getStart() != other.getStart()) return false; - if (getEnd() != other.getEnd()) return false; - if (getCompleteLength() != other.getCompleteLength()) return false; + if (getStart() + != other.getStart()) return false; + if (getEnd() + != other.getEnd()) return false; + if (getCompleteLength() + != other.getCompleteLength()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,145 +165,145 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStart()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStart()); hash = (37 * hash) + END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEnd()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEnd()); hash = (37 * hash) + COMPLETE_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCompleteLength()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCompleteLength()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.ContentRange parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ContentRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ContentRange 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.storage.v2.ContentRange parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.ContentRange parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ContentRange 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.storage.v2.ContentRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ContentRange 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.storage.v2.ContentRange 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.storage.v2.ContentRange 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.storage.v2.ContentRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ContentRange 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.storage.v2.ContentRange 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.storage.v2.ContentRange 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.storage.v2.ContentRange 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; } /** - * - * *
    * Specifies a requested range of bytes to download.
    * 
* * Protobuf type {@code google.storage.v2.ContentRange} */ - 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.storage.v2.ContentRange) com.google.storage.v2.ContentRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ContentRange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ContentRange_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ContentRange.class, - com.google.storage.v2.ContentRange.Builder.class); + com.google.storage.v2.ContentRange.class, com.google.storage.v2.ContentRange.Builder.class); } // Construct using com.google.storage.v2.ContentRange.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(); @@ -335,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ContentRange_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_descriptor; } @java.lang.Override @@ -357,9 +337,7 @@ public com.google.storage.v2.ContentRange build() { @java.lang.Override public com.google.storage.v2.ContentRange buildPartial() { com.google.storage.v2.ContentRange result = new com.google.storage.v2.ContentRange(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -381,39 +359,38 @@ private void buildPartial0(com.google.storage.v2.ContentRange 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.storage.v2.ContentRange) { - return mergeFrom((com.google.storage.v2.ContentRange) other); + return mergeFrom((com.google.storage.v2.ContentRange)other); } else { super.mergeFrom(other); return this; @@ -457,31 +434,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - start_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - end_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - completeLength_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + start_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + end_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + completeLength_ = input.readInt64(); + 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) { @@ -491,19 +464,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long start_; + private long start_ ; /** - * - * *
-     * The starting offset of the object data.
+     * The starting offset of the object data. This value is inclusive.
      * 
* * int64 start = 1; - * * @return The start. */ @java.lang.Override @@ -511,14 +480,11 @@ public long getStart() { return start_; } /** - * - * *
-     * The starting offset of the object data.
+     * The starting offset of the object data. This value is inclusive.
      * 
* * int64 start = 1; - * * @param value The start to set. * @return This builder for chaining. */ @@ -530,14 +496,11 @@ public Builder setStart(long value) { return this; } /** - * - * *
-     * The starting offset of the object data.
+     * The starting offset of the object data. This value is inclusive.
      * 
* * int64 start = 1; - * * @return This builder for chaining. */ public Builder clearStart() { @@ -547,16 +510,13 @@ public Builder clearStart() { return this; } - private long end_; + private long end_ ; /** - * - * *
-     * The ending offset of the object data.
+     * The ending offset of the object data. This value is exclusive.
      * 
* * int64 end = 2; - * * @return The end. */ @java.lang.Override @@ -564,14 +524,11 @@ public long getEnd() { return end_; } /** - * - * *
-     * The ending offset of the object data.
+     * The ending offset of the object data. This value is exclusive.
      * 
* * int64 end = 2; - * * @param value The end to set. * @return This builder for chaining. */ @@ -583,14 +540,11 @@ public Builder setEnd(long value) { return this; } /** - * - * *
-     * The ending offset of the object data.
+     * The ending offset of the object data. This value is exclusive.
      * 
* * int64 end = 2; - * * @return This builder for chaining. */ public Builder clearEnd() { @@ -600,16 +554,13 @@ public Builder clearEnd() { return this; } - private long completeLength_; + private long completeLength_ ; /** - * - * *
      * The complete length of the object data.
      * 
* * int64 complete_length = 3; - * * @return The completeLength. */ @java.lang.Override @@ -617,14 +568,11 @@ public long getCompleteLength() { return completeLength_; } /** - * - * *
      * The complete length of the object data.
      * 
* * int64 complete_length = 3; - * * @param value The completeLength to set. * @return This builder for chaining. */ @@ -636,14 +584,11 @@ public Builder setCompleteLength(long value) { return this; } /** - * - * *
      * The complete length of the object data.
      * 
* * int64 complete_length = 3; - * * @return This builder for chaining. */ public Builder clearCompleteLength() { @@ -652,9 +597,9 @@ public Builder clearCompleteLength() { 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); } @@ -664,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ContentRange) } // @@protoc_insertion_point(class_scope:google.storage.v2.ContentRange) private static final com.google.storage.v2.ContentRange DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ContentRange(); } @@ -678,27 +623,27 @@ public static com.google.storage.v2.ContentRange getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContentRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ContentRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -713,4 +658,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ContentRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java new file mode 100644 index 0000000000..dea22a9470 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java @@ -0,0 +1,40 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.2 +package com.google.storage.v2; + +public interface ContentRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.storage.v2.ContentRange) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The starting offset of the object data. This value is inclusive.
+   * 
+ * + * int64 start = 1; + * @return The start. + */ + long getStart(); + + /** + *
+   * The ending offset of the object data. This value is exclusive.
+   * 
+ * + * int64 end = 2; + * @return The end. + */ + long getEnd(); + + /** + *
+   * The complete length of the object data.
+   * 
+ * + * int64 complete_length = 3; + * @return The completeLength. + */ + long getCompleteLength(); +} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java similarity index 73% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java index cff9843baa..ea9863845a 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for CreateBucket.
  * 
* * Protobuf type {@code google.storage.v2.CreateBucketRequest} */ -public final class CreateBucketRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBucketRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.CreateBucketRequest) CreateBucketRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBucketRequest.newBuilder() to construct. private CreateBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBucketRequest() { parent_ = ""; bucketId_ = ""; @@ -46,40 +29,34 @@ private CreateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateBucketRequest.class, - com.google.storage.v2.CreateBucketRequest.Builder.class); + com.google.storage.v2.CreateBucketRequest.class, com.google.storage.v2.CreateBucketRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project to which this bucket will belong.
    * 
* - * - * 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 @@ -88,31 +65,29 @@ 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 project to which this bucket will belong.
    * 
* - * - * 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 { @@ -123,8 +98,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BUCKET_FIELD_NUMBER = 2; private com.google.storage.v2.Bucket bucket_; /** - * - * *
    * Properties of the new bucket being inserted.
    * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -136,16 +109,13 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * .google.storage.v2.Bucket bucket = 2; - * * @return Whether the bucket field is set. */ @java.lang.Override public boolean hasBucket() { - return bucket_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Properties of the new bucket being inserted.
    * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -157,7 +127,6 @@ public boolean hasBucket() {
    * 
* * .google.storage.v2.Bucket bucket = 2; - * * @return The bucket. */ @java.lang.Override @@ -165,8 +134,6 @@ public com.google.storage.v2.Bucket getBucket() { return bucket_ == null ? com.google.storage.v2.Bucket.getDefaultInstance() : bucket_; } /** - * - * *
    * Properties of the new bucket being inserted.
    * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -185,12 +152,9 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
   }
 
   public static final int BUCKET_ID_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object bucketId_ = "";
   /**
-   *
-   *
    * 
    * Required. The ID to use for this bucket, which will become the final
    * component of the bucket's resource name. For example, the value `foo` might
@@ -198,7 +162,6 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
    * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ @java.lang.Override @@ -207,15 +170,14 @@ public java.lang.String getBucketId() { 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(); bucketId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for this bucket, which will become the final
    * component of the bucket's resource name. For example, the value `foo` might
@@ -223,15 +185,16 @@ public java.lang.String getBucketId() {
    * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketId. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketIdBytes() { + public com.google.protobuf.ByteString + getBucketIdBytes() { java.lang.Object ref = bucketId_; 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); bucketId_ = b; return b; } else { @@ -240,12 +203,9 @@ public com.google.protobuf.ByteString getBucketIdBytes() { } public static final int PREDEFINED_ACL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedAcl_ = ""; /** - * - * *
    * Apply a predefined set of access controls to this bucket.
    * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -253,7 +213,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
    * 
* * string predefined_acl = 6; - * * @return The predefinedAcl. */ @java.lang.Override @@ -262,15 +221,14 @@ public java.lang.String getPredefinedAcl() { 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(); predefinedAcl_ = s; return s; } } /** - * - * *
    * Apply a predefined set of access controls to this bucket.
    * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -278,15 +236,16 @@ public java.lang.String getPredefinedAcl() {
    * 
* * string predefined_acl = 6; - * * @return The bytes for predefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; 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); predefinedAcl_ = b; return b; } else { @@ -295,12 +254,9 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } public static final int PREDEFINED_DEFAULT_OBJECT_ACL_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedDefaultObjectAcl_ = ""; /** - * - * *
    * Apply a predefined set of default object access controls to this bucket.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -308,7 +264,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
    * 
* * string predefined_default_object_acl = 7; - * * @return The predefinedDefaultObjectAcl. */ @java.lang.Override @@ -317,15 +272,14 @@ public java.lang.String getPredefinedDefaultObjectAcl() { 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(); predefinedDefaultObjectAcl_ = s; return s; } } /** - * - * *
    * Apply a predefined set of default object access controls to this bucket.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -333,15 +287,16 @@ public java.lang.String getPredefinedDefaultObjectAcl() {
    * 
* * string predefined_default_object_acl = 7; - * * @return The bytes for predefinedDefaultObjectAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { + public com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes() { java.lang.Object ref = predefinedDefaultObjectAcl_; 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); predefinedDefaultObjectAcl_ = b; return b; } else { @@ -350,7 +305,6 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -362,11 +316,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (bucket_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getBucket()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketId_)) { @@ -390,8 +345,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (bucket_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBucket()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBucket()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bucketId_); @@ -400,8 +356,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, predefinedAcl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedDefaultObjectAcl_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(7, predefinedDefaultObjectAcl_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, predefinedDefaultObjectAcl_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -411,23 +366,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.storage.v2.CreateBucketRequest)) { return super.equals(obj); } - com.google.storage.v2.CreateBucketRequest other = - (com.google.storage.v2.CreateBucketRequest) obj; + com.google.storage.v2.CreateBucketRequest other = (com.google.storage.v2.CreateBucketRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBucket() != other.hasBucket()) return false; if (hasBucket()) { - if (!getBucket().equals(other.getBucket())) return false; - } - if (!getBucketId().equals(other.getBucketId())) return false; - if (!getPredefinedAcl().equals(other.getPredefinedAcl())) return false; - if (!getPredefinedDefaultObjectAcl().equals(other.getPredefinedDefaultObjectAcl())) - return false; + if (!getBucket() + .equals(other.getBucket())) return false; + } + if (!getBucketId() + .equals(other.getBucketId())) return false; + if (!getPredefinedAcl() + .equals(other.getPredefinedAcl())) return false; + if (!getPredefinedDefaultObjectAcl() + .equals(other.getPredefinedDefaultObjectAcl())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -456,136 +414,138 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.CreateBucketRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.CreateBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateBucketRequest 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.storage.v2.CreateBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateBucketRequest 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.storage.v2.CreateBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateBucketRequest 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.storage.v2.CreateBucketRequest 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.storage.v2.CreateBucketRequest 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.storage.v2.CreateBucketRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.CreateBucketRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.CreateBucketRequest 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.storage.v2.CreateBucketRequest 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.storage.v2.CreateBucketRequest 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.storage.v2.CreateBucketRequest 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 CreateBucket.
    * 
* * Protobuf type {@code google.storage.v2.CreateBucketRequest} */ - 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.storage.v2.CreateBucketRequest) com.google.storage.v2.CreateBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateBucketRequest.class, - com.google.storage.v2.CreateBucketRequest.Builder.class); + com.google.storage.v2.CreateBucketRequest.class, com.google.storage.v2.CreateBucketRequest.Builder.class); } // Construct using com.google.storage.v2.CreateBucketRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBucketFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -603,9 +563,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateBucketRequest_descriptor; } @java.lang.Override @@ -624,11 +584,8 @@ public com.google.storage.v2.CreateBucketRequest build() { @java.lang.Override public com.google.storage.v2.CreateBucketRequest buildPartial() { - com.google.storage.v2.CreateBucketRequest result = - new com.google.storage.v2.CreateBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.CreateBucketRequest result = new com.google.storage.v2.CreateBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -638,8 +595,12 @@ private void buildPartial0(com.google.storage.v2.CreateBucketRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null + ? bucket_ + : bucketBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.bucketId_ = bucketId_; @@ -650,45 +611,45 @@ private void buildPartial0(com.google.storage.v2.CreateBucketRequest result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.predefinedDefaultObjectAcl_ = predefinedDefaultObjectAcl_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.CreateBucketRequest) { - return mergeFrom((com.google.storage.v2.CreateBucketRequest) other); + return mergeFrom((com.google.storage.v2.CreateBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -746,43 +707,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getBucketFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - bucketId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 50: - { - predefinedAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 50 - case 58: - { - predefinedDefaultObjectAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 58 - 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( + getBucketFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + bucketId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 50: { + predefinedAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: { + predefinedDefaultObjectAcl_ = input.readStringRequireUtf8(); + 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) { @@ -792,27 +749,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project to which this bucket will belong.
      * 
* - * - * 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; @@ -821,23 +773,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project to which this bucket will belong.
      * 
* - * - * 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 { @@ -845,39 +794,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project to which this bucket will belong.
      * 
* - * - * 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 project to which this bucket will belong.
      * 
* - * - * 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() { @@ -887,23 +825,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project to which this bucket will belong.
      * 
* - * - * 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; @@ -913,13 +845,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.Bucket bucket_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket, - com.google.storage.v2.Bucket.Builder, - com.google.storage.v2.BucketOrBuilder> - bucketBuilder_; + com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> bucketBuilder_; /** - * - * *
      * Properties of the new bucket being inserted.
      * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -931,15 +858,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.storage.v2.Bucket bucket = 2; - * * @return Whether the bucket field is set. */ public boolean hasBucket() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Properties of the new bucket being inserted.
      * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -951,7 +875,6 @@ public boolean hasBucket() {
      * 
* * .google.storage.v2.Bucket bucket = 2; - * * @return The bucket. */ public com.google.storage.v2.Bucket getBucket() { @@ -962,8 +885,6 @@ public com.google.storage.v2.Bucket getBucket() { } } /** - * - * *
      * Properties of the new bucket being inserted.
      * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -990,8 +911,6 @@ public Builder setBucket(com.google.storage.v2.Bucket value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Properties of the new bucket being inserted.
      * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -1004,7 +923,8 @@ public Builder setBucket(com.google.storage.v2.Bucket value) {
      *
      * .google.storage.v2.Bucket bucket = 2;
      */
-    public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
+    public Builder setBucket(
+        com.google.storage.v2.Bucket.Builder builderForValue) {
       if (bucketBuilder_ == null) {
         bucket_ = builderForValue.build();
       } else {
@@ -1015,8 +935,6 @@ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Properties of the new bucket being inserted.
      * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -1031,9 +949,9 @@ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
      */
     public Builder mergeBucket(com.google.storage.v2.Bucket value) {
       if (bucketBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && bucket_ != null
-            && bucket_ != com.google.storage.v2.Bucket.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          bucket_ != null &&
+          bucket_ != com.google.storage.v2.Bucket.getDefaultInstance()) {
           getBucketBuilder().mergeFrom(value);
         } else {
           bucket_ = value;
@@ -1041,13 +959,13 @@ public Builder mergeBucket(com.google.storage.v2.Bucket value) {
       } else {
         bucketBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
-      onChanged();
+      if (bucket_ != null) {
+        bitField0_ |= 0x00000002;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Properties of the new bucket being inserted.
      * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -1071,8 +989,6 @@ public Builder clearBucket() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Properties of the new bucket being inserted.
      * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -1091,8 +1007,6 @@ public com.google.storage.v2.Bucket.Builder getBucketBuilder() {
       return getBucketFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Properties of the new bucket being inserted.
      * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -1109,12 +1023,11 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
       if (bucketBuilder_ != null) {
         return bucketBuilder_.getMessageOrBuilder();
       } else {
-        return bucket_ == null ? com.google.storage.v2.Bucket.getDefaultInstance() : bucket_;
+        return bucket_ == null ?
+            com.google.storage.v2.Bucket.getDefaultInstance() : bucket_;
       }
     }
     /**
-     *
-     *
      * 
      * Properties of the new bucket being inserted.
      * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -1128,17 +1041,14 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
      * .google.storage.v2.Bucket bucket = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket,
-            com.google.storage.v2.Bucket.Builder,
-            com.google.storage.v2.BucketOrBuilder>
+        com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> 
         getBucketFieldBuilder() {
       if (bucketBuilder_ == null) {
-        bucketBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Bucket,
-                com.google.storage.v2.Bucket.Builder,
-                com.google.storage.v2.BucketOrBuilder>(
-                getBucket(), getParentForChildren(), isClean());
+        bucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder>(
+                getBucket(),
+                getParentForChildren(),
+                isClean());
         bucket_ = null;
       }
       return bucketBuilder_;
@@ -1146,8 +1056,6 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
 
     private java.lang.Object bucketId_ = "";
     /**
-     *
-     *
      * 
      * Required. The ID to use for this bucket, which will become the final
      * component of the bucket's resource name. For example, the value `foo` might
@@ -1155,13 +1063,13 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
      * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ public java.lang.String getBucketId() { java.lang.Object ref = bucketId_; 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(); bucketId_ = s; return s; @@ -1170,8 +1078,6 @@ public java.lang.String getBucketId() { } } /** - * - * *
      * Required. The ID to use for this bucket, which will become the final
      * component of the bucket's resource name. For example, the value `foo` might
@@ -1179,14 +1085,15 @@ public java.lang.String getBucketId() {
      * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketId. */ - public com.google.protobuf.ByteString getBucketIdBytes() { + public com.google.protobuf.ByteString + getBucketIdBytes() { java.lang.Object ref = bucketId_; 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); bucketId_ = b; return b; } else { @@ -1194,8 +1101,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() { } } /** - * - * *
      * Required. The ID to use for this bucket, which will become the final
      * component of the bucket's resource name. For example, the value `foo` might
@@ -1203,22 +1108,18 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
      * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bucketId to set. * @return This builder for chaining. */ - public Builder setBucketId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucketId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for this bucket, which will become the final
      * component of the bucket's resource name. For example, the value `foo` might
@@ -1226,7 +1127,6 @@ public Builder setBucketId(java.lang.String value) {
      * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBucketId() { @@ -1236,8 +1136,6 @@ public Builder clearBucketId() { return this; } /** - * - * *
      * Required. The ID to use for this bucket, which will become the final
      * component of the bucket's resource name. For example, the value `foo` might
@@ -1245,14 +1143,12 @@ public Builder clearBucketId() {
      * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for bucketId to set. * @return This builder for chaining. */ - public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucketId_ = value; bitField0_ |= 0x00000004; @@ -1262,8 +1158,6 @@ public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object predefinedAcl_ = ""; /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1271,13 +1165,13 @@ public Builder setBucketIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string predefined_acl = 6; - * * @return The predefinedAcl. */ public java.lang.String getPredefinedAcl() { java.lang.Object ref = predefinedAcl_; 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(); predefinedAcl_ = s; return s; @@ -1286,8 +1180,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1295,14 +1187,15 @@ public java.lang.String getPredefinedAcl() {
      * 
* * string predefined_acl = 6; - * * @return The bytes for predefinedAcl. */ - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; 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); predefinedAcl_ = b; return b; } else { @@ -1310,8 +1203,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1319,22 +1210,18 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
      * 
* * string predefined_acl = 6; - * * @param value The predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedAcl_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1342,7 +1229,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
      * 
* * string predefined_acl = 6; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1352,8 +1238,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1361,14 +1245,12 @@ public Builder clearPredefinedAcl() {
      * 
* * string predefined_acl = 6; - * * @param value The bytes for predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedAcl_ = value; bitField0_ |= 0x00000008; @@ -1378,8 +1260,6 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { private java.lang.Object predefinedDefaultObjectAcl_ = ""; /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1387,13 +1267,13 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) {
      * 
* * string predefined_default_object_acl = 7; - * * @return The predefinedDefaultObjectAcl. */ public java.lang.String getPredefinedDefaultObjectAcl() { java.lang.Object ref = predefinedDefaultObjectAcl_; 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(); predefinedDefaultObjectAcl_ = s; return s; @@ -1402,8 +1282,6 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1411,14 +1289,15 @@ public java.lang.String getPredefinedDefaultObjectAcl() {
      * 
* * string predefined_default_object_acl = 7; - * * @return The bytes for predefinedDefaultObjectAcl. */ - public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { + public com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes() { java.lang.Object ref = predefinedDefaultObjectAcl_; 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); predefinedDefaultObjectAcl_ = b; return b; } else { @@ -1426,8 +1305,6 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { } } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1435,22 +1312,18 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() {
      * 
* * string predefined_default_object_acl = 7; - * * @param value The predefinedDefaultObjectAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedDefaultObjectAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedDefaultObjectAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedDefaultObjectAcl_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1458,7 +1331,6 @@ public Builder setPredefinedDefaultObjectAcl(java.lang.String value) {
      * 
* * string predefined_default_object_acl = 7; - * * @return This builder for chaining. */ public Builder clearPredefinedDefaultObjectAcl() { @@ -1468,8 +1340,6 @@ public Builder clearPredefinedDefaultObjectAcl() { return this; } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1477,23 +1347,21 @@ public Builder clearPredefinedDefaultObjectAcl() {
      * 
* * string predefined_default_object_acl = 7; - * * @param value The bytes for predefinedDefaultObjectAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedDefaultObjectAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedDefaultObjectAcl_ = 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); } @@ -1503,12 +1371,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CreateBucketRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.CreateBucketRequest) private static final com.google.storage.v2.CreateBucketRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CreateBucketRequest(); } @@ -1517,27 +1385,27 @@ public static com.google.storage.v2.CreateBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1552,4 +1420,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CreateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java similarity index 77% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java index f626f48955..6d745658e7 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java @@ -1,60 +1,34 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface CreateBucketRequestOrBuilder - extends +public interface CreateBucketRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.CreateBucketRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project to which this bucket will belong.
    * 
* - * - * 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 project to which this bucket will belong.
    * 
* - * - * 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(); /** - * - * *
    * Properties of the new bucket being inserted.
    * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -66,13 +40,10 @@ public interface CreateBucketRequestOrBuilder
    * 
* * .google.storage.v2.Bucket bucket = 2; - * * @return Whether the bucket field is set. */ boolean hasBucket(); /** - * - * *
    * Properties of the new bucket being inserted.
    * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -84,13 +55,10 @@ public interface CreateBucketRequestOrBuilder
    * 
* * .google.storage.v2.Bucket bucket = 2; - * * @return The bucket. */ com.google.storage.v2.Bucket getBucket(); /** - * - * *
    * Properties of the new bucket being inserted.
    * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -106,8 +74,6 @@ public interface CreateBucketRequestOrBuilder
   com.google.storage.v2.BucketOrBuilder getBucketOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. The ID to use for this bucket, which will become the final
    * component of the bucket's resource name. For example, the value `foo` might
@@ -115,13 +81,10 @@ public interface CreateBucketRequestOrBuilder
    * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ java.lang.String getBucketId(); /** - * - * *
    * Required. The ID to use for this bucket, which will become the final
    * component of the bucket's resource name. For example, the value `foo` might
@@ -129,14 +92,12 @@ public interface CreateBucketRequestOrBuilder
    * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketId. */ - com.google.protobuf.ByteString getBucketIdBytes(); + com.google.protobuf.ByteString + getBucketIdBytes(); /** - * - * *
    * Apply a predefined set of access controls to this bucket.
    * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -144,13 +105,10 @@ public interface CreateBucketRequestOrBuilder
    * 
* * string predefined_acl = 6; - * * @return The predefinedAcl. */ java.lang.String getPredefinedAcl(); /** - * - * *
    * Apply a predefined set of access controls to this bucket.
    * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -158,14 +116,12 @@ public interface CreateBucketRequestOrBuilder
    * 
* * string predefined_acl = 6; - * * @return The bytes for predefinedAcl. */ - com.google.protobuf.ByteString getPredefinedAclBytes(); + com.google.protobuf.ByteString + getPredefinedAclBytes(); /** - * - * *
    * Apply a predefined set of default object access controls to this bucket.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -173,13 +129,10 @@ public interface CreateBucketRequestOrBuilder
    * 
* * string predefined_default_object_acl = 7; - * * @return The predefinedDefaultObjectAcl. */ java.lang.String getPredefinedDefaultObjectAcl(); /** - * - * *
    * Apply a predefined set of default object access controls to this bucket.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -187,8 +140,8 @@ public interface CreateBucketRequestOrBuilder
    * 
* * string predefined_default_object_acl = 7; - * * @return The bytes for predefinedDefaultObjectAcl. */ - com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes(); + com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java similarity index 66% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java index 619a750496..0d910d5d67 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for CreateHmacKey.
  * 
* * Protobuf type {@code google.storage.v2.CreateHmacKeyRequest} */ -public final class CreateHmacKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateHmacKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.CreateHmacKeyRequest) CreateHmacKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateHmacKeyRequest.newBuilder() to construct. private CreateHmacKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateHmacKeyRequest() { project_ = ""; serviceAccountEmail_ = ""; @@ -44,42 +27,35 @@ private CreateHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateHmacKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateHmacKeyRequest.class, - com.google.storage.v2.CreateHmacKeyRequest.Builder.class); + com.google.storage.v2.CreateHmacKeyRequest.class, com.google.storage.v2.CreateHmacKeyRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
    * Required. The project that the HMAC-owning service account lives in, in the
    * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
    * project ID or project number.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -88,33 +64,31 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** - * - * *
    * Required. The project that the HMAC-owning service account lives in, in the
    * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
    * project ID or project number.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -123,18 +97,14 @@ public com.google.protobuf.ByteString getProjectBytes() { } public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
    * Required. The service account to create the HMAC for.
    * 
* * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -143,29 +113,29 @@ public java.lang.String getServiceAccountEmail() { 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(); serviceAccountEmail_ = s; return s; } } /** - * - * *
    * Required. The service account to create the HMAC for.
    * 
* * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; 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); serviceAccountEmail_ = b; return b; } else { @@ -174,7 +144,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +155,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(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -216,16 +186,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.storage.v2.CreateHmacKeyRequest)) { return super.equals(obj); } - com.google.storage.v2.CreateHmacKeyRequest other = - (com.google.storage.v2.CreateHmacKeyRequest) obj; + com.google.storage.v2.CreateHmacKeyRequest other = (com.google.storage.v2.CreateHmacKeyRequest) obj; - if (!getProject().equals(other.getProject())) return false; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,136 +217,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.CreateHmacKeyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.CreateHmacKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateHmacKeyRequest 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.storage.v2.CreateHmacKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateHmacKeyRequest 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.storage.v2.CreateHmacKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateHmacKeyRequest 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.storage.v2.CreateHmacKeyRequest 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.storage.v2.CreateHmacKeyRequest 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.storage.v2.CreateHmacKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.CreateHmacKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.CreateHmacKeyRequest 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.storage.v2.CreateHmacKeyRequest 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.storage.v2.CreateHmacKeyRequest 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.storage.v2.CreateHmacKeyRequest 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 CreateHmacKey.
    * 
* * Protobuf type {@code google.storage.v2.CreateHmacKeyRequest} */ - 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.storage.v2.CreateHmacKeyRequest) com.google.storage.v2.CreateHmacKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateHmacKeyRequest.class, - com.google.storage.v2.CreateHmacKeyRequest.Builder.class); + com.google.storage.v2.CreateHmacKeyRequest.class, com.google.storage.v2.CreateHmacKeyRequest.Builder.class); } // Construct using com.google.storage.v2.CreateHmacKeyRequest.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(); @@ -386,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; } @java.lang.Override @@ -407,11 +374,8 @@ public com.google.storage.v2.CreateHmacKeyRequest build() { @java.lang.Override public com.google.storage.v2.CreateHmacKeyRequest buildPartial() { - com.google.storage.v2.CreateHmacKeyRequest result = - new com.google.storage.v2.CreateHmacKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.CreateHmacKeyRequest result = new com.google.storage.v2.CreateHmacKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -430,39 +394,38 @@ private void buildPartial0(com.google.storage.v2.CreateHmacKeyRequest 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.storage.v2.CreateHmacKeyRequest) { - return mergeFrom((com.google.storage.v2.CreateHmacKeyRequest) other); + return mergeFrom((com.google.storage.v2.CreateHmacKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -507,25 +470,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - serviceAccountEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + serviceAccountEmail_ = 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) { @@ -535,29 +495,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object project_ = ""; /** - * - * *
      * Required. The project that the HMAC-owning service account lives in, in the
      * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
      * project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -566,25 +521,22 @@ public java.lang.String getProject() { } } /** - * - * *
      * Required. The project that the HMAC-owning service account lives in, in the
      * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
      * project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -592,43 +544,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Required. The project that the HMAC-owning service account lives in, in the
      * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
      * project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project that the HMAC-owning service account lives in, in the
      * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
      * project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -638,25 +579,19 @@ public Builder clearProject() { return this; } /** - * - * *
      * Required. The project that the HMAC-owning service account lives in, in the
      * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
      * project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000001; @@ -666,20 +601,18 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
      * Required. The service account to create the HMAC for.
      * 
* * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; 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(); serviceAccountEmail_ = s; return s; @@ -688,21 +621,20 @@ public java.lang.String getServiceAccountEmail() { } } /** - * - * *
      * Required. The service account to create the HMAC for.
      * 
* * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; 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); serviceAccountEmail_ = b; return b; } else { @@ -710,35 +642,28 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } } /** - * - * *
      * Required. The service account to create the HMAC for.
      * 
* * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccountEmail_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The service account to create the HMAC for.
      * 
* * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { @@ -748,30 +673,26 @@ public Builder clearServiceAccountEmail() { return this; } /** - * - * *
      * Required. The service account to create the HMAC for.
      * 
* * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountEmail_ = value; bitField0_ |= 0x00000002; 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); } @@ -781,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CreateHmacKeyRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.CreateHmacKeyRequest) private static final com.google.storage.v2.CreateHmacKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CreateHmacKeyRequest(); } @@ -795,27 +716,27 @@ public static com.google.storage.v2.CreateHmacKeyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHmacKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateHmacKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -830,4 +751,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CreateHmacKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java index d35e121799..5d9ddd3e8e 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java @@ -1,83 +1,54 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface CreateHmacKeyRequestOrBuilder - extends +public interface CreateHmacKeyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.CreateHmacKeyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project that the HMAC-owning service account lives in, in the
    * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
    * project ID or project number.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
    * Required. The project that the HMAC-owning service account lives in, in the
    * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
    * project ID or project number.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * Required. The service account to create the HMAC for.
    * 
* * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** - * - * *
    * Required. The service account to create the HMAC for.
    * 
* * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java similarity index 66% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java index d893e943dd..230e2ed459 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java @@ -1,104 +1,77 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Create hmac response.  The only time the secret for an HMAC will be returned.
  * 
* * Protobuf type {@code google.storage.v2.CreateHmacKeyResponse} */ -public final class CreateHmacKeyResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateHmacKeyResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.CreateHmacKeyResponse) CreateHmacKeyResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateHmacKeyResponse.newBuilder() to construct. private CreateHmacKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateHmacKeyResponse() { secretKeyBytes_ = 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 CreateHmacKeyResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateHmacKeyResponse.class, - com.google.storage.v2.CreateHmacKeyResponse.Builder.class); + com.google.storage.v2.CreateHmacKeyResponse.class, com.google.storage.v2.CreateHmacKeyResponse.Builder.class); } + private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private com.google.storage.v2.HmacKeyMetadata metadata_; /** - * - * *
    * Key metadata.
    * 
* * .google.storage.v2.HmacKeyMetadata metadata = 1; - * * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { - return metadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Key metadata.
    * 
* * .google.storage.v2.HmacKeyMetadata metadata = 1; - * * @return The metadata. */ @java.lang.Override public com.google.storage.v2.HmacKeyMetadata getMetadata() { - return metadata_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Key metadata.
    * 
@@ -107,23 +80,18 @@ public com.google.storage.v2.HmacKeyMetadata getMetadata() { */ @java.lang.Override public com.google.storage.v2.HmacKeyMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : metadata_; } public static final int SECRET_KEY_BYTES_FIELD_NUMBER = 3; private com.google.protobuf.ByteString secretKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * HMAC key secret material.
    * In raw bytes format (not base64-encoded).
    * 
* * bytes secret_key_bytes = 3; - * * @return The secretKeyBytes. */ @java.lang.Override @@ -132,7 +100,6 @@ public com.google.protobuf.ByteString getSecretKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,8 +111,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (metadata_ != null) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMetadata()); } if (!secretKeyBytes_.isEmpty()) { @@ -160,11 +128,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); } if (!secretKeyBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, secretKeyBytes_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, secretKeyBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +144,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.storage.v2.CreateHmacKeyResponse)) { return super.equals(obj); } - com.google.storage.v2.CreateHmacKeyResponse other = - (com.google.storage.v2.CreateHmacKeyResponse) obj; + com.google.storage.v2.CreateHmacKeyResponse other = (com.google.storage.v2.CreateHmacKeyResponse) obj; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; } - if (!getSecretKeyBytes().equals(other.getSecretKeyBytes())) return false; + if (!getSecretKeyBytes() + .equals(other.getSecretKeyBytes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -209,136 +180,138 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.CreateHmacKeyResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.CreateHmacKeyResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateHmacKeyResponse 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.storage.v2.CreateHmacKeyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateHmacKeyResponse 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.storage.v2.CreateHmacKeyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateHmacKeyResponse 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.storage.v2.CreateHmacKeyResponse 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.storage.v2.CreateHmacKeyResponse 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.storage.v2.CreateHmacKeyResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.CreateHmacKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.CreateHmacKeyResponse 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.storage.v2.CreateHmacKeyResponse 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.storage.v2.CreateHmacKeyResponse 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.storage.v2.CreateHmacKeyResponse 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; } /** - * - * *
    * Create hmac response.  The only time the secret for an HMAC will be returned.
    * 
* * Protobuf type {@code google.storage.v2.CreateHmacKeyResponse} */ - 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.storage.v2.CreateHmacKeyResponse) com.google.storage.v2.CreateHmacKeyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateHmacKeyResponse.class, - com.google.storage.v2.CreateHmacKeyResponse.Builder.class); + com.google.storage.v2.CreateHmacKeyResponse.class, com.google.storage.v2.CreateHmacKeyResponse.Builder.class); } // Construct using com.google.storage.v2.CreateHmacKeyResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; } @java.lang.Override @@ -374,62 +347,63 @@ public com.google.storage.v2.CreateHmacKeyResponse build() { @java.lang.Override public com.google.storage.v2.CreateHmacKeyResponse buildPartial() { - com.google.storage.v2.CreateHmacKeyResponse result = - new com.google.storage.v2.CreateHmacKeyResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.CreateHmacKeyResponse result = new com.google.storage.v2.CreateHmacKeyResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.storage.v2.CreateHmacKeyResponse result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.secretKeyBytes_ = secretKeyBytes_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.CreateHmacKeyResponse) { - return mergeFrom((com.google.storage.v2.CreateHmacKeyResponse) other); + return mergeFrom((com.google.storage.v2.CreateHmacKeyResponse)other); } else { super.mergeFrom(other); return this; @@ -470,25 +444,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - secretKeyBytes_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + secretKeyBytes_ = input.readBytes(); + bitField0_ |= 0x00000002; + 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) { @@ -498,52 +471,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.HmacKeyMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder> - metadataBuilder_; + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> metadataBuilder_; /** - * - * *
      * Key metadata.
      * 
* * .google.storage.v2.HmacKeyMetadata metadata = 1; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Key metadata.
      * 
* * .google.storage.v2.HmacKeyMetadata metadata = 1; - * * @return The metadata. */ public com.google.storage.v2.HmacKeyMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Key metadata.
      * 
@@ -564,15 +523,14 @@ public Builder setMetadata(com.google.storage.v2.HmacKeyMetadata value) { return this; } /** - * - * *
      * Key metadata.
      * 
* * .google.storage.v2.HmacKeyMetadata metadata = 1; */ - public Builder setMetadata(com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { + public Builder setMetadata( + com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); } else { @@ -583,8 +541,6 @@ public Builder setMetadata(com.google.storage.v2.HmacKeyMetadata.Builder builder return this; } /** - * - * *
      * Key metadata.
      * 
@@ -593,9 +549,9 @@ public Builder setMetadata(com.google.storage.v2.HmacKeyMetadata.Builder builder */ public Builder mergeMetadata(com.google.storage.v2.HmacKeyMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && metadata_ != null - && metadata_ != com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + metadata_ != null && + metadata_ != com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -603,13 +559,13 @@ public Builder mergeMetadata(com.google.storage.v2.HmacKeyMetadata value) { } else { metadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (metadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** - * - * *
      * Key metadata.
      * 
@@ -627,8 +583,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Key metadata.
      * 
@@ -641,8 +595,6 @@ public com.google.storage.v2.HmacKeyMetadata.Builder getMetadataBuilder() { return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Key metadata.
      * 
@@ -653,14 +605,11 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? + com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : metadata_; } } /** - * - * *
      * Key metadata.
      * 
@@ -668,17 +617,14 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getMetadataOrBuilder() { * .google.storage.v2.HmacKeyMetadata metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder> + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); metadata_ = null; } return metadataBuilder_; @@ -686,15 +632,12 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getMetadataOrBuilder() { private com.google.protobuf.ByteString secretKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * HMAC key secret material.
      * In raw bytes format (not base64-encoded).
      * 
* * bytes secret_key_bytes = 3; - * * @return The secretKeyBytes. */ @java.lang.Override @@ -702,37 +645,29 @@ public com.google.protobuf.ByteString getSecretKeyBytes() { return secretKeyBytes_; } /** - * - * *
      * HMAC key secret material.
      * In raw bytes format (not base64-encoded).
      * 
* * bytes secret_key_bytes = 3; - * * @param value The secretKeyBytes to set. * @return This builder for chaining. */ public Builder setSecretKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } secretKeyBytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * HMAC key secret material.
      * In raw bytes format (not base64-encoded).
      * 
* * bytes secret_key_bytes = 3; - * * @return This builder for chaining. */ public Builder clearSecretKeyBytes() { @@ -741,9 +676,9 @@ public Builder clearSecretKeyBytes() { 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); } @@ -753,12 +688,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CreateHmacKeyResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.CreateHmacKeyResponse) private static final com.google.storage.v2.CreateHmacKeyResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CreateHmacKeyResponse(); } @@ -767,27 +702,27 @@ public static com.google.storage.v2.CreateHmacKeyResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHmacKeyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateHmacKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -802,4 +737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CreateHmacKeyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java similarity index 61% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java index 1dbe0d5467..38bd745002 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java @@ -1,55 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface CreateHmacKeyResponseOrBuilder - extends +public interface CreateHmacKeyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.CreateHmacKeyResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Key metadata.
    * 
* * .google.storage.v2.HmacKeyMetadata metadata = 1; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Key metadata.
    * 
* * .google.storage.v2.HmacKeyMetadata metadata = 1; - * * @return The metadata. */ com.google.storage.v2.HmacKeyMetadata getMetadata(); /** - * - * *
    * Key metadata.
    * 
@@ -59,15 +36,12 @@ public interface CreateHmacKeyResponseOrBuilder com.google.storage.v2.HmacKeyMetadataOrBuilder getMetadataOrBuilder(); /** - * - * *
    * HMAC key secret material.
    * In raw bytes format (not base64-encoded).
    * 
* * bytes secret_key_bytes = 3; - * * @return The secretKeyBytes. */ com.google.protobuf.ByteString getSecretKeyBytes(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java similarity index 59% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java index e6258c8719..3d55b8ad23 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java @@ -1,83 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for CreateNotificationConfig.
  * 
* * Protobuf type {@code google.storage.v2.CreateNotificationConfigRequest} */ -public final class CreateNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.CreateNotificationConfigRequest) CreateNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateNotificationConfigRequest.newBuilder() to construct. - private CreateNotificationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateNotificationConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateNotificationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateNotificationConfigRequest.class, - com.google.storage.v2.CreateNotificationConfigRequest.Builder.class); + com.google.storage.v2.CreateNotificationConfigRequest.class, com.google.storage.v2.CreateNotificationConfigRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The bucket to which this NotificationConfig belongs.
    * 
* - * - * 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 @@ -86,31 +62,29 @@ 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 bucket to which this NotificationConfig belongs.
    * 
* - * - * 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 { @@ -121,61 +95,42 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 2; private com.google.storage.v2.NotificationConfig notificationConfig_; /** - * - * *
    * Required. Properties of the NotificationConfig to be inserted.
    * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ @java.lang.Override public boolean hasNotificationConfig() { - return notificationConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. Properties of the NotificationConfig to be inserted.
    * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ @java.lang.Override public com.google.storage.v2.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null - ? com.google.storage.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.storage.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } /** - * - * *
    * Required. Properties of the NotificationConfig to be inserted.
    * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { - return notificationConfig_ == null - ? com.google.storage.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.storage.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,11 +142,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (notificationConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getNotificationConfig()); } getUnknownFields().writeTo(output); @@ -206,8 +162,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (notificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotificationConfig()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNotificationConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,18 +174,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.storage.v2.CreateNotificationConfigRequest)) { return super.equals(obj); } - com.google.storage.v2.CreateNotificationConfigRequest other = - (com.google.storage.v2.CreateNotificationConfigRequest) obj; + com.google.storage.v2.CreateNotificationConfigRequest other = (com.google.storage.v2.CreateNotificationConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasNotificationConfig() != other.hasNotificationConfig()) return false; if (hasNotificationConfig()) { - if (!getNotificationConfig().equals(other.getNotificationConfig())) return false; + if (!getNotificationConfig() + .equals(other.getNotificationConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -253,136 +211,137 @@ public int hashCode() { } public static com.google.storage.v2.CreateNotificationConfigRequest 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.storage.v2.CreateNotificationConfigRequest 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.storage.v2.CreateNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateNotificationConfigRequest 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.storage.v2.CreateNotificationConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateNotificationConfigRequest 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.storage.v2.CreateNotificationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.CreateNotificationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.CreateNotificationConfigRequest 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.storage.v2.CreateNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.CreateNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.CreateNotificationConfigRequest 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.storage.v2.CreateNotificationConfigRequest 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.storage.v2.CreateNotificationConfigRequest 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.storage.v2.CreateNotificationConfigRequest prototype) { + public static Builder newBuilder(com.google.storage.v2.CreateNotificationConfigRequest 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 CreateNotificationConfig.
    * 
* * Protobuf type {@code google.storage.v2.CreateNotificationConfigRequest} */ - 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.storage.v2.CreateNotificationConfigRequest) com.google.storage.v2.CreateNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateNotificationConfigRequest.class, - com.google.storage.v2.CreateNotificationConfigRequest.Builder.class); + com.google.storage.v2.CreateNotificationConfigRequest.class, com.google.storage.v2.CreateNotificationConfigRequest.Builder.class); } // Construct using com.google.storage.v2.CreateNotificationConfigRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationConfigFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +356,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; } @java.lang.Override @@ -418,11 +377,8 @@ public com.google.storage.v2.CreateNotificationConfigRequest build() { @java.lang.Override public com.google.storage.v2.CreateNotificationConfigRequest buildPartial() { - com.google.storage.v2.CreateNotificationConfigRequest result = - new com.google.storage.v2.CreateNotificationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.CreateNotificationConfigRequest result = new com.google.storage.v2.CreateNotificationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -432,51 +388,52 @@ private void buildPartial0(com.google.storage.v2.CreateNotificationConfigRequest if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.notificationConfig_ = - notificationConfigBuilder_ == null - ? notificationConfig_ - : notificationConfigBuilder_.build(); + result.notificationConfig_ = notificationConfigBuilder_ == null + ? notificationConfig_ + : notificationConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.CreateNotificationConfigRequest) { - return mergeFrom((com.google.storage.v2.CreateNotificationConfigRequest) other); + return mergeFrom((com.google.storage.v2.CreateNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -484,8 +441,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.CreateNotificationConfigRequest other) { - if (other == com.google.storage.v2.CreateNotificationConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.CreateNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -520,26 +476,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getNotificationConfigFieldBuilder().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( + getNotificationConfigFieldBuilder().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) { @@ -549,27 +503,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The bucket to which this NotificationConfig belongs.
      * 
* - * - * 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; @@ -578,23 +527,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The bucket to which this NotificationConfig belongs.
      * 
* - * - * 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 { @@ -602,39 +548,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The bucket to which this NotificationConfig belongs.
      * 
* - * - * 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 bucket to which this NotificationConfig belongs.
      * 
* - * - * 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() { @@ -644,23 +579,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The bucket to which this NotificationConfig belongs.
      * 
* - * - * 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; @@ -670,58 +599,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder> - notificationConfigBuilder_; + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder> notificationConfigBuilder_; /** - * - * *
      * Required. Properties of the NotificationConfig to be inserted.
      * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Properties of the NotificationConfig to be inserted.
      * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ public com.google.storage.v2.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null - ? com.google.storage.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.storage.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Properties of the NotificationConfig to be inserted.
      * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationConfig(com.google.storage.v2.NotificationConfig value) { if (notificationConfigBuilder_ == null) { @@ -737,15 +647,11 @@ public Builder setNotificationConfig(com.google.storage.v2.NotificationConfig va return this; } /** - * - * *
      * Required. Properties of the NotificationConfig to be inserted.
      * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationConfig( com.google.storage.v2.NotificationConfig.Builder builderForValue) { @@ -759,22 +665,17 @@ public Builder setNotificationConfig( return this; } /** - * - * *
      * Required. Properties of the NotificationConfig to be inserted.
      * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeNotificationConfig(com.google.storage.v2.NotificationConfig value) { if (notificationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && notificationConfig_ != null - && notificationConfig_ - != com.google.storage.v2.NotificationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + notificationConfig_ != null && + notificationConfig_ != com.google.storage.v2.NotificationConfig.getDefaultInstance()) { getNotificationConfigBuilder().mergeFrom(value); } else { notificationConfig_ = value; @@ -782,20 +683,18 @@ public Builder mergeNotificationConfig(com.google.storage.v2.NotificationConfig } else { notificationConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (notificationConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** - * - * *
      * Required. Properties of the NotificationConfig to be inserted.
      * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNotificationConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -808,15 +707,11 @@ public Builder clearNotificationConfig() { return this; } /** - * - * *
      * Required. Properties of the NotificationConfig to be inserted.
      * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.NotificationConfig.Builder getNotificationConfigBuilder() { bitField0_ |= 0x00000002; @@ -824,55 +719,43 @@ public com.google.storage.v2.NotificationConfig.Builder getNotificationConfigBui return getNotificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Properties of the NotificationConfig to be inserted.
      * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null - ? com.google.storage.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? + com.google.storage.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } } /** - * - * *
      * Required. Properties of the NotificationConfig to be inserted.
      * 
* - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder> + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder>( - getNotificationConfig(), getParentForChildren(), isClean()); + notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder>( + getNotificationConfig(), + getParentForChildren(), + isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; } - @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); } @@ -882,12 +765,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CreateNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.CreateNotificationConfigRequest) private static final com.google.storage.v2.CreateNotificationConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CreateNotificationConfigRequest(); } @@ -896,27 +779,27 @@ public static com.google.storage.v2.CreateNotificationConfigRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CreateNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -931,4 +814,6 @@ public com.google.protobuf.Parser getParserForT public com.google.storage.v2.CreateNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java new file mode 100644 index 0000000000..853c3b9e71 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.2 +package com.google.storage.v2; + +public interface CreateNotificationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.storage.v2.CreateNotificationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The bucket to which this NotificationConfig belongs.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The bucket to which this NotificationConfig belongs.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Properties of the NotificationConfig to be inserted.
+   * 
+ * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the notificationConfig field is set. + */ + boolean hasNotificationConfig(); + /** + *
+   * Required. Properties of the NotificationConfig to be inserted.
+   * 
+ * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The notificationConfig. + */ + com.google.storage.v2.NotificationConfig getNotificationConfig(); + /** + *
+   * Required. Properties of the NotificationConfig to be inserted.
+   * 
+ * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); +} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java similarity index 100% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java similarity index 68% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java index de15dd6a16..a1059808c9 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java @@ -1,26 +1,10 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Describes the Customer-Supplied Encryption Key mechanism used to store an
  * Object's data at rest.
@@ -28,16 +12,15 @@
  *
  * Protobuf type {@code google.storage.v2.CustomerEncryption}
  */
-public final class CustomerEncryption extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CustomerEncryption extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.storage.v2.CustomerEncryption)
     CustomerEncryptionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CustomerEncryption.newBuilder() to construct.
   private CustomerEncryption(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CustomerEncryption() {
     encryptionAlgorithm_ = "";
     keySha256Bytes_ = com.google.protobuf.ByteString.EMPTY;
@@ -45,38 +28,33 @@ private CustomerEncryption() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CustomerEncryption();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_CustomerEncryption_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CustomerEncryption_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.storage.v2.CustomerEncryption.class,
-            com.google.storage.v2.CustomerEncryption.Builder.class);
+            com.google.storage.v2.CustomerEncryption.class, com.google.storage.v2.CustomerEncryption.Builder.class);
   }
 
   public static final int ENCRYPTION_ALGORITHM_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object encryptionAlgorithm_ = "";
   /**
-   *
-   *
    * 
    * The encryption algorithm.
    * 
* * string encryption_algorithm = 1; - * * @return The encryptionAlgorithm. */ @java.lang.Override @@ -85,29 +63,29 @@ public java.lang.String getEncryptionAlgorithm() { 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(); encryptionAlgorithm_ = s; return s; } } /** - * - * *
    * The encryption algorithm.
    * 
* * string encryption_algorithm = 1; - * * @return The bytes for encryptionAlgorithm. */ @java.lang.Override - public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getEncryptionAlgorithmBytes() { java.lang.Object ref = encryptionAlgorithm_; 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); encryptionAlgorithm_ = b; return b; } else { @@ -118,15 +96,12 @@ public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { public static final int KEY_SHA256_BYTES_FIELD_NUMBER = 3; private com.google.protobuf.ByteString keySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * SHA256 hash value of the encryption key.
    * In raw bytes format (not base64-encoded).
    * 
* * bytes key_sha256_bytes = 3; - * * @return The keySha256Bytes. */ @java.lang.Override @@ -135,7 +110,6 @@ public com.google.protobuf.ByteString getKeySha256Bytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionAlgorithm_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encryptionAlgorithm_); } @@ -167,7 +142,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, encryptionAlgorithm_); } if (!keySha256Bytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, keySha256Bytes_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, keySha256Bytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,15 +153,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.storage.v2.CustomerEncryption)) { return super.equals(obj); } com.google.storage.v2.CustomerEncryption other = (com.google.storage.v2.CustomerEncryption) obj; - if (!getEncryptionAlgorithm().equals(other.getEncryptionAlgorithm())) return false; - if (!getKeySha256Bytes().equals(other.getKeySha256Bytes())) return false; + if (!getEncryptionAlgorithm() + .equals(other.getEncryptionAlgorithm())) return false; + if (!getKeySha256Bytes() + .equals(other.getKeySha256Bytes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -206,104 +184,99 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.CustomerEncryption parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.CustomerEncryption parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CustomerEncryption 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.storage.v2.CustomerEncryption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CustomerEncryption 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.storage.v2.CustomerEncryption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CustomerEncryption 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.storage.v2.CustomerEncryption 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.storage.v2.CustomerEncryption 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.storage.v2.CustomerEncryption parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.CustomerEncryption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.CustomerEncryption 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.storage.v2.CustomerEncryption 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.storage.v2.CustomerEncryption 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.storage.v2.CustomerEncryption 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; } /** - * - * *
    * Describes the Customer-Supplied Encryption Key mechanism used to store an
    * Object's data at rest.
@@ -311,32 +284,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.storage.v2.CustomerEncryption}
    */
-  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.storage.v2.CustomerEncryption)
       com.google.storage.v2.CustomerEncryptionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_CustomerEncryption_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CustomerEncryption_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.CustomerEncryption.class,
-              com.google.storage.v2.CustomerEncryption.Builder.class);
+              com.google.storage.v2.CustomerEncryption.class, com.google.storage.v2.CustomerEncryption.Builder.class);
     }
 
     // Construct using com.google.storage.v2.CustomerEncryption.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();
@@ -347,9 +321,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_CustomerEncryption_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CustomerEncryption_descriptor;
     }
 
     @java.lang.Override
@@ -368,11 +342,8 @@ public com.google.storage.v2.CustomerEncryption build() {
 
     @java.lang.Override
     public com.google.storage.v2.CustomerEncryption buildPartial() {
-      com.google.storage.v2.CustomerEncryption result =
-          new com.google.storage.v2.CustomerEncryption(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.storage.v2.CustomerEncryption result = new com.google.storage.v2.CustomerEncryption(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -391,39 +362,38 @@ private void buildPartial0(com.google.storage.v2.CustomerEncryption 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.storage.v2.CustomerEncryption) {
-        return mergeFrom((com.google.storage.v2.CustomerEncryption) other);
+        return mergeFrom((com.google.storage.v2.CustomerEncryption)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -466,25 +436,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                encryptionAlgorithm_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                keySha256Bytes_ = input.readBytes();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              encryptionAlgorithm_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              keySha256Bytes_ = input.readBytes();
+              bitField0_ |= 0x00000002;
+              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) {
@@ -494,25 +461,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object encryptionAlgorithm_ = "";
     /**
-     *
-     *
      * 
      * The encryption algorithm.
      * 
* * string encryption_algorithm = 1; - * * @return The encryptionAlgorithm. */ public java.lang.String getEncryptionAlgorithm() { java.lang.Object ref = encryptionAlgorithm_; 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(); encryptionAlgorithm_ = s; return s; @@ -521,21 +485,20 @@ public java.lang.String getEncryptionAlgorithm() { } } /** - * - * *
      * The encryption algorithm.
      * 
* * string encryption_algorithm = 1; - * * @return The bytes for encryptionAlgorithm. */ - public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getEncryptionAlgorithmBytes() { java.lang.Object ref = encryptionAlgorithm_; 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); encryptionAlgorithm_ = b; return b; } else { @@ -543,35 +506,28 @@ public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { } } /** - * - * *
      * The encryption algorithm.
      * 
* * string encryption_algorithm = 1; - * * @param value The encryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setEncryptionAlgorithm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncryptionAlgorithm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } encryptionAlgorithm_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The encryption algorithm.
      * 
* * string encryption_algorithm = 1; - * * @return This builder for chaining. */ public Builder clearEncryptionAlgorithm() { @@ -581,21 +537,17 @@ public Builder clearEncryptionAlgorithm() { return this; } /** - * - * *
      * The encryption algorithm.
      * 
* * string encryption_algorithm = 1; - * * @param value The bytes for encryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setEncryptionAlgorithmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncryptionAlgorithmBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); encryptionAlgorithm_ = value; bitField0_ |= 0x00000001; @@ -605,15 +557,12 @@ public Builder setEncryptionAlgorithmBytes(com.google.protobuf.ByteString value) private com.google.protobuf.ByteString keySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * SHA256 hash value of the encryption key.
      * In raw bytes format (not base64-encoded).
      * 
* * bytes key_sha256_bytes = 3; - * * @return The keySha256Bytes. */ @java.lang.Override @@ -621,37 +570,29 @@ public com.google.protobuf.ByteString getKeySha256Bytes() { return keySha256Bytes_; } /** - * - * *
      * SHA256 hash value of the encryption key.
      * In raw bytes format (not base64-encoded).
      * 
* * bytes key_sha256_bytes = 3; - * * @param value The keySha256Bytes to set. * @return This builder for chaining. */ public Builder setKeySha256Bytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } keySha256Bytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * SHA256 hash value of the encryption key.
      * In raw bytes format (not base64-encoded).
      * 
* * bytes key_sha256_bytes = 3; - * * @return This builder for chaining. */ public Builder clearKeySha256Bytes() { @@ -660,9 +601,9 @@ public Builder clearKeySha256Bytes() { 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); } @@ -672,12 +613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CustomerEncryption) } // @@protoc_insertion_point(class_scope:google.storage.v2.CustomerEncryption) private static final com.google.storage.v2.CustomerEncryption DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CustomerEncryption(); } @@ -686,27 +627,27 @@ public static com.google.storage.v2.CustomerEncryption getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerEncryption parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 CustomerEncryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -721,4 +662,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CustomerEncryption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java similarity index 54% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java index 4effd943b4..b1ee662c9b 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java @@ -1,63 +1,40 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface CustomerEncryptionOrBuilder - extends +public interface CustomerEncryptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.CustomerEncryption) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The encryption algorithm.
    * 
* * string encryption_algorithm = 1; - * * @return The encryptionAlgorithm. */ java.lang.String getEncryptionAlgorithm(); /** - * - * *
    * The encryption algorithm.
    * 
* * string encryption_algorithm = 1; - * * @return The bytes for encryptionAlgorithm. */ - com.google.protobuf.ByteString getEncryptionAlgorithmBytes(); + com.google.protobuf.ByteString + getEncryptionAlgorithmBytes(); /** - * - * *
    * SHA256 hash value of the encryption key.
    * In raw bytes format (not base64-encoded).
    * 
* * bytes key_sha256_bytes = 3; - * * @return The keySha256Bytes. */ com.google.protobuf.ByteString getKeySha256Bytes(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java similarity index 68% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java index 420d964461..7c2ff0253a 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java @@ -1,83 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for DeleteBucket.
  * 
* * Protobuf type {@code google.storage.v2.DeleteBucketRequest} */ -public final class DeleteBucketRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBucketRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.DeleteBucketRequest) DeleteBucketRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBucketRequest.newBuilder() to construct. private DeleteBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteBucketRequest.class, - com.google.storage.v2.DeleteBucketRequest.Builder.class); + com.google.storage.v2.DeleteBucketRequest.class, com.google.storage.v2.DeleteBucketRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of a bucket to delete.
    * 
* - * - * 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 @@ -86,31 +62,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 a bucket to delete.
    * 
* - * - * 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 { @@ -121,14 +95,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 2; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * If set, only deletes the bucket if its metageneration matches this value.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -136,14 +107,11 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * If set, only deletes the bucket if its metageneration matches this value.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -154,15 +122,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * If set, only deletes the bucket if its metageneration does not match this
    * value.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -170,15 +135,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * If set, only deletes the bucket if its metageneration does not match this
    * value.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -187,7 +149,6 @@ public long getIfMetagenerationNotMatch() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +160,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_); } @@ -222,10 +184,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifMetagenerationNotMatch_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -235,22 +199,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.storage.v2.DeleteBucketRequest)) { return super.equals(obj); } - com.google.storage.v2.DeleteBucketRequest other = - (com.google.storage.v2.DeleteBucketRequest) obj; + com.google.storage.v2.DeleteBucketRequest other = (com.google.storage.v2.DeleteBucketRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -267,147 +233,145 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.DeleteBucketRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.DeleteBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteBucketRequest 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.storage.v2.DeleteBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteBucketRequest 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.storage.v2.DeleteBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteBucketRequest 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.storage.v2.DeleteBucketRequest 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.storage.v2.DeleteBucketRequest 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.storage.v2.DeleteBucketRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.DeleteBucketRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.DeleteBucketRequest 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.storage.v2.DeleteBucketRequest 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.storage.v2.DeleteBucketRequest 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.storage.v2.DeleteBucketRequest 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 DeleteBucket.
    * 
* * Protobuf type {@code google.storage.v2.DeleteBucketRequest} */ - 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.storage.v2.DeleteBucketRequest) com.google.storage.v2.DeleteBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteBucketRequest.class, - com.google.storage.v2.DeleteBucketRequest.Builder.class); + com.google.storage.v2.DeleteBucketRequest.class, com.google.storage.v2.DeleteBucketRequest.Builder.class); } // Construct using com.google.storage.v2.DeleteBucketRequest.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(); @@ -419,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_descriptor; } @java.lang.Override @@ -440,11 +404,8 @@ public com.google.storage.v2.DeleteBucketRequest build() { @java.lang.Override public com.google.storage.v2.DeleteBucketRequest buildPartial() { - com.google.storage.v2.DeleteBucketRequest result = - new com.google.storage.v2.DeleteBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.DeleteBucketRequest result = new com.google.storage.v2.DeleteBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -470,39 +431,38 @@ private void buildPartial0(com.google.storage.v2.DeleteBucketRequest 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.storage.v2.DeleteBucketRequest) { - return mergeFrom((com.google.storage.v2.DeleteBucketRequest) other); + return mergeFrom((com.google.storage.v2.DeleteBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -548,31 +508,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - 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 16: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ifMetagenerationNotMatch_ = input.readInt64(); + 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) { @@ -582,27 +538,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of a bucket to delete.
      * 
* - * - * 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; @@ -611,23 +562,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of a bucket to delete.
      * 
* - * - * 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 { @@ -635,39 +583,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of a bucket to delete.
      * 
* - * - * 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 a bucket to delete.
      * 
* - * - * 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() { @@ -677,23 +614,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of a bucket to delete.
      * 
* - * - * 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; @@ -701,16 +632,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * If set, only deletes the bucket if its metageneration matches this value.
      * 
* * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -718,14 +646,11 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * If set, only deletes the bucket if its metageneration matches this value.
      * 
* * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -733,14 +658,11 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * If set, only deletes the bucket if its metageneration matches this value.
      * 
* * optional int64 if_metageneration_match = 2; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -752,14 +674,11 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * If set, only deletes the bucket if its metageneration matches this value.
      * 
* * optional int64 if_metageneration_match = 2; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -769,17 +688,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * If set, only deletes the bucket if its metageneration does not match this
      * value.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -787,15 +703,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * If set, only deletes the bucket if its metageneration does not match this
      * value.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -803,15 +716,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * If set, only deletes the bucket if its metageneration does not match this
      * value.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -823,15 +733,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * If set, only deletes the bucket if its metageneration does not match this
      * value.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -840,9 +747,9 @@ public Builder clearIfMetagenerationNotMatch() { 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); } @@ -852,12 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.DeleteBucketRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.DeleteBucketRequest) private static final com.google.storage.v2.DeleteBucketRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.DeleteBucketRequest(); } @@ -866,27 +773,27 @@ public static com.google.storage.v2.DeleteBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -901,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.DeleteBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java index fa645400a8..27f182a77a 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java @@ -1,105 +1,69 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface DeleteBucketRequestOrBuilder - extends +public interface DeleteBucketRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.DeleteBucketRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of a bucket to delete.
    * 
* - * - * 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 a bucket to delete.
    * 
* - * - * 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(); /** - * - * *
    * If set, only deletes the bucket if its metageneration matches this value.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * If set, only deletes the bucket if its metageneration matches this value.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * If set, only deletes the bucket if its metageneration does not match this
    * value.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * If set, only deletes the bucket if its metageneration does not match this
    * value.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java similarity index 65% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java index 7361ab0de8..f7496c101a 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request object to delete a given HMAC key.
  * 
* * Protobuf type {@code google.storage.v2.DeleteHmacKeyRequest} */ -public final class DeleteHmacKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteHmacKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.DeleteHmacKeyRequest) DeleteHmacKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteHmacKeyRequest.newBuilder() to construct. private DeleteHmacKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteHmacKeyRequest() { accessId_ = ""; project_ = ""; @@ -44,38 +27,33 @@ private DeleteHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteHmacKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteHmacKeyRequest.class, - com.google.storage.v2.DeleteHmacKeyRequest.Builder.class); + com.google.storage.v2.DeleteHmacKeyRequest.class, com.google.storage.v2.DeleteHmacKeyRequest.Builder.class); } public static final int ACCESS_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object accessId_ = ""; /** - * - * *
    * Required. The identifying key for the HMAC to delete.
    * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accessId. */ @java.lang.Override @@ -84,29 +62,29 @@ public java.lang.String getAccessId() { 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(); accessId_ = s; return s; } } /** - * - * *
    * Required. The identifying key for the HMAC to delete.
    * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accessId. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; 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); accessId_ = b; return b; } else { @@ -115,22 +93,16 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } public static final int PROJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
    * Required. The project that owns the HMAC key, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -139,33 +111,31 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** - * - * *
    * Required. The project that owns the HMAC key, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -174,7 +144,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +155,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(accessId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessId_); } @@ -216,16 +186,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.storage.v2.DeleteHmacKeyRequest)) { return super.equals(obj); } - com.google.storage.v2.DeleteHmacKeyRequest other = - (com.google.storage.v2.DeleteHmacKeyRequest) obj; + com.google.storage.v2.DeleteHmacKeyRequest other = (com.google.storage.v2.DeleteHmacKeyRequest) obj; - if (!getAccessId().equals(other.getAccessId())) return false; - if (!getProject().equals(other.getProject())) return false; + if (!getAccessId() + .equals(other.getAccessId())) return false; + if (!getProject() + .equals(other.getProject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,136 +217,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteHmacKeyRequest 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.storage.v2.DeleteHmacKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteHmacKeyRequest 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.storage.v2.DeleteHmacKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteHmacKeyRequest 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.storage.v2.DeleteHmacKeyRequest 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.storage.v2.DeleteHmacKeyRequest 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.storage.v2.DeleteHmacKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.DeleteHmacKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.DeleteHmacKeyRequest 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.storage.v2.DeleteHmacKeyRequest 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.storage.v2.DeleteHmacKeyRequest 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.storage.v2.DeleteHmacKeyRequest 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 object to delete a given HMAC key.
    * 
* * Protobuf type {@code google.storage.v2.DeleteHmacKeyRequest} */ - 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.storage.v2.DeleteHmacKeyRequest) com.google.storage.v2.DeleteHmacKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteHmacKeyRequest.class, - com.google.storage.v2.DeleteHmacKeyRequest.Builder.class); + com.google.storage.v2.DeleteHmacKeyRequest.class, com.google.storage.v2.DeleteHmacKeyRequest.Builder.class); } // Construct using com.google.storage.v2.DeleteHmacKeyRequest.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(); @@ -386,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; } @java.lang.Override @@ -407,11 +374,8 @@ public com.google.storage.v2.DeleteHmacKeyRequest build() { @java.lang.Override public com.google.storage.v2.DeleteHmacKeyRequest buildPartial() { - com.google.storage.v2.DeleteHmacKeyRequest result = - new com.google.storage.v2.DeleteHmacKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.DeleteHmacKeyRequest result = new com.google.storage.v2.DeleteHmacKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -430,39 +394,38 @@ private void buildPartial0(com.google.storage.v2.DeleteHmacKeyRequest 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.storage.v2.DeleteHmacKeyRequest) { - return mergeFrom((com.google.storage.v2.DeleteHmacKeyRequest) other); + return mergeFrom((com.google.storage.v2.DeleteHmacKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -507,25 +470,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - accessId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + accessId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + project_ = 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) { @@ -535,25 +495,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object accessId_ = ""; /** - * - * *
      * Required. The identifying key for the HMAC to delete.
      * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accessId. */ public java.lang.String getAccessId() { java.lang.Object ref = accessId_; 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(); accessId_ = s; return s; @@ -562,21 +519,20 @@ public java.lang.String getAccessId() { } } /** - * - * *
      * Required. The identifying key for the HMAC to delete.
      * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accessId. */ - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; 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); accessId_ = b; return b; } else { @@ -584,35 +540,28 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } } /** - * - * *
      * Required. The identifying key for the HMAC to delete.
      * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The accessId to set. * @return This builder for chaining. */ - public Builder setAccessId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } accessId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The identifying key for the HMAC to delete.
      * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAccessId() { @@ -622,21 +571,17 @@ public Builder clearAccessId() { return this; } /** - * - * *
      * Required. The identifying key for the HMAC to delete.
      * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for accessId to set. * @return This builder for chaining. */ - public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessId_ = value; bitField0_ |= 0x00000001; @@ -646,24 +591,20 @@ public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
      * Required. The project that owns the HMAC key, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -672,25 +613,22 @@ public java.lang.String getProject() { } } /** - * - * *
      * Required. The project that owns the HMAC key, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -698,43 +636,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Required. The project that owns the HMAC key, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The project that owns the HMAC key, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -744,34 +671,28 @@ public Builder clearProject() { return this; } /** - * - * *
      * Required. The project that owns the HMAC key, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000002; 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); } @@ -781,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.DeleteHmacKeyRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.DeleteHmacKeyRequest) private static final com.google.storage.v2.DeleteHmacKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.DeleteHmacKeyRequest(); } @@ -795,27 +716,27 @@ public static com.google.storage.v2.DeleteHmacKeyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHmacKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteHmacKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -830,4 +751,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.DeleteHmacKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java index 184aff6b63..02622e952a 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java @@ -1,83 +1,54 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface DeleteHmacKeyRequestOrBuilder - extends +public interface DeleteHmacKeyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.DeleteHmacKeyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The identifying key for the HMAC to delete.
    * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accessId. */ java.lang.String getAccessId(); /** - * - * *
    * Required. The identifying key for the HMAC to delete.
    * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accessId. */ - com.google.protobuf.ByteString getAccessIdBytes(); + com.google.protobuf.ByteString + getAccessIdBytes(); /** - * - * *
    * Required. The project that owns the HMAC key, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
    * Required. The project that owns the HMAC key, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java similarity index 61% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java index 1d2062f8b9..372f13ce3a 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for DeleteNotificationConfig.
  * 
* * Protobuf type {@code google.storage.v2.DeleteNotificationConfigRequest} */ -public final class DeleteNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.DeleteNotificationConfigRequest) DeleteNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteNotificationConfigRequest.newBuilder() to construct. - private DeleteNotificationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteNotificationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteNotificationConfigRequest.class, - com.google.storage.v2.DeleteNotificationConfigRequest.Builder.class); + com.google.storage.v2.DeleteNotificationConfigRequest.class, com.google.storage.v2.DeleteNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The parent bucket of the NotificationConfig.
    * 
* - * - * 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 @@ -86,31 +61,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. The parent bucket of the NotificationConfig.
    * 
* - * - * 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 { @@ -119,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +103,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_); } @@ -155,15 +128,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.storage.v2.DeleteNotificationConfigRequest)) { return super.equals(obj); } - com.google.storage.v2.DeleteNotificationConfigRequest other = - (com.google.storage.v2.DeleteNotificationConfigRequest) obj; + com.google.storage.v2.DeleteNotificationConfigRequest other = (com.google.storage.v2.DeleteNotificationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,136 +156,131 @@ public int hashCode() { } public static com.google.storage.v2.DeleteNotificationConfigRequest 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.storage.v2.DeleteNotificationConfigRequest 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.storage.v2.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteNotificationConfigRequest 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.storage.v2.DeleteNotificationConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteNotificationConfigRequest 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.storage.v2.DeleteNotificationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.DeleteNotificationConfigRequest 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.storage.v2.DeleteNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.DeleteNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.DeleteNotificationConfigRequest 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.storage.v2.DeleteNotificationConfigRequest 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.storage.v2.DeleteNotificationConfigRequest 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.storage.v2.DeleteNotificationConfigRequest prototype) { + public static Builder newBuilder(com.google.storage.v2.DeleteNotificationConfigRequest 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 DeleteNotificationConfig.
    * 
* * Protobuf type {@code google.storage.v2.DeleteNotificationConfigRequest} */ - 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.storage.v2.DeleteNotificationConfigRequest) com.google.storage.v2.DeleteNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteNotificationConfigRequest.class, - com.google.storage.v2.DeleteNotificationConfigRequest.Builder.class); + com.google.storage.v2.DeleteNotificationConfigRequest.class, com.google.storage.v2.DeleteNotificationConfigRequest.Builder.class); } // Construct using com.google.storage.v2.DeleteNotificationConfigRequest.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 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override @@ -343,11 +311,8 @@ public com.google.storage.v2.DeleteNotificationConfigRequest build() { @java.lang.Override public com.google.storage.v2.DeleteNotificationConfigRequest buildPartial() { - com.google.storage.v2.DeleteNotificationConfigRequest result = - new com.google.storage.v2.DeleteNotificationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.DeleteNotificationConfigRequest result = new com.google.storage.v2.DeleteNotificationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +328,38 @@ private void buildPartial0(com.google.storage.v2.DeleteNotificationConfigRequest 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.storage.v2.DeleteNotificationConfigRequest) { - return mergeFrom((com.google.storage.v2.DeleteNotificationConfigRequest) other); + return mergeFrom((com.google.storage.v2.DeleteNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -403,8 +367,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.DeleteNotificationConfigRequest other) { - if (other == com.google.storage.v2.DeleteNotificationConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.DeleteNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -436,19 +399,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) { @@ -458,27 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The parent bucket of the NotificationConfig.
      * 
* - * - * 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; @@ -487,23 +443,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The parent bucket of the NotificationConfig.
      * 
* - * - * 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 { @@ -511,39 +464,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The parent bucket of the NotificationConfig.
      * 
* - * - * 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. The parent bucket of the NotificationConfig.
      * 
* - * - * 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() { @@ -553,32 +495,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The parent bucket of the NotificationConfig.
      * 
* - * - * 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); } @@ -588,12 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.DeleteNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.DeleteNotificationConfigRequest) private static final com.google.storage.v2.DeleteNotificationConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.DeleteNotificationConfigRequest(); } @@ -602,27 +538,27 @@ public static com.google.storage.v2.DeleteNotificationConfigRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 +573,6 @@ public com.google.protobuf.Parser getParserForT public com.google.storage.v2.DeleteNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java new file mode 100644 index 0000000000..7e6bbef196 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.2 +package com.google.storage.v2; + +public interface DeleteNotificationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.storage.v2.DeleteNotificationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent bucket of the NotificationConfig.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The parent bucket of the NotificationConfig.
+   * 
+ * + * 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-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java similarity index 73% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java index d704ca0794..8029a48b19 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java @@ -1,26 +1,10 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Message for deleting an object.
  * `bucket` and `object` **must** be set.
@@ -28,16 +12,15 @@
  *
  * Protobuf type {@code google.storage.v2.DeleteObjectRequest}
  */
-public final class DeleteObjectRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteObjectRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.storage.v2.DeleteObjectRequest)
     DeleteObjectRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteObjectRequest.newBuilder() to construct.
   private DeleteObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteObjectRequest() {
     bucket_ = "";
     object_ = "";
@@ -45,41 +28,34 @@ private DeleteObjectRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteObjectRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.storage.v2.DeleteObjectRequest.class,
-            com.google.storage.v2.DeleteObjectRequest.Builder.class);
+            com.google.storage.v2.DeleteObjectRequest.class, com.google.storage.v2.DeleteObjectRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int BUCKET_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object bucket_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -88,31 +64,29 @@ public java.lang.String getBucket() { 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(); bucket_ = s; return s; } } /** - * - * *
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -121,12 +95,9 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int OBJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object object_ = ""; /** - * - * *
    * Required. The name of the finalized object to delete.
    * Note: If you want to delete an unfinalized resumable upload please use
@@ -134,7 +105,6 @@ public com.google.protobuf.ByteString getBucketBytes() {
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -143,15 +113,14 @@ public java.lang.String getObject() { 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(); object_ = s; return s; } } /** - * - * *
    * Required. The name of the finalized object to delete.
    * Note: If you want to delete an unfinalized resumable upload please use
@@ -159,15 +128,16 @@ public java.lang.String getObject() {
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; 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); object_ = b; return b; } else { @@ -178,15 +148,12 @@ public com.google.protobuf.ByteString getObjectBytes() { public static final int GENERATION_FIELD_NUMBER = 4; private long generation_ = 0L; /** - * - * *
    * If present, permanently deletes a specific revision of this object (as
    * opposed to the latest version, the default).
    * 
* * int64 generation = 4; - * * @return The generation. */ @java.lang.Override @@ -197,8 +164,6 @@ public long getGeneration() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 5; private long ifGenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -206,7 +171,6 @@ public long getGeneration() {
    * 
* * optional int64 if_generation_match = 5; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -214,8 +178,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -223,7 +185,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 5; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -234,8 +195,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 6; private long ifGenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -244,7 +203,6 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 6; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -252,8 +210,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -262,7 +218,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 6; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -273,15 +228,12 @@ public long getIfGenerationNotMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 7; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 7; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -289,15 +241,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 7; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -308,15 +257,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 8; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 8; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -324,15 +270,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 8; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -343,40 +286,30 @@ public long getIfMetagenerationNotMatch() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 10; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { - return commonObjectRequestParams_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -384,15 +317,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,7 +333,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(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -426,7 +356,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(8, ifMetagenerationNotMatch_); } - if (commonObjectRequestParams_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(10, getCommonObjectRequestParams()); } getUnknownFields().writeTo(output); @@ -445,24 +375,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, generation_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, generation_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifGenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, ifMetagenerationNotMatch_); } - if (commonObjectRequestParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getCommonObjectRequestParams()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -472,37 +406,43 @@ 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.storage.v2.DeleteObjectRequest)) { return super.equals(obj); } - com.google.storage.v2.DeleteObjectRequest other = - (com.google.storage.v2.DeleteObjectRequest) obj; + com.google.storage.v2.DeleteObjectRequest other = (com.google.storage.v2.DeleteObjectRequest) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (!getObject().equals(other.getObject())) return false; - if (getGeneration() != other.getGeneration()) return false; + if (!getBucket() + .equals(other.getBucket())) return false; + if (!getObject() + .equals(other.getObject())) return false; + if (getGeneration() + != other.getGeneration()) return false; if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { - if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; + if (getIfGenerationMatch() + != other.getIfGenerationMatch()) return false; } if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false; if (hasIfGenerationNotMatch()) { - if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false; + if (getIfGenerationNotMatch() + != other.getIfGenerationNotMatch()) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -520,22 +460,27 @@ public int hashCode() { hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); if (hasIfGenerationMatch()) { hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationMatch()); } if (hasIfGenerationNotMatch()) { hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationNotMatch()); } if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } if (hasCommonObjectRequestParams()) { hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER; @@ -546,104 +491,99 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.DeleteObjectRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.DeleteObjectRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteObjectRequest 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.storage.v2.DeleteObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteObjectRequest 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.storage.v2.DeleteObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteObjectRequest 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.storage.v2.DeleteObjectRequest 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.storage.v2.DeleteObjectRequest 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.storage.v2.DeleteObjectRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.DeleteObjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.DeleteObjectRequest 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.storage.v2.DeleteObjectRequest 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.storage.v2.DeleteObjectRequest 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.storage.v2.DeleteObjectRequest 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; } /** - * - * *
    * Message for deleting an object.
    * `bucket` and `object` **must** be set.
@@ -651,32 +591,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.storage.v2.DeleteObjectRequest}
    */
-  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.storage.v2.DeleteObjectRequest)
       com.google.storage.v2.DeleteObjectRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.DeleteObjectRequest.class,
-              com.google.storage.v2.DeleteObjectRequest.Builder.class);
+              com.google.storage.v2.DeleteObjectRequest.class, com.google.storage.v2.DeleteObjectRequest.Builder.class);
     }
 
     // Construct using com.google.storage.v2.DeleteObjectRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+        getCommonObjectRequestParamsFieldBuilder();
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -697,9 +644,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
     }
 
     @java.lang.Override
@@ -718,11 +665,8 @@ public com.google.storage.v2.DeleteObjectRequest build() {
 
     @java.lang.Override
     public com.google.storage.v2.DeleteObjectRequest buildPartial() {
-      com.google.storage.v2.DeleteObjectRequest result =
-          new com.google.storage.v2.DeleteObjectRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.storage.v2.DeleteObjectRequest result = new com.google.storage.v2.DeleteObjectRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -756,10 +700,10 @@ private void buildPartial0(com.google.storage.v2.DeleteObjectRequest result) {
         to_bitField0_ |= 0x00000008;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.commonObjectRequestParams_ =
-            commonObjectRequestParamsBuilder_ == null
-                ? commonObjectRequestParams_
-                : commonObjectRequestParamsBuilder_.build();
+        result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null
+            ? commonObjectRequestParams_
+            : commonObjectRequestParamsBuilder_.build();
+        to_bitField0_ |= 0x00000010;
       }
       result.bitField0_ |= to_bitField0_;
     }
@@ -768,39 +712,38 @@ private void buildPartial0(com.google.storage.v2.DeleteObjectRequest 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.storage.v2.DeleteObjectRequest) {
-        return mergeFrom((com.google.storage.v2.DeleteObjectRequest) other);
+        return mergeFrom((com.google.storage.v2.DeleteObjectRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -863,62 +806,54 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                bucket_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                object_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 32:
-              {
-                generation_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            case 40:
-              {
-                ifGenerationMatch_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 40
-            case 48:
-              {
-                ifGenerationNotMatch_ = input.readInt64();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 48
-            case 56:
-              {
-                ifMetagenerationMatch_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 56
-            case 64:
-              {
-                ifMetagenerationNotMatch_ = input.readInt64();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 64
-            case 82:
-              {
-                input.readMessage(
-                    getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 82
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              bucket_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              object_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 32: {
+              generation_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            case 40: {
+              ifGenerationMatch_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 40
+            case 48: {
+              ifGenerationNotMatch_ = input.readInt64();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 48
+            case 56: {
+              ifMetagenerationMatch_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 56
+            case 64: {
+              ifMetagenerationNotMatch_ = input.readInt64();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 64
+            case 82: {
+              input.readMessage(
+                  getCommonObjectRequestParamsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              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) {
@@ -928,27 +863,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object bucket_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; 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(); bucket_ = s; return s; @@ -957,23 +887,20 @@ public java.lang.String getBucket() { } } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -981,39 +908,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBucket() { @@ -1023,23 +939,17 @@ public Builder clearBucket() { return this; } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -1049,8 +959,6 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object object_ = ""; /** - * - * *
      * Required. The name of the finalized object to delete.
      * Note: If you want to delete an unfinalized resumable upload please use
@@ -1058,13 +966,13 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) {
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; 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(); object_ = s; return s; @@ -1073,8 +981,6 @@ public java.lang.String getObject() { } } /** - * - * *
      * Required. The name of the finalized object to delete.
      * Note: If you want to delete an unfinalized resumable upload please use
@@ -1082,14 +988,15 @@ public java.lang.String getObject() {
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; 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); object_ = b; return b; } else { @@ -1097,8 +1004,6 @@ public com.google.protobuf.ByteString getObjectBytes() { } } /** - * - * *
      * Required. The name of the finalized object to delete.
      * Note: If you want to delete an unfinalized resumable upload please use
@@ -1106,22 +1011,18 @@ public com.google.protobuf.ByteString getObjectBytes() {
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } object_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The name of the finalized object to delete.
      * Note: If you want to delete an unfinalized resumable upload please use
@@ -1129,7 +1030,6 @@ public Builder setObject(java.lang.String value) {
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearObject() { @@ -1139,8 +1039,6 @@ public Builder clearObject() { return this; } /** - * - * *
      * Required. The name of the finalized object to delete.
      * Note: If you want to delete an unfinalized resumable upload please use
@@ -1148,14 +1046,12 @@ public Builder clearObject() {
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000002; @@ -1163,17 +1059,14 @@ public Builder setObjectBytes(com.google.protobuf.ByteString value) { return this; } - private long generation_; + private long generation_ ; /** - * - * *
      * If present, permanently deletes a specific revision of this object (as
      * opposed to the latest version, the default).
      * 
* * int64 generation = 4; - * * @return The generation. */ @java.lang.Override @@ -1181,15 +1074,12 @@ public long getGeneration() { return generation_; } /** - * - * *
      * If present, permanently deletes a specific revision of this object (as
      * opposed to the latest version, the default).
      * 
* * int64 generation = 4; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -1201,15 +1091,12 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
      * If present, permanently deletes a specific revision of this object (as
      * opposed to the latest version, the default).
      * 
* * int64 generation = 4; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1219,10 +1106,8 @@ public Builder clearGeneration() { return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1230,7 +1115,6 @@ public Builder clearGeneration() {
      * 
* * optional int64 if_generation_match = 5; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1238,8 +1122,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1247,7 +1129,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 5; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1255,8 +1136,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1264,7 +1143,6 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 5; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1276,8 +1154,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1285,7 +1161,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 5; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1295,10 +1170,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1307,7 +1180,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 6; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1315,8 +1187,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1325,7 +1195,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 6; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1333,8 +1202,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1343,7 +1210,6 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 6; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1355,8 +1221,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1365,7 +1229,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 6; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1375,17 +1238,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 7; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1393,15 +1253,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 7; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1409,15 +1266,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 7; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1429,15 +1283,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 7; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1447,17 +1298,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 8; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1465,15 +1313,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 8; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1481,15 +1326,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 8; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1501,15 +1343,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 8; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1521,55 +1360,41 @@ public Builder clearIfMetagenerationNotMatch() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1583,8 +1408,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1603,21 +1426,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -1625,13 +1444,13 @@ public Builder mergeCommonObjectRequestParams( } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (commonObjectRequestParams_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1649,42 +1468,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1692,24 +1502,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @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); } @@ -1719,12 +1526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.DeleteObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.DeleteObjectRequest) private static final com.google.storage.v2.DeleteObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.DeleteObjectRequest(); } @@ -1733,27 +1540,27 @@ public static com.google.storage.v2.DeleteObjectRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 DeleteObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1768,4 +1575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.DeleteObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java similarity index 81% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java index f746d4410c..8d1aa7e5a3 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java @@ -1,60 +1,34 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface DeleteObjectRequestOrBuilder - extends +public interface DeleteObjectRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.DeleteObjectRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ java.lang.String getBucket(); /** - * - * *
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString + getBucketBytes(); /** - * - * *
    * Required. The name of the finalized object to delete.
    * Note: If you want to delete an unfinalized resumable upload please use
@@ -62,13 +36,10 @@ public interface DeleteObjectRequestOrBuilder
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ java.lang.String getObject(); /** - * - * *
    * Required. The name of the finalized object to delete.
    * Note: If you want to delete an unfinalized resumable upload please use
@@ -76,28 +47,23 @@ public interface DeleteObjectRequestOrBuilder
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - com.google.protobuf.ByteString getObjectBytes(); + com.google.protobuf.ByteString + getObjectBytes(); /** - * - * *
    * If present, permanently deletes a specific revision of this object (as
    * opposed to the latest version, the default).
    * 
* * int64 generation = 4; - * * @return The generation. */ long getGeneration(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -105,13 +71,10 @@ public interface DeleteObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 5; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -119,14 +82,11 @@ public interface DeleteObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 5; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -135,13 +95,10 @@ public interface DeleteObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 6; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -150,92 +107,71 @@ public interface DeleteObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 6; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 7; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 7; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 8; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 8; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java similarity index 71% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java index 6de2a5ae7d..413462d251 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java @@ -1,83 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for GetBucket.
  * 
* * Protobuf type {@code google.storage.v2.GetBucketRequest} */ -public final class GetBucketRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBucketRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.GetBucketRequest) GetBucketRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBucketRequest.newBuilder() to construct. private GetBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetBucketRequest.class, - com.google.storage.v2.GetBucketRequest.Builder.class); + com.google.storage.v2.GetBucketRequest.class, com.google.storage.v2.GetBucketRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of a bucket.
    * 
* - * - * 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 @@ -86,31 +62,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 a bucket.
    * 
* - * - * 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 { @@ -121,15 +95,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 2; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * If set, and if the bucket's current metageneration does not match the
    * specified value, the request will return an error.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -137,15 +108,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * If set, and if the bucket's current metageneration does not match the
    * specified value, the request will return an error.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -156,15 +124,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * If set, and if the bucket's current metageneration matches the specified
    * value, the request will return an error.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -172,15 +137,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * If set, and if the bucket's current metageneration matches the specified
    * value, the request will return an error.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -191,8 +153,6 @@ public long getIfMetagenerationNotMatch() { public static final int READ_MASK_FIELD_NUMBER = 5; private com.google.protobuf.FieldMask readMask_; /** - * - * *
    * Mask specifying which fields to read.
    * A "*" field may be used to indicate all fields.
@@ -200,7 +160,6 @@ public long getIfMetagenerationNotMatch() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ @java.lang.Override @@ -208,8 +167,6 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Mask specifying which fields to read.
    * A "*" field may be used to indicate all fields.
@@ -217,7 +174,6 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ @java.lang.Override @@ -225,8 +181,6 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** - * - * *
    * Mask specifying which fields to read.
    * A "*" field may be used to indicate all fields.
@@ -241,7 +195,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -253,7 +206,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_);
     }
@@ -279,13 +233,16 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifMetagenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, ifMetagenerationMatch_);
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationNotMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, ifMetagenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getReadMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -295,25 +252,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.storage.v2.GetBucketRequest)) {
       return super.equals(obj);
     }
     com.google.storage.v2.GetBucketRequest other = (com.google.storage.v2.GetBucketRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false;
     if (hasIfMetagenerationMatch()) {
-      if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false;
+      if (getIfMetagenerationMatch()
+          != other.getIfMetagenerationMatch()) return false;
     }
     if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false;
     if (hasIfMetagenerationNotMatch()) {
-      if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false;
+      if (getIfMetagenerationNotMatch()
+          != other.getIfMetagenerationNotMatch()) return false;
     }
     if (hasReadMask() != other.hasReadMask()) return false;
     if (hasReadMask()) {
-      if (!getReadMask().equals(other.getReadMask())) return false;
+      if (!getReadMask()
+          .equals(other.getReadMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -330,11 +291,13 @@ public int hashCode() {
     hash = (53 * hash) + getName().hashCode();
     if (hasIfMetagenerationMatch()) {
       hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfMetagenerationMatch());
     }
     if (hasIfMetagenerationNotMatch()) {
       hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfMetagenerationNotMatch());
     }
     if (hasReadMask()) {
       hash = (37 * hash) + READ_MASK_FIELD_NUMBER;
@@ -345,127 +308,120 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.GetBucketRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.GetBucketRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.GetBucketRequest 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.storage.v2.GetBucketRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.GetBucketRequest 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.storage.v2.GetBucketRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.GetBucketRequest 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.storage.v2.GetBucketRequest 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.storage.v2.GetBucketRequest 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.storage.v2.GetBucketRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.GetBucketRequest 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.storage.v2.GetBucketRequest 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.storage.v2.GetBucketRequest 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.storage.v2.GetBucketRequest 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 GetBucket.
    * 
* * Protobuf type {@code google.storage.v2.GetBucketRequest} */ - 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.storage.v2.GetBucketRequest) com.google.storage.v2.GetBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetBucketRequest.class, - com.google.storage.v2.GetBucketRequest.Builder.class); + com.google.storage.v2.GetBucketRequest.class, com.google.storage.v2.GetBucketRequest.Builder.class); } // Construct using com.google.storage.v2.GetBucketRequest.newBuilder() @@ -473,17 +429,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getReadMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -500,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_descriptor; } @java.lang.Override @@ -521,11 +477,8 @@ public com.google.storage.v2.GetBucketRequest build() { @java.lang.Override public com.google.storage.v2.GetBucketRequest buildPartial() { - com.google.storage.v2.GetBucketRequest result = - new com.google.storage.v2.GetBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.GetBucketRequest result = new com.google.storage.v2.GetBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -545,7 +498,9 @@ private void buildPartial0(com.google.storage.v2.GetBucketRequest result) { to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null + ? readMask_ + : readMaskBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -555,39 +510,38 @@ private void buildPartial0(com.google.storage.v2.GetBucketRequest 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.storage.v2.GetBucketRequest) { - return mergeFrom((com.google.storage.v2.GetBucketRequest) other); + return mergeFrom((com.google.storage.v2.GetBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -636,37 +590,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 42: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - 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: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: { + input.readMessage( + getReadMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + 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) { @@ -676,27 +627,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of a bucket.
      * 
* - * - * 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; @@ -705,23 +651,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of a bucket.
      * 
* - * - * 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 { @@ -729,39 +672,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of a bucket.
      * 
* - * - * 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 a bucket.
      * 
* - * - * 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() { @@ -771,23 +703,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of a bucket.
      * 
* - * - * 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; @@ -795,17 +721,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * If set, and if the bucket's current metageneration does not match the
      * specified value, the request will return an error.
      * 
* * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -813,15 +736,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * If set, and if the bucket's current metageneration does not match the
      * specified value, the request will return an error.
      * 
* * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -829,15 +749,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * If set, and if the bucket's current metageneration does not match the
      * specified value, the request will return an error.
      * 
* * optional int64 if_metageneration_match = 2; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -849,15 +766,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * If set, and if the bucket's current metageneration does not match the
      * specified value, the request will return an error.
      * 
* * optional int64 if_metageneration_match = 2; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -867,17 +781,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * If set, and if the bucket's current metageneration matches the specified
      * value, the request will return an error.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -885,15 +796,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * If set, and if the bucket's current metageneration matches the specified
      * value, the request will return an error.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -901,15 +809,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * If set, and if the bucket's current metageneration matches the specified
      * value, the request will return an error.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -921,15 +826,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * If set, and if the bucket's current metageneration matches the specified
      * value, the request will return an error.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -941,13 +843,8 @@ public Builder clearIfMetagenerationNotMatch() { private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; /** - * - * *
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -955,15 +852,12 @@ public Builder clearIfMetagenerationNotMatch() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -971,7 +865,6 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -982,8 +875,6 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -1006,8 +897,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -1016,7 +905,8 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
      *
      * optional .google.protobuf.FieldMask read_mask = 5;
      */
-    public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setReadMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (readMaskBuilder_ == null) {
         readMask_ = builderForValue.build();
       } else {
@@ -1027,8 +917,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -1039,9 +927,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
      */
     public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       if (readMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && readMask_ != null
-            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          readMask_ != null &&
+          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getReadMaskBuilder().mergeFrom(value);
         } else {
           readMask_ = value;
@@ -1049,13 +937,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       } else {
         readMaskBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000008;
-      onChanged();
+      if (readMask_ != null) {
+        bitField0_ |= 0x00000008;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -1075,8 +963,6 @@ public Builder clearReadMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -1091,8 +977,6 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
       return getReadMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -1105,12 +989,11 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
       if (readMaskBuilder_ != null) {
         return readMaskBuilder_.getMessageOrBuilder();
       } else {
-        return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
+        return readMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -1120,24 +1003,21 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
      * optional .google.protobuf.FieldMask read_mask = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getReadMaskFieldBuilder() {
       if (readMaskBuilder_ == null) {
-        readMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getReadMask(), getParentForChildren(), isClean());
+        readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getReadMask(),
+                getParentForChildren(),
+                isClean());
         readMask_ = null;
       }
       return readMaskBuilder_;
     }
-
     @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);
     }
 
@@ -1147,12 +1027,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.GetBucketRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.GetBucketRequest)
   private static final com.google.storage.v2.GetBucketRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.GetBucketRequest();
   }
@@ -1161,27 +1041,27 @@ public static com.google.storage.v2.GetBucketRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GetBucketRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 GetBucketRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -1196,4 +1076,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.GetBucketRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
similarity index 71%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
index 85cdbc5738..9ab7334769 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
@@ -1,114 +1,76 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface GetBucketRequestOrBuilder
-    extends
+public interface GetBucketRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.GetBucketRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Name of a bucket.
    * 
* - * - * 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 a bucket.
    * 
* - * - * 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(); /** - * - * *
    * If set, and if the bucket's current metageneration does not match the
    * specified value, the request will return an error.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * If set, and if the bucket's current metageneration does not match the
    * specified value, the request will return an error.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * If set, and if the bucket's current metageneration matches the specified
    * value, the request will return an error.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * If set, and if the bucket's current metageneration matches the specified
    * value, the request will return an error.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * Mask specifying which fields to read.
    * A "*" field may be used to indicate all fields.
@@ -116,13 +78,10 @@ public interface GetBucketRequestOrBuilder
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** - * - * *
    * Mask specifying which fields to read.
    * A "*" field may be used to indicate all fields.
@@ -130,13 +89,10 @@ public interface GetBucketRequestOrBuilder
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** - * - * *
    * Mask specifying which fields to read.
    * A "*" field may be used to indicate all fields.
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
similarity index 66%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
index 2ebd135484..8f1814bf62 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
@@ -1,42 +1,25 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Request object to get metadata on a given HMAC key.
  * 
* * Protobuf type {@code google.storage.v2.GetHmacKeyRequest} */ -public final class GetHmacKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetHmacKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.GetHmacKeyRequest) GetHmacKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetHmacKeyRequest.newBuilder() to construct. private GetHmacKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetHmacKeyRequest() { accessId_ = ""; project_ = ""; @@ -44,38 +27,33 @@ private GetHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetHmacKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetHmacKeyRequest.class, - com.google.storage.v2.GetHmacKeyRequest.Builder.class); + com.google.storage.v2.GetHmacKeyRequest.class, com.google.storage.v2.GetHmacKeyRequest.Builder.class); } public static final int ACCESS_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object accessId_ = ""; /** - * - * *
    * Required. The identifying key for the HMAC to delete.
    * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accessId. */ @java.lang.Override @@ -84,29 +62,29 @@ public java.lang.String getAccessId() { 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(); accessId_ = s; return s; } } /** - * - * *
    * Required. The identifying key for the HMAC to delete.
    * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accessId. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; 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); accessId_ = b; return b; } else { @@ -115,22 +93,16 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } public static final int PROJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
    * Required. The project the HMAC key lies in, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -139,33 +111,31 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** - * - * *
    * Required. The project the HMAC key lies in, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -174,7 +144,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +155,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(accessId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessId_); } @@ -216,15 +186,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.storage.v2.GetHmacKeyRequest)) { return super.equals(obj); } com.google.storage.v2.GetHmacKeyRequest other = (com.google.storage.v2.GetHmacKeyRequest) obj; - if (!getAccessId().equals(other.getAccessId())) return false; - if (!getProject().equals(other.getProject())) return false; + if (!getAccessId() + .equals(other.getAccessId())) return false; + if (!getProject() + .equals(other.getProject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,136 +217,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.GetHmacKeyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.GetHmacKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetHmacKeyRequest 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.storage.v2.GetHmacKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetHmacKeyRequest 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.storage.v2.GetHmacKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetHmacKeyRequest 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.storage.v2.GetHmacKeyRequest 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.storage.v2.GetHmacKeyRequest 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.storage.v2.GetHmacKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.GetHmacKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.GetHmacKeyRequest 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.storage.v2.GetHmacKeyRequest 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.storage.v2.GetHmacKeyRequest 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.storage.v2.GetHmacKeyRequest 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 object to get metadata on a given HMAC key.
    * 
* * Protobuf type {@code google.storage.v2.GetHmacKeyRequest} */ - 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.storage.v2.GetHmacKeyRequest) com.google.storage.v2.GetHmacKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetHmacKeyRequest.class, - com.google.storage.v2.GetHmacKeyRequest.Builder.class); + com.google.storage.v2.GetHmacKeyRequest.class, com.google.storage.v2.GetHmacKeyRequest.Builder.class); } // Construct using com.google.storage.v2.GetHmacKeyRequest.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(); @@ -385,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; } @java.lang.Override @@ -406,11 +374,8 @@ public com.google.storage.v2.GetHmacKeyRequest build() { @java.lang.Override public com.google.storage.v2.GetHmacKeyRequest buildPartial() { - com.google.storage.v2.GetHmacKeyRequest result = - new com.google.storage.v2.GetHmacKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.GetHmacKeyRequest result = new com.google.storage.v2.GetHmacKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -429,39 +394,38 @@ private void buildPartial0(com.google.storage.v2.GetHmacKeyRequest 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.storage.v2.GetHmacKeyRequest) { - return mergeFrom((com.google.storage.v2.GetHmacKeyRequest) other); + return mergeFrom((com.google.storage.v2.GetHmacKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -506,25 +470,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - accessId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + accessId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + project_ = 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) { @@ -534,25 +495,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object accessId_ = ""; /** - * - * *
      * Required. The identifying key for the HMAC to delete.
      * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accessId. */ public java.lang.String getAccessId() { java.lang.Object ref = accessId_; 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(); accessId_ = s; return s; @@ -561,21 +519,20 @@ public java.lang.String getAccessId() { } } /** - * - * *
      * Required. The identifying key for the HMAC to delete.
      * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accessId. */ - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; 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); accessId_ = b; return b; } else { @@ -583,35 +540,28 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } } /** - * - * *
      * Required. The identifying key for the HMAC to delete.
      * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The accessId to set. * @return This builder for chaining. */ - public Builder setAccessId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } accessId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The identifying key for the HMAC to delete.
      * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAccessId() { @@ -621,21 +571,17 @@ public Builder clearAccessId() { return this; } /** - * - * *
      * Required. The identifying key for the HMAC to delete.
      * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for accessId to set. * @return This builder for chaining. */ - public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessId_ = value; bitField0_ |= 0x00000001; @@ -645,24 +591,20 @@ public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
      * Required. The project the HMAC key lies in, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -671,25 +613,22 @@ public java.lang.String getProject() { } } /** - * - * *
      * Required. The project the HMAC key lies in, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -697,43 +636,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Required. The project the HMAC key lies in, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The project the HMAC key lies in, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -743,34 +671,28 @@ public Builder clearProject() { return this; } /** - * - * *
      * Required. The project the HMAC key lies in, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000002; 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); } @@ -780,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.GetHmacKeyRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.GetHmacKeyRequest) private static final com.google.storage.v2.GetHmacKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.GetHmacKeyRequest(); } @@ -794,27 +716,27 @@ public static com.google.storage.v2.GetHmacKeyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHmacKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetHmacKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -829,4 +751,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.GetHmacKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java index 88d37d0e7f..56c93b309a 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java @@ -1,83 +1,54 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface GetHmacKeyRequestOrBuilder - extends +public interface GetHmacKeyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.GetHmacKeyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The identifying key for the HMAC to delete.
    * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accessId. */ java.lang.String getAccessId(); /** - * - * *
    * Required. The identifying key for the HMAC to delete.
    * 
* * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accessId. */ - com.google.protobuf.ByteString getAccessIdBytes(); + com.google.protobuf.ByteString + getAccessIdBytes(); /** - * - * *
    * Required. The project the HMAC key lies in, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
    * Required. The project the HMAC key lies in, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java similarity index 63% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java index b29323e6d7..9b4833a93c 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java @@ -1,84 +1,60 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for GetNotificationConfig.
  * 
* * Protobuf type {@code google.storage.v2.GetNotificationConfigRequest} */ -public final class GetNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.GetNotificationConfigRequest) GetNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNotificationConfigRequest.newBuilder() to construct. private GetNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNotificationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetNotificationConfigRequest.class, - com.google.storage.v2.GetNotificationConfigRequest.Builder.class); + com.google.storage.v2.GetNotificationConfigRequest.class, com.google.storage.v2.GetNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The parent bucket of the NotificationConfig.
    * Format:
    * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
    * 
* - * - * 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 @@ -87,33 +63,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. The parent bucket of the NotificationConfig.
    * Format:
    * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
    * 
* - * - * 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 { @@ -122,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +107,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_); } @@ -158,15 +132,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.storage.v2.GetNotificationConfigRequest)) { return super.equals(obj); } - com.google.storage.v2.GetNotificationConfigRequest other = - (com.google.storage.v2.GetNotificationConfigRequest) obj; + com.google.storage.v2.GetNotificationConfigRequest other = (com.google.storage.v2.GetNotificationConfigRequest) 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,135 +160,131 @@ public int hashCode() { } public static com.google.storage.v2.GetNotificationConfigRequest 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.storage.v2.GetNotificationConfigRequest 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.storage.v2.GetNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetNotificationConfigRequest 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.storage.v2.GetNotificationConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetNotificationConfigRequest 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.storage.v2.GetNotificationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.GetNotificationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.GetNotificationConfigRequest 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.storage.v2.GetNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.GetNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.GetNotificationConfigRequest 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.storage.v2.GetNotificationConfigRequest 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.storage.v2.GetNotificationConfigRequest 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.storage.v2.GetNotificationConfigRequest 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 GetNotificationConfig.
    * 
* * Protobuf type {@code google.storage.v2.GetNotificationConfigRequest} */ - 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.storage.v2.GetNotificationConfigRequest) com.google.storage.v2.GetNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetNotificationConfigRequest.class, - com.google.storage.v2.GetNotificationConfigRequest.Builder.class); + com.google.storage.v2.GetNotificationConfigRequest.class, com.google.storage.v2.GetNotificationConfigRequest.Builder.class); } // Construct using com.google.storage.v2.GetNotificationConfigRequest.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(); @@ -324,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; } @java.lang.Override @@ -345,11 +315,8 @@ public com.google.storage.v2.GetNotificationConfigRequest build() { @java.lang.Override public com.google.storage.v2.GetNotificationConfigRequest buildPartial() { - com.google.storage.v2.GetNotificationConfigRequest result = - new com.google.storage.v2.GetNotificationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.GetNotificationConfigRequest result = new com.google.storage.v2.GetNotificationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +332,38 @@ private void buildPartial0(com.google.storage.v2.GetNotificationConfigRequest 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.storage.v2.GetNotificationConfigRequest) { - return mergeFrom((com.google.storage.v2.GetNotificationConfigRequest) other); + return mergeFrom((com.google.storage.v2.GetNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -405,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.GetNotificationConfigRequest other) { - if (other == com.google.storage.v2.GetNotificationConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.GetNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -438,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) { @@ -460,29 +423,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The parent bucket of the NotificationConfig.
      * Format:
      * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
      * 
* - * - * 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,25 +449,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The parent bucket of the NotificationConfig.
      * Format:
      * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
      * 
* - * - * 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 { @@ -517,43 +472,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The parent bucket of the NotificationConfig.
      * Format:
      * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
      * 
* - * - * 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. The parent bucket of the NotificationConfig.
      * Format:
      * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
      * 
* - * - * 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() { @@ -563,34 +507,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The parent bucket of the NotificationConfig.
      * Format:
      * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
      * 
* - * - * 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); } @@ -600,12 +538,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.GetNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.GetNotificationConfigRequest) private static final com.google.storage.v2.GetNotificationConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.GetNotificationConfigRequest(); } @@ -614,27 +552,27 @@ public static com.google.storage.v2.GetNotificationConfigRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -649,4 +587,6 @@ public com.google.protobuf.Parser getParserForType public com.google.storage.v2.GetNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java new file mode 100644 index 0000000000..dc86babe75 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.2 +package com.google.storage.v2; + +public interface GetNotificationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.storage.v2.GetNotificationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent bucket of the NotificationConfig.
+   * Format:
+   * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The parent bucket of the NotificationConfig.
+   * Format:
+   * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
+   * 
+ * + * 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-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java similarity index 74% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java index 99426e44ab..5b543c1221 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for GetObject.
  * 
* * Protobuf type {@code google.storage.v2.GetObjectRequest} */ -public final class GetObjectRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetObjectRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.GetObjectRequest) GetObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetObjectRequest.newBuilder() to construct. private GetObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetObjectRequest() { bucket_ = ""; object_ = ""; @@ -44,41 +27,34 @@ private GetObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetObjectRequest.class, - com.google.storage.v2.GetObjectRequest.Builder.class); + com.google.storage.v2.GetObjectRequest.class, com.google.storage.v2.GetObjectRequest.Builder.class); } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** - * - * *
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -87,31 +63,29 @@ public java.lang.String getBucket() { 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(); bucket_ = s; return s; } } /** - * - * *
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -120,18 +94,14 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int OBJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object object_ = ""; /** - * - * *
    * Required. Name of the object.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -140,29 +110,29 @@ public java.lang.String getObject() { 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(); object_ = s; return s; } } /** - * - * *
    * Required. Name of the object.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; 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); object_ = b; return b; } else { @@ -173,15 +143,12 @@ public com.google.protobuf.ByteString getObjectBytes() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_ = 0L; /** - * - * *
    * If present, selects a specific revision of this object (as opposed to the
    * latest version, the default).
    * 
* * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -192,14 +159,11 @@ public long getGeneration() { public static final int SOFT_DELETED_FIELD_NUMBER = 11; private boolean softDeleted_ = false; /** - * - * *
    * If true, return the soft-deleted version of this object.
    * 
* * optional bool soft_deleted = 11; - * * @return Whether the softDeleted field is set. */ @java.lang.Override @@ -207,14 +171,11 @@ public boolean hasSoftDeleted() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * If true, return the soft-deleted version of this object.
    * 
* * optional bool soft_deleted = 11; - * * @return The softDeleted. */ @java.lang.Override @@ -225,8 +186,6 @@ public boolean getSoftDeleted() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 4; private long ifGenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -234,7 +193,6 @@ public boolean getSoftDeleted() {
    * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -242,8 +200,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -251,7 +207,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -262,8 +217,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 5; private long ifGenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -272,7 +225,6 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -280,8 +232,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -290,7 +240,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -301,15 +250,12 @@ public long getIfGenerationNotMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 6; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -317,15 +263,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -336,15 +279,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 7; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -352,15 +292,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -371,40 +308,30 @@ public long getIfMetagenerationNotMatch() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 8; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { - return commonObjectRequestParams_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -412,18 +339,13 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } public static final int READ_MASK_FIELD_NUMBER = 10; private com.google.protobuf.FieldMask readMask_; /** - * - * *
    * Mask specifying which fields to read.
    * If no mask is specified, will default to all fields except metadata.acl and
@@ -432,16 +354,13 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar
    * 
* * optional .google.protobuf.FieldMask read_mask = 10; - * * @return Whether the readMask field is set. */ @java.lang.Override public boolean hasReadMask() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
    * Mask specifying which fields to read.
    * If no mask is specified, will default to all fields except metadata.acl and
@@ -450,7 +369,6 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 10; - * * @return The readMask. */ @java.lang.Override @@ -458,8 +376,6 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** - * - * *
    * Mask specifying which fields to read.
    * If no mask is specified, will default to all fields except metadata.acl and
@@ -475,7 +391,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -487,7 +402,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(bucket_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_);
     }
@@ -509,10 +425,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (((bitField0_ & 0x00000010) != 0)) {
       output.writeInt64(7, ifMetagenerationNotMatch_);
     }
-    if (commonObjectRequestParams_ != null) {
+    if (((bitField0_ & 0x00000020) != 0)) {
       output.writeMessage(8, getCommonObjectRequestParams());
     }
-    if (((bitField0_ & 0x00000020) != 0)) {
+    if (((bitField0_ & 0x00000040) != 0)) {
       output.writeMessage(10, getReadMask());
     }
     if (((bitField0_ & 0x00000001) != 0)) {
@@ -534,30 +450,36 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_);
     }
     if (generation_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, generation_);
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(4, ifGenerationMatch_);
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifGenerationNotMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(5, ifGenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000008) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifMetagenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(6, ifMetagenerationMatch_);
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifMetagenerationNotMatch_);
-    }
-    if (commonObjectRequestParams_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, getCommonObjectRequestParams());
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(7, ifMetagenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000020) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getReadMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getCommonObjectRequestParams());
+    }
+    if (((bitField0_ & 0x00000040) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getReadMask());
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, softDeleted_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(11, softDeleted_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -567,44 +489,53 @@ 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.storage.v2.GetObjectRequest)) {
       return super.equals(obj);
     }
     com.google.storage.v2.GetObjectRequest other = (com.google.storage.v2.GetObjectRequest) obj;
 
-    if (!getBucket().equals(other.getBucket())) return false;
-    if (!getObject().equals(other.getObject())) return false;
-    if (getGeneration() != other.getGeneration()) return false;
+    if (!getBucket()
+        .equals(other.getBucket())) return false;
+    if (!getObject()
+        .equals(other.getObject())) return false;
+    if (getGeneration()
+        != other.getGeneration()) return false;
     if (hasSoftDeleted() != other.hasSoftDeleted()) return false;
     if (hasSoftDeleted()) {
-      if (getSoftDeleted() != other.getSoftDeleted()) return false;
+      if (getSoftDeleted()
+          != other.getSoftDeleted()) return false;
     }
     if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false;
     if (hasIfGenerationMatch()) {
-      if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false;
+      if (getIfGenerationMatch()
+          != other.getIfGenerationMatch()) return false;
     }
     if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false;
     if (hasIfGenerationNotMatch()) {
-      if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false;
+      if (getIfGenerationNotMatch()
+          != other.getIfGenerationNotMatch()) return false;
     }
     if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false;
     if (hasIfMetagenerationMatch()) {
-      if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false;
+      if (getIfMetagenerationMatch()
+          != other.getIfMetagenerationMatch()) return false;
     }
     if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false;
     if (hasIfMetagenerationNotMatch()) {
-      if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false;
+      if (getIfMetagenerationNotMatch()
+          != other.getIfMetagenerationNotMatch()) return false;
     }
     if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false;
     if (hasCommonObjectRequestParams()) {
-      if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams()))
-        return false;
+      if (!getCommonObjectRequestParams()
+          .equals(other.getCommonObjectRequestParams())) return false;
     }
     if (hasReadMask() != other.hasReadMask()) return false;
     if (hasReadMask()) {
-      if (!getReadMask().equals(other.getReadMask())) return false;
+      if (!getReadMask()
+          .equals(other.getReadMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -622,26 +553,32 @@ public int hashCode() {
     hash = (37 * hash) + OBJECT_FIELD_NUMBER;
     hash = (53 * hash) + getObject().hashCode();
     hash = (37 * hash) + GENERATION_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getGeneration());
     if (hasSoftDeleted()) {
       hash = (37 * hash) + SOFT_DELETED_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSoftDeleted());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+          getSoftDeleted());
     }
     if (hasIfGenerationMatch()) {
       hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfGenerationMatch());
     }
     if (hasIfGenerationNotMatch()) {
       hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfGenerationNotMatch());
     }
     if (hasIfMetagenerationMatch()) {
       hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfMetagenerationMatch());
     }
     if (hasIfMetagenerationNotMatch()) {
       hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfMetagenerationNotMatch());
     }
     if (hasCommonObjectRequestParams()) {
       hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER;
@@ -656,127 +593,120 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.GetObjectRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.GetObjectRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.GetObjectRequest 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.storage.v2.GetObjectRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.GetObjectRequest 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.storage.v2.GetObjectRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.GetObjectRequest 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.storage.v2.GetObjectRequest 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.storage.v2.GetObjectRequest 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.storage.v2.GetObjectRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.GetObjectRequest 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.storage.v2.GetObjectRequest 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.storage.v2.GetObjectRequest 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.storage.v2.GetObjectRequest 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 GetObject.
    * 
* * Protobuf type {@code google.storage.v2.GetObjectRequest} */ - 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.storage.v2.GetObjectRequest) com.google.storage.v2.GetObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetObjectRequest.class, - com.google.storage.v2.GetObjectRequest.Builder.class); + com.google.storage.v2.GetObjectRequest.class, com.google.storage.v2.GetObjectRequest.Builder.class); } // Construct using com.google.storage.v2.GetObjectRequest.newBuilder() @@ -784,18 +714,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCommonObjectRequestParamsFieldBuilder(); getReadMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -822,9 +752,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetObjectRequest_descriptor; } @java.lang.Override @@ -843,11 +773,8 @@ public com.google.storage.v2.GetObjectRequest build() { @java.lang.Override public com.google.storage.v2.GetObjectRequest buildPartial() { - com.google.storage.v2.GetObjectRequest result = - new com.google.storage.v2.GetObjectRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.GetObjectRequest result = new com.google.storage.v2.GetObjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -885,14 +812,16 @@ private void buildPartial0(com.google.storage.v2.GetObjectRequest result) { to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); - to_bitField0_ |= 0x00000020; + result.readMask_ = readMaskBuilder_ == null + ? readMask_ + : readMaskBuilder_.build(); + to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } @@ -901,39 +830,38 @@ private void buildPartial0(com.google.storage.v2.GetObjectRequest 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.storage.v2.GetObjectRequest) { - return mergeFrom((com.google.storage.v2.GetObjectRequest) other); + return mergeFrom((com.google.storage.v2.GetObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -1002,74 +930,66 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - bucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - object_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - generation_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 40: - { - ifGenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 48: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 56: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 66: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 82: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 88: - { - softDeleted_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 88 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + object_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + generation_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: { + ifGenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 48: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 56: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 82: { + input.readMessage( + getReadMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: { + softDeleted_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 88 + 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) { @@ -1079,27 +999,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object bucket_ = ""; /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; 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(); bucket_ = s; return s; @@ -1108,23 +1023,20 @@ public java.lang.String getBucket() { } } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -1132,39 +1044,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBucket() { @@ -1174,23 +1075,17 @@ public Builder clearBucket() { return this; } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -1200,20 +1095,18 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object object_ = ""; /** - * - * *
      * Required. Name of the object.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; 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(); object_ = s; return s; @@ -1222,21 +1115,20 @@ public java.lang.String getObject() { } } /** - * - * *
      * Required. Name of the object.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; 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); object_ = b; return b; } else { @@ -1244,35 +1136,28 @@ public com.google.protobuf.ByteString getObjectBytes() { } } /** - * - * *
      * Required. Name of the object.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } object_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Name of the object.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearObject() { @@ -1282,21 +1167,17 @@ public Builder clearObject() { return this; } /** - * - * *
      * Required. Name of the object.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000002; @@ -1304,17 +1185,14 @@ public Builder setObjectBytes(com.google.protobuf.ByteString value) { return this; } - private long generation_; + private long generation_ ; /** - * - * *
      * If present, selects a specific revision of this object (as opposed to the
      * latest version, the default).
      * 
* * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -1322,15 +1200,12 @@ public long getGeneration() { return generation_; } /** - * - * *
      * If present, selects a specific revision of this object (as opposed to the
      * latest version, the default).
      * 
* * int64 generation = 3; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -1342,15 +1217,12 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
      * If present, selects a specific revision of this object (as opposed to the
      * latest version, the default).
      * 
* * int64 generation = 3; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1360,16 +1232,13 @@ public Builder clearGeneration() { return this; } - private boolean softDeleted_; + private boolean softDeleted_ ; /** - * - * *
      * If true, return the soft-deleted version of this object.
      * 
* * optional bool soft_deleted = 11; - * * @return Whether the softDeleted field is set. */ @java.lang.Override @@ -1377,14 +1246,11 @@ public boolean hasSoftDeleted() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * If true, return the soft-deleted version of this object.
      * 
* * optional bool soft_deleted = 11; - * * @return The softDeleted. */ @java.lang.Override @@ -1392,14 +1258,11 @@ public boolean getSoftDeleted() { return softDeleted_; } /** - * - * *
      * If true, return the soft-deleted version of this object.
      * 
* * optional bool soft_deleted = 11; - * * @param value The softDeleted to set. * @return This builder for chaining. */ @@ -1411,14 +1274,11 @@ public Builder setSoftDeleted(boolean value) { return this; } /** - * - * *
      * If true, return the soft-deleted version of this object.
      * 
* * optional bool soft_deleted = 11; - * * @return This builder for chaining. */ public Builder clearSoftDeleted() { @@ -1428,10 +1288,8 @@ public Builder clearSoftDeleted() { return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1439,7 +1297,6 @@ public Builder clearSoftDeleted() {
      * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1447,8 +1304,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1456,7 +1311,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1464,8 +1318,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1473,7 +1325,6 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1485,8 +1336,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1494,7 +1343,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 4; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1504,10 +1352,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1516,7 +1362,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1524,8 +1369,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1534,7 +1377,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1542,8 +1384,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1552,7 +1392,6 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 5; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1564,8 +1403,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1574,7 +1411,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 5; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1584,17 +1420,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1602,15 +1435,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1618,15 +1448,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 6; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1638,15 +1465,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 6; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1656,17 +1480,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1674,15 +1495,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1690,15 +1508,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 7; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1710,15 +1525,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 7; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1730,55 +1542,41 @@ public Builder clearIfMetagenerationNotMatch() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1792,8 +1590,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1812,21 +1608,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -1834,13 +1626,13 @@ public Builder mergeCommonObjectRequestParams( } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (commonObjectRequestParams_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1858,42 +1650,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1901,17 +1684,14 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; @@ -1919,13 +1699,8 @@ public Builder clearCommonObjectRequestParams() { private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; /** - * - * *
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -1934,15 +1709,12 @@ public Builder clearCommonObjectRequestParams() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 10; - * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -1951,7 +1723,6 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 10; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1962,8 +1733,6 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -1987,8 +1756,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -1998,7 +1765,8 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
      *
      * optional .google.protobuf.FieldMask read_mask = 10;
      */
-    public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setReadMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (readMaskBuilder_ == null) {
         readMask_ = builderForValue.build();
       } else {
@@ -2009,8 +1777,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -2022,9 +1788,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
      */
     public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       if (readMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)
-            && readMask_ != null
-            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          readMask_ != null &&
+          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getReadMaskBuilder().mergeFrom(value);
         } else {
           readMask_ = value;
@@ -2032,13 +1798,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       } else {
         readMaskBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000200;
-      onChanged();
+      if (readMask_ != null) {
+        bitField0_ |= 0x00000200;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -2059,8 +1825,6 @@ public Builder clearReadMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -2076,8 +1840,6 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
       return getReadMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -2091,12 +1853,11 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
       if (readMaskBuilder_ != null) {
         return readMaskBuilder_.getMessageOrBuilder();
       } else {
-        return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
+        return readMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -2107,24 +1868,21 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
      * optional .google.protobuf.FieldMask read_mask = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getReadMaskFieldBuilder() {
       if (readMaskBuilder_ == null) {
-        readMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getReadMask(), getParentForChildren(), isClean());
+        readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getReadMask(),
+                getParentForChildren(),
+                isClean());
         readMask_ = null;
       }
       return readMaskBuilder_;
     }
-
     @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);
     }
 
@@ -2134,12 +1892,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.GetObjectRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.GetObjectRequest)
   private static final com.google.storage.v2.GetObjectRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.GetObjectRequest();
   }
@@ -2148,27 +1906,27 @@ public static com.google.storage.v2.GetObjectRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GetObjectRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 GetObjectRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -2183,4 +1941,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.GetObjectRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
similarity index 83%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
index 45b34a2d25..92e0ee2b4e 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
@@ -1,124 +1,84 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface GetObjectRequestOrBuilder
-    extends
+public interface GetObjectRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.GetObjectRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ java.lang.String getBucket(); /** - * - * *
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString + getBucketBytes(); /** - * - * *
    * Required. Name of the object.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ java.lang.String getObject(); /** - * - * *
    * Required. Name of the object.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - com.google.protobuf.ByteString getObjectBytes(); + com.google.protobuf.ByteString + getObjectBytes(); /** - * - * *
    * If present, selects a specific revision of this object (as opposed to the
    * latest version, the default).
    * 
* * int64 generation = 3; - * * @return The generation. */ long getGeneration(); /** - * - * *
    * If true, return the soft-deleted version of this object.
    * 
* * optional bool soft_deleted = 11; - * * @return Whether the softDeleted field is set. */ boolean hasSoftDeleted(); /** - * - * *
    * If true, return the soft-deleted version of this object.
    * 
* * optional bool soft_deleted = 11; - * * @return The softDeleted. */ boolean getSoftDeleted(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -126,13 +86,10 @@ public interface GetObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -140,14 +97,11 @@ public interface GetObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -156,13 +110,10 @@ public interface GetObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -171,92 +122,71 @@ public interface GetObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -266,8 +196,6 @@ public interface GetObjectRequestOrBuilder com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder(); /** - * - * *
    * Mask specifying which fields to read.
    * If no mask is specified, will default to all fields except metadata.acl and
@@ -276,13 +204,10 @@ public interface GetObjectRequestOrBuilder
    * 
* * optional .google.protobuf.FieldMask read_mask = 10; - * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** - * - * *
    * Mask specifying which fields to read.
    * If no mask is specified, will default to all fields except metadata.acl and
@@ -291,13 +216,10 @@ public interface GetObjectRequestOrBuilder
    * 
* * optional .google.protobuf.FieldMask read_mask = 10; - * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** - * - * *
    * Mask specifying which fields to read.
    * If no mask is specified, will default to all fields except metadata.acl and
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
similarity index 63%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
index 14506aa3e4..850a338b06 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
@@ -1,83 +1,59 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Request message for GetServiceAccount.
  * 
* * Protobuf type {@code google.storage.v2.GetServiceAccountRequest} */ -public final class GetServiceAccountRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetServiceAccountRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.GetServiceAccountRequest) GetServiceAccountRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetServiceAccountRequest.newBuilder() to construct. private GetServiceAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetServiceAccountRequest() { project_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetServiceAccountRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetServiceAccountRequest.class, - com.google.storage.v2.GetServiceAccountRequest.Builder.class); + com.google.storage.v2.GetServiceAccountRequest.class, com.google.storage.v2.GetServiceAccountRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
    * Required. Project ID, in the format of "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -86,32 +62,30 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** - * - * *
    * Required. Project ID, in the format of "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -120,7 +94,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +105,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(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -156,15 +130,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.storage.v2.GetServiceAccountRequest)) { return super.equals(obj); } - com.google.storage.v2.GetServiceAccountRequest other = - (com.google.storage.v2.GetServiceAccountRequest) obj; + com.google.storage.v2.GetServiceAccountRequest other = (com.google.storage.v2.GetServiceAccountRequest) obj; - if (!getProject().equals(other.getProject())) return false; + if (!getProject() + .equals(other.getProject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,136 +157,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.GetServiceAccountRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.GetServiceAccountRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetServiceAccountRequest 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.storage.v2.GetServiceAccountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetServiceAccountRequest 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.storage.v2.GetServiceAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetServiceAccountRequest 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.storage.v2.GetServiceAccountRequest 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.storage.v2.GetServiceAccountRequest 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.storage.v2.GetServiceAccountRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.GetServiceAccountRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.GetServiceAccountRequest 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.storage.v2.GetServiceAccountRequest 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.storage.v2.GetServiceAccountRequest 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.storage.v2.GetServiceAccountRequest 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 GetServiceAccount.
    * 
* * Protobuf type {@code google.storage.v2.GetServiceAccountRequest} */ - 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.storage.v2.GetServiceAccountRequest) com.google.storage.v2.GetServiceAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetServiceAccountRequest.class, - com.google.storage.v2.GetServiceAccountRequest.Builder.class); + com.google.storage.v2.GetServiceAccountRequest.class, com.google.storage.v2.GetServiceAccountRequest.Builder.class); } // Construct using com.google.storage.v2.GetServiceAccountRequest.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.storage.v2.StorageProto - .internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; } @java.lang.Override @@ -343,11 +313,8 @@ public com.google.storage.v2.GetServiceAccountRequest build() { @java.lang.Override public com.google.storage.v2.GetServiceAccountRequest buildPartial() { - com.google.storage.v2.GetServiceAccountRequest result = - new com.google.storage.v2.GetServiceAccountRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.GetServiceAccountRequest result = new com.google.storage.v2.GetServiceAccountRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +330,38 @@ private void buildPartial0(com.google.storage.v2.GetServiceAccountRequest 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.storage.v2.GetServiceAccountRequest) { - return mergeFrom((com.google.storage.v2.GetServiceAccountRequest) other); + return mergeFrom((com.google.storage.v2.GetServiceAccountRequest)other); } else { super.mergeFrom(other); return this; @@ -435,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + project_ = 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) { @@ -457,28 +421,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object project_ = ""; /** - * - * *
      * Required. Project ID, in the format of "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -487,24 +446,21 @@ public java.lang.String getProject() { } } /** - * - * *
      * Required. Project ID, in the format of "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -512,41 +468,30 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Required. Project ID, in the format of "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project ID, in the format of "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -556,33 +501,27 @@ public Builder clearProject() { return this; } /** - * - * *
      * Required. Project ID, in the format of "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = 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); } @@ -592,12 +531,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.GetServiceAccountRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.GetServiceAccountRequest) private static final com.google.storage.v2.GetServiceAccountRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.GetServiceAccountRequest(); } @@ -606,27 +545,27 @@ public static com.google.storage.v2.GetServiceAccountRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServiceAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 GetServiceAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -641,4 +580,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.GetServiceAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java new file mode 100644 index 0000000000..6c064ebd57 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.2 +package com.google.storage.v2; + +public interface GetServiceAccountRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.storage.v2.GetServiceAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Project ID, in the format of "projects/{projectIdentifier}".
+   * {projectIdentifier} can be the project ID or project number.
+   * 
+ * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The project. + */ + java.lang.String getProject(); + /** + *
+   * Required. Project ID, in the format of "projects/{projectIdentifier}".
+   * {projectIdentifier} can be the project ID or project number.
+   * 
+ * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for project. + */ + com.google.protobuf.ByteString + getProjectBytes(); +} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java similarity index 68% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java index 49e782f61a..75ed3ef572 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Hmac Key Metadata, which includes all information other than the secret.
  * 
* * Protobuf type {@code google.storage.v2.HmacKeyMetadata} */ -public final class HmacKeyMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HmacKeyMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.HmacKeyMetadata) HmacKeyMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HmacKeyMetadata.newBuilder() to construct. private HmacKeyMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HmacKeyMetadata() { id_ = ""; accessId_ = ""; @@ -48,32 +31,29 @@ private HmacKeyMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HmacKeyMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_HmacKeyMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_HmacKeyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.HmacKeyMetadata.class, - com.google.storage.v2.HmacKeyMetadata.Builder.class); + com.google.storage.v2.HmacKeyMetadata.class, com.google.storage.v2.HmacKeyMetadata.Builder.class); } + private int bitField0_; public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
    * Immutable. Resource name ID of the key in the format
    * {projectIdentifier}/{accessId}.
@@ -81,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The id. */ @java.lang.Override @@ -90,15 +69,14 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** - * - * *
    * Immutable. Resource name ID of the key in the format
    * {projectIdentifier}/{accessId}.
@@ -106,15 +84,16 @@ public java.lang.String getId() {
    * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -123,18 +102,14 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int ACCESS_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object accessId_ = ""; /** - * - * *
    * Immutable. Globally unique id for keys.
    * 
* * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The accessId. */ @java.lang.Override @@ -143,29 +118,29 @@ public java.lang.String getAccessId() { 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(); accessId_ = s; return s; } } /** - * - * *
    * Immutable. Globally unique id for keys.
    * 
* * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for accessId. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; 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); accessId_ = b; return b; } else { @@ -174,22 +149,16 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } public static final int PROJECT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
    * Immutable. Identifies the project that owns the service account of the
    * specified HMAC key, in the format "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -198,33 +167,31 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** - * - * *
    * Immutable. Identifies the project that owns the service account of the
    * specified HMAC key, in the format "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -233,18 +200,14 @@ public com.google.protobuf.ByteString getProjectBytes() { } public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
    * Output only. Email of the service account the key authenticates as.
    * 
* * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -253,29 +216,29 @@ public java.lang.String getServiceAccountEmail() { 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(); serviceAccountEmail_ = s; return s; } } /** - * - * *
    * Output only. Email of the service account the key authenticates as.
    * 
* * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; 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); serviceAccountEmail_ = b; return b; } else { @@ -284,19 +247,15 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } public static final int STATE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object state_ = ""; /** - * - * *
    * State of the key. One of ACTIVE, INACTIVE, or DELETED.
    * Writable, can be updated by UpdateHmacKey operation.
    * 
* * string state = 5; - * * @return The state. */ @java.lang.Override @@ -305,30 +264,30 @@ public java.lang.String getState() { 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(); state_ = s; return s; } } /** - * - * *
    * State of the key. One of ACTIVE, INACTIVE, or DELETED.
    * Writable, can be updated by UpdateHmacKey operation.
    * 
* * string state = 5; - * * @return The bytes for state. */ @java.lang.Override - public com.google.protobuf.ByteString getStateBytes() { + public com.google.protobuf.ByteString + getStateBytes() { java.lang.Object ref = state_; 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); state_ = b; return b; } else { @@ -339,31 +298,23 @@ public com.google.protobuf.ByteString getStateBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation time of the HMAC key.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The creation time of the HMAC key.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -371,14 +322,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time of the HMAC key.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -388,31 +336,23 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last modification time of the HMAC key metadata.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { - return updateTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The last modification time of the HMAC key metadata.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -420,14 +360,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last modification time of the HMAC key metadata.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -435,18 +372,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * The etag of the HMAC key.
    * 
* * string etag = 8; - * * @return The etag. */ @java.lang.Override @@ -455,29 +388,29 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * The etag of the HMAC key.
    * 
* * string etag = 8; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -486,7 +419,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -498,7 +430,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -514,10 +447,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, state_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { @@ -547,11 +480,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, state_); } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); @@ -564,27 +499,35 @@ 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.storage.v2.HmacKeyMetadata)) { return super.equals(obj); } com.google.storage.v2.HmacKeyMetadata other = (com.google.storage.v2.HmacKeyMetadata) obj; - if (!getId().equals(other.getId())) return false; - if (!getAccessId().equals(other.getAccessId())) return false; - if (!getProject().equals(other.getProject())) return false; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; - if (!getState().equals(other.getState())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getAccessId() + .equals(other.getAccessId())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; + if (!getState() + .equals(other.getState())) 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 (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -621,135 +564,139 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.HmacKeyMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.HmacKeyMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.HmacKeyMetadata 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.storage.v2.HmacKeyMetadata parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.HmacKeyMetadata parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.HmacKeyMetadata 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.storage.v2.HmacKeyMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.HmacKeyMetadata 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.storage.v2.HmacKeyMetadata 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.storage.v2.HmacKeyMetadata 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.storage.v2.HmacKeyMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.HmacKeyMetadata 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.storage.v2.HmacKeyMetadata 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.storage.v2.HmacKeyMetadata 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.storage.v2.HmacKeyMetadata 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; } /** - * - * *
    * Hmac Key Metadata, which includes all information other than the secret.
    * 
* * Protobuf type {@code google.storage.v2.HmacKeyMetadata} */ - 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.storage.v2.HmacKeyMetadata) com.google.storage.v2.HmacKeyMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_HmacKeyMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_HmacKeyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.HmacKeyMetadata.class, - com.google.storage.v2.HmacKeyMetadata.Builder.class); + com.google.storage.v2.HmacKeyMetadata.class, com.google.storage.v2.HmacKeyMetadata.Builder.class); } // Construct using com.google.storage.v2.HmacKeyMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -774,9 +721,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_HmacKeyMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_HmacKeyMetadata_descriptor; } @java.lang.Override @@ -795,11 +742,8 @@ public com.google.storage.v2.HmacKeyMetadata build() { @java.lang.Override public com.google.storage.v2.HmacKeyMetadata buildPartial() { - com.google.storage.v2.HmacKeyMetadata result = - new com.google.storage.v2.HmacKeyMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.HmacKeyMetadata result = new com.google.storage.v2.HmacKeyMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -821,54 +765,61 @@ private void buildPartial0(com.google.storage.v2.HmacKeyMetadata result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.state_ = state_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000080) != 0)) { result.etag_ = etag_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.HmacKeyMetadata) { - return mergeFrom((com.google.storage.v2.HmacKeyMetadata) other); + return mergeFrom((com.google.storage.v2.HmacKeyMetadata)other); } else { super.mergeFrom(other); return this; @@ -939,61 +890,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - accessId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - serviceAccountEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - state_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + accessId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + state_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + 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) { @@ -1003,13 +949,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
      * Immutable. Resource name ID of the key in the format
      * {projectIdentifier}/{accessId}.
@@ -1017,13 +960,13 @@ public Builder mergeFrom(
      * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -1032,8 +975,6 @@ public java.lang.String getId() { } } /** - * - * *
      * Immutable. Resource name ID of the key in the format
      * {projectIdentifier}/{accessId}.
@@ -1041,14 +982,15 @@ public java.lang.String getId() {
      * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -1056,8 +998,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Immutable. Resource name ID of the key in the format
      * {projectIdentifier}/{accessId}.
@@ -1065,22 +1005,18 @@ public com.google.protobuf.ByteString getIdBytes() {
      * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. Resource name ID of the key in the format
      * {projectIdentifier}/{accessId}.
@@ -1088,7 +1024,6 @@ public Builder setId(java.lang.String value) {
      * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1098,8 +1033,6 @@ public Builder clearId() { return this; } /** - * - * *
      * Immutable. Resource name ID of the key in the format
      * {projectIdentifier}/{accessId}.
@@ -1107,14 +1040,12 @@ public Builder clearId() {
      * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; @@ -1124,20 +1055,18 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object accessId_ = ""; /** - * - * *
      * Immutable. Globally unique id for keys.
      * 
* * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The accessId. */ public java.lang.String getAccessId() { java.lang.Object ref = accessId_; 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(); accessId_ = s; return s; @@ -1146,21 +1075,20 @@ public java.lang.String getAccessId() { } } /** - * - * *
      * Immutable. Globally unique id for keys.
      * 
* * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for accessId. */ - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; 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); accessId_ = b; return b; } else { @@ -1168,35 +1096,28 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } } /** - * - * *
      * Immutable. Globally unique id for keys.
      * 
* * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The accessId to set. * @return This builder for chaining. */ - public Builder setAccessId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } accessId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Immutable. Globally unique id for keys.
      * 
* * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearAccessId() { @@ -1206,21 +1127,17 @@ public Builder clearAccessId() { return this; } /** - * - * *
      * Immutable. Globally unique id for keys.
      * 
* * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for accessId to set. * @return This builder for chaining. */ - public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessId_ = value; bitField0_ |= 0x00000002; @@ -1230,24 +1147,20 @@ public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
      * Immutable. Identifies the project that owns the service account of the
      * specified HMAC key, in the format "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -1256,25 +1169,22 @@ public java.lang.String getProject() { } } /** - * - * *
      * Immutable. Identifies the project that owns the service account of the
      * specified HMAC key, in the format "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -1282,43 +1192,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Immutable. Identifies the project that owns the service account of the
      * specified HMAC key, in the format "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Immutable. Identifies the project that owns the service account of the
      * specified HMAC key, in the format "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -1328,25 +1227,19 @@ public Builder clearProject() { return this; } /** - * - * *
      * Immutable. Identifies the project that owns the service account of the
      * specified HMAC key, in the format "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000004; @@ -1356,20 +1249,18 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
      * Output only. Email of the service account the key authenticates as.
      * 
* * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; 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(); serviceAccountEmail_ = s; return s; @@ -1378,21 +1269,20 @@ public java.lang.String getServiceAccountEmail() { } } /** - * - * *
      * Output only. Email of the service account the key authenticates as.
      * 
* * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; 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); serviceAccountEmail_ = b; return b; } else { @@ -1400,35 +1290,28 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } } /** - * - * *
      * Output only. Email of the service account the key authenticates as.
      * 
* * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccountEmail_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Email of the service account the key authenticates as.
      * 
* * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { @@ -1438,21 +1321,17 @@ public Builder clearServiceAccountEmail() { return this; } /** - * - * *
      * Output only. Email of the service account the key authenticates as.
      * 
* * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountEmail_ = value; bitField0_ |= 0x00000008; @@ -1462,21 +1341,19 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) private java.lang.Object state_ = ""; /** - * - * *
      * State of the key. One of ACTIVE, INACTIVE, or DELETED.
      * Writable, can be updated by UpdateHmacKey operation.
      * 
* * string state = 5; - * * @return The state. */ public java.lang.String getState() { java.lang.Object ref = state_; 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(); state_ = s; return s; @@ -1485,22 +1362,21 @@ public java.lang.String getState() { } } /** - * - * *
      * State of the key. One of ACTIVE, INACTIVE, or DELETED.
      * Writable, can be updated by UpdateHmacKey operation.
      * 
* * string state = 5; - * * @return The bytes for state. */ - public com.google.protobuf.ByteString getStateBytes() { + public com.google.protobuf.ByteString + getStateBytes() { java.lang.Object ref = state_; 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); state_ = b; return b; } else { @@ -1508,37 +1384,30 @@ public com.google.protobuf.ByteString getStateBytes() { } } /** - * - * *
      * State of the key. One of ACTIVE, INACTIVE, or DELETED.
      * Writable, can be updated by UpdateHmacKey operation.
      * 
* * string state = 5; - * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setState( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } state_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * State of the key. One of ACTIVE, INACTIVE, or DELETED.
      * Writable, can be updated by UpdateHmacKey operation.
      * 
* * string state = 5; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1548,22 +1417,18 @@ public Builder clearState() { return this; } /** - * - * *
      * State of the key. One of ACTIVE, INACTIVE, or DELETED.
      * Writable, can be updated by UpdateHmacKey operation.
      * 
* * string state = 5; - * * @param value The bytes for state to set. * @return This builder for chaining. */ - public Builder setStateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); state_ = value; bitField0_ |= 0x00000010; @@ -1573,58 +1438,39 @@ public Builder setStateBytes(com.google.protobuf.ByteString value) { 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. The creation time of the HMAC key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. The creation time of the HMAC key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.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. The creation time of the HMAC key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1640,17 +1486,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the HMAC key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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 { @@ -1661,21 +1504,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time of the HMAC key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1683,20 +1522,18 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** - * - * *
      * Output only. The creation time of the HMAC key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1709,15 +1546,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation time of the HMAC key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -1725,48 +1558,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation time of the HMAC key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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. The creation time of the HMAC key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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_; @@ -1774,58 +1595,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last modification time of the HMAC key metadata.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. The last modification time of the HMAC key metadata.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last modification time of the HMAC key metadata.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1841,17 +1643,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last modification time of the HMAC key metadata.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1862,21 +1661,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last modification time of the HMAC key metadata.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1884,20 +1679,18 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** - * - * *
      * Output only. The last modification time of the HMAC key metadata.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1910,15 +1703,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last modification time of the HMAC key metadata.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000040; @@ -1926,48 +1715,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last modification time of the HMAC key metadata.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last modification time of the HMAC key metadata.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1975,20 +1752,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * The etag of the HMAC key.
      * 
* * string etag = 8; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -1997,21 +1772,20 @@ public java.lang.String getEtag() { } } /** - * - * *
      * The etag of the HMAC key.
      * 
* * string etag = 8; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -2019,35 +1793,28 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * The etag of the HMAC key.
      * 
* * string etag = 8; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * The etag of the HMAC key.
      * 
* * string etag = 8; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2057,30 +1824,26 @@ public Builder clearEtag() { return this; } /** - * - * *
      * The etag of the HMAC key.
      * 
* * string etag = 8; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000080; 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); } @@ -2090,12 +1853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.HmacKeyMetadata) } // @@protoc_insertion_point(class_scope:google.storage.v2.HmacKeyMetadata) private static final com.google.storage.v2.HmacKeyMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.HmacKeyMetadata(); } @@ -2104,27 +1867,27 @@ public static com.google.storage.v2.HmacKeyMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HmacKeyMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 HmacKeyMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2139,4 +1902,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.HmacKeyMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java similarity index 72% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java index 9544912199..b4f14f715f 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java @@ -1,31 +1,14 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface HmacKeyMetadataOrBuilder - extends +public interface HmacKeyMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.HmacKeyMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. Resource name ID of the key in the format
    * {projectIdentifier}/{accessId}.
@@ -33,13 +16,10 @@ public interface HmacKeyMetadataOrBuilder
    * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * Immutable. Resource name ID of the key in the format
    * {projectIdentifier}/{accessId}.
@@ -47,219 +27,168 @@ public interface HmacKeyMetadataOrBuilder
    * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * Immutable. Globally unique id for keys.
    * 
* * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The accessId. */ java.lang.String getAccessId(); /** - * - * *
    * Immutable. Globally unique id for keys.
    * 
* * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for accessId. */ - com.google.protobuf.ByteString getAccessIdBytes(); + com.google.protobuf.ByteString + getAccessIdBytes(); /** - * - * *
    * Immutable. Identifies the project that owns the service account of the
    * specified HMAC key, in the format "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
    * Immutable. Identifies the project that owns the service account of the
    * specified HMAC key, in the format "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * Output only. Email of the service account the key authenticates as.
    * 
* * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** - * - * *
    * Output only. Email of the service account the key authenticates as.
    * 
* * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); /** - * - * *
    * State of the key. One of ACTIVE, INACTIVE, or DELETED.
    * Writable, can be updated by UpdateHmacKey operation.
    * 
* * string state = 5; - * * @return The state. */ java.lang.String getState(); /** - * - * *
    * State of the key. One of ACTIVE, INACTIVE, or DELETED.
    * Writable, can be updated by UpdateHmacKey operation.
    * 
* * string state = 5; - * * @return The bytes for state. */ - com.google.protobuf.ByteString getStateBytes(); + com.google.protobuf.ByteString + getStateBytes(); /** - * - * *
    * Output only. The creation time of the HMAC key.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time of the HMAC key.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time of the HMAC key.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last modification time of the HMAC key metadata.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last modification time of the HMAC key metadata.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last modification time of the HMAC key metadata.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * The etag of the HMAC key.
    * 
* * string etag = 8; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * The etag of the HMAC key.
    * 
* * string etag = 8; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java similarity index 71% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java index fe4c7ff4e9..ddf6e0ef5c 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for ListBuckets.
  * 
* * Protobuf type {@code google.storage.v2.ListBucketsRequest} */ -public final class ListBucketsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBucketsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ListBucketsRequest) ListBucketsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBucketsRequest.newBuilder() to construct. private ListBucketsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBucketsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,41 +28,34 @@ private ListBucketsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBucketsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListBucketsRequest.class, - com.google.storage.v2.ListBucketsRequest.Builder.class); + com.google.storage.v2.ListBucketsRequest.class, com.google.storage.v2.ListBucketsRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project whose buckets we are listing.
    * 
* - * - * 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 @@ -88,31 +64,29 @@ 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 project whose buckets we are listing.
    * 
* - * - * 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 { @@ -123,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of buckets to return in a single response. The service will
    * use this parameter or 1,000 items, whichever is smaller. If "acl" is
@@ -133,7 +105,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,19 +113,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A previously-returned page token representing part of the larger set of
    * results to view.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -163,30 +130,30 @@ public java.lang.String getPageToken() { 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(); pageToken_ = s; return s; } } /** - * - * *
    * A previously-returned page token representing part of the larger set of
    * results to view.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; 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); pageToken_ = b; return b; } else { @@ -195,18 +162,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int PREFIX_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** - * - * *
    * Filter results to buckets whose names begin with this prefix.
    * 
* * string prefix = 4; - * * @return The prefix. */ @java.lang.Override @@ -215,29 +178,29 @@ public java.lang.String getPrefix() { 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(); prefix_ = s; return s; } } /** - * - * *
    * Filter results to buckets whose names begin with this prefix.
    * 
* * string prefix = 4; - * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; 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); prefix_ = b; return b; } else { @@ -248,8 +211,6 @@ public com.google.protobuf.ByteString getPrefixBytes() { public static final int READ_MASK_FIELD_NUMBER = 5; private com.google.protobuf.FieldMask readMask_; /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.owner,
@@ -258,7 +219,6 @@ public com.google.protobuf.ByteString getPrefixBytes() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ @java.lang.Override @@ -266,8 +226,6 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.owner,
@@ -276,7 +234,6 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ @java.lang.Override @@ -284,8 +241,6 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.owner,
@@ -301,7 +256,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -313,7 +267,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_);
     }
@@ -342,7 +297,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (pageSize_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(2, pageSize_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
@@ -351,7 +307,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, prefix_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getReadMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -361,20 +318,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.storage.v2.ListBucketsRequest)) {
       return super.equals(obj);
     }
     com.google.storage.v2.ListBucketsRequest other = (com.google.storage.v2.ListBucketsRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
-    if (getPageSize() != other.getPageSize()) return false;
-    if (!getPageToken().equals(other.getPageToken())) return false;
-    if (!getPrefix().equals(other.getPrefix())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
+    if (getPageSize()
+        != other.getPageSize()) return false;
+    if (!getPageToken()
+        .equals(other.getPageToken())) return false;
+    if (!getPrefix()
+        .equals(other.getPrefix())) return false;
     if (hasReadMask() != other.hasReadMask()) return false;
     if (hasReadMask()) {
-      if (!getReadMask().equals(other.getReadMask())) return false;
+      if (!getReadMask()
+          .equals(other.getReadMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -404,127 +366,120 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.ListBucketsRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.ListBucketsRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ListBucketsRequest 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.storage.v2.ListBucketsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ListBucketsRequest 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.storage.v2.ListBucketsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ListBucketsRequest 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.storage.v2.ListBucketsRequest 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.storage.v2.ListBucketsRequest 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.storage.v2.ListBucketsRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.storage.v2.ListBucketsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.ListBucketsRequest 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.storage.v2.ListBucketsRequest 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.storage.v2.ListBucketsRequest 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.storage.v2.ListBucketsRequest 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 ListBuckets.
    * 
* * Protobuf type {@code google.storage.v2.ListBucketsRequest} */ - 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.storage.v2.ListBucketsRequest) com.google.storage.v2.ListBucketsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListBucketsRequest.class, - com.google.storage.v2.ListBucketsRequest.Builder.class); + com.google.storage.v2.ListBucketsRequest.class, com.google.storage.v2.ListBucketsRequest.Builder.class); } // Construct using com.google.storage.v2.ListBucketsRequest.newBuilder() @@ -532,17 +487,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getReadMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -560,9 +515,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_descriptor; } @java.lang.Override @@ -581,11 +536,8 @@ public com.google.storage.v2.ListBucketsRequest build() { @java.lang.Override public com.google.storage.v2.ListBucketsRequest buildPartial() { - com.google.storage.v2.ListBucketsRequest result = - new com.google.storage.v2.ListBucketsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ListBucketsRequest result = new com.google.storage.v2.ListBucketsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -606,7 +558,9 @@ private void buildPartial0(com.google.storage.v2.ListBucketsRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null + ? readMask_ + : readMaskBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -616,39 +570,38 @@ private void buildPartial0(com.google.storage.v2.ListBucketsRequest 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.storage.v2.ListBucketsRequest) { - return mergeFrom((com.google.storage.v2.ListBucketsRequest) other); + return mergeFrom((com.google.storage.v2.ListBucketsRequest)other); } else { super.mergeFrom(other); return this; @@ -704,43 +657,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - prefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - 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 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getReadMaskFieldBuilder().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) { @@ -750,27 +699,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project whose buckets we are listing.
      * 
* - * - * 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; @@ -779,23 +723,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project whose buckets we are listing.
      * 
* - * - * 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 { @@ -803,39 +744,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project whose buckets we are listing.
      * 
* - * - * 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 project whose buckets we are listing.
      * 
* - * - * 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() { @@ -845,23 +775,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project whose buckets we are listing.
      * 
* - * - * 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; @@ -869,10 +793,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of buckets to return in a single response. The service will
      * use this parameter or 1,000 items, whichever is smaller. If "acl" is
@@ -881,7 +803,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -889,8 +810,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of buckets to return in a single response. The service will
      * use this parameter or 1,000 items, whichever is smaller. If "acl" is
@@ -899,7 +818,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -911,8 +829,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of buckets to return in a single response. The service will
      * use this parameter or 1,000 items, whichever is smaller. If "acl" is
@@ -921,7 +837,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -933,21 +848,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A previously-returned page token representing part of the larger set of
      * results to view.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; @@ -956,22 +869,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A previously-returned page token representing part of the larger set of
      * results to view.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; 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); pageToken_ = b; return b; } else { @@ -979,37 +891,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A previously-returned page token representing part of the larger set of
      * results to view.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A previously-returned page token representing part of the larger set of
      * results to view.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1019,22 +924,18 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A previously-returned page token representing part of the larger set of
      * results to view.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1044,20 +945,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object prefix_ = ""; /** - * - * *
      * Filter results to buckets whose names begin with this prefix.
      * 
* * string prefix = 4; - * * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; 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(); prefix_ = s; return s; @@ -1066,21 +965,20 @@ public java.lang.String getPrefix() { } } /** - * - * *
      * Filter results to buckets whose names begin with this prefix.
      * 
* * string prefix = 4; - * * @return The bytes for prefix. */ - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; 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); prefix_ = b; return b; } else { @@ -1088,35 +986,28 @@ public com.google.protobuf.ByteString getPrefixBytes() { } } /** - * - * *
      * Filter results to buckets whose names begin with this prefix.
      * 
* * string prefix = 4; - * * @param value The prefix to set. * @return This builder for chaining. */ - public Builder setPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } prefix_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter results to buckets whose names begin with this prefix.
      * 
* * string prefix = 4; - * * @return This builder for chaining. */ public Builder clearPrefix() { @@ -1126,21 +1017,17 @@ public Builder clearPrefix() { return this; } /** - * - * *
      * Filter results to buckets whose names begin with this prefix.
      * 
* * string prefix = 4; - * * @param value The bytes for prefix to set. * @return This builder for chaining. */ - public Builder setPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; bitField0_ |= 0x00000008; @@ -1150,13 +1037,8 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; /** - * - * *
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.owner,
@@ -1165,15 +1047,12 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) {
      * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.owner,
@@ -1182,7 +1061,6 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1193,8 +1071,6 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.owner,
@@ -1218,8 +1094,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.owner,
@@ -1229,7 +1103,8 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
      *
      * optional .google.protobuf.FieldMask read_mask = 5;
      */
-    public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setReadMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (readMaskBuilder_ == null) {
         readMask_ = builderForValue.build();
       } else {
@@ -1240,8 +1115,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.owner,
@@ -1253,9 +1126,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
      */
     public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       if (readMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && readMask_ != null
-            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          readMask_ != null &&
+          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getReadMaskBuilder().mergeFrom(value);
         } else {
           readMask_ = value;
@@ -1263,13 +1136,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       } else {
         readMaskBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000010;
-      onChanged();
+      if (readMask_ != null) {
+        bitField0_ |= 0x00000010;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.owner,
@@ -1290,8 +1163,6 @@ public Builder clearReadMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.owner,
@@ -1307,8 +1178,6 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
       return getReadMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.owner,
@@ -1322,12 +1191,11 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
       if (readMaskBuilder_ != null) {
         return readMaskBuilder_.getMessageOrBuilder();
       } else {
-        return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
+        return readMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.owner,
@@ -1338,24 +1206,21 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
      * optional .google.protobuf.FieldMask read_mask = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getReadMaskFieldBuilder() {
       if (readMaskBuilder_ == null) {
-        readMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getReadMask(), getParentForChildren(), isClean());
+        readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getReadMask(),
+                getParentForChildren(),
+                isClean());
         readMask_ = null;
       }
       return readMaskBuilder_;
     }
-
     @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);
     }
 
@@ -1365,12 +1230,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.ListBucketsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.ListBucketsRequest)
   private static final com.google.storage.v2.ListBucketsRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.ListBucketsRequest();
   }
@@ -1379,27 +1244,27 @@ public static com.google.storage.v2.ListBucketsRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ListBucketsRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 ListBucketsRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -1414,4 +1279,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.ListBucketsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
similarity index 71%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
index c51a104f90..7237de441d 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
@@ -1,60 +1,34 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface ListBucketsRequestOrBuilder
-    extends
+public interface ListBucketsRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.ListBucketsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The project whose buckets we are listing.
    * 
* - * - * 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 project whose buckets we are listing.
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of buckets to return in a single response. The service will
    * use this parameter or 1,000 items, whichever is smaller. If "acl" is
@@ -63,66 +37,53 @@ public interface ListBucketsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A previously-returned page token representing part of the larger set of
    * results to view.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A previously-returned page token representing part of the larger set of
    * results to view.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter results to buckets whose names begin with this prefix.
    * 
* * string prefix = 4; - * * @return The prefix. */ java.lang.String getPrefix(); /** - * - * *
    * Filter results to buckets whose names begin with this prefix.
    * 
* * string prefix = 4; - * * @return The bytes for prefix. */ - com.google.protobuf.ByteString getPrefixBytes(); + com.google.protobuf.ByteString + getPrefixBytes(); /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.owner,
@@ -131,13 +92,10 @@ public interface ListBucketsRequestOrBuilder
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.owner,
@@ -146,13 +104,10 @@ public interface ListBucketsRequestOrBuilder
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.owner,
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
similarity index 71%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
index ac23896f3c..47eb173d15 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
@@ -1,42 +1,25 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * The result of a call to Buckets.ListBuckets
  * 
* * Protobuf type {@code google.storage.v2.ListBucketsResponse} */ -public final class ListBucketsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBucketsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ListBucketsResponse) ListBucketsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBucketsResponse.newBuilder() to construct. private ListBucketsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBucketsResponse() { buckets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +27,28 @@ private ListBucketsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBucketsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListBucketsResponse.class, - com.google.storage.v2.ListBucketsResponse.Builder.class); + com.google.storage.v2.ListBucketsResponse.class, com.google.storage.v2.ListBucketsResponse.Builder.class); } public static final int BUCKETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List buckets_; /** - * - * *
    * The list of items.
    * 
@@ -81,8 +60,6 @@ public java.util.List getBucketsList() { return buckets_; } /** - * - * *
    * The list of items.
    * 
@@ -90,12 +67,11 @@ public java.util.List getBucketsList() { * repeated .google.storage.v2.Bucket buckets = 1; */ @java.lang.Override - public java.util.List getBucketsOrBuilderList() { + public java.util.List + getBucketsOrBuilderList() { return buckets_; } /** - * - * *
    * The list of items.
    * 
@@ -107,8 +83,6 @@ public int getBucketsCount() { return buckets_.size(); } /** - * - * *
    * The list of items.
    * 
@@ -120,8 +94,6 @@ public com.google.storage.v2.Bucket getBuckets(int index) { return buckets_.get(index); } /** - * - * *
    * The list of items.
    * 
@@ -129,24 +101,21 @@ public com.google.storage.v2.Bucket getBuckets(int index) { * repeated .google.storage.v2.Bucket buckets = 1; */ @java.lang.Override - public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder(int index) { + public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder( + int index) { return buckets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -155,30 +124,30 @@ public java.lang.String getNextPageToken() { 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(); nextPageToken_ = s; return s; } } /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; 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); nextPageToken_ = b; return b; } else { @@ -187,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +167,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 < buckets_.size(); i++) { output.writeMessage(1, buckets_.get(i)); } @@ -216,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < buckets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, buckets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, buckets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -229,16 +199,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.storage.v2.ListBucketsResponse)) { return super.equals(obj); } - com.google.storage.v2.ListBucketsResponse other = - (com.google.storage.v2.ListBucketsResponse) obj; + com.google.storage.v2.ListBucketsResponse other = (com.google.storage.v2.ListBucketsResponse) obj; - if (!getBucketsList().equals(other.getBucketsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getBucketsList() + .equals(other.getBucketsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -261,136 +232,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ListBucketsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ListBucketsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListBucketsResponse 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.storage.v2.ListBucketsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListBucketsResponse 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.storage.v2.ListBucketsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListBucketsResponse 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.storage.v2.ListBucketsResponse 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.storage.v2.ListBucketsResponse 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.storage.v2.ListBucketsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListBucketsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListBucketsResponse 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.storage.v2.ListBucketsResponse 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.storage.v2.ListBucketsResponse 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.storage.v2.ListBucketsResponse 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 result of a call to Buckets.ListBuckets
    * 
* * Protobuf type {@code google.storage.v2.ListBucketsResponse} */ - 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.storage.v2.ListBucketsResponse) com.google.storage.v2.ListBucketsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListBucketsResponse.class, - com.google.storage.v2.ListBucketsResponse.Builder.class); + com.google.storage.v2.ListBucketsResponse.class, com.google.storage.v2.ListBucketsResponse.Builder.class); } // Construct using com.google.storage.v2.ListBucketsResponse.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 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsResponse_descriptor; } @java.lang.Override @@ -428,12 +395,9 @@ public com.google.storage.v2.ListBucketsResponse build() { @java.lang.Override public com.google.storage.v2.ListBucketsResponse buildPartial() { - com.google.storage.v2.ListBucketsResponse result = - new com.google.storage.v2.ListBucketsResponse(this); + com.google.storage.v2.ListBucketsResponse result = new com.google.storage.v2.ListBucketsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -461,39 +425,38 @@ private void buildPartial0(com.google.storage.v2.ListBucketsResponse 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.storage.v2.ListBucketsResponse) { - return mergeFrom((com.google.storage.v2.ListBucketsResponse) other); + return mergeFrom((com.google.storage.v2.ListBucketsResponse)other); } else { super.mergeFrom(other); return this; @@ -520,10 +483,9 @@ public Builder mergeFrom(com.google.storage.v2.ListBucketsResponse other) { bucketsBuilder_ = null; buckets_ = other.buckets_; bitField0_ = (bitField0_ & ~0x00000001); - bucketsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBucketsFieldBuilder() - : null; + bucketsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBucketsFieldBuilder() : null; } else { bucketsBuilder_.addAllMessages(other.buckets_); } @@ -560,31 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.storage.v2.Bucket m = - input.readMessage(com.google.storage.v2.Bucket.parser(), extensionRegistry); - if (bucketsBuilder_ == null) { - ensureBucketsIsMutable(); - buckets_.add(m); - } else { - bucketsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.storage.v2.Bucket m = + input.readMessage( + com.google.storage.v2.Bucket.parser(), + extensionRegistry); + if (bucketsBuilder_ == null) { + ensureBucketsIsMutable(); + buckets_.add(m); + } else { + bucketsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = 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) { @@ -594,28 +555,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List buckets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBucketsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { buckets_ = new java.util.ArrayList(buckets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Bucket, - com.google.storage.v2.Bucket.Builder, - com.google.storage.v2.BucketOrBuilder> - bucketsBuilder_; + com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> bucketsBuilder_; /** - * - * *
      * The list of items.
      * 
@@ -630,8 +584,6 @@ public java.util.List getBucketsList() { } } /** - * - * *
      * The list of items.
      * 
@@ -646,8 +598,6 @@ public int getBucketsCount() { } } /** - * - * *
      * The list of items.
      * 
@@ -662,15 +612,14 @@ public com.google.storage.v2.Bucket getBuckets(int index) { } } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - public Builder setBuckets(int index, com.google.storage.v2.Bucket value) { + public Builder setBuckets( + int index, com.google.storage.v2.Bucket value) { if (bucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -684,15 +633,14 @@ public Builder setBuckets(int index, com.google.storage.v2.Bucket value) { return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - public Builder setBuckets(int index, com.google.storage.v2.Bucket.Builder builderForValue) { + public Builder setBuckets( + int index, com.google.storage.v2.Bucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.set(index, builderForValue.build()); @@ -703,8 +651,6 @@ public Builder setBuckets(int index, com.google.storage.v2.Bucket.Builder builde return this; } /** - * - * *
      * The list of items.
      * 
@@ -725,15 +671,14 @@ public Builder addBuckets(com.google.storage.v2.Bucket value) { return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - public Builder addBuckets(int index, com.google.storage.v2.Bucket value) { + public Builder addBuckets( + int index, com.google.storage.v2.Bucket value) { if (bucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -747,15 +692,14 @@ public Builder addBuckets(int index, com.google.storage.v2.Bucket value) { return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - public Builder addBuckets(com.google.storage.v2.Bucket.Builder builderForValue) { + public Builder addBuckets( + com.google.storage.v2.Bucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.add(builderForValue.build()); @@ -766,15 +710,14 @@ public Builder addBuckets(com.google.storage.v2.Bucket.Builder builderForValue) return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - public Builder addBuckets(int index, com.google.storage.v2.Bucket.Builder builderForValue) { + public Builder addBuckets( + int index, com.google.storage.v2.Bucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.add(index, builderForValue.build()); @@ -785,8 +728,6 @@ public Builder addBuckets(int index, com.google.storage.v2.Bucket.Builder builde return this; } /** - * - * *
      * The list of items.
      * 
@@ -797,7 +738,8 @@ public Builder addAllBuckets( java.lang.Iterable values) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buckets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, buckets_); onChanged(); } else { bucketsBuilder_.addAllMessages(values); @@ -805,8 +747,6 @@ public Builder addAllBuckets( return this; } /** - * - * *
      * The list of items.
      * 
@@ -824,8 +764,6 @@ public Builder clearBuckets() { return this; } /** - * - * *
      * The list of items.
      * 
@@ -843,44 +781,39 @@ public Builder removeBuckets(int index) { return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - public com.google.storage.v2.Bucket.Builder getBucketsBuilder(int index) { + public com.google.storage.v2.Bucket.Builder getBucketsBuilder( + int index) { return getBucketsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder(int index) { + public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder( + int index) { if (bucketsBuilder_ == null) { - return buckets_.get(index); - } else { + return buckets_.get(index); } else { return bucketsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - public java.util.List - getBucketsOrBuilderList() { + public java.util.List + getBucketsOrBuilderList() { if (bucketsBuilder_ != null) { return bucketsBuilder_.getMessageOrBuilderList(); } else { @@ -888,8 +821,6 @@ public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder(int index) { } } /** - * - * *
      * The list of items.
      * 
@@ -897,46 +828,42 @@ public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder(int index) { * repeated .google.storage.v2.Bucket buckets = 1; */ public com.google.storage.v2.Bucket.Builder addBucketsBuilder() { - return getBucketsFieldBuilder().addBuilder(com.google.storage.v2.Bucket.getDefaultInstance()); + return getBucketsFieldBuilder().addBuilder( + com.google.storage.v2.Bucket.getDefaultInstance()); } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - public com.google.storage.v2.Bucket.Builder addBucketsBuilder(int index) { - return getBucketsFieldBuilder() - .addBuilder(index, com.google.storage.v2.Bucket.getDefaultInstance()); + public com.google.storage.v2.Bucket.Builder addBucketsBuilder( + int index) { + return getBucketsFieldBuilder().addBuilder( + index, com.google.storage.v2.Bucket.getDefaultInstance()); } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - public java.util.List getBucketsBuilderList() { + public java.util.List + getBucketsBuilderList() { return getBucketsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Bucket, - com.google.storage.v2.Bucket.Builder, - com.google.storage.v2.BucketOrBuilder> + com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> getBucketsFieldBuilder() { if (bucketsBuilder_ == null) { - bucketsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Bucket, - com.google.storage.v2.Bucket.Builder, - com.google.storage.v2.BucketOrBuilder>( - buckets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + bucketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder>( + buckets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); buckets_ = null; } return bucketsBuilder_; @@ -944,21 +871,19 @@ public java.util.List getBucketsBuilderLis private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; @@ -967,22 +892,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; 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); nextPageToken_ = b; return b; } else { @@ -990,37 +914,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1030,31 +947,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1064,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListBucketsResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListBucketsResponse) private static final com.google.storage.v2.ListBucketsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListBucketsResponse(); } @@ -1078,27 +991,27 @@ public static com.google.storage.v2.ListBucketsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBucketsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListBucketsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1113,4 +1026,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListBucketsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java index 926e975043..c5eb624df4 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java @@ -1,41 +1,23 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ListBucketsResponseOrBuilder - extends +public interface ListBucketsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ListBucketsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - java.util.List getBucketsList(); + java.util.List + getBucketsList(); /** - * - * *
    * The list of items.
    * 
@@ -44,8 +26,6 @@ public interface ListBucketsResponseOrBuilder */ com.google.storage.v2.Bucket getBuckets(int index); /** - * - * *
    * The list of items.
    * 
@@ -54,50 +34,43 @@ public interface ListBucketsResponseOrBuilder */ int getBucketsCount(); /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - java.util.List getBucketsOrBuilderList(); + java.util.List + getBucketsOrBuilderList(); /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.Bucket buckets = 1; */ - com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder(int index); + com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder( + int index); /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java similarity index 69% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java index 0349cec433..ec7d01e303 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request to fetch a list of HMAC keys under a given project.
  * 
* * Protobuf type {@code google.storage.v2.ListHmacKeysRequest} */ -public final class ListHmacKeysRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHmacKeysRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ListHmacKeysRequest) ListHmacKeysRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHmacKeysRequest.newBuilder() to construct. private ListHmacKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHmacKeysRequest() { project_ = ""; pageToken_ = ""; @@ -45,42 +28,35 @@ private ListHmacKeysRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHmacKeysRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListHmacKeysRequest.class, - com.google.storage.v2.ListHmacKeysRequest.Builder.class); + com.google.storage.v2.ListHmacKeysRequest.class, com.google.storage.v2.ListHmacKeysRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
    * Required. The project to list HMAC keys for, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -89,33 +65,31 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** - * - * *
    * Required. The project to list HMAC keys for, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -126,14 +100,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of keys to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,18 +113,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A previously returned token from ListHmacKeysResponse to get the next page.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -162,29 +129,29 @@ public java.lang.String getPageToken() { 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(); pageToken_ = s; return s; } } /** - * - * *
    * A previously returned token from ListHmacKeysResponse to get the next page.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; 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); pageToken_ = b; return b; } else { @@ -193,18 +160,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
    * If set, filters to only return HMAC keys for specified service account.
    * 
* * string service_account_email = 4; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -213,29 +176,29 @@ public java.lang.String getServiceAccountEmail() { 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(); serviceAccountEmail_ = s; return s; } } /** - * - * *
    * If set, filters to only return HMAC keys for specified service account.
    * 
* * string service_account_email = 4; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; 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); serviceAccountEmail_ = b; return b; } else { @@ -246,14 +209,11 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { public static final int SHOW_DELETED_KEYS_FIELD_NUMBER = 5; private boolean showDeletedKeys_ = false; /** - * - * *
    * If set, return deleted keys that have not yet been wiped out.
    * 
* * bool show_deleted_keys = 5; - * * @return The showDeletedKeys. */ @java.lang.Override @@ -262,7 +222,6 @@ public boolean getShowDeletedKeys() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,7 +233,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(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -303,7 +263,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -312,7 +273,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serviceAccountEmail_); } if (showDeletedKeys_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, showDeletedKeys_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, showDeletedKeys_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -322,19 +284,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.storage.v2.ListHmacKeysRequest)) { return super.equals(obj); } - com.google.storage.v2.ListHmacKeysRequest other = - (com.google.storage.v2.ListHmacKeysRequest) obj; - - if (!getProject().equals(other.getProject())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; - if (getShowDeletedKeys() != other.getShowDeletedKeys()) return false; + com.google.storage.v2.ListHmacKeysRequest other = (com.google.storage.v2.ListHmacKeysRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; + if (getShowDeletedKeys() + != other.getShowDeletedKeys()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -355,142 +321,139 @@ public int hashCode() { hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (37 * hash) + SHOW_DELETED_KEYS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeletedKeys()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeletedKeys()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.ListHmacKeysRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ListHmacKeysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysRequest 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.storage.v2.ListHmacKeysRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysRequest 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.storage.v2.ListHmacKeysRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysRequest 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.storage.v2.ListHmacKeysRequest 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.storage.v2.ListHmacKeysRequest 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.storage.v2.ListHmacKeysRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListHmacKeysRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListHmacKeysRequest 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.storage.v2.ListHmacKeysRequest 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.storage.v2.ListHmacKeysRequest 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.storage.v2.ListHmacKeysRequest 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 to fetch a list of HMAC keys under a given project.
    * 
* * Protobuf type {@code google.storage.v2.ListHmacKeysRequest} */ - 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.storage.v2.ListHmacKeysRequest) com.google.storage.v2.ListHmacKeysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListHmacKeysRequest.class, - com.google.storage.v2.ListHmacKeysRequest.Builder.class); + com.google.storage.v2.ListHmacKeysRequest.class, com.google.storage.v2.ListHmacKeysRequest.Builder.class); } // Construct using com.google.storage.v2.ListHmacKeysRequest.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(); @@ -504,9 +467,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; } @java.lang.Override @@ -525,11 +488,8 @@ public com.google.storage.v2.ListHmacKeysRequest build() { @java.lang.Override public com.google.storage.v2.ListHmacKeysRequest buildPartial() { - com.google.storage.v2.ListHmacKeysRequest result = - new com.google.storage.v2.ListHmacKeysRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ListHmacKeysRequest result = new com.google.storage.v2.ListHmacKeysRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -557,39 +517,38 @@ private void buildPartial0(com.google.storage.v2.ListHmacKeysRequest 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.storage.v2.ListHmacKeysRequest) { - return mergeFrom((com.google.storage.v2.ListHmacKeysRequest) other); + return mergeFrom((com.google.storage.v2.ListHmacKeysRequest)other); } else { super.mergeFrom(other); return this; @@ -645,43 +604,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - serviceAccountEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - showDeletedKeys_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + showDeletedKeys_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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) { @@ -691,29 +644,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object project_ = ""; /** - * - * *
      * Required. The project to list HMAC keys for, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -722,25 +670,22 @@ public java.lang.String getProject() { } } /** - * - * *
      * Required. The project to list HMAC keys for, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -748,43 +693,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Required. The project to list HMAC keys for, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project to list HMAC keys for, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -794,25 +728,19 @@ public Builder clearProject() { return this; } /** - * - * *
      * Required. The project to list HMAC keys for, in the format of
      * "projects/{projectIdentifier}".
      * {projectIdentifier} can be the project ID or project number.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000001; @@ -820,16 +748,13 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of keys to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -837,14 +762,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of keys to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -856,14 +778,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of keys to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -875,20 +794,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A previously returned token from ListHmacKeysResponse to get the next page.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; @@ -897,21 +814,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A previously returned token from ListHmacKeysResponse to get the next page.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; 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); pageToken_ = b; return b; } else { @@ -919,35 +835,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A previously returned token from ListHmacKeysResponse to get the next page.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A previously returned token from ListHmacKeysResponse to get the next page.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -957,21 +866,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A previously returned token from ListHmacKeysResponse to get the next page.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -981,20 +886,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
      * If set, filters to only return HMAC keys for specified service account.
      * 
* * string service_account_email = 4; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; 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(); serviceAccountEmail_ = s; return s; @@ -1003,21 +906,20 @@ public java.lang.String getServiceAccountEmail() { } } /** - * - * *
      * If set, filters to only return HMAC keys for specified service account.
      * 
* * string service_account_email = 4; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; 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); serviceAccountEmail_ = b; return b; } else { @@ -1025,35 +927,28 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } } /** - * - * *
      * If set, filters to only return HMAC keys for specified service account.
      * 
* * string service_account_email = 4; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccountEmail_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If set, filters to only return HMAC keys for specified service account.
      * 
* * string service_account_email = 4; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { @@ -1063,21 +958,17 @@ public Builder clearServiceAccountEmail() { return this; } /** - * - * *
      * If set, filters to only return HMAC keys for specified service account.
      * 
* * string service_account_email = 4; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountEmail_ = value; bitField0_ |= 0x00000008; @@ -1085,16 +976,13 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) return this; } - private boolean showDeletedKeys_; + private boolean showDeletedKeys_ ; /** - * - * *
      * If set, return deleted keys that have not yet been wiped out.
      * 
* * bool show_deleted_keys = 5; - * * @return The showDeletedKeys. */ @java.lang.Override @@ -1102,14 +990,11 @@ public boolean getShowDeletedKeys() { return showDeletedKeys_; } /** - * - * *
      * If set, return deleted keys that have not yet been wiped out.
      * 
* * bool show_deleted_keys = 5; - * * @param value The showDeletedKeys to set. * @return This builder for chaining. */ @@ -1121,14 +1006,11 @@ public Builder setShowDeletedKeys(boolean value) { return this; } /** - * - * *
      * If set, return deleted keys that have not yet been wiped out.
      * 
* * bool show_deleted_keys = 5; - * * @return This builder for chaining. */ public Builder clearShowDeletedKeys() { @@ -1137,9 +1019,9 @@ public Builder clearShowDeletedKeys() { 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); } @@ -1149,12 +1031,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListHmacKeysRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListHmacKeysRequest) private static final com.google.storage.v2.ListHmacKeysRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListHmacKeysRequest(); } @@ -1163,27 +1045,27 @@ public static com.google.storage.v2.ListHmacKeysRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHmacKeysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListHmacKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1198,4 +1080,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListHmacKeysRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java index 820453db94..6d6153b03d 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java @@ -1,133 +1,93 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ListHmacKeysRequestOrBuilder - extends +public interface ListHmacKeysRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ListHmacKeysRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project to list HMAC keys for, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
    * Required. The project to list HMAC keys for, in the format of
    * "projects/{projectIdentifier}".
    * {projectIdentifier} can be the project ID or project number.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * The maximum number of keys to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A previously returned token from ListHmacKeysResponse to get the next page.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A previously returned token from ListHmacKeysResponse to get the next page.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * If set, filters to only return HMAC keys for specified service account.
    * 
* * string service_account_email = 4; - * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** - * - * *
    * If set, filters to only return HMAC keys for specified service account.
    * 
* * string service_account_email = 4; - * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); /** - * - * *
    * If set, return deleted keys that have not yet been wiped out.
    * 
* * bool show_deleted_keys = 5; - * * @return The showDeletedKeys. */ boolean getShowDeletedKeys(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java similarity index 71% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java index 1dec8bbaa7..84ddef2bbd 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Hmac key list response with next page information.
  * 
* * Protobuf type {@code google.storage.v2.ListHmacKeysResponse} */ -public final class ListHmacKeysResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHmacKeysResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ListHmacKeysResponse) ListHmacKeysResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHmacKeysResponse.newBuilder() to construct. private ListHmacKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHmacKeysResponse() { hmacKeys_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +27,28 @@ private ListHmacKeysResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHmacKeysResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListHmacKeysResponse.class, - com.google.storage.v2.ListHmacKeysResponse.Builder.class); + com.google.storage.v2.ListHmacKeysResponse.class, com.google.storage.v2.ListHmacKeysResponse.Builder.class); } public static final int HMAC_KEYS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List hmacKeys_; /** - * - * *
    * The list of items.
    * 
@@ -81,8 +60,6 @@ public java.util.List getHmacKeysList() { return hmacKeys_; } /** - * - * *
    * The list of items.
    * 
@@ -90,13 +67,11 @@ public java.util.List getHmacKeysList() { * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHmacKeysOrBuilderList() { return hmacKeys_; } /** - * - * *
    * The list of items.
    * 
@@ -108,8 +83,6 @@ public int getHmacKeysCount() { return hmacKeys_.size(); } /** - * - * *
    * The list of items.
    * 
@@ -121,8 +94,6 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index) { return hmacKeys_.get(index); } /** - * - * *
    * The list of items.
    * 
@@ -130,24 +101,21 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index) { * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ @java.lang.Override - public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder(int index) { + public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder( + int index) { return hmacKeys_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,30 +124,30 @@ public java.lang.String getNextPageToken() { 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(); nextPageToken_ = s; return s; } } /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; 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); nextPageToken_ = b; return b; } else { @@ -188,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +167,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 < hmacKeys_.size(); i++) { output.writeMessage(1, hmacKeys_.get(i)); } @@ -217,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hmacKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hmacKeys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, hmacKeys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -230,16 +199,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.storage.v2.ListHmacKeysResponse)) { return super.equals(obj); } - com.google.storage.v2.ListHmacKeysResponse other = - (com.google.storage.v2.ListHmacKeysResponse) obj; + com.google.storage.v2.ListHmacKeysResponse other = (com.google.storage.v2.ListHmacKeysResponse) obj; - if (!getHmacKeysList().equals(other.getHmacKeysList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getHmacKeysList() + .equals(other.getHmacKeysList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -262,136 +232,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ListHmacKeysResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ListHmacKeysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysResponse 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.storage.v2.ListHmacKeysResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysResponse 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.storage.v2.ListHmacKeysResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysResponse 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.storage.v2.ListHmacKeysResponse 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.storage.v2.ListHmacKeysResponse 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.storage.v2.ListHmacKeysResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListHmacKeysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListHmacKeysResponse 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.storage.v2.ListHmacKeysResponse 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.storage.v2.ListHmacKeysResponse 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.storage.v2.ListHmacKeysResponse 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; } /** - * - * *
    * Hmac key list response with next page information.
    * 
* * Protobuf type {@code google.storage.v2.ListHmacKeysResponse} */ - 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.storage.v2.ListHmacKeysResponse) com.google.storage.v2.ListHmacKeysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListHmacKeysResponse.class, - com.google.storage.v2.ListHmacKeysResponse.Builder.class); + com.google.storage.v2.ListHmacKeysResponse.class, com.google.storage.v2.ListHmacKeysResponse.Builder.class); } // Construct using com.google.storage.v2.ListHmacKeysResponse.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(); @@ -408,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; } @java.lang.Override @@ -429,12 +395,9 @@ public com.google.storage.v2.ListHmacKeysResponse build() { @java.lang.Override public com.google.storage.v2.ListHmacKeysResponse buildPartial() { - com.google.storage.v2.ListHmacKeysResponse result = - new com.google.storage.v2.ListHmacKeysResponse(this); + com.google.storage.v2.ListHmacKeysResponse result = new com.google.storage.v2.ListHmacKeysResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -462,39 +425,38 @@ private void buildPartial0(com.google.storage.v2.ListHmacKeysResponse 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.storage.v2.ListHmacKeysResponse) { - return mergeFrom((com.google.storage.v2.ListHmacKeysResponse) other); + return mergeFrom((com.google.storage.v2.ListHmacKeysResponse)other); } else { super.mergeFrom(other); return this; @@ -521,10 +483,9 @@ public Builder mergeFrom(com.google.storage.v2.ListHmacKeysResponse other) { hmacKeysBuilder_ = null; hmacKeys_ = other.hmacKeys_; bitField0_ = (bitField0_ & ~0x00000001); - hmacKeysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHmacKeysFieldBuilder() - : null; + hmacKeysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHmacKeysFieldBuilder() : null; } else { hmacKeysBuilder_.addAllMessages(other.hmacKeys_); } @@ -561,32 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.storage.v2.HmacKeyMetadata m = - input.readMessage( - com.google.storage.v2.HmacKeyMetadata.parser(), extensionRegistry); - if (hmacKeysBuilder_ == null) { - ensureHmacKeysIsMutable(); - hmacKeys_.add(m); - } else { - hmacKeysBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.storage.v2.HmacKeyMetadata m = + input.readMessage( + com.google.storage.v2.HmacKeyMetadata.parser(), + extensionRegistry); + if (hmacKeysBuilder_ == null) { + ensureHmacKeysIsMutable(); + hmacKeys_.add(m); + } else { + hmacKeysBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = 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) { @@ -596,28 +555,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List hmacKeys_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHmacKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hmacKeys_ = new java.util.ArrayList(hmacKeys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder> - hmacKeysBuilder_; + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> hmacKeysBuilder_; /** - * - * *
      * The list of items.
      * 
@@ -632,8 +584,6 @@ public java.util.List getHmacKeysList() { } } /** - * - * *
      * The list of items.
      * 
@@ -648,8 +598,6 @@ public int getHmacKeysCount() { } } /** - * - * *
      * The list of items.
      * 
@@ -664,15 +612,14 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index) { } } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public Builder setHmacKeys(int index, com.google.storage.v2.HmacKeyMetadata value) { + public Builder setHmacKeys( + int index, com.google.storage.v2.HmacKeyMetadata value) { if (hmacKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -686,8 +633,6 @@ public Builder setHmacKeys(int index, com.google.storage.v2.HmacKeyMetadata valu return this; } /** - * - * *
      * The list of items.
      * 
@@ -706,8 +651,6 @@ public Builder setHmacKeys( return this; } /** - * - * *
      * The list of items.
      * 
@@ -728,15 +671,14 @@ public Builder addHmacKeys(com.google.storage.v2.HmacKeyMetadata value) { return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public Builder addHmacKeys(int index, com.google.storage.v2.HmacKeyMetadata value) { + public Builder addHmacKeys( + int index, com.google.storage.v2.HmacKeyMetadata value) { if (hmacKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,15 +692,14 @@ public Builder addHmacKeys(int index, com.google.storage.v2.HmacKeyMetadata valu return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public Builder addHmacKeys(com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { + public Builder addHmacKeys( + com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { if (hmacKeysBuilder_ == null) { ensureHmacKeysIsMutable(); hmacKeys_.add(builderForValue.build()); @@ -769,8 +710,6 @@ public Builder addHmacKeys(com.google.storage.v2.HmacKeyMetadata.Builder builder return this; } /** - * - * *
      * The list of items.
      * 
@@ -789,8 +728,6 @@ public Builder addHmacKeys( return this; } /** - * - * *
      * The list of items.
      * 
@@ -801,7 +738,8 @@ public Builder addAllHmacKeys( java.lang.Iterable values) { if (hmacKeysBuilder_ == null) { ensureHmacKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hmacKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hmacKeys_); onChanged(); } else { hmacKeysBuilder_.addAllMessages(values); @@ -809,8 +747,6 @@ public Builder addAllHmacKeys( return this; } /** - * - * *
      * The list of items.
      * 
@@ -828,8 +764,6 @@ public Builder clearHmacKeys() { return this; } /** - * - * *
      * The list of items.
      * 
@@ -847,44 +781,39 @@ public Builder removeHmacKeys(int index) { return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public com.google.storage.v2.HmacKeyMetadata.Builder getHmacKeysBuilder(int index) { + public com.google.storage.v2.HmacKeyMetadata.Builder getHmacKeysBuilder( + int index) { return getHmacKeysFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder(int index) { + public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder( + int index) { if (hmacKeysBuilder_ == null) { - return hmacKeys_.get(index); - } else { + return hmacKeys_.get(index); } else { return hmacKeysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public java.util.List - getHmacKeysOrBuilderList() { + public java.util.List + getHmacKeysOrBuilderList() { if (hmacKeysBuilder_ != null) { return hmacKeysBuilder_.getMessageOrBuilderList(); } else { @@ -892,8 +821,6 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder(int i } } /** - * - * *
      * The list of items.
      * 
@@ -901,47 +828,42 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder(int i * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ public com.google.storage.v2.HmacKeyMetadata.Builder addHmacKeysBuilder() { - return getHmacKeysFieldBuilder() - .addBuilder(com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()); + return getHmacKeysFieldBuilder().addBuilder( + com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()); } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public com.google.storage.v2.HmacKeyMetadata.Builder addHmacKeysBuilder(int index) { - return getHmacKeysFieldBuilder() - .addBuilder(index, com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()); + public com.google.storage.v2.HmacKeyMetadata.Builder addHmacKeysBuilder( + int index) { + return getHmacKeysFieldBuilder().addBuilder( + index, com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()); } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public java.util.List getHmacKeysBuilderList() { + public java.util.List + getHmacKeysBuilderList() { return getHmacKeysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder> + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> getHmacKeysFieldBuilder() { if (hmacKeysBuilder_ == null) { - hmacKeysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder>( - hmacKeys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + hmacKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder>( + hmacKeys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); hmacKeys_ = null; } return hmacKeysBuilder_; @@ -949,21 +871,19 @@ public java.util.List getHmacKeys private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; @@ -972,22 +892,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; 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); nextPageToken_ = b; return b; } else { @@ -995,37 +914,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1035,31 +947,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1069,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListHmacKeysResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListHmacKeysResponse) private static final com.google.storage.v2.ListHmacKeysResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListHmacKeysResponse(); } @@ -1083,27 +991,27 @@ public static com.google.storage.v2.ListHmacKeysResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHmacKeysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListHmacKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1118,4 +1026,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListHmacKeysResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java index 39bc3f176f..6fa6af8be9 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java @@ -1,41 +1,23 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ListHmacKeysResponseOrBuilder - extends +public interface ListHmacKeysResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ListHmacKeysResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - java.util.List getHmacKeysList(); + java.util.List + getHmacKeysList(); /** - * - * *
    * The list of items.
    * 
@@ -44,8 +26,6 @@ public interface ListHmacKeysResponseOrBuilder */ com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index); /** - * - * *
    * The list of items.
    * 
@@ -54,51 +34,43 @@ public interface ListHmacKeysResponseOrBuilder */ int getHmacKeysCount(); /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - java.util.List + java.util.List getHmacKeysOrBuilderList(); /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder(int index); + com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder( + int index); /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java similarity index 67% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java index 591c8ac417..f9cac24f30 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for ListNotifications.
  * 
* * Protobuf type {@code google.storage.v2.ListNotificationConfigsRequest} */ -public final class ListNotificationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ListNotificationConfigsRequest) ListNotificationConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationConfigsRequest.newBuilder() to construct. - private ListNotificationConfigsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,40 +27,33 @@ private ListNotificationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListNotificationConfigsRequest.class, - com.google.storage.v2.ListNotificationConfigsRequest.Builder.class); + com.google.storage.v2.ListNotificationConfigsRequest.class, com.google.storage.v2.ListNotificationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of a Google Cloud Storage bucket.
    * 
* - * - * 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 @@ -87,31 +62,29 @@ 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. Name of a Google Cloud Storage bucket.
    * 
* - * - * 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 { @@ -122,8 +95,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of NotificationConfigs to return. The service may
    * return fewer than this value. The default value is 100. Specifying a value
@@ -131,7 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -140,12 +110,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListNotificationConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -155,7 +122,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,15 +130,14 @@ public java.lang.String getPageToken() { 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(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListNotificationConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -182,15 +147,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; 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); pageToken_ = b; return b; } else { @@ -199,7 +165,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -234,7 +200,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -247,17 +214,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.storage.v2.ListNotificationConfigsRequest)) { return super.equals(obj); } - com.google.storage.v2.ListNotificationConfigsRequest other = - (com.google.storage.v2.ListNotificationConfigsRequest) obj; + com.google.storage.v2.ListNotificationConfigsRequest other = (com.google.storage.v2.ListNotificationConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -281,135 +250,131 @@ public int hashCode() { } public static com.google.storage.v2.ListNotificationConfigsRequest 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.storage.v2.ListNotificationConfigsRequest 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.storage.v2.ListNotificationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListNotificationConfigsRequest 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.storage.v2.ListNotificationConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListNotificationConfigsRequest 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.storage.v2.ListNotificationConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListNotificationConfigsRequest 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.storage.v2.ListNotificationConfigsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListNotificationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListNotificationConfigsRequest 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.storage.v2.ListNotificationConfigsRequest 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.storage.v2.ListNotificationConfigsRequest 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.storage.v2.ListNotificationConfigsRequest 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 ListNotifications.
    * 
* * Protobuf type {@code google.storage.v2.ListNotificationConfigsRequest} */ - 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.storage.v2.ListNotificationConfigsRequest) com.google.storage.v2.ListNotificationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListNotificationConfigsRequest.class, - com.google.storage.v2.ListNotificationConfigsRequest.Builder.class); + com.google.storage.v2.ListNotificationConfigsRequest.class, com.google.storage.v2.ListNotificationConfigsRequest.Builder.class); } // Construct using com.google.storage.v2.ListNotificationConfigsRequest.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(); @@ -421,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; } @java.lang.Override @@ -442,11 +407,8 @@ public com.google.storage.v2.ListNotificationConfigsRequest build() { @java.lang.Override public com.google.storage.v2.ListNotificationConfigsRequest buildPartial() { - com.google.storage.v2.ListNotificationConfigsRequest result = - new com.google.storage.v2.ListNotificationConfigsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ListNotificationConfigsRequest result = new com.google.storage.v2.ListNotificationConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -468,39 +430,38 @@ private void buildPartial0(com.google.storage.v2.ListNotificationConfigsRequest 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.storage.v2.ListNotificationConfigsRequest) { - return mergeFrom((com.google.storage.v2.ListNotificationConfigsRequest) other); + return mergeFrom((com.google.storage.v2.ListNotificationConfigsRequest)other); } else { super.mergeFrom(other); return this; @@ -508,8 +469,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.ListNotificationConfigsRequest other) { - if (other == com.google.storage.v2.ListNotificationConfigsRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.ListNotificationConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -549,31 +509,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - 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 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = 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) { @@ -583,27 +539,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of a Google Cloud Storage bucket.
      * 
* - * - * 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,23 +563,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of a Google Cloud Storage bucket.
      * 
* - * - * 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 { @@ -636,39 +584,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of a Google Cloud Storage bucket.
      * 
* - * - * 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. Name of a Google Cloud Storage bucket.
      * 
* - * - * 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() { @@ -678,23 +615,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of a Google Cloud Storage bucket.
      * 
* - * - * 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; @@ -702,10 +633,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of NotificationConfigs to return. The service may
      * return fewer than this value. The default value is 100. Specifying a value
@@ -713,7 +642,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -721,8 +649,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of NotificationConfigs to return. The service may
      * return fewer than this value. The default value is 100. Specifying a value
@@ -730,7 +656,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -742,8 +667,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of NotificationConfigs to return. The service may
      * return fewer than this value. The default value is 100. Specifying a value
@@ -751,7 +674,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -763,8 +685,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListNotificationConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -774,13 +694,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; @@ -789,8 +709,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListNotificationConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -800,14 +718,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; 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); pageToken_ = b; return b; } else { @@ -815,8 +734,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListNotificationConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -826,22 +743,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListNotificationConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -851,7 +764,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -861,8 +773,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListNotificationConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -872,23 +782,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = 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); } @@ -898,12 +806,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListNotificationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListNotificationConfigsRequest) private static final com.google.storage.v2.ListNotificationConfigsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListNotificationConfigsRequest(); } @@ -912,27 +820,27 @@ public static com.google.storage.v2.ListNotificationConfigsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListNotificationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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,4 +855,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.storage.v2.ListNotificationConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java index 67c71c39aa..3ebe086abf 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java @@ -1,60 +1,34 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ListNotificationConfigsRequestOrBuilder - extends +public interface ListNotificationConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ListNotificationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of a Google Cloud Storage bucket.
    * 
* - * - * 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. Name of a Google Cloud Storage bucket.
    * 
* - * - * 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(); /** - * - * *
    * The maximum number of NotificationConfigs to return. The service may
    * return fewer than this value. The default value is 100. Specifying a value
@@ -62,14 +36,11 @@ public interface ListNotificationConfigsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListNotificationConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -79,13 +50,10 @@ public interface ListNotificationConfigsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListNotificationConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -95,8 +63,8 @@ public interface ListNotificationConfigsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java similarity index 72% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java index 8f3d92f77d..d9f4d3727c 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java @@ -1,43 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * The result of a call to ListNotificationConfigs
  * 
* * Protobuf type {@code google.storage.v2.ListNotificationConfigsResponse} */ -public final class ListNotificationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ListNotificationConfigsResponse) ListNotificationConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationConfigsResponse.newBuilder() to construct. - private ListNotificationConfigsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationConfigsResponse() { notificationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListNotificationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListNotificationConfigsResponse.class, - com.google.storage.v2.ListNotificationConfigsResponse.Builder.class); + com.google.storage.v2.ListNotificationConfigsResponse.class, com.google.storage.v2.ListNotificationConfigsResponse.Builder.class); } public static final int NOTIFICATION_CONFIGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List notificationConfigs_; /** - * - * *
    * The list of items.
    * 
@@ -82,8 +60,6 @@ public java.util.List getNotificationC return notificationConfigs_; } /** - * - * *
    * The list of items.
    * 
@@ -91,13 +67,11 @@ public java.util.List getNotificationC * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNotificationConfigsOrBuilderList() { return notificationConfigs_; } /** - * - * *
    * The list of items.
    * 
@@ -109,8 +83,6 @@ public int getNotificationConfigsCount() { return notificationConfigs_.size(); } /** - * - * *
    * The list of items.
    * 
@@ -122,8 +94,6 @@ public com.google.storage.v2.NotificationConfig getNotificationConfigs(int index return notificationConfigs_.get(index); } /** - * - * *
    * The list of items.
    * 
@@ -137,19 +107,15 @@ public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsO } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,30 +124,30 @@ public java.lang.String getNextPageToken() { 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(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; 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); nextPageToken_ = b; return b; } else { @@ -190,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +167,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 < notificationConfigs_.size(); i++) { output.writeMessage(1, notificationConfigs_.get(i)); } @@ -219,8 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < notificationConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, notificationConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, notificationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -233,16 +199,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.storage.v2.ListNotificationConfigsResponse)) { return super.equals(obj); } - com.google.storage.v2.ListNotificationConfigsResponse other = - (com.google.storage.v2.ListNotificationConfigsResponse) obj; + com.google.storage.v2.ListNotificationConfigsResponse other = (com.google.storage.v2.ListNotificationConfigsResponse) obj; - if (!getNotificationConfigsList().equals(other.getNotificationConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getNotificationConfigsList() + .equals(other.getNotificationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,136 +233,131 @@ public int hashCode() { } public static com.google.storage.v2.ListNotificationConfigsResponse 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.storage.v2.ListNotificationConfigsResponse 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.storage.v2.ListNotificationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListNotificationConfigsResponse 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.storage.v2.ListNotificationConfigsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListNotificationConfigsResponse 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.storage.v2.ListNotificationConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListNotificationConfigsResponse 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.storage.v2.ListNotificationConfigsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListNotificationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListNotificationConfigsResponse 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.storage.v2.ListNotificationConfigsResponse 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.storage.v2.ListNotificationConfigsResponse 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.storage.v2.ListNotificationConfigsResponse prototype) { + public static Builder newBuilder(com.google.storage.v2.ListNotificationConfigsResponse 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 result of a call to ListNotificationConfigs
    * 
* * Protobuf type {@code google.storage.v2.ListNotificationConfigsResponse} */ - 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.storage.v2.ListNotificationConfigsResponse) com.google.storage.v2.ListNotificationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListNotificationConfigsResponse.class, - com.google.storage.v2.ListNotificationConfigsResponse.Builder.class); + com.google.storage.v2.ListNotificationConfigsResponse.class, com.google.storage.v2.ListNotificationConfigsResponse.Builder.class); } // Construct using com.google.storage.v2.ListNotificationConfigsResponse.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(); @@ -412,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; } @java.lang.Override @@ -433,18 +395,14 @@ public com.google.storage.v2.ListNotificationConfigsResponse build() { @java.lang.Override public com.google.storage.v2.ListNotificationConfigsResponse buildPartial() { - com.google.storage.v2.ListNotificationConfigsResponse result = - new com.google.storage.v2.ListNotificationConfigsResponse(this); + com.google.storage.v2.ListNotificationConfigsResponse result = new com.google.storage.v2.ListNotificationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.storage.v2.ListNotificationConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.storage.v2.ListNotificationConfigsResponse result) { if (notificationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { notificationConfigs_ = java.util.Collections.unmodifiableList(notificationConfigs_); @@ -467,39 +425,38 @@ private void buildPartial0(com.google.storage.v2.ListNotificationConfigsResponse 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.storage.v2.ListNotificationConfigsResponse) { - return mergeFrom((com.google.storage.v2.ListNotificationConfigsResponse) other); + return mergeFrom((com.google.storage.v2.ListNotificationConfigsResponse)other); } else { super.mergeFrom(other); return this; @@ -507,8 +464,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.ListNotificationConfigsResponse other) { - if (other == com.google.storage.v2.ListNotificationConfigsResponse.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.ListNotificationConfigsResponse.getDefaultInstance()) return this; if (notificationConfigsBuilder_ == null) { if (!other.notificationConfigs_.isEmpty()) { if (notificationConfigs_.isEmpty()) { @@ -527,10 +483,9 @@ public Builder mergeFrom(com.google.storage.v2.ListNotificationConfigsResponse o notificationConfigsBuilder_ = null; notificationConfigs_ = other.notificationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - notificationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNotificationConfigsFieldBuilder() - : null; + notificationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationConfigsFieldBuilder() : null; } else { notificationConfigsBuilder_.addAllMessages(other.notificationConfigs_); } @@ -567,32 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.storage.v2.NotificationConfig m = - input.readMessage( - com.google.storage.v2.NotificationConfig.parser(), extensionRegistry); - if (notificationConfigsBuilder_ == null) { - ensureNotificationConfigsIsMutable(); - notificationConfigs_.add(m); - } else { - notificationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.storage.v2.NotificationConfig m = + input.readMessage( + com.google.storage.v2.NotificationConfig.parser(), + extensionRegistry); + if (notificationConfigsBuilder_ == null) { + ensureNotificationConfigsIsMutable(); + notificationConfigs_.add(m); + } else { + notificationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = 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) { @@ -602,29 +555,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List notificationConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNotificationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationConfigs_ = - new java.util.ArrayList(notificationConfigs_); + notificationConfigs_ = new java.util.ArrayList(notificationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder> - notificationConfigsBuilder_; + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder> notificationConfigsBuilder_; /** - * - * *
      * The list of items.
      * 
@@ -639,8 +584,6 @@ public java.util.List getNotificationC } } /** - * - * *
      * The list of items.
      * 
@@ -655,8 +598,6 @@ public int getNotificationConfigsCount() { } } /** - * - * *
      * The list of items.
      * 
@@ -671,8 +612,6 @@ public com.google.storage.v2.NotificationConfig getNotificationConfigs(int index } } /** - * - * *
      * The list of items.
      * 
@@ -694,8 +633,6 @@ public Builder setNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -714,8 +651,6 @@ public Builder setNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -736,8 +671,6 @@ public Builder addNotificationConfigs(com.google.storage.v2.NotificationConfig v return this; } /** - * - * *
      * The list of items.
      * 
@@ -759,8 +692,6 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -779,8 +710,6 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -799,8 +728,6 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -811,7 +738,8 @@ public Builder addAllNotificationConfigs( java.lang.Iterable values) { if (notificationConfigsBuilder_ == null) { ensureNotificationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notificationConfigs_); onChanged(); } else { notificationConfigsBuilder_.addAllMessages(values); @@ -819,8 +747,6 @@ public Builder addAllNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -838,8 +764,6 @@ public Builder clearNotificationConfigs() { return this; } /** - * - * *
      * The list of items.
      * 
@@ -857,8 +781,6 @@ public Builder removeNotificationConfigs(int index) { return this; } /** - * - * *
      * The list of items.
      * 
@@ -870,8 +792,6 @@ public com.google.storage.v2.NotificationConfig.Builder getNotificationConfigsBu return getNotificationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of items.
      * 
@@ -881,22 +801,19 @@ public com.google.storage.v2.NotificationConfig.Builder getNotificationConfigsBu public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( int index) { if (notificationConfigsBuilder_ == null) { - return notificationConfigs_.get(index); - } else { + return notificationConfigs_.get(index); } else { return notificationConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ - public java.util.List - getNotificationConfigsOrBuilderList() { + public java.util.List + getNotificationConfigsOrBuilderList() { if (notificationConfigsBuilder_ != null) { return notificationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -904,8 +821,6 @@ public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsO } } /** - * - * *
      * The list of items.
      * 
@@ -913,12 +828,10 @@ public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsO * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ public com.google.storage.v2.NotificationConfig.Builder addNotificationConfigsBuilder() { - return getNotificationConfigsFieldBuilder() - .addBuilder(com.google.storage.v2.NotificationConfig.getDefaultInstance()); + return getNotificationConfigsFieldBuilder().addBuilder( + com.google.storage.v2.NotificationConfig.getDefaultInstance()); } /** - * - * *
      * The list of items.
      * 
@@ -927,34 +840,26 @@ public com.google.storage.v2.NotificationConfig.Builder addNotificationConfigsBu */ public com.google.storage.v2.NotificationConfig.Builder addNotificationConfigsBuilder( int index) { - return getNotificationConfigsFieldBuilder() - .addBuilder(index, com.google.storage.v2.NotificationConfig.getDefaultInstance()); + return getNotificationConfigsFieldBuilder().addBuilder( + index, com.google.storage.v2.NotificationConfig.getDefaultInstance()); } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ - public java.util.List - getNotificationConfigsBuilderList() { + public java.util.List + getNotificationConfigsBuilderList() { return getNotificationConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder> + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder> getNotificationConfigsFieldBuilder() { if (notificationConfigsBuilder_ == null) { - notificationConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder>( + notificationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder>( notificationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -966,21 +871,19 @@ public com.google.storage.v2.NotificationConfig.Builder addNotificationConfigsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; @@ -989,22 +892,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; 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); nextPageToken_ = b; return b; } else { @@ -1012,37 +914,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1052,31 +947,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1086,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListNotificationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListNotificationConfigsResponse) private static final com.google.storage.v2.ListNotificationConfigsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListNotificationConfigsResponse(); } @@ -1100,27 +991,27 @@ public static com.google.storage.v2.ListNotificationConfigsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListNotificationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1135,4 +1026,6 @@ public com.google.protobuf.Parser getParserForT public com.google.storage.v2.ListNotificationConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java index 9c8e9954dd..d18e99233f 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java @@ -1,41 +1,23 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ListNotificationConfigsResponseOrBuilder - extends +public interface ListNotificationConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ListNotificationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ - java.util.List getNotificationConfigsList(); + java.util.List + getNotificationConfigsList(); /** - * - * *
    * The list of items.
    * 
@@ -44,8 +26,6 @@ public interface ListNotificationConfigsResponseOrBuilder */ com.google.storage.v2.NotificationConfig getNotificationConfigs(int index); /** - * - * *
    * The list of items.
    * 
@@ -54,51 +34,43 @@ public interface ListNotificationConfigsResponseOrBuilder */ int getNotificationConfigsCount(); /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ - java.util.List + java.util.List getNotificationConfigsOrBuilderList(); /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ - com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsOrBuilder(int index); + com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java similarity index 76% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java index f20e2c5016..3a51468754 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for ListObjects.
  * 
* * Protobuf type {@code google.storage.v2.ListObjectsRequest} */ -public final class ListObjectsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListObjectsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ListObjectsRequest) ListObjectsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListObjectsRequest.newBuilder() to construct. private ListObjectsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListObjectsRequest() { parent_ = ""; pageToken_ = ""; @@ -49,41 +32,34 @@ private ListObjectsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListObjectsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListObjectsRequest.class, - com.google.storage.v2.ListObjectsRequest.Builder.class); + com.google.storage.v2.ListObjectsRequest.class, com.google.storage.v2.ListObjectsRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of the bucket in which to look for objects.
    * 
* - * - * 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 @@ -92,31 +68,29 @@ 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. Name of the bucket in which to look for objects.
    * 
* - * - * 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,8 +101,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of `items` plus `prefixes` to return
    * in a single page of responses. As duplicate `prefixes` are
@@ -137,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -146,19 +117,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A previously-returned page token representing part of the larger set of
    * results to view.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -167,30 +134,30 @@ public java.lang.String getPageToken() { 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(); pageToken_ = s; return s; } } /** - * - * *
    * A previously-returned page token representing part of the larger set of
    * results to view.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; 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); pageToken_ = b; return b; } else { @@ -199,12 +166,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int DELIMITER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object delimiter_ = ""; /** - * - * *
    * If set, returns results in a directory-like mode. `items` will contain
    * only objects whose names, aside from the `prefix`, do not
@@ -215,7 +179,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string delimiter = 4; - * * @return The delimiter. */ @java.lang.Override @@ -224,15 +187,14 @@ public java.lang.String getDelimiter() { 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(); delimiter_ = s; return s; } } /** - * - * *
    * If set, returns results in a directory-like mode. `items` will contain
    * only objects whose names, aside from the `prefix`, do not
@@ -243,15 +205,16 @@ public java.lang.String getDelimiter() {
    * 
* * string delimiter = 4; - * * @return The bytes for delimiter. */ @java.lang.Override - public com.google.protobuf.ByteString getDelimiterBytes() { + public com.google.protobuf.ByteString + getDelimiterBytes() { java.lang.Object ref = delimiter_; 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); delimiter_ = b; return b; } else { @@ -262,8 +225,6 @@ public com.google.protobuf.ByteString getDelimiterBytes() { public static final int INCLUDE_TRAILING_DELIMITER_FIELD_NUMBER = 5; private boolean includeTrailingDelimiter_ = false; /** - * - * *
    * If true, objects that end in exactly one instance of `delimiter`
    * will have their metadata included in `items` in addition to
@@ -271,7 +232,6 @@ public com.google.protobuf.ByteString getDelimiterBytes() {
    * 
* * bool include_trailing_delimiter = 5; - * * @return The includeTrailingDelimiter. */ @java.lang.Override @@ -280,18 +240,14 @@ public boolean getIncludeTrailingDelimiter() { } public static final int PREFIX_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** - * - * *
    * Filter results to objects whose names begin with this prefix.
    * 
* * string prefix = 6; - * * @return The prefix. */ @java.lang.Override @@ -300,29 +256,29 @@ public java.lang.String getPrefix() { 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(); prefix_ = s; return s; } } /** - * - * *
    * Filter results to objects whose names begin with this prefix.
    * 
* * string prefix = 6; - * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; 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); prefix_ = b; return b; } else { @@ -333,8 +289,6 @@ public com.google.protobuf.ByteString getPrefixBytes() { public static final int VERSIONS_FIELD_NUMBER = 7; private boolean versions_ = false; /** - * - * *
    * If `true`, lists all versions of an object as distinct results.
    * For more information, see
@@ -343,7 +297,6 @@ public com.google.protobuf.ByteString getPrefixBytes() {
    * 
* * bool versions = 7; - * * @return The versions. */ @java.lang.Override @@ -354,8 +307,6 @@ public boolean getVersions() { public static final int READ_MASK_FIELD_NUMBER = 8; private com.google.protobuf.FieldMask readMask_; /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.acl and
@@ -364,7 +315,6 @@ public boolean getVersions() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 8; - * * @return Whether the readMask field is set. */ @java.lang.Override @@ -372,8 +322,6 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.acl and
@@ -382,7 +330,6 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 8; - * * @return The readMask. */ @java.lang.Override @@ -390,8 +337,6 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.acl and
@@ -407,12 +352,9 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   public static final int LEXICOGRAPHIC_START_FIELD_NUMBER = 10;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object lexicographicStart_ = "";
   /**
-   *
-   *
    * 
    * Optional. Filter results to objects whose names are lexicographically equal
    * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -421,7 +363,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
    * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ @java.lang.Override @@ -430,15 +371,14 @@ public java.lang.String getLexicographicStart() { 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(); lexicographicStart_ = s; return s; } } /** - * - * *
    * Optional. Filter results to objects whose names are lexicographically equal
    * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -447,15 +387,16 @@ public java.lang.String getLexicographicStart() {
    * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicStart. */ @java.lang.Override - public com.google.protobuf.ByteString getLexicographicStartBytes() { + public com.google.protobuf.ByteString + getLexicographicStartBytes() { java.lang.Object ref = lexicographicStart_; 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); lexicographicStart_ = b; return b; } else { @@ -464,12 +405,9 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() { } public static final int LEXICOGRAPHIC_END_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object lexicographicEnd_ = ""; /** - * - * *
    * Optional. Filter results to objects whose names are lexicographically
    * before lexicographic_end. If lexicographic_start is also set, the objects
@@ -478,7 +416,6 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() {
    * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ @java.lang.Override @@ -487,15 +424,14 @@ public java.lang.String getLexicographicEnd() { 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(); lexicographicEnd_ = s; return s; } } /** - * - * *
    * Optional. Filter results to objects whose names are lexicographically
    * before lexicographic_end. If lexicographic_start is also set, the objects
@@ -504,15 +440,16 @@ public java.lang.String getLexicographicEnd() {
    * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicEnd. */ @java.lang.Override - public com.google.protobuf.ByteString getLexicographicEndBytes() { + public com.google.protobuf.ByteString + getLexicographicEndBytes() { java.lang.Object ref = lexicographicEnd_; 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); lexicographicEnd_ = b; return b; } else { @@ -523,15 +460,12 @@ public com.google.protobuf.ByteString getLexicographicEndBytes() { public static final int SOFT_DELETED_FIELD_NUMBER = 12; private boolean softDeleted_ = false; /** - * - * *
    * Optional. If true, only list all soft-deleted versions of the object.
    * Soft delete policy is required to set this option.
    * 
* * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The softDeleted. */ @java.lang.Override @@ -540,12 +474,9 @@ public boolean getSoftDeleted() { } public static final int MATCH_GLOB_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private volatile java.lang.Object matchGlob_ = ""; /** - * - * *
    * Optional. Filter results to objects and prefixes that match this glob
    * pattern. See [List Objects Using
@@ -554,7 +485,6 @@ public boolean getSoftDeleted() {
    * 
* * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The matchGlob. */ @java.lang.Override @@ -563,15 +493,14 @@ public java.lang.String getMatchGlob() { 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(); matchGlob_ = s; return s; } } /** - * - * *
    * Optional. Filter results to objects and prefixes that match this glob
    * pattern. See [List Objects Using
@@ -580,15 +509,16 @@ public java.lang.String getMatchGlob() {
    * 
* * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for matchGlob. */ @java.lang.Override - public com.google.protobuf.ByteString getMatchGlobBytes() { + public com.google.protobuf.ByteString + getMatchGlobBytes() { java.lang.Object ref = matchGlob_; 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); matchGlob_ = b; return b; } else { @@ -597,7 +527,6 @@ public com.google.protobuf.ByteString getMatchGlobBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -609,7 +538,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_); } @@ -659,7 +589,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -668,16 +599,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, delimiter_); } if (includeTrailingDelimiter_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, includeTrailingDelimiter_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, includeTrailingDelimiter_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, prefix_); } if (versions_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, versions_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, versions_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getReadMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getReadMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lexicographicStart_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, lexicographicStart_); @@ -686,7 +620,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, lexicographicEnd_); } if (softDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, softDeleted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, softDeleted_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchGlob_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, matchGlob_); @@ -699,28 +634,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.storage.v2.ListObjectsRequest)) { return super.equals(obj); } com.google.storage.v2.ListObjectsRequest other = (com.google.storage.v2.ListObjectsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getDelimiter().equals(other.getDelimiter())) return false; - if (getIncludeTrailingDelimiter() != other.getIncludeTrailingDelimiter()) return false; - if (!getPrefix().equals(other.getPrefix())) return false; - if (getVersions() != other.getVersions()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getDelimiter() + .equals(other.getDelimiter())) return false; + if (getIncludeTrailingDelimiter() + != other.getIncludeTrailingDelimiter()) return false; + if (!getPrefix() + .equals(other.getPrefix())) return false; + if (getVersions() + != other.getVersions()) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) return false; - } - if (!getLexicographicStart().equals(other.getLexicographicStart())) return false; - if (!getLexicographicEnd().equals(other.getLexicographicEnd())) return false; - if (getSoftDeleted() != other.getSoftDeleted()) return false; - if (!getMatchGlob().equals(other.getMatchGlob())) return false; + if (!getReadMask() + .equals(other.getReadMask())) return false; + } + if (!getLexicographicStart() + .equals(other.getLexicographicStart())) return false; + if (!getLexicographicEnd() + .equals(other.getLexicographicEnd())) return false; + if (getSoftDeleted() + != other.getSoftDeleted()) return false; + if (!getMatchGlob() + .equals(other.getMatchGlob())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -741,11 +688,13 @@ public int hashCode() { hash = (37 * hash) + DELIMITER_FIELD_NUMBER; hash = (53 * hash) + getDelimiter().hashCode(); hash = (37 * hash) + INCLUDE_TRAILING_DELIMITER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeTrailingDelimiter()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeTrailingDelimiter()); hash = (37 * hash) + PREFIX_FIELD_NUMBER; hash = (53 * hash) + getPrefix().hashCode(); hash = (37 * hash) + VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVersions()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVersions()); if (hasReadMask()) { hash = (37 * hash) + READ_MASK_FIELD_NUMBER; hash = (53 * hash) + getReadMask().hashCode(); @@ -755,7 +704,8 @@ public int hashCode() { hash = (37 * hash) + LEXICOGRAPHIC_END_FIELD_NUMBER; hash = (53 * hash) + getLexicographicEnd().hashCode(); hash = (37 * hash) + SOFT_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSoftDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSoftDeleted()); hash = (37 * hash) + MATCH_GLOB_FIELD_NUMBER; hash = (53 * hash) + getMatchGlob().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -763,127 +713,120 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ListObjectsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ListObjectsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsRequest 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.storage.v2.ListObjectsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsRequest 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.storage.v2.ListObjectsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsRequest 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.storage.v2.ListObjectsRequest 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.storage.v2.ListObjectsRequest 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.storage.v2.ListObjectsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListObjectsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListObjectsRequest 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.storage.v2.ListObjectsRequest 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.storage.v2.ListObjectsRequest 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.storage.v2.ListObjectsRequest 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 ListObjects.
    * 
* * Protobuf type {@code google.storage.v2.ListObjectsRequest} */ - 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.storage.v2.ListObjectsRequest) com.google.storage.v2.ListObjectsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListObjectsRequest.class, - com.google.storage.v2.ListObjectsRequest.Builder.class); + com.google.storage.v2.ListObjectsRequest.class, com.google.storage.v2.ListObjectsRequest.Builder.class); } // Construct using com.google.storage.v2.ListObjectsRequest.newBuilder() @@ -891,17 +834,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getReadMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -926,9 +869,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsRequest_descriptor; } @java.lang.Override @@ -947,11 +890,8 @@ public com.google.storage.v2.ListObjectsRequest build() { @java.lang.Override public com.google.storage.v2.ListObjectsRequest buildPartial() { - com.google.storage.v2.ListObjectsRequest result = - new com.google.storage.v2.ListObjectsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ListObjectsRequest result = new com.google.storage.v2.ListObjectsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -981,7 +921,9 @@ private void buildPartial0(com.google.storage.v2.ListObjectsRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null + ? readMask_ + : readMaskBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000100) != 0)) { @@ -1003,39 +945,38 @@ private void buildPartial0(com.google.storage.v2.ListObjectsRequest 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.storage.v2.ListObjectsRequest) { - return mergeFrom((com.google.storage.v2.ListObjectsRequest) other); + return mergeFrom((com.google.storage.v2.ListObjectsRequest)other); } else { super.mergeFrom(other); return this; @@ -1120,85 +1061,74 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - delimiter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - includeTrailingDelimiter_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - prefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: - { - versions_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: - { - lexicographicStart_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - case 90: - { - lexicographicEnd_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 90 - case 96: - { - softDeleted_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 96 - case 114: - { - matchGlob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 114 - 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 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + delimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + includeTrailingDelimiter_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + versions_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: { + input.readMessage( + getReadMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: { + lexicographicStart_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: { + lexicographicEnd_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 96: { + softDeleted_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 114: { + matchGlob_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 114 + 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) { @@ -1208,27 +1138,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the bucket in which to look for objects.
      * 
* - * - * 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; @@ -1237,23 +1162,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the bucket in which to look for objects.
      * 
* - * - * 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 { @@ -1261,39 +1183,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the bucket in which to look for objects.
      * 
* - * - * 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. Name of the bucket in which to look for objects.
      * 
* - * - * 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() { @@ -1303,23 +1214,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of the bucket in which to look for objects.
      * 
* - * - * 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; @@ -1327,10 +1232,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of `items` plus `prefixes` to return
      * in a single page of responses. As duplicate `prefixes` are
@@ -1339,7 +1242,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -1347,8 +1249,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of `items` plus `prefixes` to return
      * in a single page of responses. As duplicate `prefixes` are
@@ -1357,7 +1257,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1369,8 +1268,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of `items` plus `prefixes` to return
      * in a single page of responses. As duplicate `prefixes` are
@@ -1379,7 +1276,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1391,21 +1287,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A previously-returned page token representing part of the larger set of
      * results to view.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; @@ -1414,22 +1308,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A previously-returned page token representing part of the larger set of
      * results to view.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; 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); pageToken_ = b; return b; } else { @@ -1437,37 +1330,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A previously-returned page token representing part of the larger set of
      * results to view.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A previously-returned page token representing part of the larger set of
      * results to view.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1477,22 +1363,18 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A previously-returned page token representing part of the larger set of
      * results to view.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1502,8 +1384,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object delimiter_ = ""; /** - * - * *
      * If set, returns results in a directory-like mode. `items` will contain
      * only objects whose names, aside from the `prefix`, do not
@@ -1514,13 +1394,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string delimiter = 4; - * * @return The delimiter. */ public java.lang.String getDelimiter() { java.lang.Object ref = delimiter_; 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(); delimiter_ = s; return s; @@ -1529,8 +1409,6 @@ public java.lang.String getDelimiter() { } } /** - * - * *
      * If set, returns results in a directory-like mode. `items` will contain
      * only objects whose names, aside from the `prefix`, do not
@@ -1541,14 +1419,15 @@ public java.lang.String getDelimiter() {
      * 
* * string delimiter = 4; - * * @return The bytes for delimiter. */ - public com.google.protobuf.ByteString getDelimiterBytes() { + public com.google.protobuf.ByteString + getDelimiterBytes() { java.lang.Object ref = delimiter_; 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); delimiter_ = b; return b; } else { @@ -1556,8 +1435,6 @@ public com.google.protobuf.ByteString getDelimiterBytes() { } } /** - * - * *
      * If set, returns results in a directory-like mode. `items` will contain
      * only objects whose names, aside from the `prefix`, do not
@@ -1568,22 +1445,18 @@ public com.google.protobuf.ByteString getDelimiterBytes() {
      * 
* * string delimiter = 4; - * * @param value The delimiter to set. * @return This builder for chaining. */ - public Builder setDelimiter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDelimiter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } delimiter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If set, returns results in a directory-like mode. `items` will contain
      * only objects whose names, aside from the `prefix`, do not
@@ -1594,7 +1467,6 @@ public Builder setDelimiter(java.lang.String value) {
      * 
* * string delimiter = 4; - * * @return This builder for chaining. */ public Builder clearDelimiter() { @@ -1604,8 +1476,6 @@ public Builder clearDelimiter() { return this; } /** - * - * *
      * If set, returns results in a directory-like mode. `items` will contain
      * only objects whose names, aside from the `prefix`, do not
@@ -1616,14 +1486,12 @@ public Builder clearDelimiter() {
      * 
* * string delimiter = 4; - * * @param value The bytes for delimiter to set. * @return This builder for chaining. */ - public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDelimiterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delimiter_ = value; bitField0_ |= 0x00000008; @@ -1631,10 +1499,8 @@ public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { return this; } - private boolean includeTrailingDelimiter_; + private boolean includeTrailingDelimiter_ ; /** - * - * *
      * If true, objects that end in exactly one instance of `delimiter`
      * will have their metadata included in `items` in addition to
@@ -1642,7 +1508,6 @@ public Builder setDelimiterBytes(com.google.protobuf.ByteString value) {
      * 
* * bool include_trailing_delimiter = 5; - * * @return The includeTrailingDelimiter. */ @java.lang.Override @@ -1650,8 +1515,6 @@ public boolean getIncludeTrailingDelimiter() { return includeTrailingDelimiter_; } /** - * - * *
      * If true, objects that end in exactly one instance of `delimiter`
      * will have their metadata included in `items` in addition to
@@ -1659,7 +1522,6 @@ public boolean getIncludeTrailingDelimiter() {
      * 
* * bool include_trailing_delimiter = 5; - * * @param value The includeTrailingDelimiter to set. * @return This builder for chaining. */ @@ -1671,8 +1533,6 @@ public Builder setIncludeTrailingDelimiter(boolean value) { return this; } /** - * - * *
      * If true, objects that end in exactly one instance of `delimiter`
      * will have their metadata included in `items` in addition to
@@ -1680,7 +1540,6 @@ public Builder setIncludeTrailingDelimiter(boolean value) {
      * 
* * bool include_trailing_delimiter = 5; - * * @return This builder for chaining. */ public Builder clearIncludeTrailingDelimiter() { @@ -1692,20 +1551,18 @@ public Builder clearIncludeTrailingDelimiter() { private java.lang.Object prefix_ = ""; /** - * - * *
      * Filter results to objects whose names begin with this prefix.
      * 
* * string prefix = 6; - * * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; 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(); prefix_ = s; return s; @@ -1714,21 +1571,20 @@ public java.lang.String getPrefix() { } } /** - * - * *
      * Filter results to objects whose names begin with this prefix.
      * 
* * string prefix = 6; - * * @return The bytes for prefix. */ - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; 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); prefix_ = b; return b; } else { @@ -1736,35 +1592,28 @@ public com.google.protobuf.ByteString getPrefixBytes() { } } /** - * - * *
      * Filter results to objects whose names begin with this prefix.
      * 
* * string prefix = 6; - * * @param value The prefix to set. * @return This builder for chaining. */ - public Builder setPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } prefix_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Filter results to objects whose names begin with this prefix.
      * 
* * string prefix = 6; - * * @return This builder for chaining. */ public Builder clearPrefix() { @@ -1774,21 +1623,17 @@ public Builder clearPrefix() { return this; } /** - * - * *
      * Filter results to objects whose names begin with this prefix.
      * 
* * string prefix = 6; - * * @param value The bytes for prefix to set. * @return This builder for chaining. */ - public Builder setPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; bitField0_ |= 0x00000020; @@ -1796,10 +1641,8 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) { return this; } - private boolean versions_; + private boolean versions_ ; /** - * - * *
      * If `true`, lists all versions of an object as distinct results.
      * For more information, see
@@ -1808,7 +1651,6 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) {
      * 
* * bool versions = 7; - * * @return The versions. */ @java.lang.Override @@ -1816,8 +1658,6 @@ public boolean getVersions() { return versions_; } /** - * - * *
      * If `true`, lists all versions of an object as distinct results.
      * For more information, see
@@ -1826,7 +1666,6 @@ public boolean getVersions() {
      * 
* * bool versions = 7; - * * @param value The versions to set. * @return This builder for chaining. */ @@ -1838,8 +1677,6 @@ public Builder setVersions(boolean value) { return this; } /** - * - * *
      * If `true`, lists all versions of an object as distinct results.
      * For more information, see
@@ -1848,7 +1685,6 @@ public Builder setVersions(boolean value) {
      * 
* * bool versions = 7; - * * @return This builder for chaining. */ public Builder clearVersions() { @@ -1860,13 +1696,8 @@ public Builder clearVersions() { private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; /** - * - * *
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.acl and
@@ -1875,15 +1706,12 @@ public Builder clearVersions() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 8; - * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.acl and
@@ -1892,7 +1720,6 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 8; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1903,8 +1730,6 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.acl and
@@ -1928,8 +1753,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.acl and
@@ -1939,7 +1762,8 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
      *
      * optional .google.protobuf.FieldMask read_mask = 8;
      */
-    public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setReadMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (readMaskBuilder_ == null) {
         readMask_ = builderForValue.build();
       } else {
@@ -1950,8 +1774,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.acl and
@@ -1963,9 +1785,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
      */
     public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       if (readMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0)
-            && readMask_ != null
-            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0) &&
+          readMask_ != null &&
+          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getReadMaskBuilder().mergeFrom(value);
         } else {
           readMask_ = value;
@@ -1973,13 +1795,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       } else {
         readMaskBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000080;
-      onChanged();
+      if (readMask_ != null) {
+        bitField0_ |= 0x00000080;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.acl and
@@ -2000,8 +1822,6 @@ public Builder clearReadMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.acl and
@@ -2017,8 +1837,6 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
       return getReadMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.acl and
@@ -2032,12 +1850,11 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
       if (readMaskBuilder_ != null) {
         return readMaskBuilder_.getMessageOrBuilder();
       } else {
-        return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
+        return readMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.acl and
@@ -2048,17 +1865,14 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
      * optional .google.protobuf.FieldMask read_mask = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getReadMaskFieldBuilder() {
       if (readMaskBuilder_ == null) {
-        readMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getReadMask(), getParentForChildren(), isClean());
+        readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getReadMask(),
+                getParentForChildren(),
+                isClean());
         readMask_ = null;
       }
       return readMaskBuilder_;
@@ -2066,8 +1880,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
 
     private java.lang.Object lexicographicStart_ = "";
     /**
-     *
-     *
      * 
      * Optional. Filter results to objects whose names are lexicographically equal
      * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -2076,13 +1888,13 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
      * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ public java.lang.String getLexicographicStart() { java.lang.Object ref = lexicographicStart_; 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(); lexicographicStart_ = s; return s; @@ -2091,8 +1903,6 @@ public java.lang.String getLexicographicStart() { } } /** - * - * *
      * Optional. Filter results to objects whose names are lexicographically equal
      * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -2101,14 +1911,15 @@ public java.lang.String getLexicographicStart() {
      * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicStart. */ - public com.google.protobuf.ByteString getLexicographicStartBytes() { + public com.google.protobuf.ByteString + getLexicographicStartBytes() { java.lang.Object ref = lexicographicStart_; 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); lexicographicStart_ = b; return b; } else { @@ -2116,8 +1927,6 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() { } } /** - * - * *
      * Optional. Filter results to objects whose names are lexicographically equal
      * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -2126,22 +1935,18 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() {
      * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The lexicographicStart to set. * @return This builder for chaining. */ - public Builder setLexicographicStart(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicStart( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } lexicographicStart_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Optional. Filter results to objects whose names are lexicographically equal
      * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -2150,7 +1955,6 @@ public Builder setLexicographicStart(java.lang.String value) {
      * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLexicographicStart() { @@ -2160,8 +1964,6 @@ public Builder clearLexicographicStart() { return this; } /** - * - * *
      * Optional. Filter results to objects whose names are lexicographically equal
      * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -2170,14 +1972,12 @@ public Builder clearLexicographicStart() {
      * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for lexicographicStart to set. * @return This builder for chaining. */ - public Builder setLexicographicStartBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicStartBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lexicographicStart_ = value; bitField0_ |= 0x00000100; @@ -2187,8 +1987,6 @@ public Builder setLexicographicStartBytes(com.google.protobuf.ByteString value) private java.lang.Object lexicographicEnd_ = ""; /** - * - * *
      * Optional. Filter results to objects whose names are lexicographically
      * before lexicographic_end. If lexicographic_start is also set, the objects
@@ -2197,13 +1995,13 @@ public Builder setLexicographicStartBytes(com.google.protobuf.ByteString value)
      * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ public java.lang.String getLexicographicEnd() { java.lang.Object ref = lexicographicEnd_; 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(); lexicographicEnd_ = s; return s; @@ -2212,8 +2010,6 @@ public java.lang.String getLexicographicEnd() { } } /** - * - * *
      * Optional. Filter results to objects whose names are lexicographically
      * before lexicographic_end. If lexicographic_start is also set, the objects
@@ -2222,14 +2018,15 @@ public java.lang.String getLexicographicEnd() {
      * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicEnd. */ - public com.google.protobuf.ByteString getLexicographicEndBytes() { + public com.google.protobuf.ByteString + getLexicographicEndBytes() { java.lang.Object ref = lexicographicEnd_; 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); lexicographicEnd_ = b; return b; } else { @@ -2237,8 +2034,6 @@ public com.google.protobuf.ByteString getLexicographicEndBytes() { } } /** - * - * *
      * Optional. Filter results to objects whose names are lexicographically
      * before lexicographic_end. If lexicographic_start is also set, the objects
@@ -2247,22 +2042,18 @@ public com.google.protobuf.ByteString getLexicographicEndBytes() {
      * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The lexicographicEnd to set. * @return This builder for chaining. */ - public Builder setLexicographicEnd(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicEnd( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } lexicographicEnd_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Optional. Filter results to objects whose names are lexicographically
      * before lexicographic_end. If lexicographic_start is also set, the objects
@@ -2271,7 +2062,6 @@ public Builder setLexicographicEnd(java.lang.String value) {
      * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLexicographicEnd() { @@ -2281,8 +2071,6 @@ public Builder clearLexicographicEnd() { return this; } /** - * - * *
      * Optional. Filter results to objects whose names are lexicographically
      * before lexicographic_end. If lexicographic_start is also set, the objects
@@ -2291,14 +2079,12 @@ public Builder clearLexicographicEnd() {
      * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for lexicographicEnd to set. * @return This builder for chaining. */ - public Builder setLexicographicEndBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicEndBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lexicographicEnd_ = value; bitField0_ |= 0x00000200; @@ -2306,17 +2092,14 @@ public Builder setLexicographicEndBytes(com.google.protobuf.ByteString value) { return this; } - private boolean softDeleted_; + private boolean softDeleted_ ; /** - * - * *
      * Optional. If true, only list all soft-deleted versions of the object.
      * Soft delete policy is required to set this option.
      * 
* * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The softDeleted. */ @java.lang.Override @@ -2324,15 +2107,12 @@ public boolean getSoftDeleted() { return softDeleted_; } /** - * - * *
      * Optional. If true, only list all soft-deleted versions of the object.
      * Soft delete policy is required to set this option.
      * 
* * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The softDeleted to set. * @return This builder for chaining. */ @@ -2344,15 +2124,12 @@ public Builder setSoftDeleted(boolean value) { return this; } /** - * - * *
      * Optional. If true, only list all soft-deleted versions of the object.
      * Soft delete policy is required to set this option.
      * 
* * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSoftDeleted() { @@ -2364,8 +2141,6 @@ public Builder clearSoftDeleted() { private java.lang.Object matchGlob_ = ""; /** - * - * *
      * Optional. Filter results to objects and prefixes that match this glob
      * pattern. See [List Objects Using
@@ -2374,13 +2149,13 @@ public Builder clearSoftDeleted() {
      * 
* * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The matchGlob. */ public java.lang.String getMatchGlob() { java.lang.Object ref = matchGlob_; 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(); matchGlob_ = s; return s; @@ -2389,8 +2164,6 @@ public java.lang.String getMatchGlob() { } } /** - * - * *
      * Optional. Filter results to objects and prefixes that match this glob
      * pattern. See [List Objects Using
@@ -2399,14 +2172,15 @@ public java.lang.String getMatchGlob() {
      * 
* * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for matchGlob. */ - public com.google.protobuf.ByteString getMatchGlobBytes() { + public com.google.protobuf.ByteString + getMatchGlobBytes() { java.lang.Object ref = matchGlob_; 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); matchGlob_ = b; return b; } else { @@ -2414,8 +2188,6 @@ public com.google.protobuf.ByteString getMatchGlobBytes() { } } /** - * - * *
      * Optional. Filter results to objects and prefixes that match this glob
      * pattern. See [List Objects Using
@@ -2424,22 +2196,18 @@ public com.google.protobuf.ByteString getMatchGlobBytes() {
      * 
* * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The matchGlob to set. * @return This builder for chaining. */ - public Builder setMatchGlob(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMatchGlob( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } matchGlob_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Optional. Filter results to objects and prefixes that match this glob
      * pattern. See [List Objects Using
@@ -2448,7 +2216,6 @@ public Builder setMatchGlob(java.lang.String value) {
      * 
* * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMatchGlob() { @@ -2458,8 +2225,6 @@ public Builder clearMatchGlob() { return this; } /** - * - * *
      * Optional. Filter results to objects and prefixes that match this glob
      * pattern. See [List Objects Using
@@ -2468,23 +2233,21 @@ public Builder clearMatchGlob() {
      * 
* * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for matchGlob to set. * @return This builder for chaining. */ - public Builder setMatchGlobBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMatchGlobBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); matchGlob_ = 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); } @@ -2494,12 +2257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListObjectsRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListObjectsRequest) private static final com.google.storage.v2.ListObjectsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListObjectsRequest(); } @@ -2508,27 +2271,27 @@ public static com.google.storage.v2.ListObjectsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListObjectsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListObjectsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2543,4 +2306,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListObjectsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java similarity index 82% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java index 928e8fb2af..df79199926 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java @@ -1,60 +1,34 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ListObjectsRequestOrBuilder - extends +public interface ListObjectsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ListObjectsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the bucket in which to look for objects.
    * 
* - * - * 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. Name of the bucket in which to look for objects.
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of `items` plus `prefixes` to return
    * in a single page of responses. As duplicate `prefixes` are
@@ -63,41 +37,33 @@ public interface ListObjectsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A previously-returned page token representing part of the larger set of
    * results to view.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A previously-returned page token representing part of the larger set of
    * results to view.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * If set, returns results in a directory-like mode. `items` will contain
    * only objects whose names, aside from the `prefix`, do not
@@ -108,13 +74,10 @@ public interface ListObjectsRequestOrBuilder
    * 
* * string delimiter = 4; - * * @return The delimiter. */ java.lang.String getDelimiter(); /** - * - * *
    * If set, returns results in a directory-like mode. `items` will contain
    * only objects whose names, aside from the `prefix`, do not
@@ -125,14 +88,12 @@ public interface ListObjectsRequestOrBuilder
    * 
* * string delimiter = 4; - * * @return The bytes for delimiter. */ - com.google.protobuf.ByteString getDelimiterBytes(); + com.google.protobuf.ByteString + getDelimiterBytes(); /** - * - * *
    * If true, objects that end in exactly one instance of `delimiter`
    * will have their metadata included in `items` in addition to
@@ -140,39 +101,31 @@ public interface ListObjectsRequestOrBuilder
    * 
* * bool include_trailing_delimiter = 5; - * * @return The includeTrailingDelimiter. */ boolean getIncludeTrailingDelimiter(); /** - * - * *
    * Filter results to objects whose names begin with this prefix.
    * 
* * string prefix = 6; - * * @return The prefix. */ java.lang.String getPrefix(); /** - * - * *
    * Filter results to objects whose names begin with this prefix.
    * 
* * string prefix = 6; - * * @return The bytes for prefix. */ - com.google.protobuf.ByteString getPrefixBytes(); + com.google.protobuf.ByteString + getPrefixBytes(); /** - * - * *
    * If `true`, lists all versions of an object as distinct results.
    * For more information, see
@@ -181,14 +134,11 @@ public interface ListObjectsRequestOrBuilder
    * 
* * bool versions = 7; - * * @return The versions. */ boolean getVersions(); /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.acl and
@@ -197,13 +147,10 @@ public interface ListObjectsRequestOrBuilder
    * 
* * optional .google.protobuf.FieldMask read_mask = 8; - * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.acl and
@@ -212,13 +159,10 @@ public interface ListObjectsRequestOrBuilder
    * 
* * optional .google.protobuf.FieldMask read_mask = 8; - * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** - * - * *
    * Mask specifying which fields to read from each result.
    * If no mask is specified, will default to all fields except items.acl and
@@ -231,8 +175,6 @@ public interface ListObjectsRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. Filter results to objects whose names are lexicographically equal
    * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -241,13 +183,10 @@ public interface ListObjectsRequestOrBuilder
    * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ java.lang.String getLexicographicStart(); /** - * - * *
    * Optional. Filter results to objects whose names are lexicographically equal
    * to or after lexicographic_start. If lexicographic_end is also set, the
@@ -256,14 +195,12 @@ public interface ListObjectsRequestOrBuilder
    * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicStart. */ - com.google.protobuf.ByteString getLexicographicStartBytes(); + com.google.protobuf.ByteString + getLexicographicStartBytes(); /** - * - * *
    * Optional. Filter results to objects whose names are lexicographically
    * before lexicographic_end. If lexicographic_start is also set, the objects
@@ -272,13 +209,10 @@ public interface ListObjectsRequestOrBuilder
    * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ java.lang.String getLexicographicEnd(); /** - * - * *
    * Optional. Filter results to objects whose names are lexicographically
    * before lexicographic_end. If lexicographic_start is also set, the objects
@@ -287,28 +221,23 @@ public interface ListObjectsRequestOrBuilder
    * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicEnd. */ - com.google.protobuf.ByteString getLexicographicEndBytes(); + com.google.protobuf.ByteString + getLexicographicEndBytes(); /** - * - * *
    * Optional. If true, only list all soft-deleted versions of the object.
    * Soft delete policy is required to set this option.
    * 
* * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The softDeleted. */ boolean getSoftDeleted(); /** - * - * *
    * Optional. Filter results to objects and prefixes that match this glob
    * pattern. See [List Objects Using
@@ -317,13 +246,10 @@ public interface ListObjectsRequestOrBuilder
    * 
* * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The matchGlob. */ java.lang.String getMatchGlob(); /** - * - * *
    * Optional. Filter results to objects and prefixes that match this glob
    * pattern. See [List Objects Using
@@ -332,8 +258,8 @@ public interface ListObjectsRequestOrBuilder
    * 
* * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for matchGlob. */ - com.google.protobuf.ByteString getMatchGlobBytes(); + com.google.protobuf.ByteString + getMatchGlobBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java similarity index 72% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java index 3a75847a8f..7a84bc9422 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java @@ -1,76 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * The result of a call to Objects.ListObjects
  * 
* * Protobuf type {@code google.storage.v2.ListObjectsResponse} */ -public final class ListObjectsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListObjectsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ListObjectsResponse) ListObjectsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListObjectsResponse.newBuilder() to construct. private ListObjectsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListObjectsResponse() { objects_ = java.util.Collections.emptyList(); - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListObjectsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListObjectsResponse.class, - com.google.storage.v2.ListObjectsResponse.Builder.class); + com.google.storage.v2.ListObjectsResponse.class, com.google.storage.v2.ListObjectsResponse.Builder.class); } public static final int OBJECTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List objects_; /** - * - * *
    * The list of items.
    * 
@@ -82,8 +62,6 @@ public java.util.List getObjectsList() { return objects_; } /** - * - * *
    * The list of items.
    * 
@@ -91,12 +69,11 @@ public java.util.List getObjectsList() { * repeated .google.storage.v2.Object objects = 1; */ @java.lang.Override - public java.util.List getObjectsOrBuilderList() { + public java.util.List + getObjectsOrBuilderList() { return objects_; } /** - * - * *
    * The list of items.
    * 
@@ -108,8 +85,6 @@ public int getObjectsCount() { return objects_.size(); } /** - * - * *
    * The list of items.
    * 
@@ -121,8 +96,6 @@ public com.google.storage.v2.Object getObjects(int index) { return objects_.get(index); } /** - * - * *
    * The list of items.
    * 
@@ -130,55 +103,47 @@ public com.google.storage.v2.Object getObjects(int index) { * repeated .google.storage.v2.Object objects = 1; */ @java.lang.Override - public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index) { + public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder( + int index) { return objects_.get(index); } public static final int PREFIXES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The list of prefixes of objects matching-but-not-listed up to and including
    * the requested delimiter.
    * 
* * repeated string prefixes = 2; - * * @return A list containing the prefixes. */ - public com.google.protobuf.ProtocolStringList getPrefixesList() { + public com.google.protobuf.ProtocolStringList + getPrefixesList() { return prefixes_; } /** - * - * *
    * The list of prefixes of objects matching-but-not-listed up to and including
    * the requested delimiter.
    * 
* * repeated string prefixes = 2; - * * @return The count of prefixes. */ public int getPrefixesCount() { return prefixes_.size(); } /** - * - * *
    * The list of prefixes of objects matching-but-not-listed up to and including
    * the requested delimiter.
    * 
* * repeated string prefixes = 2; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ @@ -186,36 +151,30 @@ public java.lang.String getPrefixes(int index) { return prefixes_.get(index); } /** - * - * *
    * The list of prefixes of objects matching-but-not-listed up to and including
    * the requested delimiter.
    * 
* * repeated string prefixes = 2; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - public com.google.protobuf.ByteString getPrefixesBytes(int index) { + public com.google.protobuf.ByteString + getPrefixesBytes(int index) { return prefixes_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -224,30 +183,30 @@ public java.lang.String getNextPageToken() { 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(); nextPageToken_ = s; return s; } } /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; 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); nextPageToken_ = b; return b; } else { @@ -256,7 +215,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +226,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 < objects_.size(); i++) { output.writeMessage(1, objects_.get(i)); } @@ -288,7 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < objects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, objects_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, objects_.get(i)); } { int dataSize = 0; @@ -309,17 +269,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.storage.v2.ListObjectsResponse)) { return super.equals(obj); } - com.google.storage.v2.ListObjectsResponse other = - (com.google.storage.v2.ListObjectsResponse) obj; + com.google.storage.v2.ListObjectsResponse other = (com.google.storage.v2.ListObjectsResponse) obj; - if (!getObjectsList().equals(other.getObjectsList())) return false; - if (!getPrefixesList().equals(other.getPrefixesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getObjectsList() + .equals(other.getObjectsList())) return false; + if (!getPrefixesList() + .equals(other.getPrefixesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,136 +308,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ListObjectsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ListObjectsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsResponse 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.storage.v2.ListObjectsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsResponse 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.storage.v2.ListObjectsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsResponse 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.storage.v2.ListObjectsResponse 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.storage.v2.ListObjectsResponse 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.storage.v2.ListObjectsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListObjectsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListObjectsResponse 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.storage.v2.ListObjectsResponse 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.storage.v2.ListObjectsResponse 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.storage.v2.ListObjectsResponse 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 result of a call to Objects.ListObjects
    * 
* * Protobuf type {@code google.storage.v2.ListObjectsResponse} */ - 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.storage.v2.ListObjectsResponse) com.google.storage.v2.ListObjectsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListObjectsResponse.class, - com.google.storage.v2.ListObjectsResponse.Builder.class); + com.google.storage.v2.ListObjectsResponse.class, com.google.storage.v2.ListObjectsResponse.Builder.class); } // Construct using com.google.storage.v2.ListObjectsResponse.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(); @@ -487,15 +445,16 @@ public Builder clear() { objectsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_descriptor; } @java.lang.Override @@ -514,12 +473,9 @@ public com.google.storage.v2.ListObjectsResponse build() { @java.lang.Override public com.google.storage.v2.ListObjectsResponse buildPartial() { - com.google.storage.v2.ListObjectsResponse result = - new com.google.storage.v2.ListObjectsResponse(this); + com.google.storage.v2.ListObjectsResponse result = new com.google.storage.v2.ListObjectsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -551,39 +507,38 @@ private void buildPartial0(com.google.storage.v2.ListObjectsResponse 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.storage.v2.ListObjectsResponse) { - return mergeFrom((com.google.storage.v2.ListObjectsResponse) other); + return mergeFrom((com.google.storage.v2.ListObjectsResponse)other); } else { super.mergeFrom(other); return this; @@ -610,10 +565,9 @@ public Builder mergeFrom(com.google.storage.v2.ListObjectsResponse other) { objectsBuilder_ = null; objects_ = other.objects_; bitField0_ = (bitField0_ & ~0x00000001); - objectsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getObjectsFieldBuilder() - : null; + objectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getObjectsFieldBuilder() : null; } else { objectsBuilder_.addAllMessages(other.objects_); } @@ -660,38 +614,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.storage.v2.Object m = - input.readMessage(com.google.storage.v2.Object.parser(), extensionRegistry); - if (objectsBuilder_ == null) { - ensureObjectsIsMutable(); - objects_.add(m); - } else { - objectsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrefixesIsMutable(); - prefixes_.add(s); - break; - } // case 18 - case 26: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.storage.v2.Object m = + input.readMessage( + com.google.storage.v2.Object.parser(), + extensionRegistry); + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.add(m); + } else { + objectsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrefixesIsMutable(); + prefixes_.add(s); + break; + } // case 18 + case 26: { + nextPageToken_ = 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) { @@ -701,28 +653,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List objects_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureObjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { objects_ = new java.util.ArrayList(objects_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - objectsBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> objectsBuilder_; /** - * - * *
      * The list of items.
      * 
@@ -737,8 +682,6 @@ public java.util.List getObjectsList() { } } /** - * - * *
      * The list of items.
      * 
@@ -753,8 +696,6 @@ public int getObjectsCount() { } } /** - * - * *
      * The list of items.
      * 
@@ -769,15 +710,14 @@ public com.google.storage.v2.Object getObjects(int index) { } } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Object objects = 1; */ - public Builder setObjects(int index, com.google.storage.v2.Object value) { + public Builder setObjects( + int index, com.google.storage.v2.Object value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -791,15 +731,14 @@ public Builder setObjects(int index, com.google.storage.v2.Object value) { return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Object objects = 1; */ - public Builder setObjects(int index, com.google.storage.v2.Object.Builder builderForValue) { + public Builder setObjects( + int index, com.google.storage.v2.Object.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.set(index, builderForValue.build()); @@ -810,8 +749,6 @@ public Builder setObjects(int index, com.google.storage.v2.Object.Builder builde return this; } /** - * - * *
      * The list of items.
      * 
@@ -832,15 +769,14 @@ public Builder addObjects(com.google.storage.v2.Object value) { return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Object objects = 1; */ - public Builder addObjects(int index, com.google.storage.v2.Object value) { + public Builder addObjects( + int index, com.google.storage.v2.Object value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -854,15 +790,14 @@ public Builder addObjects(int index, com.google.storage.v2.Object value) { return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Object objects = 1; */ - public Builder addObjects(com.google.storage.v2.Object.Builder builderForValue) { + public Builder addObjects( + com.google.storage.v2.Object.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(builderForValue.build()); @@ -873,15 +808,14 @@ public Builder addObjects(com.google.storage.v2.Object.Builder builderForValue) return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Object objects = 1; */ - public Builder addObjects(int index, com.google.storage.v2.Object.Builder builderForValue) { + public Builder addObjects( + int index, com.google.storage.v2.Object.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(index, builderForValue.build()); @@ -892,8 +826,6 @@ public Builder addObjects(int index, com.google.storage.v2.Object.Builder builde return this; } /** - * - * *
      * The list of items.
      * 
@@ -904,7 +836,8 @@ public Builder addAllObjects( java.lang.Iterable values) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objects_); onChanged(); } else { objectsBuilder_.addAllMessages(values); @@ -912,8 +845,6 @@ public Builder addAllObjects( return this; } /** - * - * *
      * The list of items.
      * 
@@ -931,8 +862,6 @@ public Builder clearObjects() { return this; } /** - * - * *
      * The list of items.
      * 
@@ -950,44 +879,39 @@ public Builder removeObjects(int index) { return this; } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Object objects = 1; */ - public com.google.storage.v2.Object.Builder getObjectsBuilder(int index) { + public com.google.storage.v2.Object.Builder getObjectsBuilder( + int index) { return getObjectsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Object objects = 1; */ - public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index) { + public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder( + int index) { if (objectsBuilder_ == null) { - return objects_.get(index); - } else { + return objects_.get(index); } else { return objectsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Object objects = 1; */ - public java.util.List - getObjectsOrBuilderList() { + public java.util.List + getObjectsOrBuilderList() { if (objectsBuilder_ != null) { return objectsBuilder_.getMessageOrBuilderList(); } else { @@ -995,8 +919,6 @@ public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index) { } } /** - * - * *
      * The list of items.
      * 
@@ -1004,46 +926,42 @@ public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index) { * repeated .google.storage.v2.Object objects = 1; */ public com.google.storage.v2.Object.Builder addObjectsBuilder() { - return getObjectsFieldBuilder().addBuilder(com.google.storage.v2.Object.getDefaultInstance()); + return getObjectsFieldBuilder().addBuilder( + com.google.storage.v2.Object.getDefaultInstance()); } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Object objects = 1; */ - public com.google.storage.v2.Object.Builder addObjectsBuilder(int index) { - return getObjectsFieldBuilder() - .addBuilder(index, com.google.storage.v2.Object.getDefaultInstance()); + public com.google.storage.v2.Object.Builder addObjectsBuilder( + int index) { + return getObjectsFieldBuilder().addBuilder( + index, com.google.storage.v2.Object.getDefaultInstance()); } /** - * - * *
      * The list of items.
      * 
* * repeated .google.storage.v2.Object objects = 1; */ - public java.util.List getObjectsBuilderList() { + public java.util.List + getObjectsBuilderList() { return getObjectsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> getObjectsFieldBuilder() { if (objectsBuilder_ == null) { - objectsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder>( - objects_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + objectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>( + objects_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); objects_ = null; } return objectsBuilder_; @@ -1051,7 +969,6 @@ public java.util.List getObjectsBuilderLis private com.google.protobuf.LazyStringArrayList prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePrefixesIsMutable() { if (!prefixes_.isModifiable()) { prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); @@ -1059,46 +976,38 @@ private void ensurePrefixesIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * The list of prefixes of objects matching-but-not-listed up to and including
      * the requested delimiter.
      * 
* * repeated string prefixes = 2; - * * @return A list containing the prefixes. */ - public com.google.protobuf.ProtocolStringList getPrefixesList() { + public com.google.protobuf.ProtocolStringList + getPrefixesList() { prefixes_.makeImmutable(); return prefixes_; } /** - * - * *
      * The list of prefixes of objects matching-but-not-listed up to and including
      * the requested delimiter.
      * 
* * repeated string prefixes = 2; - * * @return The count of prefixes. */ public int getPrefixesCount() { return prefixes_.size(); } /** - * - * *
      * The list of prefixes of objects matching-but-not-listed up to and including
      * the requested delimiter.
      * 
* * repeated string prefixes = 2; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ @@ -1106,39 +1015,33 @@ public java.lang.String getPrefixes(int index) { return prefixes_.get(index); } /** - * - * *
      * The list of prefixes of objects matching-but-not-listed up to and including
      * the requested delimiter.
      * 
* * repeated string prefixes = 2; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - public com.google.protobuf.ByteString getPrefixesBytes(int index) { + public com.google.protobuf.ByteString + getPrefixesBytes(int index) { return prefixes_.getByteString(index); } /** - * - * *
      * The list of prefixes of objects matching-but-not-listed up to and including
      * the requested delimiter.
      * 
* * repeated string prefixes = 2; - * * @param index The index to set the value at. * @param value The prefixes to set. * @return This builder for chaining. */ - public Builder setPrefixes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePrefixesIsMutable(); prefixes_.set(index, value); bitField0_ |= 0x00000002; @@ -1146,22 +1049,18 @@ public Builder setPrefixes(int index, java.lang.String value) { return this; } /** - * - * *
      * The list of prefixes of objects matching-but-not-listed up to and including
      * the requested delimiter.
      * 
* * repeated string prefixes = 2; - * * @param value The prefixes to add. * @return This builder for chaining. */ - public Builder addPrefixes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPrefixes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePrefixesIsMutable(); prefixes_.add(value); bitField0_ |= 0x00000002; @@ -1169,61 +1068,53 @@ public Builder addPrefixes(java.lang.String value) { return this; } /** - * - * *
      * The list of prefixes of objects matching-but-not-listed up to and including
      * the requested delimiter.
      * 
* * repeated string prefixes = 2; - * * @param values The prefixes to add. * @return This builder for chaining. */ - public Builder addAllPrefixes(java.lang.Iterable values) { + public Builder addAllPrefixes( + java.lang.Iterable values) { ensurePrefixesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prefixes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prefixes_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The list of prefixes of objects matching-but-not-listed up to and including
      * the requested delimiter.
      * 
* * repeated string prefixes = 2; - * * @return This builder for chaining. */ public Builder clearPrefixes() { - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * The list of prefixes of objects matching-but-not-listed up to and including
      * the requested delimiter.
      * 
* * repeated string prefixes = 2; - * * @param value The bytes of the prefixes to add. * @return This builder for chaining. */ - public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPrefixesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePrefixesIsMutable(); prefixes_.add(value); @@ -1234,21 +1125,19 @@ public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; @@ -1257,22 +1146,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; 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); nextPageToken_ = b; return b; } else { @@ -1280,37 +1168,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1320,31 +1201,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The continuation token, used to page through large result sets. Provide
      * this value in a subsequent request to return the next page of results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = 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); } @@ -1354,12 +1231,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListObjectsResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListObjectsResponse) private static final com.google.storage.v2.ListObjectsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListObjectsResponse(); } @@ -1368,27 +1245,27 @@ public static com.google.storage.v2.ListObjectsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListObjectsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ListObjectsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 +1280,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListObjectsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java index 53bdacfa40..541964362d 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java @@ -1,41 +1,23 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ListObjectsResponseOrBuilder - extends +public interface ListObjectsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ListObjectsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.Object objects = 1; */ - java.util.List getObjectsList(); + java.util.List + getObjectsList(); /** - * - * *
    * The list of items.
    * 
@@ -44,8 +26,6 @@ public interface ListObjectsResponseOrBuilder */ com.google.storage.v2.Object getObjects(int index); /** - * - * *
    * The list of items.
    * 
@@ -54,105 +34,88 @@ public interface ListObjectsResponseOrBuilder */ int getObjectsCount(); /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.Object objects = 1; */ - java.util.List getObjectsOrBuilderList(); + java.util.List + getObjectsOrBuilderList(); /** - * - * *
    * The list of items.
    * 
* * repeated .google.storage.v2.Object objects = 1; */ - com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index); + com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder( + int index); /** - * - * *
    * The list of prefixes of objects matching-but-not-listed up to and including
    * the requested delimiter.
    * 
* * repeated string prefixes = 2; - * * @return A list containing the prefixes. */ - java.util.List getPrefixesList(); + java.util.List + getPrefixesList(); /** - * - * *
    * The list of prefixes of objects matching-but-not-listed up to and including
    * the requested delimiter.
    * 
* * repeated string prefixes = 2; - * * @return The count of prefixes. */ int getPrefixesCount(); /** - * - * *
    * The list of prefixes of objects matching-but-not-listed up to and including
    * the requested delimiter.
    * 
* * repeated string prefixes = 2; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ java.lang.String getPrefixes(int index); /** - * - * *
    * The list of prefixes of objects matching-but-not-listed up to and including
    * the requested delimiter.
    * 
* * repeated string prefixes = 2; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - com.google.protobuf.ByteString getPrefixesBytes(int index); + com.google.protobuf.ByteString + getPrefixesBytes(int index); /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The continuation token, used to page through large result sets. Provide
    * this value in a subsequent request to return the next page of results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java similarity index 63% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java index 8d04f29691..6ec31a6ce6 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for LockBucketRetentionPolicyRequest.
  * 
* * Protobuf type {@code google.storage.v2.LockBucketRetentionPolicyRequest} */ -public final class LockBucketRetentionPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LockBucketRetentionPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.LockBucketRetentionPolicyRequest) LockBucketRetentionPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LockBucketRetentionPolicyRequest.newBuilder() to construct. - private LockBucketRetentionPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LockBucketRetentionPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LockBucketRetentionPolicyRequest() { bucket_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LockBucketRetentionPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.LockBucketRetentionPolicyRequest.class, - com.google.storage.v2.LockBucketRetentionPolicyRequest.Builder.class); + com.google.storage.v2.LockBucketRetentionPolicyRequest.class, com.google.storage.v2.LockBucketRetentionPolicyRequest.Builder.class); } public static final int BUCKET_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** - * - * *
    * Required. Name of a bucket.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -86,31 +61,29 @@ public java.lang.String getBucket() { 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(); bucket_ = s; return s; } } /** - * - * *
    * Required. Name of a bucket.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -121,15 +94,12 @@ public com.google.protobuf.ByteString getBucketBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 2; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Required. Makes the operation conditional on whether bucket's current
    * metageneration matches the given value. Must be positive.
    * 
* * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -138,7 +108,6 @@ public long getIfMetagenerationMatch() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,7 +119,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(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -170,7 +140,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); } if (ifMetagenerationMatch_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, ifMetagenerationMatch_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,16 +151,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.storage.v2.LockBucketRetentionPolicyRequest)) { return super.equals(obj); } - com.google.storage.v2.LockBucketRetentionPolicyRequest other = - (com.google.storage.v2.LockBucketRetentionPolicyRequest) obj; + com.google.storage.v2.LockBucketRetentionPolicyRequest other = (com.google.storage.v2.LockBucketRetentionPolicyRequest) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (!getBucket() + .equals(other.getBucket())) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -204,143 +176,139 @@ public int hashCode() { hash = (37 * hash) + BUCKET_FIELD_NUMBER; hash = (53 * hash) + getBucket().hashCode(); hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.storage.v2.LockBucketRetentionPolicyRequest 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.storage.v2.LockBucketRetentionPolicyRequest 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.storage.v2.LockBucketRetentionPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest 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.storage.v2.LockBucketRetentionPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest 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.storage.v2.LockBucketRetentionPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest 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.storage.v2.LockBucketRetentionPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.LockBucketRetentionPolicyRequest 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.storage.v2.LockBucketRetentionPolicyRequest 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.storage.v2.LockBucketRetentionPolicyRequest 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.storage.v2.LockBucketRetentionPolicyRequest prototype) { + public static Builder newBuilder(com.google.storage.v2.LockBucketRetentionPolicyRequest 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 LockBucketRetentionPolicyRequest.
    * 
* * Protobuf type {@code google.storage.v2.LockBucketRetentionPolicyRequest} */ - 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.storage.v2.LockBucketRetentionPolicyRequest) com.google.storage.v2.LockBucketRetentionPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.LockBucketRetentionPolicyRequest.class, - com.google.storage.v2.LockBucketRetentionPolicyRequest.Builder.class); + com.google.storage.v2.LockBucketRetentionPolicyRequest.class, com.google.storage.v2.LockBucketRetentionPolicyRequest.Builder.class); } // Construct using com.google.storage.v2.LockBucketRetentionPolicyRequest.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(); @@ -351,9 +319,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; } @java.lang.Override @@ -372,11 +340,8 @@ public com.google.storage.v2.LockBucketRetentionPolicyRequest build() { @java.lang.Override public com.google.storage.v2.LockBucketRetentionPolicyRequest buildPartial() { - com.google.storage.v2.LockBucketRetentionPolicyRequest result = - new com.google.storage.v2.LockBucketRetentionPolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.LockBucketRetentionPolicyRequest result = new com.google.storage.v2.LockBucketRetentionPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -395,39 +360,38 @@ private void buildPartial0(com.google.storage.v2.LockBucketRetentionPolicyReques 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.storage.v2.LockBucketRetentionPolicyRequest) { - return mergeFrom((com.google.storage.v2.LockBucketRetentionPolicyRequest) other); + return mergeFrom((com.google.storage.v2.LockBucketRetentionPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -435,8 +399,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.LockBucketRetentionPolicyRequest other) { - if (other == com.google.storage.v2.LockBucketRetentionPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.LockBucketRetentionPolicyRequest.getDefaultInstance()) return this; if (!other.getBucket().isEmpty()) { bucket_ = other.bucket_; bitField0_ |= 0x00000001; @@ -471,25 +434,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - bucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + ifMetagenerationMatch_ = 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) { @@ -499,27 +459,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object bucket_ = ""; /** - * - * *
      * Required. Name of a bucket.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; 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(); bucket_ = s; return s; @@ -528,23 +483,20 @@ public java.lang.String getBucket() { } } /** - * - * *
      * Required. Name of a bucket.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -552,39 +504,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
      * Required. Name of a bucket.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of a bucket.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBucket() { @@ -594,23 +535,17 @@ public Builder clearBucket() { return this; } /** - * - * *
      * Required. Name of a bucket.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -618,17 +553,14 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Required. Makes the operation conditional on whether bucket's current
      * metageneration matches the given value. Must be positive.
      * 
* * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -636,15 +568,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Required. Makes the operation conditional on whether bucket's current
      * metageneration matches the given value. Must be positive.
      * 
* * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -656,15 +585,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Required. Makes the operation conditional on whether bucket's current
      * metageneration matches the given value. Must be positive.
      * 
* * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -673,9 +599,9 @@ public Builder clearIfMetagenerationMatch() { 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); } @@ -685,12 +611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.LockBucketRetentionPolicyRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.LockBucketRetentionPolicyRequest) private static final com.google.storage.v2.LockBucketRetentionPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.LockBucketRetentionPolicyRequest(); } @@ -699,27 +625,27 @@ public static com.google.storage.v2.LockBucketRetentionPolicyRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LockBucketRetentionPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 LockBucketRetentionPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -734,4 +660,6 @@ public com.google.protobuf.Parser getParserFor public com.google.storage.v2.LockBucketRetentionPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java new file mode 100644 index 0000000000..2179ae09c0 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.2 +package com.google.storage.v2; + +public interface LockBucketRetentionPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.storage.v2.LockBucketRetentionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of a bucket.
+   * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bucket. + */ + java.lang.String getBucket(); + /** + *
+   * Required. Name of a bucket.
+   * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString + getBucketBytes(); + + /** + *
+   * Required. Makes the operation conditional on whether bucket's current
+   * metageneration matches the given value. Must be positive.
+   * 
+ * + * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The ifMetagenerationMatch. + */ + long getIfMetagenerationMatch(); +} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java similarity index 71% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java index 2199bda4c4..215eaaccc7 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java @@ -1,90 +1,71 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * A directive to publish Pub/Sub notifications upon changes to a bucket.
  * 
* * Protobuf type {@code google.storage.v2.NotificationConfig} */ -public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NotificationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.NotificationConfig) NotificationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NotificationConfig.newBuilder() to construct. private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NotificationConfig() { name_ = ""; topic_ = ""; etag_ = ""; - eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + eventTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); objectNamePrefix_ = ""; payloadFormat_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NotificationConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_NotificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_NotificationConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 4: return internalGetCustomAttributes(); 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.storage.v2.StorageProto - .internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.NotificationConfig.class, - com.google.storage.v2.NotificationConfig.Builder.class); + com.google.storage.v2.NotificationConfig.class, com.google.storage.v2.NotificationConfig.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of this NotificationConfig.
    * Format:
@@ -93,7 +74,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -102,15 +82,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 resource name of this NotificationConfig.
    * Format:
@@ -119,15 +98,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 { @@ -136,12 +116,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TOPIC_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
    * Required. The Pub/Sub topic to which this subscription publishes. Formatted
    * as:
@@ -149,7 +126,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topic. */ @java.lang.Override @@ -158,15 +134,14 @@ public java.lang.String getTopic() { 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(); topic_ = s; return s; } } /** - * - * *
    * Required. The Pub/Sub topic to which this subscription publishes. Formatted
    * as:
@@ -174,15 +149,16 @@ public java.lang.String getTopic() {
    * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; 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); topic_ = b; return b; } else { @@ -191,12 +167,9 @@ public com.google.protobuf.ByteString getTopicBytes() { } public static final int ETAG_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * The etag of the NotificationConfig.
    * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -204,7 +177,6 @@ public com.google.protobuf.ByteString getTopicBytes() {
    * 
* * string etag = 7; - * * @return The etag. */ @java.lang.Override @@ -213,15 +185,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * The etag of the NotificationConfig.
    * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -229,15 +200,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 7; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -246,50 +218,41 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int EVENT_TYPES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * If present, only send notifications about listed event types. If
    * empty, sent notifications for all event types.
    * 
* * repeated string event_types = 3; - * * @return A list containing the eventTypes. */ - public com.google.protobuf.ProtocolStringList getEventTypesList() { + public com.google.protobuf.ProtocolStringList + getEventTypesList() { return eventTypes_; } /** - * - * *
    * If present, only send notifications about listed event types. If
    * empty, sent notifications for all event types.
    * 
* * repeated string event_types = 3; - * * @return The count of eventTypes. */ public int getEventTypesCount() { return eventTypes_.size(); } /** - * - * *
    * If present, only send notifications about listed event types. If
    * empty, sent notifications for all event types.
    * 
* * repeated string event_types = 3; - * * @param index The index of the element to return. * @return The eventTypes at the given index. */ @@ -297,53 +260,47 @@ public java.lang.String getEventTypes(int index) { return eventTypes_.get(index); } /** - * - * *
    * If present, only send notifications about listed event types. If
    * empty, sent notifications for all event types.
    * 
* * repeated string event_types = 3; - * * @param index The index of the value to return. * @return The bytes of the eventTypes at the given index. */ - public com.google.protobuf.ByteString getEventTypesBytes(int index) { + public com.google.protobuf.ByteString + getEventTypesBytes(int index) { return eventTypes_.getByteString(index); } public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 4; - private static final class CustomAttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.storage.v2.StorageProto.internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField customAttributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> customAttributes_; private com.google.protobuf.MapField - internalGetCustomAttributes() { + internalGetCustomAttributes() { if (customAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( CustomAttributesDefaultEntryHolder.defaultEntry); } return customAttributes_; } - public int getCustomAttributesCount() { return internalGetCustomAttributes().getMap().size(); } /** - * - * *
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -352,21 +309,20 @@ public int getCustomAttributesCount() {
    * map<string, string> custom_attributes = 4;
    */
   @java.lang.Override
-  public boolean containsCustomAttributes(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsCustomAttributes(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetCustomAttributes().getMap().containsKey(key);
   }
-  /** Use {@link #getCustomAttributesMap()} instead. */
+  /**
+   * Use {@link #getCustomAttributesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getCustomAttributes() {
     return getCustomAttributesMap();
   }
   /**
-   *
-   *
    * 
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -379,8 +335,6 @@ public java.util.Map getCustomAttributesMap(
     return internalGetCustomAttributes().getMap();
   }
   /**
-   *
-   *
    * 
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -389,19 +343,17 @@ public java.util.Map getCustomAttributesMap(
    * map<string, string> custom_attributes = 4;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getCustomAttributesOrDefault(
+  public /* nullable */
+java.lang.String getCustomAttributesOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetCustomAttributes().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetCustomAttributes().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -410,11 +362,11 @@ public java.util.Map getCustomAttributesMap(
    * map<string, string> custom_attributes = 4;
    */
   @java.lang.Override
-  public java.lang.String getCustomAttributesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetCustomAttributes().getMap();
+  public java.lang.String getCustomAttributesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetCustomAttributes().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -422,19 +374,15 @@ public java.lang.String getCustomAttributesOrThrow(java.lang.String key) {
   }
 
   public static final int OBJECT_NAME_PREFIX_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object objectNamePrefix_ = "";
   /**
-   *
-   *
    * 
    * If present, only apply this NotificationConfig to object names that
    * begin with this prefix.
    * 
* * string object_name_prefix = 5; - * * @return The objectNamePrefix. */ @java.lang.Override @@ -443,30 +391,30 @@ public java.lang.String getObjectNamePrefix() { 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(); objectNamePrefix_ = s; return s; } } /** - * - * *
    * If present, only apply this NotificationConfig to object names that
    * begin with this prefix.
    * 
* * string object_name_prefix = 5; - * * @return The bytes for objectNamePrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectNamePrefixBytes() { + public com.google.protobuf.ByteString + getObjectNamePrefixBytes() { java.lang.Object ref = objectNamePrefix_; 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); objectNamePrefix_ = b; return b; } else { @@ -475,18 +423,14 @@ public com.google.protobuf.ByteString getObjectNamePrefixBytes() { } public static final int PAYLOAD_FORMAT_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object payloadFormat_ = ""; /** - * - * *
    * Required. The desired content of the Payload.
    * 
* * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The payloadFormat. */ @java.lang.Override @@ -495,29 +439,29 @@ public java.lang.String getPayloadFormat() { 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(); payloadFormat_ = s; return s; } } /** - * - * *
    * Required. The desired content of the Payload.
    * 
* * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for payloadFormat. */ @java.lang.Override - public com.google.protobuf.ByteString getPayloadFormatBytes() { + public com.google.protobuf.ByteString + getPayloadFormatBytes() { java.lang.Object ref = payloadFormat_; 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); payloadFormat_ = b; return b; } else { @@ -526,7 +470,6 @@ public com.google.protobuf.ByteString getPayloadFormatBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -538,7 +481,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_); } @@ -548,8 +492,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < eventTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, eventTypes_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetCustomAttributes(), CustomAttributesDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCustomAttributes(), + CustomAttributesDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectNamePrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, objectNamePrefix_); } @@ -582,15 +530,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getEventTypesList().size(); } - for (java.util.Map.Entry entry : - internalGetCustomAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry customAttributes__ = - CustomAttributesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, customAttributes__); + for (java.util.Map.Entry entry + : internalGetCustomAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + customAttributes__ = CustomAttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, customAttributes__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectNamePrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, objectNamePrefix_); @@ -609,20 +557,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.storage.v2.NotificationConfig)) { return super.equals(obj); } com.google.storage.v2.NotificationConfig other = (com.google.storage.v2.NotificationConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getTopic().equals(other.getTopic())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getEventTypesList().equals(other.getEventTypesList())) return false; - if (!internalGetCustomAttributes().equals(other.internalGetCustomAttributes())) return false; - if (!getObjectNamePrefix().equals(other.getObjectNamePrefix())) return false; - if (!getPayloadFormat().equals(other.getPayloadFormat())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getEventTypesList() + .equals(other.getEventTypesList())) return false; + if (!internalGetCustomAttributes().equals( + other.internalGetCustomAttributes())) return false; + if (!getObjectNamePrefix() + .equals(other.getObjectNamePrefix())) return false; + if (!getPayloadFormat() + .equals(other.getPayloadFormat())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -657,156 +612,154 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.NotificationConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.NotificationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.NotificationConfig 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.storage.v2.NotificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.NotificationConfig 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.storage.v2.NotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.NotificationConfig 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.storage.v2.NotificationConfig 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.storage.v2.NotificationConfig 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.storage.v2.NotificationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.NotificationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.NotificationConfig 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.storage.v2.NotificationConfig 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.storage.v2.NotificationConfig 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.storage.v2.NotificationConfig 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 directive to publish Pub/Sub notifications upon changes to a bucket.
    * 
* * Protobuf type {@code google.storage.v2.NotificationConfig} */ - 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.storage.v2.NotificationConfig) com.google.storage.v2.NotificationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_NotificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_NotificationConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 4: return internalGetCustomAttributes(); 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 4: return internalGetMutableCustomAttributes(); 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.storage.v2.StorageProto - .internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.NotificationConfig.class, - com.google.storage.v2.NotificationConfig.Builder.class); + com.google.storage.v2.NotificationConfig.class, com.google.storage.v2.NotificationConfig.Builder.class); } // Construct using com.google.storage.v2.NotificationConfig.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(); @@ -814,7 +767,8 @@ public Builder clear() { name_ = ""; topic_ = ""; etag_ = ""; - eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + eventTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableCustomAttributes().clear(); objectNamePrefix_ = ""; payloadFormat_ = ""; @@ -822,9 +776,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_NotificationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_NotificationConfig_descriptor; } @java.lang.Override @@ -843,11 +797,8 @@ public com.google.storage.v2.NotificationConfig build() { @java.lang.Override public com.google.storage.v2.NotificationConfig buildPartial() { - com.google.storage.v2.NotificationConfig result = - new com.google.storage.v2.NotificationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.NotificationConfig result = new com.google.storage.v2.NotificationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -883,39 +834,38 @@ private void buildPartial0(com.google.storage.v2.NotificationConfig 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.storage.v2.NotificationConfig) { - return mergeFrom((com.google.storage.v2.NotificationConfig) other); + return mergeFrom((com.google.storage.v2.NotificationConfig)other); } else { super.mergeFrom(other); return this; @@ -949,7 +899,8 @@ public Builder mergeFrom(com.google.storage.v2.NotificationConfig other) { } onChanged(); } - internalGetMutableCustomAttributes().mergeFrom(other.internalGetCustomAttributes()); + internalGetMutableCustomAttributes().mergeFrom( + other.internalGetCustomAttributes()); bitField0_ |= 0x00000010; if (!other.getObjectNamePrefix().isEmpty()) { objectNamePrefix_ = other.objectNamePrefix_; @@ -987,63 +938,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureEventTypesIsMutable(); - eventTypes_.add(s); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry - customAttributes__ = - input.readMessage( - CustomAttributesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableCustomAttributes() - .getMutableMap() - .put(customAttributes__.getKey(), customAttributes__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - objectNamePrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: - { - payloadFormat_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 58 - 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: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureEventTypesIsMutable(); + eventTypes_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + customAttributes__ = input.readMessage( + CustomAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCustomAttributes().getMutableMap().put( + customAttributes__.getKey(), customAttributes__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + objectNamePrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: { + payloadFormat_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -1053,13 +993,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1068,13 +1005,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; @@ -1083,8 +1020,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1093,14 +1028,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 { @@ -1108,8 +1044,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1118,22 +1052,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 resource name of this NotificationConfig.
      * Format:
@@ -1142,7 +1072,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1152,8 +1081,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1162,14 +1089,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; @@ -1179,8 +1104,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object topic_ = ""; /** - * - * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1188,13 +1111,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; 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(); topic_ = s; return s; @@ -1203,8 +1126,6 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1212,14 +1133,15 @@ public java.lang.String getTopic() {
      * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topic. */ - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; 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); topic_ = b; return b; } else { @@ -1227,8 +1149,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1236,22 +1156,18 @@ public com.google.protobuf.ByteString getTopicBytes() {
      * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1259,7 +1175,6 @@ public Builder setTopic(java.lang.String value) {
      * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTopic() { @@ -1269,8 +1184,6 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1278,14 +1191,12 @@ public Builder clearTopic() {
      * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000002; @@ -1295,8 +1206,6 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1304,13 +1213,13 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 7; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -1319,8 +1228,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1328,14 +1235,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 7; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1343,8 +1251,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1352,22 +1258,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 7; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1375,7 +1277,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 7; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1385,8 +1286,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1394,14 +1293,12 @@ public Builder clearEtag() {
      * 
* * string etag = 7; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -1411,7 +1308,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureEventTypesIsMutable() { if (!eventTypes_.isModifiable()) { eventTypes_ = new com.google.protobuf.LazyStringArrayList(eventTypes_); @@ -1419,46 +1315,38 @@ private void ensureEventTypesIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
      * If present, only send notifications about listed event types. If
      * empty, sent notifications for all event types.
      * 
* * repeated string event_types = 3; - * * @return A list containing the eventTypes. */ - public com.google.protobuf.ProtocolStringList getEventTypesList() { + public com.google.protobuf.ProtocolStringList + getEventTypesList() { eventTypes_.makeImmutable(); return eventTypes_; } /** - * - * *
      * If present, only send notifications about listed event types. If
      * empty, sent notifications for all event types.
      * 
* * repeated string event_types = 3; - * * @return The count of eventTypes. */ public int getEventTypesCount() { return eventTypes_.size(); } /** - * - * *
      * If present, only send notifications about listed event types. If
      * empty, sent notifications for all event types.
      * 
* * repeated string event_types = 3; - * * @param index The index of the element to return. * @return The eventTypes at the given index. */ @@ -1466,39 +1354,33 @@ public java.lang.String getEventTypes(int index) { return eventTypes_.get(index); } /** - * - * *
      * If present, only send notifications about listed event types. If
      * empty, sent notifications for all event types.
      * 
* * repeated string event_types = 3; - * * @param index The index of the value to return. * @return The bytes of the eventTypes at the given index. */ - public com.google.protobuf.ByteString getEventTypesBytes(int index) { + public com.google.protobuf.ByteString + getEventTypesBytes(int index) { return eventTypes_.getByteString(index); } /** - * - * *
      * If present, only send notifications about listed event types. If
      * empty, sent notifications for all event types.
      * 
* * repeated string event_types = 3; - * * @param index The index to set the value at. * @param value The eventTypes to set. * @return This builder for chaining. */ - public Builder setEventTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEventTypes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEventTypesIsMutable(); eventTypes_.set(index, value); bitField0_ |= 0x00000008; @@ -1506,22 +1388,18 @@ public Builder setEventTypes(int index, java.lang.String value) { return this; } /** - * - * *
      * If present, only send notifications about listed event types. If
      * empty, sent notifications for all event types.
      * 
* * repeated string event_types = 3; - * * @param value The eventTypes to add. * @return This builder for chaining. */ - public Builder addEventTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEventTypes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEventTypesIsMutable(); eventTypes_.add(value); bitField0_ |= 0x00000008; @@ -1529,61 +1407,53 @@ public Builder addEventTypes(java.lang.String value) { return this; } /** - * - * *
      * If present, only send notifications about listed event types. If
      * empty, sent notifications for all event types.
      * 
* * repeated string event_types = 3; - * * @param values The eventTypes to add. * @return This builder for chaining. */ - public Builder addAllEventTypes(java.lang.Iterable values) { + public Builder addAllEventTypes( + java.lang.Iterable values) { ensureEventTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, eventTypes_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If present, only send notifications about listed event types. If
      * empty, sent notifications for all event types.
      * 
* * repeated string event_types = 3; - * * @return This builder for chaining. */ public Builder clearEventTypes() { - eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + eventTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * *
      * If present, only send notifications about listed event types. If
      * empty, sent notifications for all event types.
      * 
* * repeated string event_types = 3; - * * @param value The bytes of the eventTypes to add. * @return This builder for chaining. */ - public Builder addEventTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEventTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEventTypesIsMutable(); eventTypes_.add(value); @@ -1592,8 +1462,8 @@ public Builder addEventTypesBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField customAttributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> customAttributes_; private com.google.protobuf.MapField internalGetCustomAttributes() { if (customAttributes_ == null) { @@ -1602,13 +1472,11 @@ public Builder addEventTypesBytes(com.google.protobuf.ByteString value) { } return customAttributes_; } - private com.google.protobuf.MapField internalGetMutableCustomAttributes() { if (customAttributes_ == null) { - customAttributes_ = - com.google.protobuf.MapField.newMapField( - CustomAttributesDefaultEntryHolder.defaultEntry); + customAttributes_ = com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); } if (!customAttributes_.isMutable()) { customAttributes_ = customAttributes_.copy(); @@ -1617,13 +1485,10 @@ public Builder addEventTypesBytes(com.google.protobuf.ByteString value) { onChanged(); return customAttributes_; } - public int getCustomAttributesCount() { return internalGetCustomAttributes().getMap().size(); } /** - * - * *
      * A list of additional attributes to attach to each Pub/Sub
      * message published for this NotificationConfig.
@@ -1632,21 +1497,20 @@ public int getCustomAttributesCount() {
      * map<string, string> custom_attributes = 4;
      */
     @java.lang.Override
-    public boolean containsCustomAttributes(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsCustomAttributes(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetCustomAttributes().getMap().containsKey(key);
     }
-    /** Use {@link #getCustomAttributesMap()} instead. */
+    /**
+     * Use {@link #getCustomAttributesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getCustomAttributes() {
       return getCustomAttributesMap();
     }
     /**
-     *
-     *
      * 
      * A list of additional attributes to attach to each Pub/Sub
      * message published for this NotificationConfig.
@@ -1659,8 +1523,6 @@ public java.util.Map getCustomAttributesMap(
       return internalGetCustomAttributes().getMap();
     }
     /**
-     *
-     *
      * 
      * A list of additional attributes to attach to each Pub/Sub
      * message published for this NotificationConfig.
@@ -1669,20 +1531,17 @@ public java.util.Map getCustomAttributesMap(
      * map<string, string> custom_attributes = 4;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getCustomAttributesOrDefault(
+    public /* nullable */
+java.lang.String getCustomAttributesOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetCustomAttributes().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * A list of additional attributes to attach to each Pub/Sub
      * message published for this NotificationConfig.
@@ -1691,10 +1550,9 @@ public java.util.Map getCustomAttributesMap(
      * map<string, string> custom_attributes = 4;
      */
     @java.lang.Override
-    public java.lang.String getCustomAttributesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public java.lang.String getCustomAttributesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetCustomAttributes().getMap();
       if (!map.containsKey(key)) {
@@ -1702,15 +1560,13 @@ public java.lang.String getCustomAttributesOrThrow(java.lang.String key) {
       }
       return map.get(key);
     }
-
     public Builder clearCustomAttributes() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableCustomAttributes().getMutableMap().clear();
+      internalGetMutableCustomAttributes().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of additional attributes to attach to each Pub/Sub
      * message published for this NotificationConfig.
@@ -1718,22 +1574,23 @@ public Builder clearCustomAttributes() {
      *
      * map<string, string> custom_attributes = 4;
      */
-    public Builder removeCustomAttributes(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableCustomAttributes().getMutableMap().remove(key);
+    public Builder removeCustomAttributes(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableCustomAttributes().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableCustomAttributes() {
+    public java.util.Map
+        getMutableCustomAttributes() {
       bitField0_ |= 0x00000010;
       return internalGetMutableCustomAttributes().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * A list of additional attributes to attach to each Pub/Sub
      * message published for this NotificationConfig.
@@ -1741,20 +1598,17 @@ public java.util.Map getMutableCustomAttribu
      *
      * map<string, string> custom_attributes = 4;
      */
-    public Builder putCustomAttributes(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableCustomAttributes().getMutableMap().put(key, value);
+    public Builder putCustomAttributes(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableCustomAttributes().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of additional attributes to attach to each Pub/Sub
      * message published for this NotificationConfig.
@@ -1764,28 +1618,27 @@ public Builder putCustomAttributes(java.lang.String key, java.lang.String value)
      */
     public Builder putAllCustomAttributes(
         java.util.Map values) {
-      internalGetMutableCustomAttributes().getMutableMap().putAll(values);
+      internalGetMutableCustomAttributes().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
 
     private java.lang.Object objectNamePrefix_ = "";
     /**
-     *
-     *
      * 
      * If present, only apply this NotificationConfig to object names that
      * begin with this prefix.
      * 
* * string object_name_prefix = 5; - * * @return The objectNamePrefix. */ public java.lang.String getObjectNamePrefix() { java.lang.Object ref = objectNamePrefix_; 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(); objectNamePrefix_ = s; return s; @@ -1794,22 +1647,21 @@ public java.lang.String getObjectNamePrefix() { } } /** - * - * *
      * If present, only apply this NotificationConfig to object names that
      * begin with this prefix.
      * 
* * string object_name_prefix = 5; - * * @return The bytes for objectNamePrefix. */ - public com.google.protobuf.ByteString getObjectNamePrefixBytes() { + public com.google.protobuf.ByteString + getObjectNamePrefixBytes() { java.lang.Object ref = objectNamePrefix_; 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); objectNamePrefix_ = b; return b; } else { @@ -1817,37 +1669,30 @@ public com.google.protobuf.ByteString getObjectNamePrefixBytes() { } } /** - * - * *
      * If present, only apply this NotificationConfig to object names that
      * begin with this prefix.
      * 
* * string object_name_prefix = 5; - * * @param value The objectNamePrefix to set. * @return This builder for chaining. */ - public Builder setObjectNamePrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectNamePrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } objectNamePrefix_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * If present, only apply this NotificationConfig to object names that
      * begin with this prefix.
      * 
* * string object_name_prefix = 5; - * * @return This builder for chaining. */ public Builder clearObjectNamePrefix() { @@ -1857,22 +1702,18 @@ public Builder clearObjectNamePrefix() { return this; } /** - * - * *
      * If present, only apply this NotificationConfig to object names that
      * begin with this prefix.
      * 
* * string object_name_prefix = 5; - * * @param value The bytes for objectNamePrefix to set. * @return This builder for chaining. */ - public Builder setObjectNamePrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectNamePrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); objectNamePrefix_ = value; bitField0_ |= 0x00000020; @@ -1882,20 +1723,18 @@ public Builder setObjectNamePrefixBytes(com.google.protobuf.ByteString value) { private java.lang.Object payloadFormat_ = ""; /** - * - * *
      * Required. The desired content of the Payload.
      * 
* * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The payloadFormat. */ public java.lang.String getPayloadFormat() { java.lang.Object ref = payloadFormat_; 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(); payloadFormat_ = s; return s; @@ -1904,21 +1743,20 @@ public java.lang.String getPayloadFormat() { } } /** - * - * *
      * Required. The desired content of the Payload.
      * 
* * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for payloadFormat. */ - public com.google.protobuf.ByteString getPayloadFormatBytes() { + public com.google.protobuf.ByteString + getPayloadFormatBytes() { java.lang.Object ref = payloadFormat_; 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); payloadFormat_ = b; return b; } else { @@ -1926,35 +1764,28 @@ public com.google.protobuf.ByteString getPayloadFormatBytes() { } } /** - * - * *
      * Required. The desired content of the Payload.
      * 
* * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The payloadFormat to set. * @return This builder for chaining. */ - public Builder setPayloadFormat(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPayloadFormat( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } payloadFormat_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Required. The desired content of the Payload.
      * 
* * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPayloadFormat() { @@ -1964,30 +1795,26 @@ public Builder clearPayloadFormat() { return this; } /** - * - * *
      * Required. The desired content of the Payload.
      * 
* * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for payloadFormat to set. * @return This builder for chaining. */ - public Builder setPayloadFormatBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPayloadFormatBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); payloadFormat_ = 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); } @@ -1997,12 +1824,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.NotificationConfig) } // @@protoc_insertion_point(class_scope:google.storage.v2.NotificationConfig) private static final com.google.storage.v2.NotificationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.NotificationConfig(); } @@ -2011,27 +1838,27 @@ public static com.google.storage.v2.NotificationConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 NotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2046,4 +1873,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.NotificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java similarity index 100% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java similarity index 77% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java index 7684b36963..0da4fd48e5 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java @@ -1,31 +1,14 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface NotificationConfigOrBuilder - extends +public interface NotificationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.NotificationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of this NotificationConfig.
    * Format:
@@ -34,13 +17,10 @@ public interface NotificationConfigOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of this NotificationConfig.
    * Format:
@@ -49,14 +29,12 @@ public interface NotificationConfigOrBuilder
    * 
* * 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 Pub/Sub topic to which this subscription publishes. Formatted
    * as:
@@ -64,13 +42,10 @@ public interface NotificationConfigOrBuilder
    * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
    * Required. The Pub/Sub topic to which this subscription publishes. Formatted
    * as:
@@ -78,14 +53,12 @@ public interface NotificationConfigOrBuilder
    * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); /** - * - * *
    * The etag of the NotificationConfig.
    * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -93,13 +66,10 @@ public interface NotificationConfigOrBuilder
    * 
* * string etag = 7; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * The etag of the NotificationConfig.
    * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -107,69 +77,57 @@ public interface NotificationConfigOrBuilder
    * 
* * string etag = 7; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * If present, only send notifications about listed event types. If
    * empty, sent notifications for all event types.
    * 
* * repeated string event_types = 3; - * * @return A list containing the eventTypes. */ - java.util.List getEventTypesList(); + java.util.List + getEventTypesList(); /** - * - * *
    * If present, only send notifications about listed event types. If
    * empty, sent notifications for all event types.
    * 
* * repeated string event_types = 3; - * * @return The count of eventTypes. */ int getEventTypesCount(); /** - * - * *
    * If present, only send notifications about listed event types. If
    * empty, sent notifications for all event types.
    * 
* * repeated string event_types = 3; - * * @param index The index of the element to return. * @return The eventTypes at the given index. */ java.lang.String getEventTypes(int index); /** - * - * *
    * If present, only send notifications about listed event types. If
    * empty, sent notifications for all event types.
    * 
* * repeated string event_types = 3; - * * @param index The index of the value to return. * @return The bytes of the eventTypes at the given index. */ - com.google.protobuf.ByteString getEventTypesBytes(int index); + com.google.protobuf.ByteString + getEventTypesBytes(int index); /** - * - * *
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -179,8 +137,6 @@ public interface NotificationConfigOrBuilder
    */
   int getCustomAttributesCount();
   /**
-   *
-   *
    * 
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -188,13 +144,15 @@ public interface NotificationConfigOrBuilder
    *
    * map<string, string> custom_attributes = 4;
    */
-  boolean containsCustomAttributes(java.lang.String key);
-  /** Use {@link #getCustomAttributesMap()} instead. */
+  boolean containsCustomAttributes(
+      java.lang.String key);
+  /**
+   * Use {@link #getCustomAttributesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getCustomAttributes();
+  java.util.Map
+  getCustomAttributes();
   /**
-   *
-   *
    * 
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -202,10 +160,9 @@ public interface NotificationConfigOrBuilder
    *
    * map<string, string> custom_attributes = 4;
    */
-  java.util.Map getCustomAttributesMap();
+  java.util.Map
+  getCustomAttributesMap();
   /**
-   *
-   *
    * 
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -214,13 +171,11 @@ public interface NotificationConfigOrBuilder
    * map<string, string> custom_attributes = 4;
    */
   /* nullable */
-  java.lang.String getCustomAttributesOrDefault(
+java.lang.String getCustomAttributesOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -228,57 +183,48 @@ java.lang.String getCustomAttributesOrDefault(
    *
    * map<string, string> custom_attributes = 4;
    */
-  java.lang.String getCustomAttributesOrThrow(java.lang.String key);
+  java.lang.String getCustomAttributesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * If present, only apply this NotificationConfig to object names that
    * begin with this prefix.
    * 
* * string object_name_prefix = 5; - * * @return The objectNamePrefix. */ java.lang.String getObjectNamePrefix(); /** - * - * *
    * If present, only apply this NotificationConfig to object names that
    * begin with this prefix.
    * 
* * string object_name_prefix = 5; - * * @return The bytes for objectNamePrefix. */ - com.google.protobuf.ByteString getObjectNamePrefixBytes(); + com.google.protobuf.ByteString + getObjectNamePrefixBytes(); /** - * - * *
    * Required. The desired content of the Payload.
    * 
* * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The payloadFormat. */ java.lang.String getPayloadFormat(); /** - * - * *
    * Required. The desired content of the Payload.
    * 
* * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for payloadFormat. */ - com.google.protobuf.ByteString getPayloadFormatBytes(); + com.google.protobuf.ByteString + getPayloadFormatBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java similarity index 73% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java index 58d05961d0..5f8080a759 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * An object.
  * 
* * Protobuf type {@code google.storage.v2.Object} */ -public final class Object extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Object extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Object) ObjectOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Object.newBuilder() to construct. private Object(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Object() { name_ = ""; bucket_ = ""; @@ -53,42 +36,41 @@ private Object() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Object(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Object_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 22: return internalGetMetadata(); 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.storage.v2.StorageProto - .internal_static_google_storage_v2_Object_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Object_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.Object.class, com.google.storage.v2.Object.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The name of this object. Nearly any sequence of unicode
    * characters is valid. See
@@ -100,7 +82,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -109,15 +90,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; } } /** - * - * *
    * Immutable. The name of this object. Nearly any sequence of unicode
    * characters is valid. See
@@ -129,15 +109,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -146,20 +127,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int BUCKET_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** - * - * *
    * Immutable. The name of the bucket containing this object.
    * 
* - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -168,31 +143,29 @@ public java.lang.String getBucket() { 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(); bucket_ = s; return s; } } /** - * - * *
    * Immutable. The name of the bucket containing this object.
    * 
* - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -201,12 +174,9 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int ETAG_FIELD_NUMBER = 27; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * The etag of the object.
    * If included in the metadata of an update or delete request message, the
@@ -215,7 +185,6 @@ public com.google.protobuf.ByteString getBucketBytes() {
    * 
* * string etag = 27; - * * @return The etag. */ @java.lang.Override @@ -224,15 +193,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * The etag of the object.
    * If included in the metadata of an update or delete request message, the
@@ -241,15 +209,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 27; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -260,15 +229,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_ = 0L; /** - * - * *
    * Immutable. The content generation of this object. Used for object
    * versioning.
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The generation. */ @java.lang.Override @@ -279,8 +245,6 @@ public long getGeneration() { public static final int METAGENERATION_FIELD_NUMBER = 4; private long metageneration_ = 0L; /** - * - * *
    * Output only. The version of the metadata for this generation of this
    * object. Used for preconditions and for detecting changes in metadata. A
@@ -289,7 +253,6 @@ public long getGeneration() {
    * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -298,18 +261,14 @@ public long getMetageneration() { } public static final int STORAGE_CLASS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object storageClass_ = ""; /** - * - * *
    * Storage class of the object.
    * 
* * string storage_class = 5; - * * @return The storageClass. */ @java.lang.Override @@ -318,29 +277,29 @@ public java.lang.String getStorageClass() { 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(); storageClass_ = s; return s; } } /** - * - * *
    * Storage class of the object.
    * 
* * string storage_class = 5; - * * @return The bytes for storageClass. */ @java.lang.Override - public com.google.protobuf.ByteString getStorageClassBytes() { + public com.google.protobuf.ByteString + getStorageClassBytes() { java.lang.Object ref = storageClass_; 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); storageClass_ = b; return b; } else { @@ -351,15 +310,12 @@ public com.google.protobuf.ByteString getStorageClassBytes() { public static final int SIZE_FIELD_NUMBER = 6; private long size_ = 0L; /** - * - * *
    * Output only. Content-Length of the object data in bytes, matching
    * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
    * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The size. */ @java.lang.Override @@ -368,19 +324,15 @@ public long getSize() { } public static final int CONTENT_ENCODING_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object contentEncoding_ = ""; /** - * - * *
    * Content-Encoding of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
    * 
* * string content_encoding = 7; - * * @return The contentEncoding. */ @java.lang.Override @@ -389,30 +341,30 @@ public java.lang.String getContentEncoding() { 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(); contentEncoding_ = s; return s; } } /** - * - * *
    * Content-Encoding of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
    * 
* * string content_encoding = 7; - * * @return The bytes for contentEncoding. */ @java.lang.Override - public com.google.protobuf.ByteString getContentEncodingBytes() { + public com.google.protobuf.ByteString + getContentEncodingBytes() { java.lang.Object ref = contentEncoding_; 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); contentEncoding_ = b; return b; } else { @@ -421,19 +373,15 @@ public com.google.protobuf.ByteString getContentEncodingBytes() { } public static final int CONTENT_DISPOSITION_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object contentDisposition_ = ""; /** - * - * *
    * Content-Disposition of the object data, matching
    * [https://tools.ietf.org/html/rfc6266][RFC 6266].
    * 
* * string content_disposition = 8; - * * @return The contentDisposition. */ @java.lang.Override @@ -442,30 +390,30 @@ public java.lang.String getContentDisposition() { 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(); contentDisposition_ = s; return s; } } /** - * - * *
    * Content-Disposition of the object data, matching
    * [https://tools.ietf.org/html/rfc6266][RFC 6266].
    * 
* * string content_disposition = 8; - * * @return The bytes for contentDisposition. */ @java.lang.Override - public com.google.protobuf.ByteString getContentDispositionBytes() { + public com.google.protobuf.ByteString + getContentDispositionBytes() { java.lang.Object ref = contentDisposition_; 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); contentDisposition_ = b; return b; } else { @@ -474,12 +422,9 @@ public com.google.protobuf.ByteString getContentDispositionBytes() { } public static final int CACHE_CONTROL_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object cacheControl_ = ""; /** - * - * *
    * Cache-Control directive for the object data, matching
    * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
@@ -488,7 +433,6 @@ public com.google.protobuf.ByteString getContentDispositionBytes() {
    * 
* * string cache_control = 9; - * * @return The cacheControl. */ @java.lang.Override @@ -497,15 +441,14 @@ public java.lang.String getCacheControl() { 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(); cacheControl_ = s; return s; } } /** - * - * *
    * Cache-Control directive for the object data, matching
    * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
@@ -514,15 +457,16 @@ public java.lang.String getCacheControl() {
    * 
* * string cache_control = 9; - * * @return The bytes for cacheControl. */ @java.lang.Override - public com.google.protobuf.ByteString getCacheControlBytes() { + public com.google.protobuf.ByteString + getCacheControlBytes() { java.lang.Object ref = cacheControl_; 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); cacheControl_ = b; return b; } else { @@ -531,12 +475,9 @@ public com.google.protobuf.ByteString getCacheControlBytes() { } public static final int ACL_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List acl_; /** - * - * *
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -550,8 +491,6 @@ public java.util.List getAclList() {
     return acl_;
   }
   /**
-   *
-   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -561,13 +500,11 @@ public java.util.List getAclList() {
    * repeated .google.storage.v2.ObjectAccessControl acl = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAclOrBuilderList() {
     return acl_;
   }
   /**
-   *
-   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -581,8 +518,6 @@ public int getAclCount() {
     return acl_.size();
   }
   /**
-   *
-   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -596,8 +531,6 @@ public com.google.storage.v2.ObjectAccessControl getAcl(int index) {
     return acl_.get(index);
   }
   /**
-   *
-   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -607,24 +540,21 @@ public com.google.storage.v2.ObjectAccessControl getAcl(int index) {
    * repeated .google.storage.v2.ObjectAccessControl acl = 10;
    */
   @java.lang.Override
-  public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(int index) {
+  public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
+      int index) {
     return acl_.get(index);
   }
 
   public static final int CONTENT_LANGUAGE_FIELD_NUMBER = 11;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object contentLanguage_ = "";
   /**
-   *
-   *
    * 
    * Content-Language of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
    * 
* * string content_language = 11; - * * @return The contentLanguage. */ @java.lang.Override @@ -633,30 +563,30 @@ public java.lang.String getContentLanguage() { 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(); contentLanguage_ = s; return s; } } /** - * - * *
    * Content-Language of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
    * 
* * string content_language = 11; - * * @return The bytes for contentLanguage. */ @java.lang.Override - public com.google.protobuf.ByteString getContentLanguageBytes() { + public com.google.protobuf.ByteString + getContentLanguageBytes() { java.lang.Object ref = contentLanguage_; 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); contentLanguage_ = b; return b; } else { @@ -667,33 +597,25 @@ public com.google.protobuf.ByteString getContentLanguageBytes() { public static final int DELETE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. If this object is noncurrent, this is the time when the object
    * became noncurrent.
    * 
* - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override public boolean hasDeleteTime() { - return deleteTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. If this object is noncurrent, this is the time when the object
    * became noncurrent.
    * 
* - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -701,15 +623,12 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. If this object is noncurrent, this is the time when the object
    * became noncurrent.
    * 
* - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -717,12 +636,9 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int CONTENT_TYPE_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private volatile java.lang.Object contentType_ = ""; /** - * - * *
    * Content-Type of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
@@ -731,7 +647,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string content_type = 13; - * * @return The contentType. */ @java.lang.Override @@ -740,15 +655,14 @@ public java.lang.String getContentType() { 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(); contentType_ = s; return s; } } /** - * - * *
    * Content-Type of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
@@ -757,15 +671,16 @@ public java.lang.String getContentType() {
    * 
* * string content_type = 13; - * * @return The bytes for contentType. */ @java.lang.Override - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; 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); contentType_ = b; return b; } else { @@ -776,31 +691,23 @@ public com.google.protobuf.ByteString getContentTypeBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -808,14 +715,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -825,15 +729,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int COMPONENT_COUNT_FIELD_NUMBER = 15; private int componentCount_ = 0; /** - * - * *
    * Output only. Number of underlying components that make up this object.
    * Components are accumulated by compose operations.
    * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The componentCount. */ @java.lang.Override @@ -844,67 +745,47 @@ public int getComponentCount() { public static final int CHECKSUMS_FIELD_NUMBER = 16; private com.google.storage.v2.ObjectChecksums checksums_; /** - * - * *
    * Output only. Hashes for the data part of this object. This field is used
    * for output only and will be silently ignored if provided in requests.
    * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the checksums field is set. */ @java.lang.Override public boolean hasChecksums() { - return checksums_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Output only. Hashes for the data part of this object. This field is used
    * for output only and will be silently ignored if provided in requests.
    * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The checksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getChecksums() { - return checksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : checksums_; + return checksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : checksums_; } /** - * - * *
    * Output only. Hashes for the data part of this object. This field is used
    * for output only and will be silently ignored if provided in requests.
    * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() { - return checksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : checksums_; + return checksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : checksums_; } public static final int UPDATE_TIME_FIELD_NUMBER = 17; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The modification time of the object metadata.
    * Set initially to object creation time and then updated whenever any
@@ -914,18 +795,14 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() {
    * Object Lifecycle Configuration.
    * 
* - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { - return updateTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Output only. The modification time of the object metadata.
    * Set initially to object creation time and then updated whenever any
@@ -935,9 +812,7 @@ public boolean hasUpdateTime() {
    * Object Lifecycle Configuration.
    * 
* - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -945,8 +820,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The modification time of the object metadata.
    * Set initially to object creation time and then updated whenever any
@@ -956,8 +829,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
    * Object Lifecycle Configuration.
    * 
* - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -965,19 +837,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int KMS_KEY_FIELD_NUMBER = 18; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKey_ = ""; /** - * - * *
    * Cloud KMS Key used to encrypt this object, if the object is encrypted by
    * such a key.
    * 
* * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ @java.lang.Override @@ -986,30 +854,30 @@ public java.lang.String getKmsKey() { 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(); kmsKey_ = s; return s; } } /** - * - * *
    * Cloud KMS Key used to encrypt this object, if the object is encrypted by
    * such a key.
    * 
* * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; 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); kmsKey_ = b; return b; } else { @@ -1020,67 +888,47 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { public static final int UPDATE_STORAGE_CLASS_TIME_FIELD_NUMBER = 19; private com.google.protobuf.Timestamp updateStorageClassTime_; /** - * - * *
    * Output only. The time at which the object's storage class was last changed.
    * When the object is initially created, it will be set to time_created.
    * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateStorageClassTime field is set. */ @java.lang.Override public boolean hasUpdateStorageClassTime() { - return updateStorageClassTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * Output only. The time at which the object's storage class was last changed.
    * When the object is initially created, it will be set to time_created.
    * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateStorageClassTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateStorageClassTime() { - return updateStorageClassTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateStorageClassTime_; + return updateStorageClassTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; } /** - * - * *
    * Output only. The time at which the object's storage class was last changed.
    * When the object is initially created, it will be set to time_created.
    * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder() { - return updateStorageClassTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateStorageClassTime_; + return updateStorageClassTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; } public static final int TEMPORARY_HOLD_FIELD_NUMBER = 20; private boolean temporaryHold_ = false; /** - * - * *
    * Whether an object is under temporary hold. While this flag is set to true,
    * the object is protected against deletion and overwrites.  A common use case
@@ -1090,7 +938,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
    * 
* * bool temporary_hold = 20; - * * @return The temporaryHold. */ @java.lang.Override @@ -1101,8 +948,6 @@ public boolean getTemporaryHold() { public static final int RETENTION_EXPIRE_TIME_FIELD_NUMBER = 21; private com.google.protobuf.Timestamp retentionExpireTime_; /** - * - * *
    * A server-determined value that specifies the earliest time that the
    * object's retention period expires.
@@ -1114,16 +959,13 @@ public boolean getTemporaryHold() {
    * 
* * .google.protobuf.Timestamp retention_expire_time = 21; - * * @return Whether the retentionExpireTime field is set. */ @java.lang.Override public boolean hasRetentionExpireTime() { - return retentionExpireTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
    * A server-determined value that specifies the earliest time that the
    * object's retention period expires.
@@ -1135,18 +977,13 @@ public boolean hasRetentionExpireTime() {
    * 
* * .google.protobuf.Timestamp retention_expire_time = 21; - * * @return The retentionExpireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRetentionExpireTime() { - return retentionExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : retentionExpireTime_; + return retentionExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : retentionExpireTime_; } /** - * - * *
    * A server-determined value that specifies the earliest time that the
    * object's retention period expires.
@@ -1161,40 +998,36 @@ public com.google.protobuf.Timestamp getRetentionExpireTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder() {
-    return retentionExpireTime_ == null
-        ? com.google.protobuf.Timestamp.getDefaultInstance()
-        : retentionExpireTime_;
+    return retentionExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : retentionExpireTime_;
   }
 
   public static final int METADATA_FIELD_NUMBER = 22;
-
   private static final class MetadataDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.storage.v2.StorageProto
-                .internal_static_google_storage_v2_Object_MetadataEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Object_MetadataEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField metadata_;
-
-  private com.google.protobuf.MapField internalGetMetadata() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> metadata_;
+  private com.google.protobuf.MapField
+  internalGetMetadata() {
     if (metadata_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          MetadataDefaultEntryHolder.defaultEntry);
     }
     return metadata_;
   }
-
   public int getMetadataCount() {
     return internalGetMetadata().getMap().size();
   }
   /**
-   *
-   *
    * 
    * User-provided metadata, in key/value pairs.
    * 
@@ -1202,21 +1035,20 @@ public int getMetadataCount() { * map<string, string> metadata = 22; */ @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } - /** Use {@link #getMetadataMap()} instead. */ + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** - * - * *
    * User-provided metadata, in key/value pairs.
    * 
@@ -1228,8 +1060,6 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
    * User-provided metadata, in key/value pairs.
    * 
@@ -1237,19 +1067,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 22; */ @java.lang.Override - public /* nullable */ java.lang.String getMetadataOrDefault( + public /* nullable */ +java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * User-provided metadata, in key/value pairs.
    * 
@@ -1257,11 +1085,11 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 22; */ @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1271,8 +1099,6 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { public static final int EVENT_BASED_HOLD_FIELD_NUMBER = 23; private boolean eventBasedHold_ = false; /** - * - * *
    * Whether an object is under event-based hold.
    * An event-based hold is a way to force the retention of an object until
@@ -1288,16 +1114,13 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
    * 
* * optional bool event_based_hold = 23; - * * @return Whether the eventBasedHold field is set. */ @java.lang.Override public boolean hasEventBasedHold() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
    * Whether an object is under event-based hold.
    * An event-based hold is a way to force the retention of an object until
@@ -1313,7 +1136,6 @@ public boolean hasEventBasedHold() {
    * 
* * optional bool event_based_hold = 23; - * * @return The eventBasedHold. */ @java.lang.Override @@ -1324,31 +1146,25 @@ public boolean getEventBasedHold() { public static final int OWNER_FIELD_NUMBER = 24; private com.google.storage.v2.Owner owner_; /** - * - * *
    * Output only. The owner of the object. This will always be the uploader of
    * the object.
    * 
* * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { - return owner_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
    * Output only. The owner of the object. This will always be the uploader of
    * the object.
    * 
* * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The owner. */ @java.lang.Override @@ -1356,8 +1172,6 @@ public com.google.storage.v2.Owner getOwner() { return owner_ == null ? com.google.storage.v2.Owner.getDefaultInstance() : owner_; } /** - * - * *
    * Output only. The owner of the object. This will always be the uploader of
    * the object.
@@ -1373,42 +1187,32 @@ public com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder() {
   public static final int CUSTOMER_ENCRYPTION_FIELD_NUMBER = 25;
   private com.google.storage.v2.CustomerEncryption customerEncryption_;
   /**
-   *
-   *
    * 
    * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
    * such a key.
    * 
* * .google.storage.v2.CustomerEncryption customer_encryption = 25; - * * @return Whether the customerEncryption field is set. */ @java.lang.Override public boolean hasCustomerEncryption() { - return customerEncryption_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
    * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
    * such a key.
    * 
* * .google.storage.v2.CustomerEncryption customer_encryption = 25; - * * @return The customerEncryption. */ @java.lang.Override public com.google.storage.v2.CustomerEncryption getCustomerEncryption() { - return customerEncryption_ == null - ? com.google.storage.v2.CustomerEncryption.getDefaultInstance() - : customerEncryption_; + return customerEncryption_ == null ? com.google.storage.v2.CustomerEncryption.getDefaultInstance() : customerEncryption_; } /** - * - * *
    * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
    * such a key.
@@ -1418,37 +1222,29 @@ public com.google.storage.v2.CustomerEncryption getCustomerEncryption() {
    */
   @java.lang.Override
   public com.google.storage.v2.CustomerEncryptionOrBuilder getCustomerEncryptionOrBuilder() {
-    return customerEncryption_ == null
-        ? com.google.storage.v2.CustomerEncryption.getDefaultInstance()
-        : customerEncryption_;
+    return customerEncryption_ == null ? com.google.storage.v2.CustomerEncryption.getDefaultInstance() : customerEncryption_;
   }
 
   public static final int CUSTOM_TIME_FIELD_NUMBER = 26;
   private com.google.protobuf.Timestamp customTime_;
   /**
-   *
-   *
    * 
    * A user-specified timestamp set on an object.
    * 
* * .google.protobuf.Timestamp custom_time = 26; - * * @return Whether the customTime field is set. */ @java.lang.Override public boolean hasCustomTime() { - return customTime_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
    * A user-specified timestamp set on an object.
    * 
* * .google.protobuf.Timestamp custom_time = 26; - * * @return The customTime. */ @java.lang.Override @@ -1456,8 +1252,6 @@ public com.google.protobuf.Timestamp getCustomTime() { return customTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : customTime_; } /** - * - * *
    * A user-specified timestamp set on an object.
    * 
@@ -1470,7 +1264,6 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1482,7 +1275,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_); } @@ -1516,48 +1310,52 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentLanguage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, contentLanguage_); } - if (deleteTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(12, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, contentType_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(14, getCreateTime()); } if (componentCount_ != 0) { output.writeInt32(15, componentCount_); } - if (checksums_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(16, getChecksums()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(17, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, kmsKey_); } - if (updateStorageClassTime_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(19, getUpdateStorageClassTime()); } if (temporaryHold_ != false) { output.writeBool(20, temporaryHold_); } - if (retentionExpireTime_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(21, getRetentionExpireTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 22); - if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 22); + if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(23, eventBasedHold_); } - if (owner_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(24, getOwner()); } - if (customerEncryption_ != null) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(25, getCustomerEncryption()); } - if (customTime_ != null) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(26, getCustomTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { @@ -1579,16 +1377,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucket_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, generation_); } if (metageneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, metageneration_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, metageneration_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageClass_); } if (size_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, size_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, size_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentEncoding_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, contentEncoding_); @@ -1600,64 +1401,75 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, cacheControl_); } for (int i = 0; i < acl_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, acl_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, acl_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentLanguage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, contentLanguage_); } - if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDeleteTime()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, contentType_); } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCreateTime()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getCreateTime()); } if (componentCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, componentCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(15, componentCount_); } - if (checksums_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getChecksums()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getChecksums()); } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getUpdateTime()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, kmsKey_); } - if (updateStorageClassTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(19, getUpdateStorageClassTime()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getUpdateStorageClassTime()); } if (temporaryHold_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, temporaryHold_); - } - if (retentionExpireTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRetentionExpireTime()); - } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, metadata__); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, eventBasedHold_); - } - if (owner_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getOwner()); - } - if (customerEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getCustomerEncryption()); - } - if (customTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getCustomTime()); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, temporaryHold_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getRetentionExpireTime()); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, metadata__); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(23, eventBasedHold_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getOwner()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getCustomerEncryption()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getCustomTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, etag_); @@ -1670,69 +1482,96 @@ 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.storage.v2.Object)) { return super.equals(obj); } com.google.storage.v2.Object other = (com.google.storage.v2.Object) obj; - if (!getName().equals(other.getName())) return false; - if (!getBucket().equals(other.getBucket())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getGeneration() != other.getGeneration()) return false; - if (getMetageneration() != other.getMetageneration()) return false; - if (!getStorageClass().equals(other.getStorageClass())) return false; - if (getSize() != other.getSize()) return false; - if (!getContentEncoding().equals(other.getContentEncoding())) return false; - if (!getContentDisposition().equals(other.getContentDisposition())) return false; - if (!getCacheControl().equals(other.getCacheControl())) return false; - if (!getAclList().equals(other.getAclList())) return false; - if (!getContentLanguage().equals(other.getContentLanguage())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getBucket() + .equals(other.getBucket())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getGeneration() + != other.getGeneration()) return false; + if (getMetageneration() + != other.getMetageneration()) return false; + if (!getStorageClass() + .equals(other.getStorageClass())) return false; + if (getSize() + != other.getSize()) return false; + if (!getContentEncoding() + .equals(other.getContentEncoding())) return false; + if (!getContentDisposition() + .equals(other.getContentDisposition())) return false; + if (!getCacheControl() + .equals(other.getCacheControl())) return false; + if (!getAclList() + .equals(other.getAclList())) return false; + if (!getContentLanguage() + .equals(other.getContentLanguage())) return false; if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (!getContentType().equals(other.getContentType())) return false; + if (!getContentType() + .equals(other.getContentType())) 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 (getComponentCount() != other.getComponentCount()) return false; + if (getComponentCount() + != other.getComponentCount()) return false; if (hasChecksums() != other.hasChecksums()) return false; if (hasChecksums()) { - if (!getChecksums().equals(other.getChecksums())) return false; + if (!getChecksums() + .equals(other.getChecksums())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getKmsKey() + .equals(other.getKmsKey())) return false; if (hasUpdateStorageClassTime() != other.hasUpdateStorageClassTime()) return false; if (hasUpdateStorageClassTime()) { - if (!getUpdateStorageClassTime().equals(other.getUpdateStorageClassTime())) return false; + if (!getUpdateStorageClassTime() + .equals(other.getUpdateStorageClassTime())) return false; } - if (getTemporaryHold() != other.getTemporaryHold()) return false; + if (getTemporaryHold() + != other.getTemporaryHold()) return false; if (hasRetentionExpireTime() != other.hasRetentionExpireTime()) return false; if (hasRetentionExpireTime()) { - if (!getRetentionExpireTime().equals(other.getRetentionExpireTime())) return false; + if (!getRetentionExpireTime() + .equals(other.getRetentionExpireTime())) return false; } - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; if (hasEventBasedHold() != other.hasEventBasedHold()) return false; if (hasEventBasedHold()) { - if (getEventBasedHold() != other.getEventBasedHold()) return false; + if (getEventBasedHold() + != other.getEventBasedHold()) return false; } if (hasOwner() != other.hasOwner()) return false; if (hasOwner()) { - if (!getOwner().equals(other.getOwner())) return false; + if (!getOwner() + .equals(other.getOwner())) return false; } if (hasCustomerEncryption() != other.hasCustomerEncryption()) return false; if (hasCustomerEncryption()) { - if (!getCustomerEncryption().equals(other.getCustomerEncryption())) return false; + if (!getCustomerEncryption() + .equals(other.getCustomerEncryption())) return false; } if (hasCustomTime() != other.hasCustomTime()) return false; if (hasCustomTime()) { - if (!getCustomTime().equals(other.getCustomTime())) return false; + if (!getCustomTime() + .equals(other.getCustomTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1752,13 +1591,16 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); hash = (37 * hash) + METAGENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMetageneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMetageneration()); hash = (37 * hash) + STORAGE_CLASS_FIELD_NUMBER; hash = (53 * hash) + getStorageClass().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); hash = (37 * hash) + CONTENT_ENCODING_FIELD_NUMBER; hash = (53 * hash) + getContentEncoding().hashCode(); hash = (37 * hash) + CONTENT_DISPOSITION_FIELD_NUMBER; @@ -1798,7 +1640,8 @@ public int hashCode() { hash = (53 * hash) + getUpdateStorageClassTime().hashCode(); } hash = (37 * hash) + TEMPORARY_HOLD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTemporaryHold()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTemporaryHold()); if (hasRetentionExpireTime()) { hash = (37 * hash) + RETENTION_EXPIRE_TIME_FIELD_NUMBER; hash = (53 * hash) + getRetentionExpireTime().hashCode(); @@ -1809,7 +1652,8 @@ public int hashCode() { } if (hasEventBasedHold()) { hash = (37 * hash) + EVENT_BASED_HOLD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEventBasedHold()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEventBasedHold()); } if (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; @@ -1828,153 +1672,169 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Object parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Object parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Object 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.storage.v2.Object parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.Object parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Object 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.storage.v2.Object parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Object 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.storage.v2.Object 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.storage.v2.Object 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.storage.v2.Object parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Object 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.storage.v2.Object parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.storage.v2.Object parseFrom( + com.google.protobuf.CodedInputStream 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.storage.v2.Object 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.storage.v2.Object 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; } /** - * - * *
    * An object.
    * 
* * Protobuf type {@code google.storage.v2.Object} */ - 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.storage.v2.Object) com.google.storage.v2.ObjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Object_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 22: return internalGetMetadata(); 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 22: return internalGetMutableMetadata(); 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.storage.v2.StorageProto - .internal_static_google_storage_v2_Object_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Object_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.Object.class, com.google.storage.v2.Object.Builder.class); } // Construct using com.google.storage.v2.Object.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAclFieldBuilder(); + getDeleteTimeFieldBuilder(); + getCreateTimeFieldBuilder(); + getChecksumsFieldBuilder(); + getUpdateTimeFieldBuilder(); + getUpdateStorageClassTimeFieldBuilder(); + getRetentionExpireTimeFieldBuilder(); + getOwnerFieldBuilder(); + getCustomerEncryptionFieldBuilder(); + getCustomTimeFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2052,7 +1912,8 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Object_descriptor; } @@ -2074,9 +1935,7 @@ public com.google.storage.v2.Object build() { public com.google.storage.v2.Object buildPartial() { com.google.storage.v2.Object result = new com.google.storage.v2.Object(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2128,62 +1987,80 @@ private void buildPartial0(com.google.storage.v2.Object result) { if (((from_bitField0_ & 0x00000800) != 0)) { result.contentLanguage_ = contentLanguage_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00001000) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00002000) != 0)) { result.contentType_ = contentType_; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00008000) != 0)) { result.componentCount_ = componentCount_; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.checksums_ = checksumsBuilder_ == null ? checksums_ : checksumsBuilder_.build(); + result.checksums_ = checksumsBuilder_ == null + ? checksums_ + : checksumsBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00040000) != 0)) { result.kmsKey_ = kmsKey_; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.updateStorageClassTime_ = - updateStorageClassTimeBuilder_ == null - ? updateStorageClassTime_ - : updateStorageClassTimeBuilder_.build(); + result.updateStorageClassTime_ = updateStorageClassTimeBuilder_ == null + ? updateStorageClassTime_ + : updateStorageClassTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00100000) != 0)) { result.temporaryHold_ = temporaryHold_; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.retentionExpireTime_ = - retentionExpireTimeBuilder_ == null - ? retentionExpireTime_ - : retentionExpireTimeBuilder_.build(); + result.retentionExpireTime_ = retentionExpireTimeBuilder_ == null + ? retentionExpireTime_ + : retentionExpireTimeBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00400000) != 0)) { result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00800000) != 0)) { result.eventBasedHold_ = eventBasedHold_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x01000000) != 0)) { - result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); + result.owner_ = ownerBuilder_ == null + ? owner_ + : ownerBuilder_.build(); + to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x02000000) != 0)) { - result.customerEncryption_ = - customerEncryptionBuilder_ == null - ? customerEncryption_ - : customerEncryptionBuilder_.build(); + result.customerEncryption_ = customerEncryptionBuilder_ == null + ? customerEncryption_ + : customerEncryptionBuilder_.build(); + to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x04000000) != 0)) { - result.customTime_ = customTimeBuilder_ == null ? customTime_ : customTimeBuilder_.build(); + result.customTime_ = customTimeBuilder_ == null + ? customTime_ + : customTimeBuilder_.build(); + to_bitField0_ |= 0x00000200; } result.bitField0_ |= to_bitField0_; } @@ -2192,39 +2069,38 @@ private void buildPartial0(com.google.storage.v2.Object 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.storage.v2.Object) { - return mergeFrom((com.google.storage.v2.Object) other); + return mergeFrom((com.google.storage.v2.Object)other); } else { super.mergeFrom(other); return this; @@ -2295,10 +2171,9 @@ public Builder mergeFrom(com.google.storage.v2.Object other) { aclBuilder_ = null; acl_ = other.acl_; bitField0_ = (bitField0_ & ~0x00000400); - aclBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAclFieldBuilder() - : null; + aclBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAclFieldBuilder() : null; } else { aclBuilder_.addAllMessages(other.acl_); } @@ -2343,7 +2218,8 @@ public Builder mergeFrom(com.google.storage.v2.Object other) { if (other.hasRetentionExpireTime()) { mergeRetentionExpireTime(other.getRetentionExpireTime()); } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); bitField0_ |= 0x00400000; if (other.hasEventBasedHold()) { setEventBasedHold(other.getEventBasedHold()); @@ -2383,207 +2259,190 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - bucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - generation_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 32: - { - metageneration_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: - { - storageClass_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 48: - { - size_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 58: - { - contentEncoding_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - contentDisposition_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 74: - { - cacheControl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 74 - case 82: - { - com.google.storage.v2.ObjectAccessControl m = - input.readMessage( - com.google.storage.v2.ObjectAccessControl.parser(), extensionRegistry); - if (aclBuilder_ == null) { - ensureAclIsMutable(); - acl_.add(m); - } else { - aclBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: - { - contentLanguage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 90 - case 98: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 98 - case 106: - { - contentType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; - break; - } // case 106 - case 114: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 114 - case 120: - { - componentCount_ = input.readInt32(); - bitField0_ |= 0x00008000; - break; - } // case 120 - case 130: - { - input.readMessage(getChecksumsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 130 - case 138: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 138 - case 146: - { - kmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; - break; - } // case 146 - case 154: - { - input.readMessage( - getUpdateStorageClassTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 154 - case 160: - { - temporaryHold_ = input.readBool(); - bitField0_ |= 0x00100000; - break; - } // case 160 - case 170: - { - input.readMessage( - getRetentionExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 170 - case 178: - { - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMetadata() - .getMutableMap() - .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00400000; - break; - } // case 178 - case 184: - { - eventBasedHold_ = input.readBool(); - bitField0_ |= 0x00800000; - break; - } // case 184 - case 194: - { - input.readMessage(getOwnerFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 194 - case 202: - { - input.readMessage( - getCustomerEncryptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; - break; - } // case 202 - case 210: - { - input.readMessage(getCustomTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; - break; - } // case 210 - case 218: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 218 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + generation_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 32: { + metageneration_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: { + storageClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 48: { + size_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 58: { + contentEncoding_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + contentDisposition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: { + cacheControl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: { + com.google.storage.v2.ObjectAccessControl m = + input.readMessage( + com.google.storage.v2.ObjectAccessControl.parser(), + extensionRegistry); + if (aclBuilder_ == null) { + ensureAclIsMutable(); + acl_.add(m); + } else { + aclBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: { + contentLanguage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 98: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 106: { + contentType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 106 + case 114: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 114 + case 120: { + componentCount_ = input.readInt32(); + bitField0_ |= 0x00008000; + break; + } // case 120 + case 130: { + input.readMessage( + getChecksumsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 130 + case 138: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 138 + case 146: { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 146 + case 154: { + input.readMessage( + getUpdateStorageClassTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 154 + case 160: { + temporaryHold_ = input.readBool(); + bitField0_ |= 0x00100000; + break; + } // case 160 + case 170: { + input.readMessage( + getRetentionExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 170 + case 178: { + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMetadata().getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00400000; + break; + } // case 178 + case 184: { + eventBasedHold_ = input.readBool(); + bitField0_ |= 0x00800000; + break; + } // case 184 + case 194: { + input.readMessage( + getOwnerFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 194 + case 202: { + input.readMessage( + getCustomerEncryptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 202 + case 210: { + input.readMessage( + getCustomTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 210 + case 218: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 218 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The name of this object. Nearly any sequence of unicode
      * characters is valid. See
@@ -2595,13 +2454,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -2610,8 +2469,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of this object. Nearly any sequence of unicode
      * characters is valid. See
@@ -2623,14 +2480,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -2638,8 +2496,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of this object. Nearly any sequence of unicode
      * characters is valid. See
@@ -2651,22 +2507,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; } /** - * - * *
      * Immutable. The name of this object. Nearly any sequence of unicode
      * characters is valid. See
@@ -2678,7 +2530,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2688,8 +2539,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of this object. Nearly any sequence of unicode
      * characters is valid. See
@@ -2701,14 +2550,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -2718,22 +2565,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object bucket_ = ""; /** - * - * *
      * Immutable. The name of the bucket containing this object.
      * 
* - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; 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(); bucket_ = s; return s; @@ -2742,23 +2585,20 @@ public java.lang.String getBucket() { } } /** - * - * *
      * Immutable. The name of the bucket containing this object.
      * 
* - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -2766,39 +2606,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
      * Immutable. The name of the bucket containing this object.
      * 
* - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Immutable. The name of the bucket containing this object.
      * 
* - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBucket() { @@ -2808,23 +2637,17 @@ public Builder clearBucket() { return this; } /** - * - * *
      * Immutable. The name of the bucket containing this object.
      * 
* - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000002; @@ -2834,8 +2657,6 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * The etag of the object.
      * If included in the metadata of an update or delete request message, the
@@ -2844,13 +2665,13 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 27; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -2859,8 +2680,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * The etag of the object.
      * If included in the metadata of an update or delete request message, the
@@ -2869,14 +2688,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 27; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -2884,8 +2704,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * The etag of the object.
      * If included in the metadata of an update or delete request message, the
@@ -2894,22 +2712,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 27; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The etag of the object.
      * If included in the metadata of an update or delete request message, the
@@ -2918,7 +2732,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 27; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2928,8 +2741,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * The etag of the object.
      * If included in the metadata of an update or delete request message, the
@@ -2938,14 +2749,12 @@ public Builder clearEtag() {
      * 
* * string etag = 27; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -2953,17 +2762,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private long generation_; + private long generation_ ; /** - * - * *
      * Immutable. The content generation of this object. Used for object
      * versioning.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The generation. */ @java.lang.Override @@ -2971,15 +2777,12 @@ public long getGeneration() { return generation_; } /** - * - * *
      * Immutable. The content generation of this object. Used for object
      * versioning.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -2991,15 +2794,12 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
      * Immutable. The content generation of this object. Used for object
      * versioning.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -3009,10 +2809,8 @@ public Builder clearGeneration() { return this; } - private long metageneration_; + private long metageneration_ ; /** - * - * *
      * Output only. The version of the metadata for this generation of this
      * object. Used for preconditions and for detecting changes in metadata. A
@@ -3021,7 +2819,6 @@ public Builder clearGeneration() {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -3029,8 +2826,6 @@ public long getMetageneration() { return metageneration_; } /** - * - * *
      * Output only. The version of the metadata for this generation of this
      * object. Used for preconditions and for detecting changes in metadata. A
@@ -3039,7 +2834,6 @@ public long getMetageneration() {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The metageneration to set. * @return This builder for chaining. */ @@ -3051,8 +2845,6 @@ public Builder setMetageneration(long value) { return this; } /** - * - * *
      * Output only. The version of the metadata for this generation of this
      * object. Used for preconditions and for detecting changes in metadata. A
@@ -3061,7 +2853,6 @@ public Builder setMetageneration(long value) {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -3073,20 +2864,18 @@ public Builder clearMetageneration() { private java.lang.Object storageClass_ = ""; /** - * - * *
      * Storage class of the object.
      * 
* * string storage_class = 5; - * * @return The storageClass. */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; 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(); storageClass_ = s; return s; @@ -3095,21 +2884,20 @@ public java.lang.String getStorageClass() { } } /** - * - * *
      * Storage class of the object.
      * 
* * string storage_class = 5; - * * @return The bytes for storageClass. */ - public com.google.protobuf.ByteString getStorageClassBytes() { + public com.google.protobuf.ByteString + getStorageClassBytes() { java.lang.Object ref = storageClass_; 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); storageClass_ = b; return b; } else { @@ -3117,35 +2905,28 @@ public com.google.protobuf.ByteString getStorageClassBytes() { } } /** - * - * *
      * Storage class of the object.
      * 
* * string storage_class = 5; - * * @param value The storageClass to set. * @return This builder for chaining. */ - public Builder setStorageClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStorageClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } storageClass_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Storage class of the object.
      * 
* * string storage_class = 5; - * * @return This builder for chaining. */ public Builder clearStorageClass() { @@ -3155,21 +2936,17 @@ public Builder clearStorageClass() { return this; } /** - * - * *
      * Storage class of the object.
      * 
* * string storage_class = 5; - * * @param value The bytes for storageClass to set. * @return This builder for chaining. */ - public Builder setStorageClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStorageClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageClass_ = value; bitField0_ |= 0x00000020; @@ -3177,17 +2954,14 @@ public Builder setStorageClassBytes(com.google.protobuf.ByteString value) { return this; } - private long size_; + private long size_ ; /** - * - * *
      * Output only. Content-Length of the object data in bytes, matching
      * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
      * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The size. */ @java.lang.Override @@ -3195,15 +2969,12 @@ public long getSize() { return size_; } /** - * - * *
      * Output only. Content-Length of the object data in bytes, matching
      * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
      * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The size to set. * @return This builder for chaining. */ @@ -3215,15 +2986,12 @@ public Builder setSize(long value) { return this; } /** - * - * *
      * Output only. Content-Length of the object data in bytes, matching
      * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
      * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSize() { @@ -3235,21 +3003,19 @@ public Builder clearSize() { private java.lang.Object contentEncoding_ = ""; /** - * - * *
      * Content-Encoding of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
      * 
* * string content_encoding = 7; - * * @return The contentEncoding. */ public java.lang.String getContentEncoding() { java.lang.Object ref = contentEncoding_; 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(); contentEncoding_ = s; return s; @@ -3258,22 +3024,21 @@ public java.lang.String getContentEncoding() { } } /** - * - * *
      * Content-Encoding of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
      * 
* * string content_encoding = 7; - * * @return The bytes for contentEncoding. */ - public com.google.protobuf.ByteString getContentEncodingBytes() { + public com.google.protobuf.ByteString + getContentEncodingBytes() { java.lang.Object ref = contentEncoding_; 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); contentEncoding_ = b; return b; } else { @@ -3281,37 +3046,30 @@ public com.google.protobuf.ByteString getContentEncodingBytes() { } } /** - * - * *
      * Content-Encoding of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
      * 
* * string content_encoding = 7; - * * @param value The contentEncoding to set. * @return This builder for chaining. */ - public Builder setContentEncoding(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentEncoding( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } contentEncoding_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Content-Encoding of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
      * 
* * string content_encoding = 7; - * * @return This builder for chaining. */ public Builder clearContentEncoding() { @@ -3321,22 +3079,18 @@ public Builder clearContentEncoding() { return this; } /** - * - * *
      * Content-Encoding of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
      * 
* * string content_encoding = 7; - * * @param value The bytes for contentEncoding to set. * @return This builder for chaining. */ - public Builder setContentEncodingBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentEncodingBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentEncoding_ = value; bitField0_ |= 0x00000080; @@ -3346,21 +3100,19 @@ public Builder setContentEncodingBytes(com.google.protobuf.ByteString value) { private java.lang.Object contentDisposition_ = ""; /** - * - * *
      * Content-Disposition of the object data, matching
      * [https://tools.ietf.org/html/rfc6266][RFC 6266].
      * 
* * string content_disposition = 8; - * * @return The contentDisposition. */ public java.lang.String getContentDisposition() { java.lang.Object ref = contentDisposition_; 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(); contentDisposition_ = s; return s; @@ -3369,22 +3121,21 @@ public java.lang.String getContentDisposition() { } } /** - * - * *
      * Content-Disposition of the object data, matching
      * [https://tools.ietf.org/html/rfc6266][RFC 6266].
      * 
* * string content_disposition = 8; - * * @return The bytes for contentDisposition. */ - public com.google.protobuf.ByteString getContentDispositionBytes() { + public com.google.protobuf.ByteString + getContentDispositionBytes() { java.lang.Object ref = contentDisposition_; 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); contentDisposition_ = b; return b; } else { @@ -3392,37 +3143,30 @@ public com.google.protobuf.ByteString getContentDispositionBytes() { } } /** - * - * *
      * Content-Disposition of the object data, matching
      * [https://tools.ietf.org/html/rfc6266][RFC 6266].
      * 
* * string content_disposition = 8; - * * @param value The contentDisposition to set. * @return This builder for chaining. */ - public Builder setContentDisposition(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentDisposition( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } contentDisposition_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Content-Disposition of the object data, matching
      * [https://tools.ietf.org/html/rfc6266][RFC 6266].
      * 
* * string content_disposition = 8; - * * @return This builder for chaining. */ public Builder clearContentDisposition() { @@ -3432,22 +3176,18 @@ public Builder clearContentDisposition() { return this; } /** - * - * *
      * Content-Disposition of the object data, matching
      * [https://tools.ietf.org/html/rfc6266][RFC 6266].
      * 
* * string content_disposition = 8; - * * @param value The bytes for contentDisposition to set. * @return This builder for chaining. */ - public Builder setContentDispositionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentDispositionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentDisposition_ = value; bitField0_ |= 0x00000100; @@ -3457,8 +3197,6 @@ public Builder setContentDispositionBytes(com.google.protobuf.ByteString value) private java.lang.Object cacheControl_ = ""; /** - * - * *
      * Cache-Control directive for the object data, matching
      * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
@@ -3467,13 +3205,13 @@ public Builder setContentDispositionBytes(com.google.protobuf.ByteString value)
      * 
* * string cache_control = 9; - * * @return The cacheControl. */ public java.lang.String getCacheControl() { java.lang.Object ref = cacheControl_; 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(); cacheControl_ = s; return s; @@ -3482,8 +3220,6 @@ public java.lang.String getCacheControl() { } } /** - * - * *
      * Cache-Control directive for the object data, matching
      * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
@@ -3492,14 +3228,15 @@ public java.lang.String getCacheControl() {
      * 
* * string cache_control = 9; - * * @return The bytes for cacheControl. */ - public com.google.protobuf.ByteString getCacheControlBytes() { + public com.google.protobuf.ByteString + getCacheControlBytes() { java.lang.Object ref = cacheControl_; 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); cacheControl_ = b; return b; } else { @@ -3507,8 +3244,6 @@ public com.google.protobuf.ByteString getCacheControlBytes() { } } /** - * - * *
      * Cache-Control directive for the object data, matching
      * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
@@ -3517,22 +3252,18 @@ public com.google.protobuf.ByteString getCacheControlBytes() {
      * 
* * string cache_control = 9; - * * @param value The cacheControl to set. * @return This builder for chaining. */ - public Builder setCacheControl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCacheControl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cacheControl_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Cache-Control directive for the object data, matching
      * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
@@ -3541,7 +3272,6 @@ public Builder setCacheControl(java.lang.String value) {
      * 
* * string cache_control = 9; - * * @return This builder for chaining. */ public Builder clearCacheControl() { @@ -3551,8 +3281,6 @@ public Builder clearCacheControl() { return this; } /** - * - * *
      * Cache-Control directive for the object data, matching
      * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
@@ -3561,14 +3289,12 @@ public Builder clearCacheControl() {
      * 
* * string cache_control = 9; - * * @param value The bytes for cacheControl to set. * @return This builder for chaining. */ - public Builder setCacheControlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCacheControlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cacheControl_ = value; bitField0_ |= 0x00000200; @@ -3577,24 +3303,18 @@ public Builder setCacheControlBytes(com.google.protobuf.ByteString value) { } private java.util.List acl_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAclIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { acl_ = new java.util.ArrayList(acl_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.ObjectAccessControl, - com.google.storage.v2.ObjectAccessControl.Builder, - com.google.storage.v2.ObjectAccessControlOrBuilder> - aclBuilder_; + com.google.storage.v2.ObjectAccessControl, com.google.storage.v2.ObjectAccessControl.Builder, com.google.storage.v2.ObjectAccessControlOrBuilder> aclBuilder_; /** - * - * *
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3611,8 +3331,6 @@ public java.util.List getAclList() {
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3629,8 +3347,6 @@ public int getAclCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3647,8 +3363,6 @@ public com.google.storage.v2.ObjectAccessControl getAcl(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3657,7 +3371,8 @@ public com.google.storage.v2.ObjectAccessControl getAcl(int index) {
      *
      * repeated .google.storage.v2.ObjectAccessControl acl = 10;
      */
-    public Builder setAcl(int index, com.google.storage.v2.ObjectAccessControl value) {
+    public Builder setAcl(
+        int index, com.google.storage.v2.ObjectAccessControl value) {
       if (aclBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3671,8 +3386,6 @@ public Builder setAcl(int index, com.google.storage.v2.ObjectAccessControl value
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3693,8 +3406,6 @@ public Builder setAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3717,8 +3428,6 @@ public Builder addAcl(com.google.storage.v2.ObjectAccessControl value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3727,7 +3436,8 @@ public Builder addAcl(com.google.storage.v2.ObjectAccessControl value) {
      *
      * repeated .google.storage.v2.ObjectAccessControl acl = 10;
      */
-    public Builder addAcl(int index, com.google.storage.v2.ObjectAccessControl value) {
+    public Builder addAcl(
+        int index, com.google.storage.v2.ObjectAccessControl value) {
       if (aclBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3741,8 +3451,6 @@ public Builder addAcl(int index, com.google.storage.v2.ObjectAccessControl value
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3751,7 +3459,8 @@ public Builder addAcl(int index, com.google.storage.v2.ObjectAccessControl value
      *
      * repeated .google.storage.v2.ObjectAccessControl acl = 10;
      */
-    public Builder addAcl(com.google.storage.v2.ObjectAccessControl.Builder builderForValue) {
+    public Builder addAcl(
+        com.google.storage.v2.ObjectAccessControl.Builder builderForValue) {
       if (aclBuilder_ == null) {
         ensureAclIsMutable();
         acl_.add(builderForValue.build());
@@ -3762,8 +3471,6 @@ public Builder addAcl(com.google.storage.v2.ObjectAccessControl.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3784,8 +3491,6 @@ public Builder addAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3798,7 +3503,8 @@ public Builder addAllAcl(
         java.lang.Iterable values) {
       if (aclBuilder_ == null) {
         ensureAclIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, acl_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, acl_);
         onChanged();
       } else {
         aclBuilder_.addAllMessages(values);
@@ -3806,8 +3512,6 @@ public Builder addAllAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3827,8 +3531,6 @@ public Builder clearAcl() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3848,8 +3550,6 @@ public Builder removeAcl(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3858,12 +3558,11 @@ public Builder removeAcl(int index) {
      *
      * repeated .google.storage.v2.ObjectAccessControl acl = 10;
      */
-    public com.google.storage.v2.ObjectAccessControl.Builder getAclBuilder(int index) {
+    public com.google.storage.v2.ObjectAccessControl.Builder getAclBuilder(
+        int index) {
       return getAclFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3872,16 +3571,14 @@ public com.google.storage.v2.ObjectAccessControl.Builder getAclBuilder(int index
      *
      * repeated .google.storage.v2.ObjectAccessControl acl = 10;
      */
-    public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(int index) {
+    public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
+        int index) {
       if (aclBuilder_ == null) {
-        return acl_.get(index);
-      } else {
+        return acl_.get(index);  } else {
         return aclBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3890,8 +3587,8 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(int in
      *
      * repeated .google.storage.v2.ObjectAccessControl acl = 10;
      */
-    public java.util.List
-        getAclOrBuilderList() {
+    public java.util.List 
+         getAclOrBuilderList() {
       if (aclBuilder_ != null) {
         return aclBuilder_.getMessageOrBuilderList();
       } else {
@@ -3899,8 +3596,6 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(int in
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3910,12 +3605,10 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(int in
      * repeated .google.storage.v2.ObjectAccessControl acl = 10;
      */
     public com.google.storage.v2.ObjectAccessControl.Builder addAclBuilder() {
-      return getAclFieldBuilder()
-          .addBuilder(com.google.storage.v2.ObjectAccessControl.getDefaultInstance());
+      return getAclFieldBuilder().addBuilder(
+          com.google.storage.v2.ObjectAccessControl.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3924,13 +3617,12 @@ public com.google.storage.v2.ObjectAccessControl.Builder addAclBuilder() {
      *
      * repeated .google.storage.v2.ObjectAccessControl acl = 10;
      */
-    public com.google.storage.v2.ObjectAccessControl.Builder addAclBuilder(int index) {
-      return getAclFieldBuilder()
-          .addBuilder(index, com.google.storage.v2.ObjectAccessControl.getDefaultInstance());
+    public com.google.storage.v2.ObjectAccessControl.Builder addAclBuilder(
+        int index) {
+      return getAclFieldBuilder().addBuilder(
+          index, com.google.storage.v2.ObjectAccessControl.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3939,22 +3631,20 @@ public com.google.storage.v2.ObjectAccessControl.Builder addAclBuilder(int index
      *
      * repeated .google.storage.v2.ObjectAccessControl acl = 10;
      */
-    public java.util.List getAclBuilderList() {
+    public java.util.List 
+         getAclBuilderList() {
       return getAclFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.storage.v2.ObjectAccessControl,
-            com.google.storage.v2.ObjectAccessControl.Builder,
-            com.google.storage.v2.ObjectAccessControlOrBuilder>
+        com.google.storage.v2.ObjectAccessControl, com.google.storage.v2.ObjectAccessControl.Builder, com.google.storage.v2.ObjectAccessControlOrBuilder> 
         getAclFieldBuilder() {
       if (aclBuilder_ == null) {
-        aclBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.storage.v2.ObjectAccessControl,
-                com.google.storage.v2.ObjectAccessControl.Builder,
-                com.google.storage.v2.ObjectAccessControlOrBuilder>(
-                acl_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean());
+        aclBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.storage.v2.ObjectAccessControl, com.google.storage.v2.ObjectAccessControl.Builder, com.google.storage.v2.ObjectAccessControlOrBuilder>(
+                acl_,
+                ((bitField0_ & 0x00000400) != 0),
+                getParentForChildren(),
+                isClean());
         acl_ = null;
       }
       return aclBuilder_;
@@ -3962,21 +3652,19 @@ public java.util.List getAclB
 
     private java.lang.Object contentLanguage_ = "";
     /**
-     *
-     *
      * 
      * Content-Language of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
      * 
* * string content_language = 11; - * * @return The contentLanguage. */ public java.lang.String getContentLanguage() { java.lang.Object ref = contentLanguage_; 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(); contentLanguage_ = s; return s; @@ -3985,22 +3673,21 @@ public java.lang.String getContentLanguage() { } } /** - * - * *
      * Content-Language of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
      * 
* * string content_language = 11; - * * @return The bytes for contentLanguage. */ - public com.google.protobuf.ByteString getContentLanguageBytes() { + public com.google.protobuf.ByteString + getContentLanguageBytes() { java.lang.Object ref = contentLanguage_; 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); contentLanguage_ = b; return b; } else { @@ -4008,37 +3695,30 @@ public com.google.protobuf.ByteString getContentLanguageBytes() { } } /** - * - * *
      * Content-Language of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
      * 
* * string content_language = 11; - * * @param value The contentLanguage to set. * @return This builder for chaining. */ - public Builder setContentLanguage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentLanguage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } contentLanguage_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Content-Language of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
      * 
* * string content_language = 11; - * * @return This builder for chaining. */ public Builder clearContentLanguage() { @@ -4048,22 +3728,18 @@ public Builder clearContentLanguage() { return this; } /** - * - * *
      * Content-Language of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
      * 
* * string content_language = 11; - * * @param value The bytes for contentLanguage to set. * @return This builder for chaining. */ - public Builder setContentLanguageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentLanguageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentLanguage_ = value; bitField0_ |= 0x00000800; @@ -4073,61 +3749,42 @@ public Builder setContentLanguageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. If this object is noncurrent, this is the time when the object
      * became noncurrent.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Output only. If this object is noncurrent, this is the time when the object
      * became noncurrent.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. If this object is noncurrent, this is the time when the object
      * became noncurrent.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -4143,18 +3800,15 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. If this object is noncurrent, this is the time when the object
      * became noncurrent.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -4165,22 +3819,18 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. If this object is noncurrent, this is the time when the object
      * became noncurrent.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -4188,21 +3838,19 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { } else { deleteTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00001000; - onChanged(); + if (deleteTime_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } return this; } /** - * - * *
      * Output only. If this object is noncurrent, this is the time when the object
      * became noncurrent.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4215,16 +3863,12 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. If this object is noncurrent, this is the time when the object
      * became noncurrent.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00001000; @@ -4232,50 +3876,38 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. If this object is noncurrent, this is the time when the object
      * became noncurrent.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. If this object is noncurrent, this is the time when the object
      * became noncurrent.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4283,8 +3915,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object contentType_ = ""; /** - * - * *
      * Content-Type of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
@@ -4293,13 +3923,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string content_type = 13; - * * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; 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(); contentType_ = s; return s; @@ -4308,8 +3938,6 @@ public java.lang.String getContentType() { } } /** - * - * *
      * Content-Type of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
@@ -4318,14 +3946,15 @@ public java.lang.String getContentType() {
      * 
* * string content_type = 13; - * * @return The bytes for contentType. */ - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; 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); contentType_ = b; return b; } else { @@ -4333,8 +3962,6 @@ public com.google.protobuf.ByteString getContentTypeBytes() { } } /** - * - * *
      * Content-Type of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
@@ -4343,22 +3970,18 @@ public com.google.protobuf.ByteString getContentTypeBytes() {
      * 
* * string content_type = 13; - * * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } contentType_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * Content-Type of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
@@ -4367,7 +3990,6 @@ public Builder setContentType(java.lang.String value) {
      * 
* * string content_type = 13; - * * @return This builder for chaining. */ public Builder clearContentType() { @@ -4377,8 +3999,6 @@ public Builder clearContentType() { return this; } /** - * - * *
      * Content-Type of the object data, matching
      * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
@@ -4387,14 +4007,12 @@ public Builder clearContentType() {
      * 
* * string content_type = 13; - * * @param value The bytes for contentType to set. * @return This builder for chaining. */ - public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentType_ = value; bitField0_ |= 0x00002000; @@ -4404,58 +4022,39 @@ public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { 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. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.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. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4471,17 +4070,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.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 { @@ -4492,21 +4088,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -4514,20 +4106,18 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00004000; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } return this; } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00004000); @@ -4540,15 +4130,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00004000; @@ -4556,64 +4142,49 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.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. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.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_; } - private int componentCount_; + private int componentCount_ ; /** - * - * *
      * Output only. Number of underlying components that make up this object.
      * Components are accumulated by compose operations.
      * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The componentCount. */ @java.lang.Override @@ -4621,15 +4192,12 @@ public int getComponentCount() { return componentCount_; } /** - * - * *
      * Output only. Number of underlying components that make up this object.
      * Components are accumulated by compose operations.
      * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The componentCount to set. * @return This builder for chaining. */ @@ -4641,15 +4209,12 @@ public Builder setComponentCount(int value) { return this; } /** - * - * *
      * Output only. Number of underlying components that make up this object.
      * Components are accumulated by compose operations.
      * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearComponentCount() { @@ -4661,61 +4226,42 @@ public Builder clearComponentCount() { private com.google.storage.v2.ObjectChecksums checksums_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ObjectChecksums, - com.google.storage.v2.ObjectChecksums.Builder, - com.google.storage.v2.ObjectChecksumsOrBuilder> - checksumsBuilder_; + com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> checksumsBuilder_; /** - * - * *
      * Output only. Hashes for the data part of this object. This field is used
      * for output only and will be silently ignored if provided in requests.
      * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the checksums field is set. */ public boolean hasChecksums() { return ((bitField0_ & 0x00010000) != 0); } /** - * - * *
      * Output only. Hashes for the data part of this object. This field is used
      * for output only and will be silently ignored if provided in requests.
      * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The checksums. */ public com.google.storage.v2.ObjectChecksums getChecksums() { if (checksumsBuilder_ == null) { - return checksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : checksums_; + return checksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : checksums_; } else { return checksumsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Hashes for the data part of this object. This field is used
      * for output only and will be silently ignored if provided in requests.
      * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setChecksums(com.google.storage.v2.ObjectChecksums value) { if (checksumsBuilder_ == null) { @@ -4731,18 +4277,15 @@ public Builder setChecksums(com.google.storage.v2.ObjectChecksums value) { return this; } /** - * - * *
      * Output only. Hashes for the data part of this object. This field is used
      * for output only and will be silently ignored if provided in requests.
      * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setChecksums(com.google.storage.v2.ObjectChecksums.Builder builderForValue) { + public Builder setChecksums( + com.google.storage.v2.ObjectChecksums.Builder builderForValue) { if (checksumsBuilder_ == null) { checksums_ = builderForValue.build(); } else { @@ -4753,22 +4296,18 @@ public Builder setChecksums(com.google.storage.v2.ObjectChecksums.Builder builde return this; } /** - * - * *
      * Output only. Hashes for the data part of this object. This field is used
      * for output only and will be silently ignored if provided in requests.
      * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeChecksums(com.google.storage.v2.ObjectChecksums value) { if (checksumsBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && checksums_ != null - && checksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) && + checksums_ != null && + checksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) { getChecksumsBuilder().mergeFrom(value); } else { checksums_ = value; @@ -4776,21 +4315,19 @@ public Builder mergeChecksums(com.google.storage.v2.ObjectChecksums value) { } else { checksumsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00010000; - onChanged(); + if (checksums_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } return this; } /** - * - * *
      * Output only. Hashes for the data part of this object. This field is used
      * for output only and will be silently ignored if provided in requests.
      * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearChecksums() { bitField0_ = (bitField0_ & ~0x00010000); @@ -4803,16 +4340,12 @@ public Builder clearChecksums() { return this; } /** - * - * *
      * Output only. Hashes for the data part of this object. This field is used
      * for output only and will be silently ignored if provided in requests.
      * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.storage.v2.ObjectChecksums.Builder getChecksumsBuilder() { bitField0_ |= 0x00010000; @@ -4820,50 +4353,38 @@ public com.google.storage.v2.ObjectChecksums.Builder getChecksumsBuilder() { return getChecksumsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Hashes for the data part of this object. This field is used
      * for output only and will be silently ignored if provided in requests.
      * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() { if (checksumsBuilder_ != null) { return checksumsBuilder_.getMessageOrBuilder(); } else { - return checksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : checksums_; + return checksums_ == null ? + com.google.storage.v2.ObjectChecksums.getDefaultInstance() : checksums_; } } /** - * - * *
      * Output only. Hashes for the data part of this object. This field is used
      * for output only and will be silently ignored if provided in requests.
      * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ObjectChecksums, - com.google.storage.v2.ObjectChecksums.Builder, - com.google.storage.v2.ObjectChecksumsOrBuilder> + com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> getChecksumsFieldBuilder() { if (checksumsBuilder_ == null) { - checksumsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ObjectChecksums, - com.google.storage.v2.ObjectChecksums.Builder, - com.google.storage.v2.ObjectChecksumsOrBuilder>( - getChecksums(), getParentForChildren(), isClean()); + checksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>( + getChecksums(), + getParentForChildren(), + isClean()); checksums_ = null; } return checksumsBuilder_; @@ -4871,13 +4392,8 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The modification time of the object metadata.
      * Set initially to object creation time and then updated whenever any
@@ -4887,18 +4403,13 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() {
      * Object Lifecycle Configuration.
      * 
* - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00020000) != 0); } /** - * - * *
      * Output only. The modification time of the object metadata.
      * Set initially to object creation time and then updated whenever any
@@ -4908,24 +4419,17 @@ public boolean hasUpdateTime() {
      * Object Lifecycle Configuration.
      * 
* - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The modification time of the object metadata.
      * Set initially to object creation time and then updated whenever any
@@ -4935,9 +4439,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
      * Object Lifecycle Configuration.
      * 
* - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4953,8 +4455,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The modification time of the object metadata.
      * Set initially to object creation time and then updated whenever any
@@ -4964,11 +4464,10 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      * Object Lifecycle Configuration.
      * 
* - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -4979,8 +4478,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The modification time of the object metadata.
      * Set initially to object creation time and then updated whenever any
@@ -4990,15 +4487,13 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      * Object Lifecycle Configuration.
      * 
* - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00020000) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -5006,13 +4501,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00020000; - onChanged(); + if (updateTime_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } return this; } /** - * - * *
      * Output only. The modification time of the object metadata.
      * Set initially to object creation time and then updated whenever any
@@ -5022,9 +4517,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      * Object Lifecycle Configuration.
      * 
* - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00020000); @@ -5037,8 +4530,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The modification time of the object metadata.
      * Set initially to object creation time and then updated whenever any
@@ -5048,9 +4539,7 @@ public Builder clearUpdateTime() {
      * Object Lifecycle Configuration.
      * 
* - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00020000; @@ -5058,8 +4547,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The modification time of the object metadata.
      * Set initially to object creation time and then updated whenever any
@@ -5069,22 +4556,17 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      * Object Lifecycle Configuration.
      * 
* - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The modification time of the object metadata.
      * Set initially to object creation time and then updated whenever any
@@ -5094,22 +4576,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * Object Lifecycle Configuration.
      * 
* - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -5117,21 +4594,19 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object kmsKey_ = ""; /** - * - * *
      * Cloud KMS Key used to encrypt this object, if the object is encrypted by
      * such a key.
      * 
* * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; 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(); kmsKey_ = s; return s; @@ -5140,22 +4615,21 @@ public java.lang.String getKmsKey() { } } /** - * - * *
      * Cloud KMS Key used to encrypt this object, if the object is encrypted by
      * such a key.
      * 
* * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; 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); kmsKey_ = b; return b; } else { @@ -5163,37 +4637,30 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } } /** - * - * *
      * Cloud KMS Key used to encrypt this object, if the object is encrypted by
      * such a key.
      * 
* * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKey_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** - * - * *
      * Cloud KMS Key used to encrypt this object, if the object is encrypted by
      * such a key.
      * 
* * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -5203,22 +4670,18 @@ public Builder clearKmsKey() { return this; } /** - * - * *
      * Cloud KMS Key used to encrypt this object, if the object is encrypted by
      * such a key.
      * 
* * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKey_ = value; bitField0_ |= 0x00040000; @@ -5228,61 +4691,42 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp updateStorageClassTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateStorageClassTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateStorageClassTimeBuilder_; /** - * - * *
      * Output only. The time at which the object's storage class was last changed.
      * When the object is initially created, it will be set to time_created.
      * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateStorageClassTime field is set. */ public boolean hasUpdateStorageClassTime() { return ((bitField0_ & 0x00080000) != 0); } /** - * - * *
      * Output only. The time at which the object's storage class was last changed.
      * When the object is initially created, it will be set to time_created.
      * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateStorageClassTime. */ public com.google.protobuf.Timestamp getUpdateStorageClassTime() { if (updateStorageClassTimeBuilder_ == null) { - return updateStorageClassTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateStorageClassTime_; + return updateStorageClassTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; } else { return updateStorageClassTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which the object's storage class was last changed.
      * When the object is initially created, it will be set to time_created.
      * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateStorageClassTime(com.google.protobuf.Timestamp value) { if (updateStorageClassTimeBuilder_ == null) { @@ -5298,16 +4742,12 @@ public Builder setUpdateStorageClassTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the object's storage class was last changed.
      * When the object is initially created, it will be set to time_created.
      * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateStorageClassTime( com.google.protobuf.Timestamp.Builder builderForValue) { @@ -5321,22 +4761,18 @@ public Builder setUpdateStorageClassTime( return this; } /** - * - * *
      * Output only. The time at which the object's storage class was last changed.
      * When the object is initially created, it will be set to time_created.
      * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateStorageClassTime(com.google.protobuf.Timestamp value) { if (updateStorageClassTimeBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && updateStorageClassTime_ != null - && updateStorageClassTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00080000) != 0) && + updateStorageClassTime_ != null && + updateStorageClassTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateStorageClassTimeBuilder().mergeFrom(value); } else { updateStorageClassTime_ = value; @@ -5344,21 +4780,19 @@ public Builder mergeUpdateStorageClassTime(com.google.protobuf.Timestamp value) } else { updateStorageClassTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00080000; - onChanged(); + if (updateStorageClassTime_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } return this; } /** - * - * *
      * Output only. The time at which the object's storage class was last changed.
      * When the object is initially created, it will be set to time_created.
      * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateStorageClassTime() { bitField0_ = (bitField0_ & ~0x00080000); @@ -5371,16 +4805,12 @@ public Builder clearUpdateStorageClassTime() { return this; } /** - * - * *
      * Output only. The time at which the object's storage class was last changed.
      * When the object is initially created, it will be set to time_created.
      * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateStorageClassTimeBuilder() { bitField0_ |= 0x00080000; @@ -5388,59 +4818,45 @@ public com.google.protobuf.Timestamp.Builder getUpdateStorageClassTimeBuilder() return getUpdateStorageClassTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which the object's storage class was last changed.
      * When the object is initially created, it will be set to time_created.
      * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder() { if (updateStorageClassTimeBuilder_ != null) { return updateStorageClassTimeBuilder_.getMessageOrBuilder(); } else { - return updateStorageClassTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateStorageClassTime_; + return updateStorageClassTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; } } /** - * - * *
      * Output only. The time at which the object's storage class was last changed.
      * When the object is initially created, it will be set to time_created.
      * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.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> getUpdateStorageClassTimeFieldBuilder() { if (updateStorageClassTimeBuilder_ == null) { - updateStorageClassTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateStorageClassTime(), getParentForChildren(), isClean()); + updateStorageClassTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateStorageClassTime(), + getParentForChildren(), + isClean()); updateStorageClassTime_ = null; } return updateStorageClassTimeBuilder_; } - private boolean temporaryHold_; + private boolean temporaryHold_ ; /** - * - * *
      * Whether an object is under temporary hold. While this flag is set to true,
      * the object is protected against deletion and overwrites.  A common use case
@@ -5450,7 +4866,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
      * 
* * bool temporary_hold = 20; - * * @return The temporaryHold. */ @java.lang.Override @@ -5458,8 +4873,6 @@ public boolean getTemporaryHold() { return temporaryHold_; } /** - * - * *
      * Whether an object is under temporary hold. While this flag is set to true,
      * the object is protected against deletion and overwrites.  A common use case
@@ -5469,7 +4882,6 @@ public boolean getTemporaryHold() {
      * 
* * bool temporary_hold = 20; - * * @param value The temporaryHold to set. * @return This builder for chaining. */ @@ -5481,8 +4893,6 @@ public Builder setTemporaryHold(boolean value) { return this; } /** - * - * *
      * Whether an object is under temporary hold. While this flag is set to true,
      * the object is protected against deletion and overwrites.  A common use case
@@ -5492,7 +4902,6 @@ public Builder setTemporaryHold(boolean value) {
      * 
* * bool temporary_hold = 20; - * * @return This builder for chaining. */ public Builder clearTemporaryHold() { @@ -5504,13 +4913,8 @@ public Builder clearTemporaryHold() { private com.google.protobuf.Timestamp retentionExpireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - retentionExpireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> retentionExpireTimeBuilder_; /** - * - * *
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5522,15 +4926,12 @@ public Builder clearTemporaryHold() {
      * 
* * .google.protobuf.Timestamp retention_expire_time = 21; - * * @return Whether the retentionExpireTime field is set. */ public boolean hasRetentionExpireTime() { return ((bitField0_ & 0x00200000) != 0); } /** - * - * *
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5542,21 +4943,16 @@ public boolean hasRetentionExpireTime() {
      * 
* * .google.protobuf.Timestamp retention_expire_time = 21; - * * @return The retentionExpireTime. */ public com.google.protobuf.Timestamp getRetentionExpireTime() { if (retentionExpireTimeBuilder_ == null) { - return retentionExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : retentionExpireTime_; + return retentionExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : retentionExpireTime_; } else { return retentionExpireTimeBuilder_.getMessage(); } } /** - * - * *
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5583,8 +4979,6 @@ public Builder setRetentionExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5597,7 +4991,8 @@ public Builder setRetentionExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp retention_expire_time = 21;
      */
-    public Builder setRetentionExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setRetentionExpireTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (retentionExpireTimeBuilder_ == null) {
         retentionExpireTime_ = builderForValue.build();
       } else {
@@ -5608,8 +5003,6 @@ public Builder setRetentionExpireTime(com.google.protobuf.Timestamp.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5624,9 +5017,9 @@ public Builder setRetentionExpireTime(com.google.protobuf.Timestamp.Builder buil
      */
     public Builder mergeRetentionExpireTime(com.google.protobuf.Timestamp value) {
       if (retentionExpireTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00200000) != 0)
-            && retentionExpireTime_ != null
-            && retentionExpireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00200000) != 0) &&
+          retentionExpireTime_ != null &&
+          retentionExpireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getRetentionExpireTimeBuilder().mergeFrom(value);
         } else {
           retentionExpireTime_ = value;
@@ -5634,13 +5027,13 @@ public Builder mergeRetentionExpireTime(com.google.protobuf.Timestamp value) {
       } else {
         retentionExpireTimeBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00200000;
-      onChanged();
+      if (retentionExpireTime_ != null) {
+        bitField0_ |= 0x00200000;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5664,8 +5057,6 @@ public Builder clearRetentionExpireTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5684,8 +5075,6 @@ public com.google.protobuf.Timestamp.Builder getRetentionExpireTimeBuilder() {
       return getRetentionExpireTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5702,14 +5091,11 @@ public com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder()
       if (retentionExpireTimeBuilder_ != null) {
         return retentionExpireTimeBuilder_.getMessageOrBuilder();
       } else {
-        return retentionExpireTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : retentionExpireTime_;
+        return retentionExpireTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : retentionExpireTime_;
       }
     }
     /**
-     *
-     *
      * 
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5723,36 +5109,34 @@ public com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder()
      * .google.protobuf.Timestamp retention_expire_time = 21;
      */
     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> 
         getRetentionExpireTimeFieldBuilder() {
       if (retentionExpireTimeBuilder_ == null) {
-        retentionExpireTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getRetentionExpireTime(), getParentForChildren(), isClean());
+        retentionExpireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getRetentionExpireTime(),
+                getParentForChildren(),
+                isClean());
         retentionExpireTime_ = null;
       }
       return retentionExpireTimeBuilder_;
     }
 
-    private com.google.protobuf.MapField metadata_;
-
-    private com.google.protobuf.MapField internalGetMetadata() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> metadata_;
+    private com.google.protobuf.MapField
+        internalGetMetadata() {
       if (metadata_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            MetadataDefaultEntryHolder.defaultEntry);
       }
       return metadata_;
     }
-
     private com.google.protobuf.MapField
         internalGetMutableMetadata() {
       if (metadata_ == null) {
-        metadata_ =
-            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
+        metadata_ = com.google.protobuf.MapField.newMapField(
+            MetadataDefaultEntryHolder.defaultEntry);
       }
       if (!metadata_.isMutable()) {
         metadata_ = metadata_.copy();
@@ -5761,13 +5145,10 @@ private com.google.protobuf.MapField interna
       onChanged();
       return metadata_;
     }
-
     public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
-     *
-     *
      * 
      * User-provided metadata, in key/value pairs.
      * 
@@ -5775,21 +5156,20 @@ public int getMetadataCount() { * map<string, string> metadata = 22; */ @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } - /** Use {@link #getMetadataMap()} instead. */ + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** - * - * *
      * User-provided metadata, in key/value pairs.
      * 
@@ -5801,8 +5181,6 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
      * User-provided metadata, in key/value pairs.
      * 
@@ -5810,19 +5188,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 22; */ @java.lang.Override - public /* nullable */ java.lang.String getMetadataOrDefault( + public /* nullable */ +java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * User-provided metadata, in key/value pairs.
      * 
@@ -5830,83 +5206,79 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 22; */ @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00400000); - internalGetMutableMetadata().getMutableMap().clear(); + internalGetMutableMetadata().getMutableMap() + .clear(); return this; } /** - * - * *
      * User-provided metadata, in key/value pairs.
      * 
* * map<string, string> metadata = 22; */ - public Builder removeMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableMetadata().getMutableMap().remove(key); + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMetadata().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableMetadata() { + public java.util.Map + getMutableMetadata() { bitField0_ |= 0x00400000; return internalGetMutableMetadata().getMutableMap(); } /** - * - * *
      * User-provided metadata, in key/value pairs.
      * 
* * map<string, string> metadata = 22; */ - public Builder putMetadata(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableMetadata().getMutableMap().put(key, value); + public Builder putMetadata( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); bitField0_ |= 0x00400000; return this; } /** - * - * *
      * User-provided metadata, in key/value pairs.
      * 
* * map<string, string> metadata = 22; */ - public Builder putAllMetadata(java.util.Map values) { - internalGetMutableMetadata().getMutableMap().putAll(values); + public Builder putAllMetadata( + java.util.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); bitField0_ |= 0x00400000; return this; } - private boolean eventBasedHold_; + private boolean eventBasedHold_ ; /** - * - * *
      * Whether an object is under event-based hold.
      * An event-based hold is a way to force the retention of an object until
@@ -5922,7 +5294,6 @@ public Builder putAllMetadata(java.util.Map
      * 
* * optional bool event_based_hold = 23; - * * @return Whether the eventBasedHold field is set. */ @java.lang.Override @@ -5930,8 +5301,6 @@ public boolean hasEventBasedHold() { return ((bitField0_ & 0x00800000) != 0); } /** - * - * *
      * Whether an object is under event-based hold.
      * An event-based hold is a way to force the retention of an object until
@@ -5947,7 +5316,6 @@ public boolean hasEventBasedHold() {
      * 
* * optional bool event_based_hold = 23; - * * @return The eventBasedHold. */ @java.lang.Override @@ -5955,8 +5323,6 @@ public boolean getEventBasedHold() { return eventBasedHold_; } /** - * - * *
      * Whether an object is under event-based hold.
      * An event-based hold is a way to force the retention of an object until
@@ -5972,7 +5338,6 @@ public boolean getEventBasedHold() {
      * 
* * optional bool event_based_hold = 23; - * * @param value The eventBasedHold to set. * @return This builder for chaining. */ @@ -5984,8 +5349,6 @@ public Builder setEventBasedHold(boolean value) { return this; } /** - * - * *
      * Whether an object is under event-based hold.
      * An event-based hold is a way to force the retention of an object until
@@ -6001,7 +5364,6 @@ public Builder setEventBasedHold(boolean value) {
      * 
* * optional bool event_based_hold = 23; - * * @return This builder for chaining. */ public Builder clearEventBasedHold() { @@ -6013,37 +5375,26 @@ public Builder clearEventBasedHold() { private com.google.storage.v2.Owner owner_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Owner, - com.google.storage.v2.Owner.Builder, - com.google.storage.v2.OwnerOrBuilder> - ownerBuilder_; + com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder> ownerBuilder_; /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object.
      * 
* - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the owner field is set. */ public boolean hasOwner() { return ((bitField0_ & 0x01000000) != 0); } /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object.
      * 
* - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The owner. */ public com.google.storage.v2.Owner getOwner() { @@ -6054,15 +5405,12 @@ public com.google.storage.v2.Owner getOwner() { } } /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object.
      * 
* - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOwner(com.google.storage.v2.Owner value) { if (ownerBuilder_ == null) { @@ -6078,17 +5426,15 @@ public Builder setOwner(com.google.storage.v2.Owner value) { return this; } /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object.
      * 
* - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setOwner(com.google.storage.v2.Owner.Builder builderForValue) { + public Builder setOwner( + com.google.storage.v2.Owner.Builder builderForValue) { if (ownerBuilder_ == null) { owner_ = builderForValue.build(); } else { @@ -6099,21 +5445,18 @@ public Builder setOwner(com.google.storage.v2.Owner.Builder builderForValue) { return this; } /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object.
      * 
* - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeOwner(com.google.storage.v2.Owner value) { if (ownerBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) - && owner_ != null - && owner_ != com.google.storage.v2.Owner.getDefaultInstance()) { + if (((bitField0_ & 0x01000000) != 0) && + owner_ != null && + owner_ != com.google.storage.v2.Owner.getDefaultInstance()) { getOwnerBuilder().mergeFrom(value); } else { owner_ = value; @@ -6121,20 +5464,19 @@ public Builder mergeOwner(com.google.storage.v2.Owner value) { } else { ownerBuilder_.mergeFrom(value); } - bitField0_ |= 0x01000000; - onChanged(); + if (owner_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } return this; } /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object.
      * 
* - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x01000000); @@ -6147,15 +5489,12 @@ public Builder clearOwner() { return this; } /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object.
      * 
* - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.storage.v2.Owner.Builder getOwnerBuilder() { bitField0_ |= 0x01000000; @@ -6163,46 +5502,38 @@ public com.google.storage.v2.Owner.Builder getOwnerBuilder() { return getOwnerFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object.
      * 
* - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder() { if (ownerBuilder_ != null) { return ownerBuilder_.getMessageOrBuilder(); } else { - return owner_ == null ? com.google.storage.v2.Owner.getDefaultInstance() : owner_; + return owner_ == null ? + com.google.storage.v2.Owner.getDefaultInstance() : owner_; } } /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object.
      * 
* - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Owner, - com.google.storage.v2.Owner.Builder, - com.google.storage.v2.OwnerOrBuilder> + com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder> getOwnerFieldBuilder() { if (ownerBuilder_ == null) { - ownerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Owner, - com.google.storage.v2.Owner.Builder, - com.google.storage.v2.OwnerOrBuilder>( - getOwner(), getParentForChildren(), isClean()); + ownerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder>( + getOwner(), + getParentForChildren(), + isClean()); owner_ = null; } return ownerBuilder_; @@ -6210,49 +5541,36 @@ public com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder() { private com.google.storage.v2.CustomerEncryption customerEncryption_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CustomerEncryption, - com.google.storage.v2.CustomerEncryption.Builder, - com.google.storage.v2.CustomerEncryptionOrBuilder> - customerEncryptionBuilder_; + com.google.storage.v2.CustomerEncryption, com.google.storage.v2.CustomerEncryption.Builder, com.google.storage.v2.CustomerEncryptionOrBuilder> customerEncryptionBuilder_; /** - * - * *
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
      * 
* * .google.storage.v2.CustomerEncryption customer_encryption = 25; - * * @return Whether the customerEncryption field is set. */ public boolean hasCustomerEncryption() { return ((bitField0_ & 0x02000000) != 0); } /** - * - * *
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
      * 
* * .google.storage.v2.CustomerEncryption customer_encryption = 25; - * * @return The customerEncryption. */ public com.google.storage.v2.CustomerEncryption getCustomerEncryption() { if (customerEncryptionBuilder_ == null) { - return customerEncryption_ == null - ? com.google.storage.v2.CustomerEncryption.getDefaultInstance() - : customerEncryption_; + return customerEncryption_ == null ? com.google.storage.v2.CustomerEncryption.getDefaultInstance() : customerEncryption_; } else { return customerEncryptionBuilder_.getMessage(); } } /** - * - * *
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -6274,8 +5592,6 @@ public Builder setCustomerEncryption(com.google.storage.v2.CustomerEncryption va
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -6295,8 +5611,6 @@ public Builder setCustomerEncryption(
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -6306,10 +5620,9 @@ public Builder setCustomerEncryption(
      */
     public Builder mergeCustomerEncryption(com.google.storage.v2.CustomerEncryption value) {
       if (customerEncryptionBuilder_ == null) {
-        if (((bitField0_ & 0x02000000) != 0)
-            && customerEncryption_ != null
-            && customerEncryption_
-                != com.google.storage.v2.CustomerEncryption.getDefaultInstance()) {
+        if (((bitField0_ & 0x02000000) != 0) &&
+          customerEncryption_ != null &&
+          customerEncryption_ != com.google.storage.v2.CustomerEncryption.getDefaultInstance()) {
           getCustomerEncryptionBuilder().mergeFrom(value);
         } else {
           customerEncryption_ = value;
@@ -6317,13 +5630,13 @@ public Builder mergeCustomerEncryption(com.google.storage.v2.CustomerEncryption
       } else {
         customerEncryptionBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x02000000;
-      onChanged();
+      if (customerEncryption_ != null) {
+        bitField0_ |= 0x02000000;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -6342,8 +5655,6 @@ public Builder clearCustomerEncryption() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -6357,8 +5668,6 @@ public com.google.storage.v2.CustomerEncryption.Builder getCustomerEncryptionBui
       return getCustomerEncryptionFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -6370,14 +5679,11 @@ public com.google.storage.v2.CustomerEncryptionOrBuilder getCustomerEncryptionOr
       if (customerEncryptionBuilder_ != null) {
         return customerEncryptionBuilder_.getMessageOrBuilder();
       } else {
-        return customerEncryption_ == null
-            ? com.google.storage.v2.CustomerEncryption.getDefaultInstance()
-            : customerEncryption_;
+        return customerEncryption_ == null ?
+            com.google.storage.v2.CustomerEncryption.getDefaultInstance() : customerEncryption_;
       }
     }
     /**
-     *
-     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -6386,17 +5692,14 @@ public com.google.storage.v2.CustomerEncryptionOrBuilder getCustomerEncryptionOr
      * .google.storage.v2.CustomerEncryption customer_encryption = 25;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.CustomerEncryption,
-            com.google.storage.v2.CustomerEncryption.Builder,
-            com.google.storage.v2.CustomerEncryptionOrBuilder>
+        com.google.storage.v2.CustomerEncryption, com.google.storage.v2.CustomerEncryption.Builder, com.google.storage.v2.CustomerEncryptionOrBuilder> 
         getCustomerEncryptionFieldBuilder() {
       if (customerEncryptionBuilder_ == null) {
-        customerEncryptionBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.CustomerEncryption,
-                com.google.storage.v2.CustomerEncryption.Builder,
-                com.google.storage.v2.CustomerEncryptionOrBuilder>(
-                getCustomerEncryption(), getParentForChildren(), isClean());
+        customerEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.CustomerEncryption, com.google.storage.v2.CustomerEncryption.Builder, com.google.storage.v2.CustomerEncryptionOrBuilder>(
+                getCustomerEncryption(),
+                getParentForChildren(),
+                isClean());
         customerEncryption_ = null;
       }
       return customerEncryptionBuilder_;
@@ -6404,47 +5707,34 @@ public com.google.storage.v2.CustomerEncryptionOrBuilder getCustomerEncryptionOr
 
     private com.google.protobuf.Timestamp customTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        customTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> customTimeBuilder_;
     /**
-     *
-     *
      * 
      * A user-specified timestamp set on an object.
      * 
* * .google.protobuf.Timestamp custom_time = 26; - * * @return Whether the customTime field is set. */ public boolean hasCustomTime() { return ((bitField0_ & 0x04000000) != 0); } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
* * .google.protobuf.Timestamp custom_time = 26; - * * @return The customTime. */ public com.google.protobuf.Timestamp getCustomTime() { if (customTimeBuilder_ == null) { - return customTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : customTime_; + return customTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : customTime_; } else { return customTimeBuilder_.getMessage(); } } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
@@ -6465,15 +5755,14 @@ public Builder setCustomTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
* * .google.protobuf.Timestamp custom_time = 26; */ - public Builder setCustomTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCustomTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (customTimeBuilder_ == null) { customTime_ = builderForValue.build(); } else { @@ -6484,8 +5773,6 @@ public Builder setCustomTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
@@ -6494,9 +5781,9 @@ public Builder setCustomTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCustomTime(com.google.protobuf.Timestamp value) { if (customTimeBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) - && customTime_ != null - && customTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x04000000) != 0) && + customTime_ != null && + customTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCustomTimeBuilder().mergeFrom(value); } else { customTime_ = value; @@ -6504,13 +5791,13 @@ public Builder mergeCustomTime(com.google.protobuf.Timestamp value) { } else { customTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x04000000; - onChanged(); + if (customTime_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } return this; } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
@@ -6528,8 +5815,6 @@ public Builder clearCustomTime() { return this; } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
@@ -6542,8 +5827,6 @@ public com.google.protobuf.Timestamp.Builder getCustomTimeBuilder() { return getCustomTimeFieldBuilder().getBuilder(); } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
@@ -6554,14 +5837,11 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() { if (customTimeBuilder_ != null) { return customTimeBuilder_.getMessageOrBuilder(); } else { - return customTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : customTime_; + return customTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : customTime_; } } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
@@ -6569,24 +5849,21 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() { * .google.protobuf.Timestamp custom_time = 26; */ 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> getCustomTimeFieldBuilder() { if (customTimeBuilder_ == null) { - customTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCustomTime(), getParentForChildren(), isClean()); + customTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCustomTime(), + getParentForChildren(), + isClean()); customTime_ = null; } return customTimeBuilder_; } - @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); } @@ -6596,12 +5873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Object) } // @@protoc_insertion_point(class_scope:google.storage.v2.Object) private static final com.google.storage.v2.Object DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Object(); } @@ -6610,27 +5887,27 @@ public static com.google.storage.v2.Object getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Object parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Object parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -6645,4 +5922,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Object getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java similarity index 74% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java index e5d8d2dcc8..e94ae57514 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * An access-control entry.
  * 
* * Protobuf type {@code google.storage.v2.ObjectAccessControl} */ -public final class ObjectAccessControl extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ObjectAccessControl extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ObjectAccessControl) ObjectAccessControlOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ObjectAccessControl.newBuilder() to construct. private ObjectAccessControl(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ObjectAccessControl() { role_ = ""; id_ = ""; @@ -50,38 +33,34 @@ private ObjectAccessControl() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectAccessControl(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectAccessControl_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectAccessControl_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ObjectAccessControl.class, - com.google.storage.v2.ObjectAccessControl.Builder.class); + com.google.storage.v2.ObjectAccessControl.class, com.google.storage.v2.ObjectAccessControl.Builder.class); } + private int bitField0_; public static final int ROLE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object role_ = ""; /** - * - * *
    * The access permission for the entity.
    * 
* * string role = 1; - * * @return The role. */ @java.lang.Override @@ -90,29 +69,29 @@ public java.lang.String getRole() { 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(); role_ = s; return s; } } /** - * - * *
    * The access permission for the entity.
    * 
* * string role = 1; - * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; 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); role_ = b; return b; } else { @@ -121,18 +100,14 @@ public com.google.protobuf.ByteString getRoleBytes() { } public static final int ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
    * The ID of the access-control entry.
    * 
* * string id = 2; - * * @return The id. */ @java.lang.Override @@ -141,29 +116,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** - * - * *
    * The ID of the access-control entry.
    * 
* * string id = 2; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -172,12 +147,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int ENTITY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** - * - * *
    * The entity holding the permission, in one of the following forms:
    * * `user-{userid}`
@@ -200,7 +172,6 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string entity = 3; - * * @return The entity. */ @java.lang.Override @@ -209,15 +180,14 @@ 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; } } /** - * - * *
    * The entity holding the permission, in one of the following forms:
    * * `user-{userid}`
@@ -240,15 +210,16 @@ public java.lang.String getEntity() {
    * 
* * string entity = 3; - * * @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 { @@ -257,19 +228,15 @@ public com.google.protobuf.ByteString getEntityBytes() { } public static final int ENTITY_ALT_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object entityAlt_ = ""; /** - * - * *
    * Output only. The alternative entity format, if exists. For project
    * entities, `project-{team}-{projectid}` format will be returned on response.
    * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ @java.lang.Override @@ -278,30 +245,30 @@ public java.lang.String getEntityAlt() { 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(); entityAlt_ = s; return s; } } /** - * - * *
    * Output only. The alternative entity format, if exists. For project
    * entities, `project-{team}-{projectid}` format will be returned on response.
    * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityAltBytes() { + public com.google.protobuf.ByteString + getEntityAltBytes() { java.lang.Object ref = entityAlt_; 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); entityAlt_ = b; return b; } else { @@ -310,18 +277,14 @@ public com.google.protobuf.ByteString getEntityAltBytes() { } public static final int ENTITY_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object entityId_ = ""; /** - * - * *
    * The ID for the entity, if any.
    * 
* * string entity_id = 4; - * * @return The entityId. */ @java.lang.Override @@ -330,29 +293,29 @@ public java.lang.String getEntityId() { 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(); entityId_ = s; return s; } } /** - * - * *
    * The ID for the entity, if any.
    * 
* * string entity_id = 4; - * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; 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); entityId_ = b; return b; } else { @@ -361,12 +324,9 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } public static final int ETAG_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * The etag of the ObjectAccessControl.
    * If included in the metadata of an update or delete request message, the
@@ -375,7 +335,6 @@ public com.google.protobuf.ByteString getEntityIdBytes() {
    * 
* * string etag = 8; - * * @return The etag. */ @java.lang.Override @@ -384,15 +343,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * The etag of the ObjectAccessControl.
    * If included in the metadata of an update or delete request message, the
@@ -401,15 +359,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 8; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -418,18 +377,14 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int EMAIL_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** - * - * *
    * The email address associated with the entity, if any.
    * 
* * string email = 5; - * * @return The email. */ @java.lang.Override @@ -438,29 +393,29 @@ public java.lang.String getEmail() { 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(); email_ = s; return s; } } /** - * - * *
    * The email address associated with the entity, if any.
    * 
* * string email = 5; - * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; 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); email_ = b; return b; } else { @@ -469,18 +424,14 @@ public com.google.protobuf.ByteString getEmailBytes() { } public static final int DOMAIN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object domain_ = ""; /** - * - * *
    * The domain associated with the entity, if any.
    * 
* * string domain = 6; - * * @return The domain. */ @java.lang.Override @@ -489,29 +440,29 @@ public java.lang.String getDomain() { 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(); domain_ = s; return s; } } /** - * - * *
    * The domain associated with the entity, if any.
    * 
* * string domain = 6; - * * @return The bytes for domain. */ @java.lang.Override - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; 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); domain_ = b; return b; } else { @@ -522,40 +473,30 @@ public com.google.protobuf.ByteString getDomainBytes() { public static final int PROJECT_TEAM_FIELD_NUMBER = 7; private com.google.storage.v2.ProjectTeam projectTeam_; /** - * - * *
    * The project team associated with the entity, if any.
    * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return Whether the projectTeam field is set. */ @java.lang.Override public boolean hasProjectTeam() { - return projectTeam_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The project team associated with the entity, if any.
    * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ @java.lang.Override public com.google.storage.v2.ProjectTeam getProjectTeam() { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } /** - * - * *
    * The project team associated with the entity, if any.
    * 
@@ -564,13 +505,10 @@ public com.google.storage.v2.ProjectTeam getProjectTeam() { */ @java.lang.Override public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -582,7 +520,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(role_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } @@ -601,7 +540,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, domain_); } - if (projectTeam_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getProjectTeam()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { @@ -637,8 +576,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_); } - if (projectTeam_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProjectTeam()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getProjectTeam()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); @@ -654,25 +594,33 @@ 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.storage.v2.ObjectAccessControl)) { return super.equals(obj); } - com.google.storage.v2.ObjectAccessControl other = - (com.google.storage.v2.ObjectAccessControl) obj; - - if (!getRole().equals(other.getRole())) return false; - if (!getId().equals(other.getId())) return false; - if (!getEntity().equals(other.getEntity())) return false; - if (!getEntityAlt().equals(other.getEntityAlt())) return false; - if (!getEntityId().equals(other.getEntityId())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getEmail().equals(other.getEmail())) return false; - if (!getDomain().equals(other.getDomain())) return false; + com.google.storage.v2.ObjectAccessControl other = (com.google.storage.v2.ObjectAccessControl) obj; + + if (!getRole() + .equals(other.getRole())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getEntity() + .equals(other.getEntity())) return false; + if (!getEntityAlt() + .equals(other.getEntityAlt())) return false; + if (!getEntityId() + .equals(other.getEntityId())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; if (hasProjectTeam() != other.hasProjectTeam()) return false; if (hasProjectTeam()) { - if (!getProjectTeam().equals(other.getProjectTeam())) return false; + if (!getProjectTeam() + .equals(other.getProjectTeam())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -710,136 +658,138 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ObjectAccessControl parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ObjectAccessControl parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ObjectAccessControl 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.storage.v2.ObjectAccessControl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ObjectAccessControl 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.storage.v2.ObjectAccessControl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ObjectAccessControl 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.storage.v2.ObjectAccessControl 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.storage.v2.ObjectAccessControl 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.storage.v2.ObjectAccessControl parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ObjectAccessControl parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ObjectAccessControl 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.storage.v2.ObjectAccessControl 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.storage.v2.ObjectAccessControl 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.storage.v2.ObjectAccessControl 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; } /** - * - * *
    * An access-control entry.
    * 
* * Protobuf type {@code google.storage.v2.ObjectAccessControl} */ - 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.storage.v2.ObjectAccessControl) com.google.storage.v2.ObjectAccessControlOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectAccessControl_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectAccessControl_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ObjectAccessControl.class, - com.google.storage.v2.ObjectAccessControl.Builder.class); + com.google.storage.v2.ObjectAccessControl.class, com.google.storage.v2.ObjectAccessControl.Builder.class); } // Construct using com.google.storage.v2.ObjectAccessControl.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getProjectTeamFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -861,9 +811,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectAccessControl_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectAccessControl_descriptor; } @java.lang.Override @@ -882,11 +832,8 @@ public com.google.storage.v2.ObjectAccessControl build() { @java.lang.Override public com.google.storage.v2.ObjectAccessControl buildPartial() { - com.google.storage.v2.ObjectAccessControl result = - new com.google.storage.v2.ObjectAccessControl(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ObjectAccessControl result = new com.google.storage.v2.ObjectAccessControl(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -917,49 +864,52 @@ private void buildPartial0(com.google.storage.v2.ObjectAccessControl result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.domain_ = domain_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000100) != 0)) { - result.projectTeam_ = - projectTeamBuilder_ == null ? projectTeam_ : projectTeamBuilder_.build(); + result.projectTeam_ = projectTeamBuilder_ == null + ? projectTeam_ + : projectTeamBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.ObjectAccessControl) { - return mergeFrom((com.google.storage.v2.ObjectAccessControl) other); + return mergeFrom((com.google.storage.v2.ObjectAccessControl)other); } else { super.mergeFrom(other); return this; @@ -1037,67 +987,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - role_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - entity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - entityId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - email_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 42 - case 50: - { - domain_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: - { - input.readMessage(getProjectTeamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 66: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 74: - { - entityAlt_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + entity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + entityId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: { + input.readMessage( + getProjectTeamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 66: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: { + entityAlt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 74 + 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) { @@ -1107,25 +1049,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object role_ = ""; /** - * - * *
      * The access permission for the entity.
      * 
* * string role = 1; - * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; 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(); role_ = s; return s; @@ -1134,21 +1073,20 @@ public java.lang.String getRole() { } } /** - * - * *
      * The access permission for the entity.
      * 
* * string role = 1; - * * @return The bytes for role. */ - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; 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); role_ = b; return b; } else { @@ -1156,35 +1094,28 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
      * The access permission for the entity.
      * 
* * string role = 1; - * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } role_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The access permission for the entity.
      * 
* * string role = 1; - * * @return This builder for chaining. */ public Builder clearRole() { @@ -1194,21 +1125,17 @@ public Builder clearRole() { return this; } /** - * - * *
      * The access permission for the entity.
      * 
* * string role = 1; - * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; bitField0_ |= 0x00000001; @@ -1218,20 +1145,18 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * The ID of the access-control entry.
      * 
* * string id = 2; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -1240,21 +1165,20 @@ public java.lang.String getId() { } } /** - * - * *
      * The ID of the access-control entry.
      * 
* * string id = 2; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -1262,35 +1186,28 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * The ID of the access-control entry.
      * 
* * string id = 2; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The ID of the access-control entry.
      * 
* * string id = 2; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1300,21 +1217,17 @@ public Builder clearId() { return this; } /** - * - * *
      * The ID of the access-control entry.
      * 
* * string id = 2; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000002; @@ -1324,8 +1237,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object entity_ = ""; /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1348,13 +1259,13 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string entity = 3; - * * @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; @@ -1363,8 +1274,6 @@ public java.lang.String getEntity() { } } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1387,14 +1296,15 @@ public java.lang.String getEntity() {
      * 
* * string entity = 3; - * * @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 { @@ -1402,8 +1312,6 @@ public com.google.protobuf.ByteString getEntityBytes() { } } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1426,22 +1334,18 @@ public com.google.protobuf.ByteString getEntityBytes() {
      * 
* * string entity = 3; - * * @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_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1464,7 +1368,6 @@ public Builder setEntity(java.lang.String value) {
      * 
* * string entity = 3; - * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1474,8 +1377,6 @@ public Builder clearEntity() { return this; } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1498,14 +1399,12 @@ public Builder clearEntity() {
      * 
* * string entity = 3; - * * @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_ |= 0x00000004; @@ -1515,21 +1414,19 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityAlt_ = ""; /** - * - * *
      * Output only. The alternative entity format, if exists. For project
      * entities, `project-{team}-{projectid}` format will be returned on response.
      * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ public java.lang.String getEntityAlt() { java.lang.Object ref = entityAlt_; 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(); entityAlt_ = s; return s; @@ -1538,22 +1435,21 @@ public java.lang.String getEntityAlt() { } } /** - * - * *
      * Output only. The alternative entity format, if exists. For project
      * entities, `project-{team}-{projectid}` format will be returned on response.
      * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ - public com.google.protobuf.ByteString getEntityAltBytes() { + public com.google.protobuf.ByteString + getEntityAltBytes() { java.lang.Object ref = entityAlt_; 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); entityAlt_ = b; return b; } else { @@ -1561,37 +1457,30 @@ public com.google.protobuf.ByteString getEntityAltBytes() { } } /** - * - * *
      * Output only. The alternative entity format, if exists. For project
      * entities, `project-{team}-{projectid}` format will be returned on response.
      * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The entityAlt to set. * @return This builder for chaining. */ - public Builder setEntityAlt(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityAlt( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entityAlt_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. The alternative entity format, if exists. For project
      * entities, `project-{team}-{projectid}` format will be returned on response.
      * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEntityAlt() { @@ -1601,22 +1490,18 @@ public Builder clearEntityAlt() { return this; } /** - * - * *
      * Output only. The alternative entity format, if exists. For project
      * entities, `project-{team}-{projectid}` format will be returned on response.
      * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for entityAlt to set. * @return This builder for chaining. */ - public Builder setEntityAltBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityAltBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityAlt_ = value; bitField0_ |= 0x00000008; @@ -1626,20 +1511,18 @@ public Builder setEntityAltBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityId_ = ""; /** - * - * *
      * The ID for the entity, if any.
      * 
* * string entity_id = 4; - * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; 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(); entityId_ = s; return s; @@ -1648,21 +1531,20 @@ public java.lang.String getEntityId() { } } /** - * - * *
      * The ID for the entity, if any.
      * 
* * string entity_id = 4; - * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; 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); entityId_ = b; return b; } else { @@ -1670,35 +1552,28 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } } /** - * - * *
      * The ID for the entity, if any.
      * 
* * string entity_id = 4; - * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entityId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The ID for the entity, if any.
      * 
* * string entity_id = 4; - * * @return This builder for chaining. */ public Builder clearEntityId() { @@ -1708,21 +1583,17 @@ public Builder clearEntityId() { return this; } /** - * - * *
      * The ID for the entity, if any.
      * 
* * string entity_id = 4; - * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityId_ = value; bitField0_ |= 0x00000010; @@ -1732,8 +1603,6 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * The etag of the ObjectAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1742,13 +1611,13 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 8; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -1757,8 +1626,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * The etag of the ObjectAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1767,14 +1634,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 8; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1782,8 +1650,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * The etag of the ObjectAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1792,22 +1658,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 8; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The etag of the ObjectAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1816,7 +1678,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 8; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1826,8 +1687,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * The etag of the ObjectAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1836,14 +1695,12 @@ public Builder clearEtag() {
      * 
* * string etag = 8; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000020; @@ -1853,20 +1710,18 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private java.lang.Object email_ = ""; /** - * - * *
      * The email address associated with the entity, if any.
      * 
* * string email = 5; - * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; 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(); email_ = s; return s; @@ -1875,21 +1730,20 @@ public java.lang.String getEmail() { } } /** - * - * *
      * The email address associated with the entity, if any.
      * 
* * string email = 5; - * * @return The bytes for email. */ - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; 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); email_ = b; return b; } else { @@ -1897,35 +1751,28 @@ public com.google.protobuf.ByteString getEmailBytes() { } } /** - * - * *
      * The email address associated with the entity, if any.
      * 
* * string email = 5; - * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } email_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * The email address associated with the entity, if any.
      * 
* * string email = 5; - * * @return This builder for chaining. */ public Builder clearEmail() { @@ -1935,21 +1782,17 @@ public Builder clearEmail() { return this; } /** - * - * *
      * The email address associated with the entity, if any.
      * 
* * string email = 5; - * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000040; @@ -1959,20 +1802,18 @@ public Builder setEmailBytes(com.google.protobuf.ByteString value) { private java.lang.Object domain_ = ""; /** - * - * *
      * The domain associated with the entity, if any.
      * 
* * string domain = 6; - * * @return The domain. */ public java.lang.String getDomain() { java.lang.Object ref = domain_; 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(); domain_ = s; return s; @@ -1981,21 +1822,20 @@ public java.lang.String getDomain() { } } /** - * - * *
      * The domain associated with the entity, if any.
      * 
* * string domain = 6; - * * @return The bytes for domain. */ - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; 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); domain_ = b; return b; } else { @@ -2003,35 +1843,28 @@ public com.google.protobuf.ByteString getDomainBytes() { } } /** - * - * *
      * The domain associated with the entity, if any.
      * 
* * string domain = 6; - * * @param value The domain to set. * @return This builder for chaining. */ - public Builder setDomain(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDomain( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } domain_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * The domain associated with the entity, if any.
      * 
* * string domain = 6; - * * @return This builder for chaining. */ public Builder clearDomain() { @@ -2041,21 +1874,17 @@ public Builder clearDomain() { return this; } /** - * - * *
      * The domain associated with the entity, if any.
      * 
* * string domain = 6; - * * @param value The bytes for domain to set. * @return This builder for chaining. */ - public Builder setDomainBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); domain_ = value; bitField0_ |= 0x00000080; @@ -2065,47 +1894,34 @@ public Builder setDomainBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.ProjectTeam projectTeam_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder> - projectTeamBuilder_; + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder> projectTeamBuilder_; /** - * - * *
      * The project team associated with the entity, if any.
      * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return Whether the projectTeam field is set. */ public boolean hasProjectTeam() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * The project team associated with the entity, if any.
      * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ public com.google.storage.v2.ProjectTeam getProjectTeam() { if (projectTeamBuilder_ == null) { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } else { return projectTeamBuilder_.getMessage(); } } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2126,15 +1942,14 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
* * .google.storage.v2.ProjectTeam project_team = 7; */ - public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderForValue) { + public Builder setProjectTeam( + com.google.storage.v2.ProjectTeam.Builder builderForValue) { if (projectTeamBuilder_ == null) { projectTeam_ = builderForValue.build(); } else { @@ -2145,8 +1960,6 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderF return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2155,9 +1968,9 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderF */ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { if (projectTeamBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && projectTeam_ != null - && projectTeam_ != com.google.storage.v2.ProjectTeam.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + projectTeam_ != null && + projectTeam_ != com.google.storage.v2.ProjectTeam.getDefaultInstance()) { getProjectTeamBuilder().mergeFrom(value); } else { projectTeam_ = value; @@ -2165,13 +1978,13 @@ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { } else { projectTeamBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (projectTeam_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2189,8 +2002,6 @@ public Builder clearProjectTeam() { return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2203,8 +2014,6 @@ public com.google.storage.v2.ProjectTeam.Builder getProjectTeamBuilder() { return getProjectTeamFieldBuilder().getBuilder(); } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2215,14 +2024,11 @@ public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { if (projectTeamBuilder_ != null) { return projectTeamBuilder_.getMessageOrBuilder(); } else { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? + com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2230,24 +2036,21 @@ public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { * .google.storage.v2.ProjectTeam project_team = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder> + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder> getProjectTeamFieldBuilder() { if (projectTeamBuilder_ == null) { - projectTeamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder>( - getProjectTeam(), getParentForChildren(), isClean()); + projectTeamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder>( + getProjectTeam(), + getParentForChildren(), + isClean()); projectTeam_ = null; } return projectTeamBuilder_; } - @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); } @@ -2257,12 +2060,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ObjectAccessControl) } // @@protoc_insertion_point(class_scope:google.storage.v2.ObjectAccessControl) private static final com.google.storage.v2.ObjectAccessControl DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ObjectAccessControl(); } @@ -2271,27 +2074,27 @@ public static com.google.storage.v2.ObjectAccessControl getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectAccessControl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ObjectAccessControl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2306,4 +2109,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ObjectAccessControl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java similarity index 81% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java index ff444643f1..591072cd57 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java @@ -1,81 +1,54 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ObjectAccessControlOrBuilder - extends +public interface ObjectAccessControlOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ObjectAccessControl) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The access permission for the entity.
    * 
* * string role = 1; - * * @return The role. */ java.lang.String getRole(); /** - * - * *
    * The access permission for the entity.
    * 
* * string role = 1; - * * @return The bytes for role. */ - com.google.protobuf.ByteString getRoleBytes(); + com.google.protobuf.ByteString + getRoleBytes(); /** - * - * *
    * The ID of the access-control entry.
    * 
* * string id = 2; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * The ID of the access-control entry.
    * 
* * string id = 2; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The entity holding the permission, in one of the following forms:
    * * `user-{userid}`
@@ -98,13 +71,10 @@ public interface ObjectAccessControlOrBuilder
    * 
* * string entity = 3; - * * @return The entity. */ java.lang.String getEntity(); /** - * - * *
    * The entity holding the permission, in one of the following forms:
    * * `user-{userid}`
@@ -127,66 +97,54 @@ public interface ObjectAccessControlOrBuilder
    * 
* * string entity = 3; - * * @return The bytes for entity. */ - com.google.protobuf.ByteString getEntityBytes(); + com.google.protobuf.ByteString + getEntityBytes(); /** - * - * *
    * Output only. The alternative entity format, if exists. For project
    * entities, `project-{team}-{projectid}` format will be returned on response.
    * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ java.lang.String getEntityAlt(); /** - * - * *
    * Output only. The alternative entity format, if exists. For project
    * entities, `project-{team}-{projectid}` format will be returned on response.
    * 
* * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ - com.google.protobuf.ByteString getEntityAltBytes(); + com.google.protobuf.ByteString + getEntityAltBytes(); /** - * - * *
    * The ID for the entity, if any.
    * 
* * string entity_id = 4; - * * @return The entityId. */ java.lang.String getEntityId(); /** - * - * *
    * The ID for the entity, if any.
    * 
* * string entity_id = 4; - * * @return The bytes for entityId. */ - com.google.protobuf.ByteString getEntityIdBytes(); + com.google.protobuf.ByteString + getEntityIdBytes(); /** - * - * *
    * The etag of the ObjectAccessControl.
    * If included in the metadata of an update or delete request message, the
@@ -195,13 +153,10 @@ public interface ObjectAccessControlOrBuilder
    * 
* * string etag = 8; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * The etag of the ObjectAccessControl.
    * If included in the metadata of an update or delete request message, the
@@ -210,88 +165,70 @@ public interface ObjectAccessControlOrBuilder
    * 
* * string etag = 8; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * The email address associated with the entity, if any.
    * 
* * string email = 5; - * * @return The email. */ java.lang.String getEmail(); /** - * - * *
    * The email address associated with the entity, if any.
    * 
* * string email = 5; - * * @return The bytes for email. */ - com.google.protobuf.ByteString getEmailBytes(); + com.google.protobuf.ByteString + getEmailBytes(); /** - * - * *
    * The domain associated with the entity, if any.
    * 
* * string domain = 6; - * * @return The domain. */ java.lang.String getDomain(); /** - * - * *
    * The domain associated with the entity, if any.
    * 
* * string domain = 6; - * * @return The bytes for domain. */ - com.google.protobuf.ByteString getDomainBytes(); + com.google.protobuf.ByteString + getDomainBytes(); /** - * - * *
    * The project team associated with the entity, if any.
    * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return Whether the projectTeam field is set. */ boolean hasProjectTeam(); /** - * - * *
    * The project team associated with the entity, if any.
    * 
* * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ com.google.storage.v2.ProjectTeam getProjectTeam(); /** - * - * *
    * The project team associated with the entity, if any.
    * 
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java similarity index 71% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java index 50e15ab395..7d48db3783 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java @@ -1,73 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Message used for storing full (not subrange) object checksums.
  * 
* * Protobuf type {@code google.storage.v2.ObjectChecksums} */ -public final class ObjectChecksums extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ObjectChecksums extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ObjectChecksums) ObjectChecksumsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ObjectChecksums.newBuilder() to construct. private ObjectChecksums(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ObjectChecksums() { md5Hash_ = 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 ObjectChecksums(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectChecksums_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ObjectChecksums.class, - com.google.storage.v2.ObjectChecksums.Builder.class); + com.google.storage.v2.ObjectChecksums.class, com.google.storage.v2.ObjectChecksums.Builder.class); } private int bitField0_; public static final int CRC32C_FIELD_NUMBER = 1; private int crc32C_ = 0; /** - * - * *
    * CRC32C digest of the object data. Computed by the Cloud Storage service for
    * all written objects.
@@ -76,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * optional fixed32 crc32c = 1; - * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -84,8 +63,6 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * CRC32C digest of the object data. Computed by the Cloud Storage service for
    * all written objects.
@@ -94,7 +71,6 @@ public boolean hasCrc32C() {
    * 
* * optional fixed32 crc32c = 1; - * * @return The crc32c. */ @java.lang.Override @@ -105,8 +81,6 @@ public int getCrc32C() { public static final int MD5_HASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString md5Hash_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * 128 bit MD5 hash of the object data.
    * For more information about using the MD5 hash, see
@@ -118,7 +92,6 @@ public int getCrc32C() {
    * 
* * bytes md5_hash = 2; - * * @return The md5Hash. */ @java.lang.Override @@ -127,7 +100,6 @@ public com.google.protobuf.ByteString getMd5Hash() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,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 (((bitField0_ & 0x00000001) != 0)) { output.writeFixed32(1, crc32C_); } @@ -156,10 +129,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFixed32Size(1, crc32C_); + size += com.google.protobuf.CodedOutputStream + .computeFixed32Size(1, crc32C_); } if (!md5Hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, md5Hash_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, md5Hash_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -169,7 +144,7 @@ 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.storage.v2.ObjectChecksums)) { return super.equals(obj); @@ -178,9 +153,11 @@ public boolean equals(final java.lang.Object obj) { if (hasCrc32C() != other.hasCrc32C()) return false; if (hasCrc32C()) { - if (getCrc32C() != other.getCrc32C()) return false; + if (getCrc32C() + != other.getCrc32C()) return false; } - if (!getMd5Hash().equals(other.getMd5Hash())) return false; + if (!getMd5Hash() + .equals(other.getMd5Hash())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -203,135 +180,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ObjectChecksums parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ObjectChecksums parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ObjectChecksums 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.storage.v2.ObjectChecksums parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.ObjectChecksums parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ObjectChecksums 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.storage.v2.ObjectChecksums parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ObjectChecksums 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.storage.v2.ObjectChecksums 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.storage.v2.ObjectChecksums 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.storage.v2.ObjectChecksums parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ObjectChecksums 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.storage.v2.ObjectChecksums 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.storage.v2.ObjectChecksums 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.storage.v2.ObjectChecksums 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; } /** - * - * *
    * Message used for storing full (not subrange) object checksums.
    * 
* * Protobuf type {@code google.storage.v2.ObjectChecksums} */ - 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.storage.v2.ObjectChecksums) com.google.storage.v2.ObjectChecksumsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectChecksums_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ObjectChecksums.class, - com.google.storage.v2.ObjectChecksums.Builder.class); + com.google.storage.v2.ObjectChecksums.class, com.google.storage.v2.ObjectChecksums.Builder.class); } // Construct using com.google.storage.v2.ObjectChecksums.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(); @@ -342,9 +316,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectChecksums_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_descriptor; } @java.lang.Override @@ -363,11 +337,8 @@ public com.google.storage.v2.ObjectChecksums build() { @java.lang.Override public com.google.storage.v2.ObjectChecksums buildPartial() { - com.google.storage.v2.ObjectChecksums result = - new com.google.storage.v2.ObjectChecksums(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ObjectChecksums result = new com.google.storage.v2.ObjectChecksums(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -389,39 +360,38 @@ private void buildPartial0(com.google.storage.v2.ObjectChecksums 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.storage.v2.ObjectChecksums) { - return mergeFrom((com.google.storage.v2.ObjectChecksums) other); + return mergeFrom((com.google.storage.v2.ObjectChecksums)other); } else { super.mergeFrom(other); return this; @@ -462,25 +432,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - crc32C_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 18: - { - md5Hash_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + crc32C_ = input.readFixed32(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: { + md5Hash_ = input.readBytes(); + 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) { @@ -490,13 +457,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int crc32C_; + private int crc32C_ ; /** - * - * *
      * CRC32C digest of the object data. Computed by the Cloud Storage service for
      * all written objects.
@@ -505,7 +469,6 @@ public Builder mergeFrom(
      * 
* * optional fixed32 crc32c = 1; - * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -513,8 +476,6 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * CRC32C digest of the object data. Computed by the Cloud Storage service for
      * all written objects.
@@ -523,7 +484,6 @@ public boolean hasCrc32C() {
      * 
* * optional fixed32 crc32c = 1; - * * @return The crc32c. */ @java.lang.Override @@ -531,8 +491,6 @@ public int getCrc32C() { return crc32C_; } /** - * - * *
      * CRC32C digest of the object data. Computed by the Cloud Storage service for
      * all written objects.
@@ -541,7 +499,6 @@ public int getCrc32C() {
      * 
* * optional fixed32 crc32c = 1; - * * @param value The crc32c to set. * @return This builder for chaining. */ @@ -553,8 +510,6 @@ public Builder setCrc32C(int value) { return this; } /** - * - * *
      * CRC32C digest of the object data. Computed by the Cloud Storage service for
      * all written objects.
@@ -563,7 +518,6 @@ public Builder setCrc32C(int value) {
      * 
* * optional fixed32 crc32c = 1; - * * @return This builder for chaining. */ public Builder clearCrc32C() { @@ -575,8 +529,6 @@ public Builder clearCrc32C() { private com.google.protobuf.ByteString md5Hash_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * 128 bit MD5 hash of the object data.
      * For more information about using the MD5 hash, see
@@ -588,7 +540,6 @@ public Builder clearCrc32C() {
      * 
* * bytes md5_hash = 2; - * * @return The md5Hash. */ @java.lang.Override @@ -596,8 +547,6 @@ public com.google.protobuf.ByteString getMd5Hash() { return md5Hash_; } /** - * - * *
      * 128 bit MD5 hash of the object data.
      * For more information about using the MD5 hash, see
@@ -609,22 +558,17 @@ public com.google.protobuf.ByteString getMd5Hash() {
      * 
* * bytes md5_hash = 2; - * * @param value The md5Hash to set. * @return This builder for chaining. */ public Builder setMd5Hash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } md5Hash_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * 128 bit MD5 hash of the object data.
      * For more information about using the MD5 hash, see
@@ -636,7 +580,6 @@ public Builder setMd5Hash(com.google.protobuf.ByteString value) {
      * 
* * bytes md5_hash = 2; - * * @return This builder for chaining. */ public Builder clearMd5Hash() { @@ -645,9 +588,9 @@ public Builder clearMd5Hash() { 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); } @@ -657,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ObjectChecksums) } // @@protoc_insertion_point(class_scope:google.storage.v2.ObjectChecksums) private static final com.google.storage.v2.ObjectChecksums DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ObjectChecksums(); } @@ -671,27 +614,27 @@ public static com.google.storage.v2.ObjectChecksums getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectChecksums parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ObjectChecksums parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -706,4 +649,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ObjectChecksums getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java similarity index 68% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java index 81db876211..f97bb490ca 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java @@ -1,31 +1,14 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ObjectChecksumsOrBuilder - extends +public interface ObjectChecksumsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ObjectChecksums) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * CRC32C digest of the object data. Computed by the Cloud Storage service for
    * all written objects.
@@ -34,13 +17,10 @@ public interface ObjectChecksumsOrBuilder
    * 
* * optional fixed32 crc32c = 1; - * * @return Whether the crc32c field is set. */ boolean hasCrc32C(); /** - * - * *
    * CRC32C digest of the object data. Computed by the Cloud Storage service for
    * all written objects.
@@ -49,14 +29,11 @@ public interface ObjectChecksumsOrBuilder
    * 
* * optional fixed32 crc32c = 1; - * * @return The crc32c. */ int getCrc32C(); /** - * - * *
    * 128 bit MD5 hash of the object data.
    * For more information about using the MD5 hash, see
@@ -68,7 +45,6 @@ public interface ObjectChecksumsOrBuilder
    * 
* * bytes md5_hash = 2; - * * @return The md5Hash. */ com.google.protobuf.ByteString getMd5Hash(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java similarity index 84% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java index 8bbf7801f3..c486c985fb 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java @@ -1,31 +1,14 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ObjectOrBuilder - extends +public interface ObjectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Object) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The name of this object. Nearly any sequence of unicode
    * characters is valid. See
@@ -37,13 +20,10 @@ public interface ObjectOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of this object. Nearly any sequence of unicode
    * characters is valid. See
@@ -55,43 +35,32 @@ public interface ObjectOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Immutable. The name of the bucket containing this object.
    * 
* - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bucket. */ java.lang.String getBucket(); /** - * - * *
    * Immutable. The name of the bucket containing this object.
    * 
* - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString + getBucketBytes(); /** - * - * *
    * The etag of the object.
    * If included in the metadata of an update or delete request message, the
@@ -100,13 +69,10 @@ public interface ObjectOrBuilder
    * 
* * string etag = 27; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * The etag of the object.
    * If included in the metadata of an update or delete request message, the
@@ -115,28 +81,23 @@ public interface ObjectOrBuilder
    * 
* * string etag = 27; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Immutable. The content generation of this object. Used for object
    * versioning.
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The generation. */ long getGeneration(); /** - * - * *
    * Output only. The version of the metadata for this generation of this
    * object. Used for preconditions and for detecting changes in metadata. A
@@ -145,107 +106,86 @@ public interface ObjectOrBuilder
    * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ long getMetageneration(); /** - * - * *
    * Storage class of the object.
    * 
* * string storage_class = 5; - * * @return The storageClass. */ java.lang.String getStorageClass(); /** - * - * *
    * Storage class of the object.
    * 
* * string storage_class = 5; - * * @return The bytes for storageClass. */ - com.google.protobuf.ByteString getStorageClassBytes(); + com.google.protobuf.ByteString + getStorageClassBytes(); /** - * - * *
    * Output only. Content-Length of the object data in bytes, matching
    * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
    * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The size. */ long getSize(); /** - * - * *
    * Content-Encoding of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
    * 
* * string content_encoding = 7; - * * @return The contentEncoding. */ java.lang.String getContentEncoding(); /** - * - * *
    * Content-Encoding of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
    * 
* * string content_encoding = 7; - * * @return The bytes for contentEncoding. */ - com.google.protobuf.ByteString getContentEncodingBytes(); + com.google.protobuf.ByteString + getContentEncodingBytes(); /** - * - * *
    * Content-Disposition of the object data, matching
    * [https://tools.ietf.org/html/rfc6266][RFC 6266].
    * 
* * string content_disposition = 8; - * * @return The contentDisposition. */ java.lang.String getContentDisposition(); /** - * - * *
    * Content-Disposition of the object data, matching
    * [https://tools.ietf.org/html/rfc6266][RFC 6266].
    * 
* * string content_disposition = 8; - * * @return The bytes for contentDisposition. */ - com.google.protobuf.ByteString getContentDispositionBytes(); + com.google.protobuf.ByteString + getContentDispositionBytes(); /** - * - * *
    * Cache-Control directive for the object data, matching
    * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
@@ -254,13 +194,10 @@ public interface ObjectOrBuilder
    * 
* * string cache_control = 9; - * * @return The cacheControl. */ java.lang.String getCacheControl(); /** - * - * *
    * Cache-Control directive for the object data, matching
    * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
@@ -269,14 +206,12 @@ public interface ObjectOrBuilder
    * 
* * string cache_control = 9; - * * @return The bytes for cacheControl. */ - com.google.protobuf.ByteString getCacheControlBytes(); + com.google.protobuf.ByteString + getCacheControlBytes(); /** - * - * *
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -285,10 +220,9 @@ public interface ObjectOrBuilder
    *
    * repeated .google.storage.v2.ObjectAccessControl acl = 10;
    */
-  java.util.List getAclList();
+  java.util.List 
+      getAclList();
   /**
-   *
-   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -299,8 +233,6 @@ public interface ObjectOrBuilder
    */
   com.google.storage.v2.ObjectAccessControl getAcl(int index);
   /**
-   *
-   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -311,8 +243,6 @@ public interface ObjectOrBuilder
    */
   int getAclCount();
   /**
-   *
-   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -321,11 +251,9 @@ public interface ObjectOrBuilder
    *
    * repeated .google.storage.v2.ObjectAccessControl acl = 10;
    */
-  java.util.List
+  java.util.List 
       getAclOrBuilderList();
   /**
-   *
-   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -334,79 +262,62 @@ public interface ObjectOrBuilder
    *
    * repeated .google.storage.v2.ObjectAccessControl acl = 10;
    */
-  com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(int index);
+  com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Content-Language of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
    * 
* * string content_language = 11; - * * @return The contentLanguage. */ java.lang.String getContentLanguage(); /** - * - * *
    * Content-Language of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
    * 
* * string content_language = 11; - * * @return The bytes for contentLanguage. */ - com.google.protobuf.ByteString getContentLanguageBytes(); + com.google.protobuf.ByteString + getContentLanguageBytes(); /** - * - * *
    * Output only. If this object is noncurrent, this is the time when the object
    * became noncurrent.
    * 
* - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. If this object is noncurrent, this is the time when the object
    * became noncurrent.
    * 
* - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. If this object is noncurrent, this is the time when the object
    * became noncurrent.
    * 
* - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Content-Type of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
@@ -415,13 +326,10 @@ public interface ObjectOrBuilder
    * 
* * string content_type = 13; - * * @return The contentType. */ java.lang.String getContentType(); /** - * - * *
    * Content-Type of the object data, matching
    * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
@@ -430,110 +338,80 @@ public interface ObjectOrBuilder
    * 
* * string content_type = 13; - * * @return The bytes for contentType. */ - com.google.protobuf.ByteString getContentTypeBytes(); + com.google.protobuf.ByteString + getContentTypeBytes(); /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Number of underlying components that make up this object.
    * Components are accumulated by compose operations.
    * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The componentCount. */ int getComponentCount(); /** - * - * *
    * Output only. Hashes for the data part of this object. This field is used
    * for output only and will be silently ignored if provided in requests.
    * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the checksums field is set. */ boolean hasChecksums(); /** - * - * *
    * Output only. Hashes for the data part of this object. This field is used
    * for output only and will be silently ignored if provided in requests.
    * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The checksums. */ com.google.storage.v2.ObjectChecksums getChecksums(); /** - * - * *
    * Output only. Hashes for the data part of this object. This field is used
    * for output only and will be silently ignored if provided in requests.
    * 
* - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder(); /** - * - * *
    * Output only. The modification time of the object metadata.
    * Set initially to object creation time and then updated whenever any
@@ -543,15 +421,11 @@ public interface ObjectOrBuilder
    * Object Lifecycle Configuration.
    * 
* - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The modification time of the object metadata.
    * Set initially to object creation time and then updated whenever any
@@ -561,15 +435,11 @@ public interface ObjectOrBuilder
    * Object Lifecycle Configuration.
    * 
* - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The modification time of the object metadata.
    * Set initially to object creation time and then updated whenever any
@@ -579,85 +449,63 @@ public interface ObjectOrBuilder
    * Object Lifecycle Configuration.
    * 
* - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Cloud KMS Key used to encrypt this object, if the object is encrypted by
    * such a key.
    * 
* * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ java.lang.String getKmsKey(); /** - * - * *
    * Cloud KMS Key used to encrypt this object, if the object is encrypted by
    * such a key.
    * 
* * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString getKmsKeyBytes(); + com.google.protobuf.ByteString + getKmsKeyBytes(); /** - * - * *
    * Output only. The time at which the object's storage class was last changed.
    * When the object is initially created, it will be set to time_created.
    * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateStorageClassTime field is set. */ boolean hasUpdateStorageClassTime(); /** - * - * *
    * Output only. The time at which the object's storage class was last changed.
    * When the object is initially created, it will be set to time_created.
    * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateStorageClassTime. */ com.google.protobuf.Timestamp getUpdateStorageClassTime(); /** - * - * *
    * Output only. The time at which the object's storage class was last changed.
    * When the object is initially created, it will be set to time_created.
    * 
* - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder(); /** - * - * *
    * Whether an object is under temporary hold. While this flag is set to true,
    * the object is protected against deletion and overwrites.  A common use case
@@ -667,14 +515,11 @@ public interface ObjectOrBuilder
    * 
* * bool temporary_hold = 20; - * * @return The temporaryHold. */ boolean getTemporaryHold(); /** - * - * *
    * A server-determined value that specifies the earliest time that the
    * object's retention period expires.
@@ -686,13 +531,10 @@ public interface ObjectOrBuilder
    * 
* * .google.protobuf.Timestamp retention_expire_time = 21; - * * @return Whether the retentionExpireTime field is set. */ boolean hasRetentionExpireTime(); /** - * - * *
    * A server-determined value that specifies the earliest time that the
    * object's retention period expires.
@@ -704,13 +546,10 @@ public interface ObjectOrBuilder
    * 
* * .google.protobuf.Timestamp retention_expire_time = 21; - * * @return The retentionExpireTime. */ com.google.protobuf.Timestamp getRetentionExpireTime(); /** - * - * *
    * A server-determined value that specifies the earliest time that the
    * object's retention period expires.
@@ -726,8 +565,6 @@ public interface ObjectOrBuilder
   com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * User-provided metadata, in key/value pairs.
    * 
@@ -736,31 +573,30 @@ public interface ObjectOrBuilder */ int getMetadataCount(); /** - * - * *
    * User-provided metadata, in key/value pairs.
    * 
* * map<string, string> metadata = 22; */ - boolean containsMetadata(java.lang.String key); - /** Use {@link #getMetadataMap()} instead. */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Deprecated - java.util.Map getMetadata(); + java.util.Map + getMetadata(); /** - * - * *
    * User-provided metadata, in key/value pairs.
    * 
* * map<string, string> metadata = 22; */ - java.util.Map getMetadataMap(); + java.util.Map + getMetadataMap(); /** - * - * *
    * User-provided metadata, in key/value pairs.
    * 
@@ -768,24 +604,21 @@ public interface ObjectOrBuilder * map<string, string> metadata = 22; */ /* nullable */ - java.lang.String getMetadataOrDefault( +java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * User-provided metadata, in key/value pairs.
    * 
* * map<string, string> metadata = 22; */ - java.lang.String getMetadataOrThrow(java.lang.String key); + java.lang.String getMetadataOrThrow( + java.lang.String key); /** - * - * *
    * Whether an object is under event-based hold.
    * An event-based hold is a way to force the retention of an object until
@@ -801,13 +634,10 @@ java.lang.String getMetadataOrDefault(
    * 
* * optional bool event_based_hold = 23; - * * @return Whether the eventBasedHold field is set. */ boolean hasEventBasedHold(); /** - * - * *
    * Whether an object is under event-based hold.
    * An event-based hold is a way to force the retention of an object until
@@ -823,40 +653,31 @@ java.lang.String getMetadataOrDefault(
    * 
* * optional bool event_based_hold = 23; - * * @return The eventBasedHold. */ boolean getEventBasedHold(); /** - * - * *
    * Output only. The owner of the object. This will always be the uploader of
    * the object.
    * 
* * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the owner field is set. */ boolean hasOwner(); /** - * - * *
    * Output only. The owner of the object. This will always be the uploader of
    * the object.
    * 
* * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The owner. */ com.google.storage.v2.Owner getOwner(); /** - * - * *
    * Output only. The owner of the object. This will always be the uploader of
    * the object.
@@ -867,34 +688,26 @@ java.lang.String getMetadataOrDefault(
   com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder();
 
   /**
-   *
-   *
    * 
    * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
    * such a key.
    * 
* * .google.storage.v2.CustomerEncryption customer_encryption = 25; - * * @return Whether the customerEncryption field is set. */ boolean hasCustomerEncryption(); /** - * - * *
    * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
    * such a key.
    * 
* * .google.storage.v2.CustomerEncryption customer_encryption = 25; - * * @return The customerEncryption. */ com.google.storage.v2.CustomerEncryption getCustomerEncryption(); /** - * - * *
    * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
    * such a key.
@@ -905,32 +718,24 @@ java.lang.String getMetadataOrDefault(
   com.google.storage.v2.CustomerEncryptionOrBuilder getCustomerEncryptionOrBuilder();
 
   /**
-   *
-   *
    * 
    * A user-specified timestamp set on an object.
    * 
* * .google.protobuf.Timestamp custom_time = 26; - * * @return Whether the customTime field is set. */ boolean hasCustomTime(); /** - * - * *
    * A user-specified timestamp set on an object.
    * 
* * .google.protobuf.Timestamp custom_time = 26; - * * @return The customTime. */ com.google.protobuf.Timestamp getCustomTime(); /** - * - * *
    * A user-specified timestamp set on an object.
    * 
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java similarity index 68% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java index 96b5a50330..7a8add427e 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * The owner of a specific resource.
  * 
* * Protobuf type {@code google.storage.v2.Owner} */ -public final class Owner extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Owner extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Owner) OwnerOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Owner.newBuilder() to construct. private Owner(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Owner() { entity_ = ""; entityId_ = ""; @@ -44,36 +27,33 @@ private Owner() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Owner(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Owner_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.Owner.class, com.google.storage.v2.Owner.Builder.class); } public static final int ENTITY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** - * - * *
    * The entity, in the form `user-`*userId*.
    * 
* * string entity = 1; - * * @return The entity. */ @java.lang.Override @@ -82,29 +62,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; } } /** - * - * *
    * The entity, in the form `user-`*userId*.
    * 
* * string entity = 1; - * * @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 { @@ -113,18 +93,14 @@ public com.google.protobuf.ByteString getEntityBytes() { } public static final int ENTITY_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object entityId_ = ""; /** - * - * *
    * The ID for the entity.
    * 
* * string entity_id = 2; - * * @return The entityId. */ @java.lang.Override @@ -133,29 +109,29 @@ public java.lang.String getEntityId() { 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(); entityId_ = s; return s; } } /** - * - * *
    * The ID for the entity.
    * 
* * string entity_id = 2; - * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; 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); entityId_ = b; return b; } else { @@ -164,7 +140,6 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,7 +151,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(entity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_); } @@ -206,15 +182,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.storage.v2.Owner)) { return super.equals(obj); } com.google.storage.v2.Owner other = (com.google.storage.v2.Owner) obj; - if (!getEntity().equals(other.getEntity())) return false; - if (!getEntityId().equals(other.getEntityId())) return false; + if (!getEntity() + .equals(other.getEntity())) return false; + if (!getEntityId() + .equals(other.getEntityId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,133 +213,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Owner parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Owner parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Owner 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.storage.v2.Owner parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.Owner parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Owner 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.storage.v2.Owner parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Owner 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.storage.v2.Owner 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.storage.v2.Owner 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.storage.v2.Owner parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Owner 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.storage.v2.Owner parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.storage.v2.Owner parseFrom( + com.google.protobuf.CodedInputStream 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.storage.v2.Owner 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.storage.v2.Owner 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 owner of a specific resource.
    * 
* * Protobuf type {@code google.storage.v2.Owner} */ - 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.storage.v2.Owner) com.google.storage.v2.OwnerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Owner_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.Owner.class, com.google.storage.v2.Owner.Builder.class); } // Construct using com.google.storage.v2.Owner.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(); @@ -372,7 +349,8 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_descriptor; } @@ -393,9 +371,7 @@ public com.google.storage.v2.Owner build() { @java.lang.Override public com.google.storage.v2.Owner buildPartial() { com.google.storage.v2.Owner result = new com.google.storage.v2.Owner(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -414,39 +390,38 @@ private void buildPartial0(com.google.storage.v2.Owner 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.storage.v2.Owner) { - return mergeFrom((com.google.storage.v2.Owner) other); + return mergeFrom((com.google.storage.v2.Owner)other); } else { super.mergeFrom(other); return this; @@ -491,25 +466,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - entity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - entityId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + entity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + entityId_ = 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) { @@ -519,25 +491,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object entity_ = ""; /** - * - * *
      * The entity, in the form `user-`*userId*.
      * 
* * string entity = 1; - * * @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; @@ -546,21 +515,20 @@ public java.lang.String getEntity() { } } /** - * - * *
      * The entity, in the form `user-`*userId*.
      * 
* * string entity = 1; - * * @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 { @@ -568,35 +536,28 @@ public com.google.protobuf.ByteString getEntityBytes() { } } /** - * - * *
      * The entity, in the form `user-`*userId*.
      * 
* * string entity = 1; - * * @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_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The entity, in the form `user-`*userId*.
      * 
* * string entity = 1; - * * @return This builder for chaining. */ public Builder clearEntity() { @@ -606,21 +567,17 @@ public Builder clearEntity() { return this; } /** - * - * *
      * The entity, in the form `user-`*userId*.
      * 
* * string entity = 1; - * * @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_ |= 0x00000001; @@ -630,20 +587,18 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityId_ = ""; /** - * - * *
      * The ID for the entity.
      * 
* * string entity_id = 2; - * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; 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(); entityId_ = s; return s; @@ -652,21 +607,20 @@ public java.lang.String getEntityId() { } } /** - * - * *
      * The ID for the entity.
      * 
* * string entity_id = 2; - * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; 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); entityId_ = b; return b; } else { @@ -674,35 +628,28 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } } /** - * - * *
      * The ID for the entity.
      * 
* * string entity_id = 2; - * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entityId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The ID for the entity.
      * 
* * string entity_id = 2; - * * @return This builder for chaining. */ public Builder clearEntityId() { @@ -712,30 +659,26 @@ public Builder clearEntityId() { return this; } /** - * - * *
      * The ID for the entity.
      * 
* * string entity_id = 2; - * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityId_ = value; bitField0_ |= 0x00000002; 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); } @@ -745,12 +688,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Owner) } // @@protoc_insertion_point(class_scope:google.storage.v2.Owner) private static final com.google.storage.v2.Owner DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Owner(); } @@ -759,27 +702,27 @@ public static com.google.storage.v2.Owner getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Owner parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 Owner parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -794,4 +737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Owner getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java similarity index 53% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java index 0cfbeb1148..2c4fa1b729 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java @@ -1,75 +1,50 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface OwnerOrBuilder - extends +public interface OwnerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Owner) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The entity, in the form `user-`*userId*.
    * 
* * string entity = 1; - * * @return The entity. */ java.lang.String getEntity(); /** - * - * *
    * The entity, in the form `user-`*userId*.
    * 
* * string entity = 1; - * * @return The bytes for entity. */ - com.google.protobuf.ByteString getEntityBytes(); + com.google.protobuf.ByteString + getEntityBytes(); /** - * - * *
    * The ID for the entity.
    * 
* * string entity_id = 2; - * * @return The entityId. */ java.lang.String getEntityId(); /** - * - * *
    * The ID for the entity.
    * 
* * string entity_id = 2; - * * @return The bytes for entityId. */ - com.google.protobuf.ByteString getEntityIdBytes(); + com.google.protobuf.ByteString + getEntityIdBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java similarity index 100% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java similarity index 66% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java index 327cdef4fd..9c34fa7e5f 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Represents the Viewers, Editors, or Owners of a given project.
  * 
* * Protobuf type {@code google.storage.v2.ProjectTeam} */ -public final class ProjectTeam extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProjectTeam extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ProjectTeam) ProjectTeamOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProjectTeam.newBuilder() to construct. private ProjectTeam(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProjectTeam() { projectNumber_ = ""; team_ = ""; @@ -44,38 +27,33 @@ private ProjectTeam() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProjectTeam(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ProjectTeam_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ProjectTeam_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ProjectTeam.class, - com.google.storage.v2.ProjectTeam.Builder.class); + com.google.storage.v2.ProjectTeam.class, com.google.storage.v2.ProjectTeam.Builder.class); } public static final int PROJECT_NUMBER_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectNumber_ = ""; /** - * - * *
    * The project number.
    * 
* * string project_number = 1; - * * @return The projectNumber. */ @java.lang.Override @@ -84,29 +62,29 @@ public java.lang.String getProjectNumber() { 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(); projectNumber_ = s; return s; } } /** - * - * *
    * The project number.
    * 
* * string project_number = 1; - * * @return The bytes for projectNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectNumberBytes() { + public com.google.protobuf.ByteString + getProjectNumberBytes() { java.lang.Object ref = projectNumber_; 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); projectNumber_ = b; return b; } else { @@ -115,18 +93,14 @@ public com.google.protobuf.ByteString getProjectNumberBytes() { } public static final int TEAM_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object team_ = ""; /** - * - * *
    * The team.
    * 
* * string team = 2; - * * @return The team. */ @java.lang.Override @@ -135,29 +109,29 @@ public java.lang.String getTeam() { 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(); team_ = s; return s; } } /** - * - * *
    * The team.
    * 
* * string team = 2; - * * @return The bytes for team. */ @java.lang.Override - public com.google.protobuf.ByteString getTeamBytes() { + public com.google.protobuf.ByteString + getTeamBytes() { java.lang.Object ref = team_; 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); team_ = b; return b; } else { @@ -166,7 +140,6 @@ public com.google.protobuf.ByteString getTeamBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +151,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(projectNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectNumber_); } @@ -208,15 +182,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.storage.v2.ProjectTeam)) { return super.equals(obj); } com.google.storage.v2.ProjectTeam other = (com.google.storage.v2.ProjectTeam) obj; - if (!getProjectNumber().equals(other.getProjectNumber())) return false; - if (!getTeam().equals(other.getTeam())) return false; + if (!getProjectNumber() + .equals(other.getProjectNumber())) return false; + if (!getTeam() + .equals(other.getTeam())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,135 +213,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ProjectTeam parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ProjectTeam parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ProjectTeam 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.storage.v2.ProjectTeam parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.ProjectTeam parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ProjectTeam 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.storage.v2.ProjectTeam parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ProjectTeam 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.storage.v2.ProjectTeam 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.storage.v2.ProjectTeam 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.storage.v2.ProjectTeam parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ProjectTeam 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.storage.v2.ProjectTeam 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.storage.v2.ProjectTeam 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.storage.v2.ProjectTeam 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; } /** - * - * *
    * Represents the Viewers, Editors, or Owners of a given project.
    * 
* * Protobuf type {@code google.storage.v2.ProjectTeam} */ - 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.storage.v2.ProjectTeam) com.google.storage.v2.ProjectTeamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ProjectTeam_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ProjectTeam_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ProjectTeam.class, - com.google.storage.v2.ProjectTeam.Builder.class); + com.google.storage.v2.ProjectTeam.class, com.google.storage.v2.ProjectTeam.Builder.class); } // Construct using com.google.storage.v2.ProjectTeam.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(); @@ -376,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ProjectTeam_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ProjectTeam_descriptor; } @java.lang.Override @@ -398,9 +371,7 @@ public com.google.storage.v2.ProjectTeam build() { @java.lang.Override public com.google.storage.v2.ProjectTeam buildPartial() { com.google.storage.v2.ProjectTeam result = new com.google.storage.v2.ProjectTeam(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -419,39 +390,38 @@ private void buildPartial0(com.google.storage.v2.ProjectTeam 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.storage.v2.ProjectTeam) { - return mergeFrom((com.google.storage.v2.ProjectTeam) other); + return mergeFrom((com.google.storage.v2.ProjectTeam)other); } else { super.mergeFrom(other); return this; @@ -496,25 +466,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectNumber_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - team_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + team_ = 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) { @@ -524,25 +491,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectNumber_ = ""; /** - * - * *
      * The project number.
      * 
* * string project_number = 1; - * * @return The projectNumber. */ public java.lang.String getProjectNumber() { java.lang.Object ref = projectNumber_; 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(); projectNumber_ = s; return s; @@ -551,21 +515,20 @@ public java.lang.String getProjectNumber() { } } /** - * - * *
      * The project number.
      * 
* * string project_number = 1; - * * @return The bytes for projectNumber. */ - public com.google.protobuf.ByteString getProjectNumberBytes() { + public com.google.protobuf.ByteString + getProjectNumberBytes() { java.lang.Object ref = projectNumber_; 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); projectNumber_ = b; return b; } else { @@ -573,35 +536,28 @@ public com.google.protobuf.ByteString getProjectNumberBytes() { } } /** - * - * *
      * The project number.
      * 
* * string project_number = 1; - * * @param value The projectNumber to set. * @return This builder for chaining. */ - public Builder setProjectNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectNumber( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectNumber_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The project number.
      * 
* * string project_number = 1; - * * @return This builder for chaining. */ public Builder clearProjectNumber() { @@ -611,21 +567,17 @@ public Builder clearProjectNumber() { return this; } /** - * - * *
      * The project number.
      * 
* * string project_number = 1; - * * @param value The bytes for projectNumber to set. * @return This builder for chaining. */ - public Builder setProjectNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectNumber_ = value; bitField0_ |= 0x00000001; @@ -635,20 +587,18 @@ public Builder setProjectNumberBytes(com.google.protobuf.ByteString value) { private java.lang.Object team_ = ""; /** - * - * *
      * The team.
      * 
* * string team = 2; - * * @return The team. */ public java.lang.String getTeam() { java.lang.Object ref = team_; 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(); team_ = s; return s; @@ -657,21 +607,20 @@ public java.lang.String getTeam() { } } /** - * - * *
      * The team.
      * 
* * string team = 2; - * * @return The bytes for team. */ - public com.google.protobuf.ByteString getTeamBytes() { + public com.google.protobuf.ByteString + getTeamBytes() { java.lang.Object ref = team_; 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); team_ = b; return b; } else { @@ -679,35 +628,28 @@ public com.google.protobuf.ByteString getTeamBytes() { } } /** - * - * *
      * The team.
      * 
* * string team = 2; - * * @param value The team to set. * @return This builder for chaining. */ - public Builder setTeam(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTeam( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } team_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The team.
      * 
* * string team = 2; - * * @return This builder for chaining. */ public Builder clearTeam() { @@ -717,30 +659,26 @@ public Builder clearTeam() { return this; } /** - * - * *
      * The team.
      * 
* * string team = 2; - * * @param value The bytes for team to set. * @return This builder for chaining. */ - public Builder setTeamBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTeamBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); team_ = value; bitField0_ |= 0x00000002; 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); } @@ -750,12 +688,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ProjectTeam) } // @@protoc_insertion_point(class_scope:google.storage.v2.ProjectTeam) private static final com.google.storage.v2.ProjectTeam DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ProjectTeam(); } @@ -764,27 +702,27 @@ public static com.google.storage.v2.ProjectTeam getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectTeam parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ProjectTeam parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -799,4 +737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ProjectTeam getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java similarity index 51% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java index bf4ae60213..6d68e5f462 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java @@ -1,75 +1,50 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface ProjectTeamOrBuilder - extends +public interface ProjectTeamOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ProjectTeam) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The project number.
    * 
* * string project_number = 1; - * * @return The projectNumber. */ java.lang.String getProjectNumber(); /** - * - * *
    * The project number.
    * 
* * string project_number = 1; - * * @return The bytes for projectNumber. */ - com.google.protobuf.ByteString getProjectNumberBytes(); + com.google.protobuf.ByteString + getProjectNumberBytes(); /** - * - * *
    * The team.
    * 
* * string team = 2; - * * @return The team. */ java.lang.String getTeam(); /** - * - * *
    * The team.
    * 
* * string team = 2; - * * @return The bytes for team. */ - com.google.protobuf.ByteString getTeamBytes(); + com.google.protobuf.ByteString + getTeamBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java similarity index 67% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java index 0a16b8cb86..6144a3e803 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java @@ -1,81 +1,60 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request object for `QueryWriteStatus`.
  * 
* * Protobuf type {@code google.storage.v2.QueryWriteStatusRequest} */ -public final class QueryWriteStatusRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryWriteStatusRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.QueryWriteStatusRequest) QueryWriteStatusRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryWriteStatusRequest.newBuilder() to construct. private QueryWriteStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryWriteStatusRequest() { uploadId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryWriteStatusRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.QueryWriteStatusRequest.class, - com.google.storage.v2.QueryWriteStatusRequest.Builder.class); + com.google.storage.v2.QueryWriteStatusRequest.class, com.google.storage.v2.QueryWriteStatusRequest.Builder.class); } + private int bitField0_; public static final int UPLOAD_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object uploadId_ = ""; /** - * - * *
    * Required. The name of the resume token for the object whose write status is
    * being requested.
    * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uploadId. */ @java.lang.Override @@ -84,30 +63,30 @@ public java.lang.String getUploadId() { 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(); uploadId_ = s; return s; } } /** - * - * *
    * Required. The name of the resume token for the object whose write status is
    * being requested.
    * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uploadId. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; 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); uploadId_ = b; return b; } else { @@ -118,40 +97,30 @@ public com.google.protobuf.ByteString getUploadIdBytes() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 2; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { - return commonObjectRequestParams_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -159,15 +128,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,11 +144,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(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } - if (commonObjectRequestParams_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCommonObjectRequestParams()); } getUnknownFields().writeTo(output); @@ -198,10 +164,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadId_); } - if (commonObjectRequestParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getCommonObjectRequestParams()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,19 +176,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.storage.v2.QueryWriteStatusRequest)) { return super.equals(obj); } - com.google.storage.v2.QueryWriteStatusRequest other = - (com.google.storage.v2.QueryWriteStatusRequest) obj; + com.google.storage.v2.QueryWriteStatusRequest other = (com.google.storage.v2.QueryWriteStatusRequest) obj; - if (!getUploadId().equals(other.getUploadId())) return false; + if (!getUploadId() + .equals(other.getUploadId())) return false; if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -247,136 +212,138 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.QueryWriteStatusRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.QueryWriteStatusRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.QueryWriteStatusRequest 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.storage.v2.QueryWriteStatusRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.QueryWriteStatusRequest 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.storage.v2.QueryWriteStatusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.QueryWriteStatusRequest 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.storage.v2.QueryWriteStatusRequest 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.storage.v2.QueryWriteStatusRequest 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.storage.v2.QueryWriteStatusRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.QueryWriteStatusRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.QueryWriteStatusRequest 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.storage.v2.QueryWriteStatusRequest 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.storage.v2.QueryWriteStatusRequest 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.storage.v2.QueryWriteStatusRequest 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 object for `QueryWriteStatus`.
    * 
* * Protobuf type {@code google.storage.v2.QueryWriteStatusRequest} */ - 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.storage.v2.QueryWriteStatusRequest) com.google.storage.v2.QueryWriteStatusRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.QueryWriteStatusRequest.class, - com.google.storage.v2.QueryWriteStatusRequest.Builder.class); + com.google.storage.v2.QueryWriteStatusRequest.class, com.google.storage.v2.QueryWriteStatusRequest.Builder.class); } // Construct using com.google.storage.v2.QueryWriteStatusRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCommonObjectRequestParamsFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -391,9 +358,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; } @java.lang.Override @@ -412,11 +379,8 @@ public com.google.storage.v2.QueryWriteStatusRequest build() { @java.lang.Override public com.google.storage.v2.QueryWriteStatusRequest buildPartial() { - com.google.storage.v2.QueryWriteStatusRequest result = - new com.google.storage.v2.QueryWriteStatusRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.QueryWriteStatusRequest result = new com.google.storage.v2.QueryWriteStatusRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -426,51 +390,52 @@ private void buildPartial0(com.google.storage.v2.QueryWriteStatusRequest result) if (((from_bitField0_ & 0x00000001) != 0)) { result.uploadId_ = uploadId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.QueryWriteStatusRequest) { - return mergeFrom((com.google.storage.v2.QueryWriteStatusRequest) other); + return mergeFrom((com.google.storage.v2.QueryWriteStatusRequest)other); } else { super.mergeFrom(other); return this; @@ -513,26 +478,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - uploadId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + uploadId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().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,26 +505,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object uploadId_ = ""; /** - * - * *
      * Required. The name of the resume token for the object whose write status is
      * being requested.
      * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uploadId. */ public java.lang.String getUploadId() { java.lang.Object ref = uploadId_; 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(); uploadId_ = s; return s; @@ -570,22 +530,21 @@ public java.lang.String getUploadId() { } } /** - * - * *
      * Required. The name of the resume token for the object whose write status is
      * being requested.
      * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uploadId. */ - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; 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); uploadId_ = b; return b; } else { @@ -593,37 +552,30 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } } /** - * - * *
      * Required. The name of the resume token for the object whose write status is
      * being requested.
      * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uploadId to set. * @return This builder for chaining. */ - public Builder setUploadId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uploadId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the resume token for the object whose write status is
      * being requested.
      * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUploadId() { @@ -633,22 +585,18 @@ public Builder clearUploadId() { return this; } /** - * - * *
      * Required. The name of the resume token for the object whose write status is
      * being requested.
      * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uploadId to set. * @return This builder for chaining. */ - public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uploadId_ = value; bitField0_ |= 0x00000001; @@ -658,55 +606,41 @@ public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -720,8 +654,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -740,21 +672,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -762,13 +690,13 @@ public Builder mergeCommonObjectRequestParams( } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (commonObjectRequestParams_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -786,42 +714,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -829,24 +748,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @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 +772,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.QueryWriteStatusRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.QueryWriteStatusRequest) private static final com.google.storage.v2.QueryWriteStatusRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.QueryWriteStatusRequest(); } @@ -870,27 +786,27 @@ public static com.google.storage.v2.QueryWriteStatusRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryWriteStatusRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 QueryWriteStatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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,4 +821,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.QueryWriteStatusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java index 9807a260e6..990c48ba5b 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java @@ -1,82 +1,54 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface QueryWriteStatusRequestOrBuilder - extends +public interface QueryWriteStatusRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.QueryWriteStatusRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the resume token for the object whose write status is
    * being requested.
    * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uploadId. */ java.lang.String getUploadId(); /** - * - * *
    * Required. The name of the resume token for the object whose write status is
    * being requested.
    * 
* * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uploadId. */ - com.google.protobuf.ByteString getUploadIdBytes(); + com.google.protobuf.ByteString + getUploadIdBytes(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java similarity index 70% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java index 6fcbefe3d7..1b5e555eb0 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java @@ -1,79 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Response object for `QueryWriteStatus`.
  * 
* * Protobuf type {@code google.storage.v2.QueryWriteStatusResponse} */ -public final class QueryWriteStatusResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryWriteStatusResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.QueryWriteStatusResponse) QueryWriteStatusResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryWriteStatusResponse.newBuilder() to construct. private QueryWriteStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private QueryWriteStatusResponse() {} + private QueryWriteStatusResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryWriteStatusResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.QueryWriteStatusResponse.class, - com.google.storage.v2.QueryWriteStatusResponse.Builder.class); + com.google.storage.v2.QueryWriteStatusResponse.class, com.google.storage.v2.QueryWriteStatusResponse.Builder.class); } private int writeStatusCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object writeStatus_; - public enum WriteStatusCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PERSISTED_SIZE(1), RESOURCE(2), WRITESTATUS_NOT_SET(0); private final int value; - private WriteStatusCase(int value) { this.value = value; } @@ -89,30 +68,25 @@ public static WriteStatusCase valueOf(int value) { public static WriteStatusCase forNumber(int value) { switch (value) { - case 1: - return PERSISTED_SIZE; - case 2: - return RESOURCE; - case 0: - return WRITESTATUS_NOT_SET; - default: - return null; + case 1: return PERSISTED_SIZE; + case 2: return RESOURCE; + case 0: return WRITESTATUS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public static final int PERSISTED_SIZE_FIELD_NUMBER = 1; /** - * - * *
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. This is the correct value for the
@@ -121,7 +95,6 @@ public WriteStatusCase getWriteStatusCase() {
    * 
* * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ @java.lang.Override @@ -129,8 +102,6 @@ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. This is the correct value for the
@@ -139,7 +110,6 @@ public boolean hasPersistedSize() {
    * 
* * int64 persisted_size = 1; - * * @return The persistedSize. */ @java.lang.Override @@ -152,15 +122,12 @@ public long getPersistedSize() { public static final int RESOURCE_FIELD_NUMBER = 2; /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -168,27 +135,22 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override public com.google.storage.v2.Object getResource() { if (writeStatusCase_ == 2) { - return (com.google.storage.v2.Object) writeStatus_; + return (com.google.storage.v2.Object) writeStatus_; } return com.google.storage.v2.Object.getDefaultInstance(); } /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
@@ -199,13 +161,12 @@ public com.google.storage.v2.Object getResource() {
   @java.lang.Override
   public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
     if (writeStatusCase_ == 2) {
-      return (com.google.storage.v2.Object) writeStatus_;
+       return (com.google.storage.v2.Object) writeStatus_;
     }
     return com.google.storage.v2.Object.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -217,9 +178,11 @@ 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 (writeStatusCase_ == 1) {
-      output.writeInt64(1, (long) ((java.lang.Long) writeStatus_));
+      output.writeInt64(
+          1, (long)((java.lang.Long) writeStatus_));
     }
     if (writeStatusCase_ == 2) {
       output.writeMessage(2, (com.google.storage.v2.Object) writeStatus_);
@@ -234,14 +197,13 @@ public int getSerializedSize() {
 
     size = 0;
     if (writeStatusCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeInt64Size(
-              1, (long) ((java.lang.Long) writeStatus_));
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(
+            1, (long)((java.lang.Long) writeStatus_));
     }
     if (writeStatusCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.storage.v2.Object) writeStatus_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.storage.v2.Object) writeStatus_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -251,21 +213,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.storage.v2.QueryWriteStatusResponse)) {
       return super.equals(obj);
     }
-    com.google.storage.v2.QueryWriteStatusResponse other =
-        (com.google.storage.v2.QueryWriteStatusResponse) obj;
+    com.google.storage.v2.QueryWriteStatusResponse other = (com.google.storage.v2.QueryWriteStatusResponse) obj;
 
     if (!getWriteStatusCase().equals(other.getWriteStatusCase())) return false;
     switch (writeStatusCase_) {
       case 1:
-        if (getPersistedSize() != other.getPersistedSize()) return false;
+        if (getPersistedSize()
+            != other.getPersistedSize()) return false;
         break;
       case 2:
-        if (!getResource().equals(other.getResource())) return false;
+        if (!getResource()
+            .equals(other.getResource())) return false;
         break;
       case 0:
       default:
@@ -284,7 +247,8 @@ public int hashCode() {
     switch (writeStatusCase_) {
       case 1:
         hash = (37 * hash) + PERSISTED_SIZE_FIELD_NUMBER;
-        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPersistedSize());
+        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+            getPersistedSize());
         break;
       case 2:
         hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
@@ -298,136 +262,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.QueryWriteStatusResponse 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.storage.v2.QueryWriteStatusResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.QueryWriteStatusResponse 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.storage.v2.QueryWriteStatusResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.QueryWriteStatusResponse 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.storage.v2.QueryWriteStatusResponse 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.storage.v2.QueryWriteStatusResponse 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.storage.v2.QueryWriteStatusResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.storage.v2.QueryWriteStatusResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.QueryWriteStatusResponse 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.storage.v2.QueryWriteStatusResponse 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.storage.v2.QueryWriteStatusResponse 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.storage.v2.QueryWriteStatusResponse 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 object for `QueryWriteStatus`.
    * 
* * Protobuf type {@code google.storage.v2.QueryWriteStatusResponse} */ - 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.storage.v2.QueryWriteStatusResponse) com.google.storage.v2.QueryWriteStatusResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.QueryWriteStatusResponse.class, - com.google.storage.v2.QueryWriteStatusResponse.Builder.class); + com.google.storage.v2.QueryWriteStatusResponse.class, com.google.storage.v2.QueryWriteStatusResponse.Builder.class); } // Construct using com.google.storage.v2.QueryWriteStatusResponse.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(); @@ -441,9 +401,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; } @java.lang.Override @@ -462,11 +422,8 @@ public com.google.storage.v2.QueryWriteStatusResponse build() { @java.lang.Override public com.google.storage.v2.QueryWriteStatusResponse buildPartial() { - com.google.storage.v2.QueryWriteStatusResponse result = - new com.google.storage.v2.QueryWriteStatusResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.QueryWriteStatusResponse result = new com.google.storage.v2.QueryWriteStatusResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -479,7 +436,8 @@ private void buildPartial0(com.google.storage.v2.QueryWriteStatusResponse result private void buildPartialOneofs(com.google.storage.v2.QueryWriteStatusResponse result) { result.writeStatusCase_ = writeStatusCase_; result.writeStatus_ = this.writeStatus_; - if (writeStatusCase_ == 2 && resourceBuilder_ != null) { + if (writeStatusCase_ == 2 && + resourceBuilder_ != null) { result.writeStatus_ = resourceBuilder_.build(); } } @@ -488,39 +446,38 @@ private void buildPartialOneofs(com.google.storage.v2.QueryWriteStatusResponse 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.storage.v2.QueryWriteStatusResponse) { - return mergeFrom((com.google.storage.v2.QueryWriteStatusResponse) other); + return mergeFrom((com.google.storage.v2.QueryWriteStatusResponse)other); } else { super.mergeFrom(other); return this; @@ -530,20 +487,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.storage.v2.QueryWriteStatusResponse other) { if (other == com.google.storage.v2.QueryWriteStatusResponse.getDefaultInstance()) return this; switch (other.getWriteStatusCase()) { - case PERSISTED_SIZE: - { - setPersistedSize(other.getPersistedSize()); - break; - } - case RESOURCE: - { - mergeResource(other.getResource()); - break; - } - case WRITESTATUS_NOT_SET: - { - break; - } + case PERSISTED_SIZE: { + setPersistedSize(other.getPersistedSize()); + break; + } + case RESOURCE: { + mergeResource(other.getResource()); + break; + } + case WRITESTATUS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -571,25 +525,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - writeStatus_ = input.readInt64(); - writeStatusCase_ = 1; - break; - } // case 8 - case 18: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - writeStatusCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + writeStatus_ = input.readInt64(); + writeStatusCase_ = 1; + break; + } // case 8 + case 18: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + writeStatusCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,12 +552,12 @@ public Builder mergeFrom( } // finally return this; } - private int writeStatusCase_ = 0; private java.lang.Object writeStatus_; - - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public Builder clearWriteStatus() { @@ -617,8 +570,6 @@ public Builder clearWriteStatus() { private int bitField0_; /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. This is the correct value for the
@@ -627,15 +578,12 @@ public Builder clearWriteStatus() {
      * 
* * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. This is the correct value for the
@@ -644,7 +592,6 @@ public boolean hasPersistedSize() {
      * 
* * int64 persisted_size = 1; - * * @return The persistedSize. */ public long getPersistedSize() { @@ -654,8 +601,6 @@ public long getPersistedSize() { return 0L; } /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. This is the correct value for the
@@ -664,7 +609,6 @@ public long getPersistedSize() {
      * 
* * int64 persisted_size = 1; - * * @param value The persistedSize to set. * @return This builder for chaining. */ @@ -676,8 +620,6 @@ public Builder setPersistedSize(long value) { return this; } /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. This is the correct value for the
@@ -686,7 +628,6 @@ public Builder setPersistedSize(long value) {
      * 
* * int64 persisted_size = 1; - * * @return This builder for chaining. */ public Builder clearPersistedSize() { @@ -699,20 +640,14 @@ public Builder clearPersistedSize() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - resourceBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> resourceBuilder_; /** - * - * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
      * 
* * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -720,15 +655,12 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
      * 
* * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override @@ -746,8 +678,6 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -769,8 +699,6 @@ public Builder setResource(com.google.storage.v2.Object value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -778,7 +706,8 @@ public Builder setResource(com.google.storage.v2.Object value) {
      *
      * .google.storage.v2.Object resource = 2;
      */
-    public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) {
+    public Builder setResource(
+        com.google.storage.v2.Object.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         writeStatus_ = builderForValue.build();
         onChanged();
@@ -789,8 +718,6 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -800,12 +727,10 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
      */
     public Builder mergeResource(com.google.storage.v2.Object value) {
       if (resourceBuilder_ == null) {
-        if (writeStatusCase_ == 2
-            && writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
-          writeStatus_ =
-              com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (writeStatusCase_ == 2 &&
+            writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
+          writeStatus_ = com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
+              .mergeFrom(value).buildPartial();
         } else {
           writeStatus_ = value;
         }
@@ -821,8 +746,6 @@ public Builder mergeResource(com.google.storage.v2.Object value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -847,8 +770,6 @@ public Builder clearResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -860,8 +781,6 @@ public com.google.storage.v2.Object.Builder getResourceBuilder() {
       return getResourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -881,8 +800,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -891,29 +808,26 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
      * .google.storage.v2.Object resource = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Object,
-            com.google.storage.v2.Object.Builder,
-            com.google.storage.v2.ObjectOrBuilder>
+        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
         if (!(writeStatusCase_ == 2)) {
           writeStatus_ = com.google.storage.v2.Object.getDefaultInstance();
         }
-        resourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Object,
-                com.google.storage.v2.Object.Builder,
-                com.google.storage.v2.ObjectOrBuilder>(
-                (com.google.storage.v2.Object) writeStatus_, getParentForChildren(), isClean());
+        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
+                (com.google.storage.v2.Object) writeStatus_,
+                getParentForChildren(),
+                isClean());
         writeStatus_ = null;
       }
       writeStatusCase_ = 2;
       onChanged();
       return resourceBuilder_;
     }
-
     @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);
     }
 
@@ -923,12 +837,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.QueryWriteStatusResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.QueryWriteStatusResponse)
   private static final com.google.storage.v2.QueryWriteStatusResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.QueryWriteStatusResponse();
   }
@@ -937,27 +851,27 @@ public static com.google.storage.v2.QueryWriteStatusResponse getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public QueryWriteStatusResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 QueryWriteStatusResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -972,4 +886,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.QueryWriteStatusResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
similarity index 73%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
index 31e1b79742..d532172272 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
@@ -1,31 +1,14 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface QueryWriteStatusResponseOrBuilder
-    extends
+public interface QueryWriteStatusResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.QueryWriteStatusResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. This is the correct value for the
@@ -34,13 +17,10 @@ public interface QueryWriteStatusResponseOrBuilder
    * 
* * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ boolean hasPersistedSize(); /** - * - * *
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. This is the correct value for the
@@ -49,40 +29,31 @@ public interface QueryWriteStatusResponseOrBuilder
    * 
* * int64 persisted_size = 1; - * * @return The persistedSize. */ long getPersistedSize(); /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return The resource. */ com.google.storage.v2.Object getResource(); /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
similarity index 76%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
index fae2e1c5cc..675c7187f1 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
@@ -1,42 +1,25 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Request message for ReadObject.
  * 
* * Protobuf type {@code google.storage.v2.ReadObjectRequest} */ -public final class ReadObjectRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReadObjectRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ReadObjectRequest) ReadObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReadObjectRequest.newBuilder() to construct. private ReadObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadObjectRequest() { bucket_ = ""; object_ = ""; @@ -44,41 +27,34 @@ private ReadObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ReadObjectRequest.class, - com.google.storage.v2.ReadObjectRequest.Builder.class); + com.google.storage.v2.ReadObjectRequest.class, com.google.storage.v2.ReadObjectRequest.Builder.class); } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** - * - * *
    * Required. The name of the bucket containing the object to read.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -87,31 +63,29 @@ public java.lang.String getBucket() { 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(); bucket_ = s; return s; } } /** - * - * *
    * Required. The name of the bucket containing the object to read.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -120,18 +94,14 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int OBJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object object_ = ""; /** - * - * *
    * Required. The name of the object to read.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -140,29 +110,29 @@ public java.lang.String getObject() { 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(); object_ = s; return s; } } /** - * - * *
    * Required. The name of the object to read.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; 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); object_ = b; return b; } else { @@ -173,15 +143,12 @@ public com.google.protobuf.ByteString getObjectBytes() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_ = 0L; /** - * - * *
    * If present, selects a specific revision of this object (as opposed
    * to the latest version, the default).
    * 
* * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -192,8 +159,6 @@ public long getGeneration() { public static final int READ_OFFSET_FIELD_NUMBER = 4; private long readOffset_ = 0L; /** - * - * *
    * The offset for the first byte to return in the read, relative to the start
    * of the object.
@@ -207,7 +172,6 @@ public long getGeneration() {
    * 
* * int64 read_offset = 4; - * * @return The readOffset. */ @java.lang.Override @@ -218,8 +182,6 @@ public long getReadOffset() { public static final int READ_LIMIT_FIELD_NUMBER = 5; private long readLimit_ = 0L; /** - * - * *
    * The maximum number of `data` bytes the server is allowed to return in the
    * sum of all `Object` messages. A `read_limit` of zero indicates that there
@@ -231,7 +193,6 @@ public long getReadOffset() {
    * 
* * int64 read_limit = 5; - * * @return The readLimit. */ @java.lang.Override @@ -242,8 +203,6 @@ public long getReadLimit() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 6; private long ifGenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -251,7 +210,6 @@ public long getReadLimit() {
    * 
* * optional int64 if_generation_match = 6; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -259,8 +217,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -268,7 +224,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 6; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -279,8 +234,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 7; private long ifGenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -289,7 +242,6 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 7; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -297,8 +249,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -307,7 +257,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 7; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -318,15 +267,12 @@ public long getIfGenerationNotMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 8; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 8; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -334,15 +280,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 8; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -353,15 +296,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 9; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 9; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -369,15 +309,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 9; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -388,40 +325,30 @@ public long getIfMetagenerationNotMatch() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 10; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { - return commonObjectRequestParams_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -429,18 +356,13 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } public static final int READ_MASK_FIELD_NUMBER = 12; private com.google.protobuf.FieldMask readMask_; /** - * - * *
    * Mask specifying which fields to read.
    * The checksummed_data field and its children will always be present.
@@ -450,16 +372,13 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar
    * 
* * optional .google.protobuf.FieldMask read_mask = 12; - * * @return Whether the readMask field is set. */ @java.lang.Override public boolean hasReadMask() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
    * Mask specifying which fields to read.
    * The checksummed_data field and its children will always be present.
@@ -469,7 +388,6 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 12; - * * @return The readMask. */ @java.lang.Override @@ -477,8 +395,6 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** - * - * *
    * Mask specifying which fields to read.
    * The checksummed_data field and its children will always be present.
@@ -495,7 +411,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -507,7 +422,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(bucket_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_);
     }
@@ -535,10 +451,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (((bitField0_ & 0x00000008) != 0)) {
       output.writeInt64(9, ifMetagenerationNotMatch_);
     }
-    if (commonObjectRequestParams_ != null) {
+    if (((bitField0_ & 0x00000010) != 0)) {
       output.writeMessage(10, getCommonObjectRequestParams());
     }
-    if (((bitField0_ & 0x00000010) != 0)) {
+    if (((bitField0_ & 0x00000020) != 0)) {
       output.writeMessage(12, getReadMask());
     }
     getUnknownFields().writeTo(output);
@@ -557,33 +473,40 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_);
     }
     if (generation_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, generation_);
     }
     if (readOffset_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, readOffset_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(4, readOffset_);
     }
     if (readLimit_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, readLimit_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(5, readLimit_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifGenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(6, ifGenerationMatch_);
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifGenerationNotMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(7, ifGenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, ifMetagenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(8, ifMetagenerationMatch_);
     }
     if (((bitField0_ & 0x00000008) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, ifMetagenerationNotMatch_);
-    }
-    if (commonObjectRequestParams_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              10, getCommonObjectRequestParams());
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(9, ifMetagenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getReadMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getCommonObjectRequestParams());
+    }
+    if (((bitField0_ & 0x00000020) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(12, getReadMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -593,42 +516,52 @@ 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.storage.v2.ReadObjectRequest)) {
       return super.equals(obj);
     }
     com.google.storage.v2.ReadObjectRequest other = (com.google.storage.v2.ReadObjectRequest) obj;
 
-    if (!getBucket().equals(other.getBucket())) return false;
-    if (!getObject().equals(other.getObject())) return false;
-    if (getGeneration() != other.getGeneration()) return false;
-    if (getReadOffset() != other.getReadOffset()) return false;
-    if (getReadLimit() != other.getReadLimit()) return false;
+    if (!getBucket()
+        .equals(other.getBucket())) return false;
+    if (!getObject()
+        .equals(other.getObject())) return false;
+    if (getGeneration()
+        != other.getGeneration()) return false;
+    if (getReadOffset()
+        != other.getReadOffset()) return false;
+    if (getReadLimit()
+        != other.getReadLimit()) return false;
     if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false;
     if (hasIfGenerationMatch()) {
-      if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false;
+      if (getIfGenerationMatch()
+          != other.getIfGenerationMatch()) return false;
     }
     if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false;
     if (hasIfGenerationNotMatch()) {
-      if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false;
+      if (getIfGenerationNotMatch()
+          != other.getIfGenerationNotMatch()) return false;
     }
     if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false;
     if (hasIfMetagenerationMatch()) {
-      if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false;
+      if (getIfMetagenerationMatch()
+          != other.getIfMetagenerationMatch()) return false;
     }
     if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false;
     if (hasIfMetagenerationNotMatch()) {
-      if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false;
+      if (getIfMetagenerationNotMatch()
+          != other.getIfMetagenerationNotMatch()) return false;
     }
     if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false;
     if (hasCommonObjectRequestParams()) {
-      if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams()))
-        return false;
+      if (!getCommonObjectRequestParams()
+          .equals(other.getCommonObjectRequestParams())) return false;
     }
     if (hasReadMask() != other.hasReadMask()) return false;
     if (hasReadMask()) {
-      if (!getReadMask().equals(other.getReadMask())) return false;
+      if (!getReadMask()
+          .equals(other.getReadMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -646,26 +579,33 @@ public int hashCode() {
     hash = (37 * hash) + OBJECT_FIELD_NUMBER;
     hash = (53 * hash) + getObject().hashCode();
     hash = (37 * hash) + GENERATION_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getGeneration());
     hash = (37 * hash) + READ_OFFSET_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReadOffset());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getReadOffset());
     hash = (37 * hash) + READ_LIMIT_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReadLimit());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getReadLimit());
     if (hasIfGenerationMatch()) {
       hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfGenerationMatch());
     }
     if (hasIfGenerationNotMatch()) {
       hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfGenerationNotMatch());
     }
     if (hasIfMetagenerationMatch()) {
       hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfMetagenerationMatch());
     }
     if (hasIfMetagenerationNotMatch()) {
       hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfMetagenerationNotMatch());
     }
     if (hasCommonObjectRequestParams()) {
       hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER;
@@ -680,127 +620,120 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.ReadObjectRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.ReadObjectRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ReadObjectRequest 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.storage.v2.ReadObjectRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ReadObjectRequest 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.storage.v2.ReadObjectRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ReadObjectRequest 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.storage.v2.ReadObjectRequest 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.storage.v2.ReadObjectRequest 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.storage.v2.ReadObjectRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.storage.v2.ReadObjectRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.ReadObjectRequest 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.storage.v2.ReadObjectRequest 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.storage.v2.ReadObjectRequest 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.storage.v2.ReadObjectRequest 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 ReadObject.
    * 
* * Protobuf type {@code google.storage.v2.ReadObjectRequest} */ - 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.storage.v2.ReadObjectRequest) com.google.storage.v2.ReadObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ReadObjectRequest.class, - com.google.storage.v2.ReadObjectRequest.Builder.class); + com.google.storage.v2.ReadObjectRequest.class, com.google.storage.v2.ReadObjectRequest.Builder.class); } // Construct using com.google.storage.v2.ReadObjectRequest.newBuilder() @@ -808,18 +741,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCommonObjectRequestParamsFieldBuilder(); getReadMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -847,9 +780,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectRequest_descriptor; } @java.lang.Override @@ -868,11 +801,8 @@ public com.google.storage.v2.ReadObjectRequest build() { @java.lang.Override public com.google.storage.v2.ReadObjectRequest buildPartial() { - com.google.storage.v2.ReadObjectRequest result = - new com.google.storage.v2.ReadObjectRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ReadObjectRequest result = new com.google.storage.v2.ReadObjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -912,14 +842,16 @@ private void buildPartial0(com.google.storage.v2.ReadObjectRequest result) { to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); - to_bitField0_ |= 0x00000010; + result.readMask_ = readMaskBuilder_ == null + ? readMask_ + : readMaskBuilder_.build(); + to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @@ -928,39 +860,38 @@ private void buildPartial0(com.google.storage.v2.ReadObjectRequest 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.storage.v2.ReadObjectRequest) { - return mergeFrom((com.google.storage.v2.ReadObjectRequest) other); + return mergeFrom((com.google.storage.v2.ReadObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -1032,80 +963,71 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - bucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - object_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - generation_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - readOffset_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - readLimit_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - ifGenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 98: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 98 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + object_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + generation_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + readOffset_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + readLimit_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + ifGenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 98: { + input.readMessage( + getReadMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 + 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) { @@ -1115,27 +1037,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object bucket_ = ""; /** - * - * *
      * Required. The name of the bucket containing the object to read.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; 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(); bucket_ = s; return s; @@ -1144,23 +1061,20 @@ public java.lang.String getBucket() { } } /** - * - * *
      * Required. The name of the bucket containing the object to read.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -1168,39 +1082,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
      * Required. The name of the bucket containing the object to read.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the bucket containing the object to read.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBucket() { @@ -1210,23 +1113,17 @@ public Builder clearBucket() { return this; } /** - * - * *
      * Required. The name of the bucket containing the object to read.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -1236,20 +1133,18 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object object_ = ""; /** - * - * *
      * Required. The name of the object to read.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; 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(); object_ = s; return s; @@ -1258,21 +1153,20 @@ public java.lang.String getObject() { } } /** - * - * *
      * Required. The name of the object to read.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; 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); object_ = b; return b; } else { @@ -1280,35 +1174,28 @@ public com.google.protobuf.ByteString getObjectBytes() { } } /** - * - * *
      * Required. The name of the object to read.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } object_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The name of the object to read.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearObject() { @@ -1318,21 +1205,17 @@ public Builder clearObject() { return this; } /** - * - * *
      * Required. The name of the object to read.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000002; @@ -1340,17 +1223,14 @@ public Builder setObjectBytes(com.google.protobuf.ByteString value) { return this; } - private long generation_; + private long generation_ ; /** - * - * *
      * If present, selects a specific revision of this object (as opposed
      * to the latest version, the default).
      * 
* * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -1358,15 +1238,12 @@ public long getGeneration() { return generation_; } /** - * - * *
      * If present, selects a specific revision of this object (as opposed
      * to the latest version, the default).
      * 
* * int64 generation = 3; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -1378,15 +1255,12 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
      * If present, selects a specific revision of this object (as opposed
      * to the latest version, the default).
      * 
* * int64 generation = 3; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1396,10 +1270,8 @@ public Builder clearGeneration() { return this; } - private long readOffset_; + private long readOffset_ ; /** - * - * *
      * The offset for the first byte to return in the read, relative to the start
      * of the object.
@@ -1413,7 +1285,6 @@ public Builder clearGeneration() {
      * 
* * int64 read_offset = 4; - * * @return The readOffset. */ @java.lang.Override @@ -1421,8 +1292,6 @@ public long getReadOffset() { return readOffset_; } /** - * - * *
      * The offset for the first byte to return in the read, relative to the start
      * of the object.
@@ -1436,7 +1305,6 @@ public long getReadOffset() {
      * 
* * int64 read_offset = 4; - * * @param value The readOffset to set. * @return This builder for chaining. */ @@ -1448,8 +1316,6 @@ public Builder setReadOffset(long value) { return this; } /** - * - * *
      * The offset for the first byte to return in the read, relative to the start
      * of the object.
@@ -1463,7 +1329,6 @@ public Builder setReadOffset(long value) {
      * 
* * int64 read_offset = 4; - * * @return This builder for chaining. */ public Builder clearReadOffset() { @@ -1473,10 +1338,8 @@ public Builder clearReadOffset() { return this; } - private long readLimit_; + private long readLimit_ ; /** - * - * *
      * The maximum number of `data` bytes the server is allowed to return in the
      * sum of all `Object` messages. A `read_limit` of zero indicates that there
@@ -1488,7 +1351,6 @@ public Builder clearReadOffset() {
      * 
* * int64 read_limit = 5; - * * @return The readLimit. */ @java.lang.Override @@ -1496,8 +1358,6 @@ public long getReadLimit() { return readLimit_; } /** - * - * *
      * The maximum number of `data` bytes the server is allowed to return in the
      * sum of all `Object` messages. A `read_limit` of zero indicates that there
@@ -1509,7 +1369,6 @@ public long getReadLimit() {
      * 
* * int64 read_limit = 5; - * * @param value The readLimit to set. * @return This builder for chaining. */ @@ -1521,8 +1380,6 @@ public Builder setReadLimit(long value) { return this; } /** - * - * *
      * The maximum number of `data` bytes the server is allowed to return in the
      * sum of all `Object` messages. A `read_limit` of zero indicates that there
@@ -1534,7 +1391,6 @@ public Builder setReadLimit(long value) {
      * 
* * int64 read_limit = 5; - * * @return This builder for chaining. */ public Builder clearReadLimit() { @@ -1544,10 +1400,8 @@ public Builder clearReadLimit() { return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1555,7 +1409,6 @@ public Builder clearReadLimit() {
      * 
* * optional int64 if_generation_match = 6; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1563,8 +1416,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1572,7 +1423,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 6; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1580,8 +1430,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1589,7 +1437,6 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 6; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1601,8 +1448,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1610,7 +1455,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 6; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1620,10 +1464,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1632,7 +1474,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 7; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1640,8 +1481,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1650,7 +1489,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 7; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1658,8 +1496,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1668,7 +1504,6 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 7; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1680,8 +1515,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1690,7 +1523,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 7; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1700,17 +1532,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 8; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1718,15 +1547,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 8; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1734,15 +1560,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 8; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1754,15 +1577,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 8; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1772,17 +1592,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 9; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1790,15 +1607,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 9; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1806,15 +1620,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 9; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1826,15 +1637,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 9; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1846,55 +1654,41 @@ public Builder clearIfMetagenerationNotMatch() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1908,8 +1702,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1928,21 +1720,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -1950,13 +1738,13 @@ public Builder mergeCommonObjectRequestParams( } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; - onChanged(); + if (commonObjectRequestParams_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1974,42 +1762,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000200; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -2017,17 +1796,14 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; @@ -2035,13 +1811,8 @@ public Builder clearCommonObjectRequestParams() { private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; /** - * - * *
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2051,15 +1822,12 @@ public Builder clearCommonObjectRequestParams() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 12; - * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2069,7 +1837,6 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 12; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -2080,8 +1847,6 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2106,8 +1871,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2118,7 +1881,8 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
      *
      * optional .google.protobuf.FieldMask read_mask = 12;
      */
-    public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setReadMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (readMaskBuilder_ == null) {
         readMask_ = builderForValue.build();
       } else {
@@ -2129,8 +1893,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2143,9 +1905,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
      */
     public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       if (readMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000400) != 0)
-            && readMask_ != null
-            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000400) != 0) &&
+          readMask_ != null &&
+          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getReadMaskBuilder().mergeFrom(value);
         } else {
           readMask_ = value;
@@ -2153,13 +1915,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       } else {
         readMaskBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000400;
-      onChanged();
+      if (readMask_ != null) {
+        bitField0_ |= 0x00000400;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2181,8 +1943,6 @@ public Builder clearReadMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2199,8 +1959,6 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
       return getReadMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2215,12 +1973,11 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
       if (readMaskBuilder_ != null) {
         return readMaskBuilder_.getMessageOrBuilder();
       } else {
-        return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
+        return readMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2232,24 +1989,21 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
      * optional .google.protobuf.FieldMask read_mask = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getReadMaskFieldBuilder() {
       if (readMaskBuilder_ == null) {
-        readMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getReadMask(), getParentForChildren(), isClean());
+        readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getReadMask(),
+                getParentForChildren(),
+                isClean());
         readMask_ = null;
       }
       return readMaskBuilder_;
     }
-
     @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);
     }
 
@@ -2259,12 +2013,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.ReadObjectRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.ReadObjectRequest)
   private static final com.google.storage.v2.ReadObjectRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.ReadObjectRequest();
   }
@@ -2273,27 +2027,27 @@ public static com.google.storage.v2.ReadObjectRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ReadObjectRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 ReadObjectRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -2308,4 +2062,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.ReadObjectRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
similarity index 85%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
index 2ef4fe8a8e..61d7f6d142 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
@@ -1,99 +1,65 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface ReadObjectRequestOrBuilder
-    extends
+public interface ReadObjectRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.ReadObjectRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The name of the bucket containing the object to read.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ java.lang.String getBucket(); /** - * - * *
    * Required. The name of the bucket containing the object to read.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString + getBucketBytes(); /** - * - * *
    * Required. The name of the object to read.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ java.lang.String getObject(); /** - * - * *
    * Required. The name of the object to read.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - com.google.protobuf.ByteString getObjectBytes(); + com.google.protobuf.ByteString + getObjectBytes(); /** - * - * *
    * If present, selects a specific revision of this object (as opposed
    * to the latest version, the default).
    * 
* * int64 generation = 3; - * * @return The generation. */ long getGeneration(); /** - * - * *
    * The offset for the first byte to return in the read, relative to the start
    * of the object.
@@ -107,14 +73,11 @@ public interface ReadObjectRequestOrBuilder
    * 
* * int64 read_offset = 4; - * * @return The readOffset. */ long getReadOffset(); /** - * - * *
    * The maximum number of `data` bytes the server is allowed to return in the
    * sum of all `Object` messages. A `read_limit` of zero indicates that there
@@ -126,14 +89,11 @@ public interface ReadObjectRequestOrBuilder
    * 
* * int64 read_limit = 5; - * * @return The readLimit. */ long getReadLimit(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -141,13 +101,10 @@ public interface ReadObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 6; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -155,14 +112,11 @@ public interface ReadObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 6; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -171,13 +125,10 @@ public interface ReadObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 7; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -186,92 +137,71 @@ public interface ReadObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 7; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 8; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 8; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 9; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 9; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -281,8 +211,6 @@ public interface ReadObjectRequestOrBuilder com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder(); /** - * - * *
    * Mask specifying which fields to read.
    * The checksummed_data field and its children will always be present.
@@ -292,13 +220,10 @@ public interface ReadObjectRequestOrBuilder
    * 
* * optional .google.protobuf.FieldMask read_mask = 12; - * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** - * - * *
    * Mask specifying which fields to read.
    * The checksummed_data field and its children will always be present.
@@ -308,13 +233,10 @@ public interface ReadObjectRequestOrBuilder
    * 
* * optional .google.protobuf.FieldMask read_mask = 12; - * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** - * - * *
    * Mask specifying which fields to read.
    * The checksummed_data field and its children will always be present.
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
similarity index 73%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
index 0150ff5e09..42da76e929 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
@@ -1,70 +1,52 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Response message for ReadObject.
  * 
* * Protobuf type {@code google.storage.v2.ReadObjectResponse} */ -public final class ReadObjectResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReadObjectResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ReadObjectResponse) ReadObjectResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReadObjectResponse.newBuilder() to construct. private ReadObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ReadObjectResponse() {} + private ReadObjectResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadObjectResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ReadObjectResponse.class, - com.google.storage.v2.ReadObjectResponse.Builder.class); + com.google.storage.v2.ReadObjectResponse.class, com.google.storage.v2.ReadObjectResponse.Builder.class); } + private int bitField0_; public static final int CHECKSUMMED_DATA_FIELD_NUMBER = 1; private com.google.storage.v2.ChecksummedData checksummedData_; /** - * - * *
    * A portion of the data for the object. The service **may** leave `data`
    * empty for any given `ReadResponse`. This enables the service to inform the
@@ -73,16 +55,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return Whether the checksummedData field is set. */ @java.lang.Override public boolean hasChecksummedData() { - return checksummedData_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * A portion of the data for the object. The service **may** leave `data`
    * empty for any given `ReadResponse`. This enables the service to inform the
@@ -91,18 +70,13 @@ public boolean hasChecksummedData() {
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return The checksummedData. */ @java.lang.Override public com.google.storage.v2.ChecksummedData getChecksummedData() { - return checksummedData_ == null - ? com.google.storage.v2.ChecksummedData.getDefaultInstance() - : checksummedData_; + return checksummedData_ == null ? com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_; } /** - * - * *
    * A portion of the data for the object. The service **may** leave `data`
    * empty for any given `ReadResponse`. This enables the service to inform the
@@ -114,16 +88,12 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() {
    */
   @java.lang.Override
   public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder() {
-    return checksummedData_ == null
-        ? com.google.storage.v2.ChecksummedData.getDefaultInstance()
-        : checksummedData_;
+    return checksummedData_ == null ? com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_;
   }
 
   public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 2;
   private com.google.storage.v2.ObjectChecksums objectChecksums_;
   /**
-   *
-   *
    * 
    * The checksums of the complete object. If the object is downloaded in full,
    * the client should compute one of these checksums over the downloaded object
@@ -131,16 +101,13 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return Whether the objectChecksums field is set. */ @java.lang.Override public boolean hasObjectChecksums() { - return objectChecksums_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The checksums of the complete object. If the object is downloaded in full,
    * the client should compute one of these checksums over the downloaded object
@@ -148,18 +115,13 @@ public boolean hasObjectChecksums() {
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
    * The checksums of the complete object. If the object is downloaded in full,
    * the client should compute one of these checksums over the downloaded object
@@ -170,16 +132,12 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
    */
   @java.lang.Override
   public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
-    return objectChecksums_ == null
-        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-        : objectChecksums_;
+    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
   }
 
   public static final int CONTENT_RANGE_FIELD_NUMBER = 3;
   private com.google.storage.v2.ContentRange contentRange_;
   /**
-   *
-   *
    * 
    * If read_offset and or read_limit was specified on the
    * ReadObjectRequest, ContentRange will be populated on the first
@@ -187,16 +145,13 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
    * 
* * .google.storage.v2.ContentRange content_range = 3; - * * @return Whether the contentRange field is set. */ @java.lang.Override public boolean hasContentRange() { - return contentRange_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * If read_offset and or read_limit was specified on the
    * ReadObjectRequest, ContentRange will be populated on the first
@@ -204,18 +159,13 @@ public boolean hasContentRange() {
    * 
* * .google.storage.v2.ContentRange content_range = 3; - * * @return The contentRange. */ @java.lang.Override public com.google.storage.v2.ContentRange getContentRange() { - return contentRange_ == null - ? com.google.storage.v2.ContentRange.getDefaultInstance() - : contentRange_; + return contentRange_ == null ? com.google.storage.v2.ContentRange.getDefaultInstance() : contentRange_; } /** - * - * *
    * If read_offset and or read_limit was specified on the
    * ReadObjectRequest, ContentRange will be populated on the first
@@ -226,39 +176,31 @@ public com.google.storage.v2.ContentRange getContentRange() {
    */
   @java.lang.Override
   public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() {
-    return contentRange_ == null
-        ? com.google.storage.v2.ContentRange.getDefaultInstance()
-        : contentRange_;
+    return contentRange_ == null ? com.google.storage.v2.ContentRange.getDefaultInstance() : contentRange_;
   }
 
   public static final int METADATA_FIELD_NUMBER = 4;
   private com.google.storage.v2.Object metadata_;
   /**
-   *
-   *
    * 
    * Metadata of the object whose media is being returned.
    * Only populated in the first response in the stream.
    * 
* * .google.storage.v2.Object metadata = 4; - * * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { - return metadata_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Metadata of the object whose media is being returned.
    * Only populated in the first response in the stream.
    * 
* * .google.storage.v2.Object metadata = 4; - * * @return The metadata. */ @java.lang.Override @@ -266,8 +208,6 @@ public com.google.storage.v2.Object getMetadata() { return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_; } /** - * - * *
    * Metadata of the object whose media is being returned.
    * Only populated in the first response in the stream.
@@ -281,7 +221,6 @@ public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -293,17 +232,18 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (checksummedData_ != null) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getChecksummedData());
     }
-    if (objectChecksums_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeMessage(2, getObjectChecksums());
     }
-    if (contentRange_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       output.writeMessage(3, getContentRange());
     }
-    if (metadata_ != null) {
+    if (((bitField0_ & 0x00000008) != 0)) {
       output.writeMessage(4, getMetadata());
     }
     getUnknownFields().writeTo(output);
@@ -315,17 +255,21 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (checksummedData_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getChecksummedData());
+    if (((bitField0_ & 0x00000001) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getChecksummedData());
     }
-    if (objectChecksums_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjectChecksums());
+    if (((bitField0_ & 0x00000002) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getObjectChecksums());
     }
-    if (contentRange_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getContentRange());
+    if (((bitField0_ & 0x00000004) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getContentRange());
     }
-    if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata());
+    if (((bitField0_ & 0x00000008) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -335,7 +279,7 @@ 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.storage.v2.ReadObjectResponse)) {
       return super.equals(obj);
@@ -344,19 +288,23 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasChecksummedData() != other.hasChecksummedData()) return false;
     if (hasChecksummedData()) {
-      if (!getChecksummedData().equals(other.getChecksummedData())) return false;
+      if (!getChecksummedData()
+          .equals(other.getChecksummedData())) return false;
     }
     if (hasObjectChecksums() != other.hasObjectChecksums()) return false;
     if (hasObjectChecksums()) {
-      if (!getObjectChecksums().equals(other.getObjectChecksums())) return false;
+      if (!getObjectChecksums()
+          .equals(other.getObjectChecksums())) return false;
     }
     if (hasContentRange() != other.hasContentRange()) return false;
     if (hasContentRange()) {
-      if (!getContentRange().equals(other.getContentRange())) return false;
+      if (!getContentRange()
+          .equals(other.getContentRange())) return false;
     }
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata().equals(other.getMetadata())) return false;
+      if (!getMetadata()
+          .equals(other.getMetadata())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -390,136 +338,141 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.ReadObjectResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.ReadObjectResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ReadObjectResponse 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.storage.v2.ReadObjectResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ReadObjectResponse 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.storage.v2.ReadObjectResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ReadObjectResponse 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.storage.v2.ReadObjectResponse 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.storage.v2.ReadObjectResponse 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.storage.v2.ReadObjectResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.storage.v2.ReadObjectResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.ReadObjectResponse 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.storage.v2.ReadObjectResponse 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.storage.v2.ReadObjectResponse 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.storage.v2.ReadObjectResponse 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 ReadObject.
    * 
* * Protobuf type {@code google.storage.v2.ReadObjectResponse} */ - 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.storage.v2.ReadObjectResponse) com.google.storage.v2.ReadObjectResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ReadObjectResponse.class, - com.google.storage.v2.ReadObjectResponse.Builder.class); + com.google.storage.v2.ReadObjectResponse.class, com.google.storage.v2.ReadObjectResponse.Builder.class); } // Construct using com.google.storage.v2.ReadObjectResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getChecksummedDataFieldBuilder(); + getObjectChecksumsFieldBuilder(); + getContentRangeFieldBuilder(); + getMetadataFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +501,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectResponse_descriptor; } @java.lang.Override @@ -569,71 +522,78 @@ public com.google.storage.v2.ReadObjectResponse build() { @java.lang.Override public com.google.storage.v2.ReadObjectResponse buildPartial() { - com.google.storage.v2.ReadObjectResponse result = - new com.google.storage.v2.ReadObjectResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ReadObjectResponse result = new com.google.storage.v2.ReadObjectResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.storage.v2.ReadObjectResponse result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.checksummedData_ = - checksummedDataBuilder_ == null ? checksummedData_ : checksummedDataBuilder_.build(); + result.checksummedData_ = checksummedDataBuilder_ == null + ? checksummedData_ + : checksummedDataBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.contentRange_ = - contentRangeBuilder_ == null ? contentRange_ : contentRangeBuilder_.build(); + result.contentRange_ = contentRangeBuilder_ == null + ? contentRange_ + : contentRangeBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + to_bitField0_ |= 0x00000008; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.ReadObjectResponse) { - return mergeFrom((com.google.storage.v2.ReadObjectResponse) other); + return mergeFrom((com.google.storage.v2.ReadObjectResponse)other); } else { super.mergeFrom(other); return this; @@ -680,37 +640,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getChecksummedDataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getContentRangeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getChecksummedDataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getObjectChecksumsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getContentRangeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -720,18 +683,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.ChecksummedData checksummedData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ChecksummedData, - com.google.storage.v2.ChecksummedData.Builder, - com.google.storage.v2.ChecksummedDataOrBuilder> - checksummedDataBuilder_; + com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> checksummedDataBuilder_; /** - * - * *
      * A portion of the data for the object. The service **may** leave `data`
      * empty for any given `ReadResponse`. This enables the service to inform the
@@ -740,15 +697,12 @@ public Builder mergeFrom(
      * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return Whether the checksummedData field is set. */ public boolean hasChecksummedData() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * A portion of the data for the object. The service **may** leave `data`
      * empty for any given `ReadResponse`. This enables the service to inform the
@@ -757,21 +711,16 @@ public boolean hasChecksummedData() {
      * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return The checksummedData. */ public com.google.storage.v2.ChecksummedData getChecksummedData() { if (checksummedDataBuilder_ == null) { - return checksummedData_ == null - ? com.google.storage.v2.ChecksummedData.getDefaultInstance() - : checksummedData_; + return checksummedData_ == null ? com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_; } else { return checksummedDataBuilder_.getMessage(); } } /** - * - * *
      * A portion of the data for the object. The service **may** leave `data`
      * empty for any given `ReadResponse`. This enables the service to inform the
@@ -795,8 +744,6 @@ public Builder setChecksummedData(com.google.storage.v2.ChecksummedData value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A portion of the data for the object. The service **may** leave `data`
      * empty for any given `ReadResponse`. This enables the service to inform the
@@ -818,8 +765,6 @@ public Builder setChecksummedData(
       return this;
     }
     /**
-     *
-     *
      * 
      * A portion of the data for the object. The service **may** leave `data`
      * empty for any given `ReadResponse`. This enables the service to inform the
@@ -831,9 +776,9 @@ public Builder setChecksummedData(
      */
     public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value) {
       if (checksummedDataBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && checksummedData_ != null
-            && checksummedData_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          checksummedData_ != null &&
+          checksummedData_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
           getChecksummedDataBuilder().mergeFrom(value);
         } else {
           checksummedData_ = value;
@@ -841,13 +786,13 @@ public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value)
       } else {
         checksummedDataBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000001;
-      onChanged();
+      if (checksummedData_ != null) {
+        bitField0_ |= 0x00000001;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * A portion of the data for the object. The service **may** leave `data`
      * empty for any given `ReadResponse`. This enables the service to inform the
@@ -868,8 +813,6 @@ public Builder clearChecksummedData() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A portion of the data for the object. The service **may** leave `data`
      * empty for any given `ReadResponse`. This enables the service to inform the
@@ -885,8 +828,6 @@ public com.google.storage.v2.ChecksummedData.Builder getChecksummedDataBuilder()
       return getChecksummedDataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A portion of the data for the object. The service **may** leave `data`
      * empty for any given `ReadResponse`. This enables the service to inform the
@@ -900,14 +841,11 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
       if (checksummedDataBuilder_ != null) {
         return checksummedDataBuilder_.getMessageOrBuilder();
       } else {
-        return checksummedData_ == null
-            ? com.google.storage.v2.ChecksummedData.getDefaultInstance()
-            : checksummedData_;
+        return checksummedData_ == null ?
+            com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_;
       }
     }
     /**
-     *
-     *
      * 
      * A portion of the data for the object. The service **may** leave `data`
      * empty for any given `ReadResponse`. This enables the service to inform the
@@ -918,17 +856,14 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
      * .google.storage.v2.ChecksummedData checksummed_data = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ChecksummedData,
-            com.google.storage.v2.ChecksummedData.Builder,
-            com.google.storage.v2.ChecksummedDataOrBuilder>
+        com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> 
         getChecksummedDataFieldBuilder() {
       if (checksummedDataBuilder_ == null) {
-        checksummedDataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.ChecksummedData,
-                com.google.storage.v2.ChecksummedData.Builder,
-                com.google.storage.v2.ChecksummedDataOrBuilder>(
-                getChecksummedData(), getParentForChildren(), isClean());
+        checksummedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder>(
+                getChecksummedData(),
+                getParentForChildren(),
+                isClean());
         checksummedData_ = null;
       }
       return checksummedDataBuilder_;
@@ -936,13 +871,8 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
 
     private com.google.storage.v2.ObjectChecksums objectChecksums_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ObjectChecksums,
-            com.google.storage.v2.ObjectChecksums.Builder,
-            com.google.storage.v2.ObjectChecksumsOrBuilder>
-        objectChecksumsBuilder_;
+        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_;
     /**
-     *
-     *
      * 
      * The checksums of the complete object. If the object is downloaded in full,
      * the client should compute one of these checksums over the downloaded object
@@ -950,15 +880,12 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The checksums of the complete object. If the object is downloaded in full,
      * the client should compute one of these checksums over the downloaded object
@@ -966,21 +893,16 @@ public boolean hasObjectChecksums() {
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
      * The checksums of the complete object. If the object is downloaded in full,
      * the client should compute one of these checksums over the downloaded object
@@ -1003,8 +925,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. If the object is downloaded in full,
      * the client should compute one of these checksums over the downloaded object
@@ -1025,8 +945,6 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. If the object is downloaded in full,
      * the client should compute one of these checksums over the downloaded object
@@ -1037,9 +955,9 @@ public Builder setObjectChecksums(
      */
     public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       if (objectChecksumsBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && objectChecksums_ != null
-            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          objectChecksums_ != null &&
+          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
           getObjectChecksumsBuilder().mergeFrom(value);
         } else {
           objectChecksums_ = value;
@@ -1047,13 +965,13 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
       } else {
         objectChecksumsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
-      onChanged();
+      if (objectChecksums_ != null) {
+        bitField0_ |= 0x00000002;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. If the object is downloaded in full,
      * the client should compute one of these checksums over the downloaded object
@@ -1073,8 +991,6 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. If the object is downloaded in full,
      * the client should compute one of these checksums over the downloaded object
@@ -1089,8 +1005,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
       return getObjectChecksumsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. If the object is downloaded in full,
      * the client should compute one of these checksums over the downloaded object
@@ -1103,14 +1017,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
       if (objectChecksumsBuilder_ != null) {
         return objectChecksumsBuilder_.getMessageOrBuilder();
       } else {
-        return objectChecksums_ == null
-            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-            : objectChecksums_;
+        return objectChecksums_ == null ?
+            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
       }
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. If the object is downloaded in full,
      * the client should compute one of these checksums over the downloaded object
@@ -1120,17 +1031,14 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
      * .google.storage.v2.ObjectChecksums object_checksums = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ObjectChecksums,
-            com.google.storage.v2.ObjectChecksums.Builder,
-            com.google.storage.v2.ObjectChecksumsOrBuilder>
+        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
         getObjectChecksumsFieldBuilder() {
       if (objectChecksumsBuilder_ == null) {
-        objectChecksumsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.ObjectChecksums,
-                com.google.storage.v2.ObjectChecksums.Builder,
-                com.google.storage.v2.ObjectChecksumsOrBuilder>(
-                getObjectChecksums(), getParentForChildren(), isClean());
+        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
+                getObjectChecksums(),
+                getParentForChildren(),
+                isClean());
         objectChecksums_ = null;
       }
       return objectChecksumsBuilder_;
@@ -1138,13 +1046,8 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
 
     private com.google.storage.v2.ContentRange contentRange_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ContentRange,
-            com.google.storage.v2.ContentRange.Builder,
-            com.google.storage.v2.ContentRangeOrBuilder>
-        contentRangeBuilder_;
+        com.google.storage.v2.ContentRange, com.google.storage.v2.ContentRange.Builder, com.google.storage.v2.ContentRangeOrBuilder> contentRangeBuilder_;
     /**
-     *
-     *
      * 
      * If read_offset and or read_limit was specified on the
      * ReadObjectRequest, ContentRange will be populated on the first
@@ -1152,15 +1055,12 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
      * 
* * .google.storage.v2.ContentRange content_range = 3; - * * @return Whether the contentRange field is set. */ public boolean hasContentRange() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * If read_offset and or read_limit was specified on the
      * ReadObjectRequest, ContentRange will be populated on the first
@@ -1168,21 +1068,16 @@ public boolean hasContentRange() {
      * 
* * .google.storage.v2.ContentRange content_range = 3; - * * @return The contentRange. */ public com.google.storage.v2.ContentRange getContentRange() { if (contentRangeBuilder_ == null) { - return contentRange_ == null - ? com.google.storage.v2.ContentRange.getDefaultInstance() - : contentRange_; + return contentRange_ == null ? com.google.storage.v2.ContentRange.getDefaultInstance() : contentRange_; } else { return contentRangeBuilder_.getMessage(); } } /** - * - * *
      * If read_offset and or read_limit was specified on the
      * ReadObjectRequest, ContentRange will be populated on the first
@@ -1205,8 +1100,6 @@ public Builder setContentRange(com.google.storage.v2.ContentRange value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If read_offset and or read_limit was specified on the
      * ReadObjectRequest, ContentRange will be populated on the first
@@ -1215,7 +1108,8 @@ public Builder setContentRange(com.google.storage.v2.ContentRange value) {
      *
      * .google.storage.v2.ContentRange content_range = 3;
      */
-    public Builder setContentRange(com.google.storage.v2.ContentRange.Builder builderForValue) {
+    public Builder setContentRange(
+        com.google.storage.v2.ContentRange.Builder builderForValue) {
       if (contentRangeBuilder_ == null) {
         contentRange_ = builderForValue.build();
       } else {
@@ -1226,8 +1120,6 @@ public Builder setContentRange(com.google.storage.v2.ContentRange.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * If read_offset and or read_limit was specified on the
      * ReadObjectRequest, ContentRange will be populated on the first
@@ -1238,9 +1130,9 @@ public Builder setContentRange(com.google.storage.v2.ContentRange.Builder builde
      */
     public Builder mergeContentRange(com.google.storage.v2.ContentRange value) {
       if (contentRangeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && contentRange_ != null
-            && contentRange_ != com.google.storage.v2.ContentRange.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          contentRange_ != null &&
+          contentRange_ != com.google.storage.v2.ContentRange.getDefaultInstance()) {
           getContentRangeBuilder().mergeFrom(value);
         } else {
           contentRange_ = value;
@@ -1248,13 +1140,13 @@ public Builder mergeContentRange(com.google.storage.v2.ContentRange value) {
       } else {
         contentRangeBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000004;
-      onChanged();
+      if (contentRange_ != null) {
+        bitField0_ |= 0x00000004;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * If read_offset and or read_limit was specified on the
      * ReadObjectRequest, ContentRange will be populated on the first
@@ -1274,8 +1166,6 @@ public Builder clearContentRange() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If read_offset and or read_limit was specified on the
      * ReadObjectRequest, ContentRange will be populated on the first
@@ -1290,8 +1180,6 @@ public com.google.storage.v2.ContentRange.Builder getContentRangeBuilder() {
       return getContentRangeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If read_offset and or read_limit was specified on the
      * ReadObjectRequest, ContentRange will be populated on the first
@@ -1304,14 +1192,11 @@ public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() {
       if (contentRangeBuilder_ != null) {
         return contentRangeBuilder_.getMessageOrBuilder();
       } else {
-        return contentRange_ == null
-            ? com.google.storage.v2.ContentRange.getDefaultInstance()
-            : contentRange_;
+        return contentRange_ == null ?
+            com.google.storage.v2.ContentRange.getDefaultInstance() : contentRange_;
       }
     }
     /**
-     *
-     *
      * 
      * If read_offset and or read_limit was specified on the
      * ReadObjectRequest, ContentRange will be populated on the first
@@ -1321,17 +1206,14 @@ public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() {
      * .google.storage.v2.ContentRange content_range = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ContentRange,
-            com.google.storage.v2.ContentRange.Builder,
-            com.google.storage.v2.ContentRangeOrBuilder>
+        com.google.storage.v2.ContentRange, com.google.storage.v2.ContentRange.Builder, com.google.storage.v2.ContentRangeOrBuilder> 
         getContentRangeFieldBuilder() {
       if (contentRangeBuilder_ == null) {
-        contentRangeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.ContentRange,
-                com.google.storage.v2.ContentRange.Builder,
-                com.google.storage.v2.ContentRangeOrBuilder>(
-                getContentRange(), getParentForChildren(), isClean());
+        contentRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.ContentRange, com.google.storage.v2.ContentRange.Builder, com.google.storage.v2.ContentRangeOrBuilder>(
+                getContentRange(),
+                getParentForChildren(),
+                isClean());
         contentRange_ = null;
       }
       return contentRangeBuilder_;
@@ -1339,35 +1221,26 @@ public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() {
 
     private com.google.storage.v2.Object metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Object,
-            com.google.storage.v2.Object.Builder,
-            com.google.storage.v2.ObjectOrBuilder>
-        metadataBuilder_;
+        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
      * 
* * .google.storage.v2.Object metadata = 4; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
      * 
* * .google.storage.v2.Object metadata = 4; - * * @return The metadata. */ public com.google.storage.v2.Object getMetadata() { @@ -1378,8 +1251,6 @@ public com.google.storage.v2.Object getMetadata() { } } /** - * - * *
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
@@ -1401,8 +1272,6 @@ public Builder setMetadata(com.google.storage.v2.Object value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
@@ -1410,7 +1279,8 @@ public Builder setMetadata(com.google.storage.v2.Object value) {
      *
      * .google.storage.v2.Object metadata = 4;
      */
-    public Builder setMetadata(com.google.storage.v2.Object.Builder builderForValue) {
+    public Builder setMetadata(
+        com.google.storage.v2.Object.Builder builderForValue) {
       if (metadataBuilder_ == null) {
         metadata_ = builderForValue.build();
       } else {
@@ -1421,8 +1291,6 @@ public Builder setMetadata(com.google.storage.v2.Object.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
@@ -1432,9 +1300,9 @@ public Builder setMetadata(com.google.storage.v2.Object.Builder builderForValue)
      */
     public Builder mergeMetadata(com.google.storage.v2.Object value) {
       if (metadataBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && metadata_ != null
-            && metadata_ != com.google.storage.v2.Object.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          metadata_ != null &&
+          metadata_ != com.google.storage.v2.Object.getDefaultInstance()) {
           getMetadataBuilder().mergeFrom(value);
         } else {
           metadata_ = value;
@@ -1442,13 +1310,13 @@ public Builder mergeMetadata(com.google.storage.v2.Object value) {
       } else {
         metadataBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000008;
-      onChanged();
+      if (metadata_ != null) {
+        bitField0_ |= 0x00000008;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
@@ -1467,8 +1335,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
@@ -1482,8 +1348,6 @@ public com.google.storage.v2.Object.Builder getMetadataBuilder() {
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
@@ -1495,12 +1359,11 @@ public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() {
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_;
+        return metadata_ == null ?
+            com.google.storage.v2.Object.getDefaultInstance() : metadata_;
       }
     }
     /**
-     *
-     *
      * 
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
@@ -1509,24 +1372,21 @@ public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() {
      * .google.storage.v2.Object metadata = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Object,
-            com.google.storage.v2.Object.Builder,
-            com.google.storage.v2.ObjectOrBuilder>
+        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Object,
-                com.google.storage.v2.Object.Builder,
-                com.google.storage.v2.ObjectOrBuilder>(
-                getMetadata(), getParentForChildren(), isClean());
+        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
+                getMetadata(),
+                getParentForChildren(),
+                isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
-
     @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);
     }
 
@@ -1536,12 +1396,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.ReadObjectResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.ReadObjectResponse)
   private static final com.google.storage.v2.ReadObjectResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.ReadObjectResponse();
   }
@@ -1550,27 +1410,27 @@ public static com.google.storage.v2.ReadObjectResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ReadObjectResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 ReadObjectResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -1585,4 +1445,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.ReadObjectResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
similarity index 85%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
index 420883d870..7ea2dbc6f9 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
@@ -1,31 +1,14 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface ReadObjectResponseOrBuilder
-    extends
+public interface ReadObjectResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.ReadObjectResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A portion of the data for the object. The service **may** leave `data`
    * empty for any given `ReadResponse`. This enables the service to inform the
@@ -34,13 +17,10 @@ public interface ReadObjectResponseOrBuilder
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return Whether the checksummedData field is set. */ boolean hasChecksummedData(); /** - * - * *
    * A portion of the data for the object. The service **may** leave `data`
    * empty for any given `ReadResponse`. This enables the service to inform the
@@ -49,13 +29,10 @@ public interface ReadObjectResponseOrBuilder
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return The checksummedData. */ com.google.storage.v2.ChecksummedData getChecksummedData(); /** - * - * *
    * A portion of the data for the object. The service **may** leave `data`
    * empty for any given `ReadResponse`. This enables the service to inform the
@@ -68,8 +45,6 @@ public interface ReadObjectResponseOrBuilder
   com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder();
 
   /**
-   *
-   *
    * 
    * The checksums of the complete object. If the object is downloaded in full,
    * the client should compute one of these checksums over the downloaded object
@@ -77,13 +52,10 @@ public interface ReadObjectResponseOrBuilder
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
    * The checksums of the complete object. If the object is downloaded in full,
    * the client should compute one of these checksums over the downloaded object
@@ -91,13 +63,10 @@ public interface ReadObjectResponseOrBuilder
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
    * The checksums of the complete object. If the object is downloaded in full,
    * the client should compute one of these checksums over the downloaded object
@@ -109,8 +78,6 @@ public interface ReadObjectResponseOrBuilder
   com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder();
 
   /**
-   *
-   *
    * 
    * If read_offset and or read_limit was specified on the
    * ReadObjectRequest, ContentRange will be populated on the first
@@ -118,13 +85,10 @@ public interface ReadObjectResponseOrBuilder
    * 
* * .google.storage.v2.ContentRange content_range = 3; - * * @return Whether the contentRange field is set. */ boolean hasContentRange(); /** - * - * *
    * If read_offset and or read_limit was specified on the
    * ReadObjectRequest, ContentRange will be populated on the first
@@ -132,13 +96,10 @@ public interface ReadObjectResponseOrBuilder
    * 
* * .google.storage.v2.ContentRange content_range = 3; - * * @return The contentRange. */ com.google.storage.v2.ContentRange getContentRange(); /** - * - * *
    * If read_offset and or read_limit was specified on the
    * ReadObjectRequest, ContentRange will be populated on the first
@@ -150,34 +111,26 @@ public interface ReadObjectResponseOrBuilder
   com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Metadata of the object whose media is being returned.
    * Only populated in the first response in the stream.
    * 
* * .google.storage.v2.Object metadata = 4; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Metadata of the object whose media is being returned.
    * Only populated in the first response in the stream.
    * 
* * .google.storage.v2.Object metadata = 4; - * * @return The metadata. */ com.google.storage.v2.Object getMetadata(); /** - * - * *
    * Metadata of the object whose media is being returned.
    * Only populated in the first response in the stream.
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
similarity index 73%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
index a3aed70b25..2fe3f6467e 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
@@ -1,26 +1,10 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Message for restoring an object.
  * `bucket`, `object`, and `generation` **must** be set.
@@ -28,16 +12,15 @@
  *
  * Protobuf type {@code google.storage.v2.RestoreObjectRequest}
  */
-public final class RestoreObjectRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RestoreObjectRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.storage.v2.RestoreObjectRequest)
     RestoreObjectRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RestoreObjectRequest.newBuilder() to construct.
   private RestoreObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RestoreObjectRequest() {
     bucket_ = "";
     object_ = "";
@@ -45,41 +28,34 @@ private RestoreObjectRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RestoreObjectRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.storage.v2.RestoreObjectRequest.class,
-            com.google.storage.v2.RestoreObjectRequest.Builder.class);
+            com.google.storage.v2.RestoreObjectRequest.class, com.google.storage.v2.RestoreObjectRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int BUCKET_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object bucket_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -88,31 +64,29 @@ public java.lang.String getBucket() { 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(); bucket_ = s; return s; } } /** - * - * *
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -121,18 +95,14 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int OBJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object object_ = ""; /** - * - * *
    * Required. The name of the object to restore.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -141,29 +111,29 @@ public java.lang.String getObject() { 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(); object_ = s; return s; } } /** - * - * *
    * Required. The name of the object to restore.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; 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); object_ = b; return b; } else { @@ -174,14 +144,11 @@ public com.google.protobuf.ByteString getObjectBytes() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_ = 0L; /** - * - * *
    * Required. The specific revision of the object to restore.
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The generation. */ @java.lang.Override @@ -192,8 +159,6 @@ public long getGeneration() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 4; private long ifGenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -201,7 +166,6 @@ public long getGeneration() {
    * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -209,8 +173,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -218,7 +180,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -229,8 +190,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 5; private long ifGenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -239,7 +198,6 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -247,8 +205,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -257,7 +213,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -268,15 +223,12 @@ public long getIfGenerationNotMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 6; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -284,15 +236,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -303,15 +252,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 7; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -319,15 +265,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -338,8 +281,6 @@ public long getIfMetagenerationNotMatch() { public static final int COPY_SOURCE_ACL_FIELD_NUMBER = 9; private boolean copySourceAcl_ = false; /** - * - * *
    * If false or unset, the bucket's default object ACL will be used.
    * If true, copy the source object's access controls.
@@ -347,7 +288,6 @@ public long getIfMetagenerationNotMatch() {
    * 
* * optional bool copy_source_acl = 9; - * * @return Whether the copySourceAcl field is set. */ @java.lang.Override @@ -355,8 +295,6 @@ public boolean hasCopySourceAcl() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * If false or unset, the bucket's default object ACL will be used.
    * If true, copy the source object's access controls.
@@ -364,7 +302,6 @@ public boolean hasCopySourceAcl() {
    * 
* * optional bool copy_source_acl = 9; - * * @return The copySourceAcl. */ @java.lang.Override @@ -375,40 +312,30 @@ public boolean getCopySourceAcl() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 8; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { - return commonObjectRequestParams_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -416,15 +343,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -436,7 +359,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(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -458,7 +382,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(7, ifMetagenerationNotMatch_); } - if (commonObjectRequestParams_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getCommonObjectRequestParams()); } if (((bitField0_ & 0x00000010) != 0)) { @@ -480,27 +404,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, generation_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifGenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, ifMetagenerationNotMatch_); } - if (commonObjectRequestParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getCommonObjectRequestParams()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCommonObjectRequestParams()); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, copySourceAcl_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, copySourceAcl_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -510,41 +439,48 @@ 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.storage.v2.RestoreObjectRequest)) { return super.equals(obj); } - com.google.storage.v2.RestoreObjectRequest other = - (com.google.storage.v2.RestoreObjectRequest) obj; + com.google.storage.v2.RestoreObjectRequest other = (com.google.storage.v2.RestoreObjectRequest) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (!getObject().equals(other.getObject())) return false; - if (getGeneration() != other.getGeneration()) return false; + if (!getBucket() + .equals(other.getBucket())) return false; + if (!getObject() + .equals(other.getObject())) return false; + if (getGeneration() + != other.getGeneration()) return false; if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { - if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; + if (getIfGenerationMatch() + != other.getIfGenerationMatch()) return false; } if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false; if (hasIfGenerationNotMatch()) { - if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false; + if (getIfGenerationNotMatch() + != other.getIfGenerationNotMatch()) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } if (hasCopySourceAcl() != other.hasCopySourceAcl()) return false; if (hasCopySourceAcl()) { - if (getCopySourceAcl() != other.getCopySourceAcl()) return false; + if (getCopySourceAcl() + != other.getCopySourceAcl()) return false; } if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -562,26 +498,32 @@ public int hashCode() { hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); if (hasIfGenerationMatch()) { hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationMatch()); } if (hasIfGenerationNotMatch()) { hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationNotMatch()); } if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } if (hasCopySourceAcl()) { hash = (37 * hash) + COPY_SOURCE_ACL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCopySourceAcl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCopySourceAcl()); } if (hasCommonObjectRequestParams()) { hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER; @@ -592,104 +534,99 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.RestoreObjectRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.RestoreObjectRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.RestoreObjectRequest 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.storage.v2.RestoreObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.RestoreObjectRequest 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.storage.v2.RestoreObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.RestoreObjectRequest 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.storage.v2.RestoreObjectRequest 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.storage.v2.RestoreObjectRequest 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.storage.v2.RestoreObjectRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.RestoreObjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.RestoreObjectRequest 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.storage.v2.RestoreObjectRequest 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.storage.v2.RestoreObjectRequest 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.storage.v2.RestoreObjectRequest 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; } /** - * - * *
    * Message for restoring an object.
    * `bucket`, `object`, and `generation` **must** be set.
@@ -697,32 +634,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.storage.v2.RestoreObjectRequest}
    */
-  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.storage.v2.RestoreObjectRequest)
       com.google.storage.v2.RestoreObjectRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.RestoreObjectRequest.class,
-              com.google.storage.v2.RestoreObjectRequest.Builder.class);
+              com.google.storage.v2.RestoreObjectRequest.class, com.google.storage.v2.RestoreObjectRequest.Builder.class);
     }
 
     // Construct using com.google.storage.v2.RestoreObjectRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+        getCommonObjectRequestParamsFieldBuilder();
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -744,9 +688,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
     }
 
     @java.lang.Override
@@ -765,11 +709,8 @@ public com.google.storage.v2.RestoreObjectRequest build() {
 
     @java.lang.Override
     public com.google.storage.v2.RestoreObjectRequest buildPartial() {
-      com.google.storage.v2.RestoreObjectRequest result =
-          new com.google.storage.v2.RestoreObjectRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.storage.v2.RestoreObjectRequest result = new com.google.storage.v2.RestoreObjectRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -807,10 +748,10 @@ private void buildPartial0(com.google.storage.v2.RestoreObjectRequest result) {
         to_bitField0_ |= 0x00000010;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.commonObjectRequestParams_ =
-            commonObjectRequestParamsBuilder_ == null
-                ? commonObjectRequestParams_
-                : commonObjectRequestParamsBuilder_.build();
+        result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null
+            ? commonObjectRequestParams_
+            : commonObjectRequestParamsBuilder_.build();
+        to_bitField0_ |= 0x00000020;
       }
       result.bitField0_ |= to_bitField0_;
     }
@@ -819,39 +760,38 @@ private void buildPartial0(com.google.storage.v2.RestoreObjectRequest 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.storage.v2.RestoreObjectRequest) {
-        return mergeFrom((com.google.storage.v2.RestoreObjectRequest) other);
+        return mergeFrom((com.google.storage.v2.RestoreObjectRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -917,68 +857,59 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                bucket_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                object_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                generation_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                ifGenerationMatch_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 40:
-              {
-                ifGenerationNotMatch_ = input.readInt64();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 48:
-              {
-                ifMetagenerationMatch_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 56:
-              {
-                ifMetagenerationNotMatch_ = input.readInt64();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-            case 66:
-              {
-                input.readMessage(
-                    getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 72:
-              {
-                copySourceAcl_ = input.readBool();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 72
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              bucket_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              object_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              generation_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              ifGenerationMatch_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              ifGenerationNotMatch_ = input.readInt64();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 48: {
+              ifMetagenerationMatch_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 56: {
+              ifMetagenerationNotMatch_ = input.readInt64();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 56
+            case 66: {
+              input.readMessage(
+                  getCommonObjectRequestParamsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 72: {
+              copySourceAcl_ = input.readBool();
+              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) {
@@ -988,27 +919,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object bucket_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; 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(); bucket_ = s; return s; @@ -1017,23 +943,20 @@ public java.lang.String getBucket() { } } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; 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); bucket_ = b; return b; } else { @@ -1041,39 +964,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBucket() { @@ -1083,23 +995,17 @@ public Builder clearBucket() { return this; } /** - * - * *
      * Required. Name of the bucket in which the object resides.
      * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -1109,20 +1015,18 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object object_ = ""; /** - * - * *
      * Required. The name of the object to restore.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; 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(); object_ = s; return s; @@ -1131,21 +1035,20 @@ public java.lang.String getObject() { } } /** - * - * *
      * Required. The name of the object to restore.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; 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); object_ = b; return b; } else { @@ -1153,35 +1056,28 @@ public com.google.protobuf.ByteString getObjectBytes() { } } /** - * - * *
      * Required. The name of the object to restore.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } object_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The name of the object to restore.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearObject() { @@ -1191,21 +1087,17 @@ public Builder clearObject() { return this; } /** - * - * *
      * Required. The name of the object to restore.
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000002; @@ -1213,16 +1105,13 @@ public Builder setObjectBytes(com.google.protobuf.ByteString value) { return this; } - private long generation_; + private long generation_ ; /** - * - * *
      * Required. The specific revision of the object to restore.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The generation. */ @java.lang.Override @@ -1230,14 +1119,11 @@ public long getGeneration() { return generation_; } /** - * - * *
      * Required. The specific revision of the object to restore.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -1249,14 +1135,11 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
      * Required. The specific revision of the object to restore.
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1266,10 +1149,8 @@ public Builder clearGeneration() { return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1277,7 +1158,6 @@ public Builder clearGeneration() {
      * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1285,8 +1165,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1294,7 +1172,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1302,8 +1179,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1311,7 +1186,6 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1323,8 +1197,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1332,7 +1204,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 4; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1342,10 +1213,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1354,7 +1223,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1362,8 +1230,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1372,7 +1238,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1380,8 +1245,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1390,7 +1253,6 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 5; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1402,8 +1264,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1412,7 +1272,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 5; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1422,17 +1281,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1440,15 +1296,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1456,15 +1309,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 6; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1476,15 +1326,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 6; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1494,17 +1341,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1512,15 +1356,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1528,15 +1369,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 7; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1548,15 +1386,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 7; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1566,10 +1401,8 @@ public Builder clearIfMetagenerationNotMatch() { return this; } - private boolean copySourceAcl_; + private boolean copySourceAcl_ ; /** - * - * *
      * If false or unset, the bucket's default object ACL will be used.
      * If true, copy the source object's access controls.
@@ -1577,7 +1410,6 @@ public Builder clearIfMetagenerationNotMatch() {
      * 
* * optional bool copy_source_acl = 9; - * * @return Whether the copySourceAcl field is set. */ @java.lang.Override @@ -1585,8 +1417,6 @@ public boolean hasCopySourceAcl() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * If false or unset, the bucket's default object ACL will be used.
      * If true, copy the source object's access controls.
@@ -1594,7 +1424,6 @@ public boolean hasCopySourceAcl() {
      * 
* * optional bool copy_source_acl = 9; - * * @return The copySourceAcl. */ @java.lang.Override @@ -1602,8 +1431,6 @@ public boolean getCopySourceAcl() { return copySourceAcl_; } /** - * - * *
      * If false or unset, the bucket's default object ACL will be used.
      * If true, copy the source object's access controls.
@@ -1611,7 +1438,6 @@ public boolean getCopySourceAcl() {
      * 
* * optional bool copy_source_acl = 9; - * * @param value The copySourceAcl to set. * @return This builder for chaining. */ @@ -1623,8 +1449,6 @@ public Builder setCopySourceAcl(boolean value) { return this; } /** - * - * *
      * If false or unset, the bucket's default object ACL will be used.
      * If true, copy the source object's access controls.
@@ -1632,7 +1456,6 @@ public Builder setCopySourceAcl(boolean value) {
      * 
* * optional bool copy_source_acl = 9; - * * @return This builder for chaining. */ public Builder clearCopySourceAcl() { @@ -1644,55 +1467,41 @@ public Builder clearCopySourceAcl() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1706,8 +1515,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1726,21 +1533,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -1748,13 +1551,13 @@ public Builder mergeCommonObjectRequestParams( } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (commonObjectRequestParams_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1772,42 +1575,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1815,24 +1609,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @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); } @@ -1842,12 +1633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.RestoreObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.RestoreObjectRequest) private static final com.google.storage.v2.RestoreObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.RestoreObjectRequest(); } @@ -1856,27 +1647,27 @@ public static com.google.storage.v2.RestoreObjectRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 RestoreObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1891,4 +1682,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.RestoreObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java similarity index 81% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java index 6c976e876c..ac6c305a94 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java @@ -1,98 +1,64 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface RestoreObjectRequestOrBuilder - extends +public interface RestoreObjectRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.RestoreObjectRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ java.lang.String getBucket(); /** - * - * *
    * Required. Name of the bucket in which the object resides.
    * 
* - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString + getBucketBytes(); /** - * - * *
    * Required. The name of the object to restore.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ java.lang.String getObject(); /** - * - * *
    * Required. The name of the object to restore.
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - com.google.protobuf.ByteString getObjectBytes(); + com.google.protobuf.ByteString + getObjectBytes(); /** - * - * *
    * Required. The specific revision of the object to restore.
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The generation. */ long getGeneration(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -100,13 +66,10 @@ public interface RestoreObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -114,14 +77,11 @@ public interface RestoreObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -130,13 +90,10 @@ public interface RestoreObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -145,68 +102,53 @@ public interface RestoreObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * If false or unset, the bucket's default object ACL will be used.
    * If true, copy the source object's access controls.
@@ -214,13 +156,10 @@ public interface RestoreObjectRequestOrBuilder
    * 
* * optional bool copy_source_acl = 9; - * * @return Whether the copySourceAcl field is set. */ boolean hasCopySourceAcl(); /** - * - * *
    * If false or unset, the bucket's default object ACL will be used.
    * If true, copy the source object's access controls.
@@ -228,38 +167,29 @@ public interface RestoreObjectRequestOrBuilder
    * 
* * optional bool copy_source_acl = 9; - * * @return The copySourceAcl. */ boolean getCopySourceAcl(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java similarity index 77% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java index 9ad0ba000d..84871369ce 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java @@ -1,26 +1,10 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for RewriteObject.
  * If the source object is encrypted using a Customer-Supplied Encryption Key
@@ -34,16 +18,15 @@
  *
  * Protobuf type {@code google.storage.v2.RewriteObjectRequest}
  */
-public final class RewriteObjectRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RewriteObjectRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.storage.v2.RewriteObjectRequest)
     RewriteObjectRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RewriteObjectRequest.newBuilder() to construct.
   private RewriteObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RewriteObjectRequest() {
     destinationName_ = "";
     destinationBucket_ = "";
@@ -59,33 +42,29 @@ private RewriteObjectRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RewriteObjectRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.storage.v2.RewriteObjectRequest.class,
-            com.google.storage.v2.RewriteObjectRequest.Builder.class);
+            com.google.storage.v2.RewriteObjectRequest.class, com.google.storage.v2.RewriteObjectRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int DESTINATION_NAME_FIELD_NUMBER = 24;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object destinationName_ = "";
   /**
-   *
-   *
    * 
    * Required. Immutable. The name of the destination object.
    * See the
@@ -96,10 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * (bucket, object, generation).
    * 
* - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The destinationName. */ @java.lang.Override @@ -108,15 +84,14 @@ public java.lang.String getDestinationName() { 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(); destinationName_ = s; return s; } } /** - * - * *
    * Required. Immutable. The name of the destination object.
    * See the
@@ -127,18 +102,17 @@ public java.lang.String getDestinationName() {
    * (bucket, object, generation).
    * 
* - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for destinationName. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationNameBytes() { + public com.google.protobuf.ByteString + getDestinationNameBytes() { java.lang.Object ref = destinationName_; 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); destinationName_ = b; return b; } else { @@ -147,21 +121,15 @@ public com.google.protobuf.ByteString getDestinationNameBytes() { } public static final int DESTINATION_BUCKET_FIELD_NUMBER = 25; - @SuppressWarnings("serial") private volatile java.lang.Object destinationBucket_ = ""; /** - * - * *
    * Required. Immutable. The name of the bucket containing the destination
    * object.
    * 
* - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The destinationBucket. */ @java.lang.Override @@ -170,32 +138,30 @@ public java.lang.String getDestinationBucket() { 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(); destinationBucket_ = s; return s; } } /** - * - * *
    * Required. Immutable. The name of the bucket containing the destination
    * object.
    * 
* - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for destinationBucket. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationBucketBytes() { + public com.google.protobuf.ByteString + getDestinationBucketBytes() { java.lang.Object ref = destinationBucket_; 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); destinationBucket_ = b; return b; } else { @@ -204,12 +170,9 @@ public com.google.protobuf.ByteString getDestinationBucketBytes() { } public static final int DESTINATION_KMS_KEY_FIELD_NUMBER = 27; - @SuppressWarnings("serial") private volatile java.lang.Object destinationKmsKey_ = ""; /** - * - * *
    * The name of the Cloud KMS key that will be used to encrypt the destination
    * object. The Cloud KMS key must be located in same location as the object.
@@ -219,7 +182,6 @@ public com.google.protobuf.ByteString getDestinationBucketBytes() {
    * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The destinationKmsKey. */ @java.lang.Override @@ -228,15 +190,14 @@ public java.lang.String getDestinationKmsKey() { 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(); destinationKmsKey_ = s; return s; } } /** - * - * *
    * The name of the Cloud KMS key that will be used to encrypt the destination
    * object. The Cloud KMS key must be located in same location as the object.
@@ -246,15 +207,16 @@ public java.lang.String getDestinationKmsKey() {
    * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The bytes for destinationKmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationKmsKeyBytes() { + public com.google.protobuf.ByteString + getDestinationKmsKeyBytes() { java.lang.Object ref = destinationKmsKey_; 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); destinationKmsKey_ = b; return b; } else { @@ -265,8 +227,6 @@ public com.google.protobuf.ByteString getDestinationKmsKeyBytes() { public static final int DESTINATION_FIELD_NUMBER = 1; private com.google.storage.v2.Object destination_; /** - * - * *
    * Properties of the destination, post-rewrite object.
    * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -278,16 +238,13 @@ public com.google.protobuf.ByteString getDestinationKmsKeyBytes() {
    * 
* * .google.storage.v2.Object destination = 1; - * * @return Whether the destination field is set. */ @java.lang.Override public boolean hasDestination() { - return destination_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Properties of the destination, post-rewrite object.
    * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -299,7 +256,6 @@ public boolean hasDestination() {
    * 
* * .google.storage.v2.Object destination = 1; - * * @return The destination. */ @java.lang.Override @@ -307,8 +263,6 @@ public com.google.storage.v2.Object getDestination() { return destination_ == null ? com.google.storage.v2.Object.getDefaultInstance() : destination_; } /** - * - * *
    * Properties of the destination, post-rewrite object.
    * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -327,20 +281,14 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() {
   }
 
   public static final int SOURCE_BUCKET_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object sourceBucket_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the bucket in which to find the source object.
    * 
* - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sourceBucket. */ @java.lang.Override @@ -349,31 +297,29 @@ public java.lang.String getSourceBucket() { 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(); sourceBucket_ = s; return s; } } /** - * - * *
    * Required. Name of the bucket in which to find the source object.
    * 
* - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sourceBucket. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBucketBytes() { + public com.google.protobuf.ByteString + getSourceBucketBytes() { java.lang.Object ref = sourceBucket_; 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); sourceBucket_ = b; return b; } else { @@ -382,18 +328,14 @@ public com.google.protobuf.ByteString getSourceBucketBytes() { } public static final int SOURCE_OBJECT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object sourceObject_ = ""; /** - * - * *
    * Required. Name of the source object.
    * 
* * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceObject. */ @java.lang.Override @@ -402,29 +344,29 @@ public java.lang.String getSourceObject() { 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(); sourceObject_ = s; return s; } } /** - * - * *
    * Required. Name of the source object.
    * 
* * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceObject. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceObjectBytes() { + public com.google.protobuf.ByteString + getSourceObjectBytes() { java.lang.Object ref = sourceObject_; 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); sourceObject_ = b; return b; } else { @@ -435,15 +377,12 @@ public com.google.protobuf.ByteString getSourceObjectBytes() { public static final int SOURCE_GENERATION_FIELD_NUMBER = 4; private long sourceGeneration_ = 0L; /** - * - * *
    * If present, selects a specific revision of the source object (as opposed to
    * the latest version, the default).
    * 
* * int64 source_generation = 4; - * * @return The sourceGeneration. */ @java.lang.Override @@ -452,12 +391,9 @@ public long getSourceGeneration() { } public static final int REWRITE_TOKEN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object rewriteToken_ = ""; /** - * - * *
    * Include this field (from the previous rewrite response) on each rewrite
    * request after the first one, until the rewrite response 'done' flag is
@@ -467,7 +403,6 @@ public long getSourceGeneration() {
    * 
* * string rewrite_token = 5; - * * @return The rewriteToken. */ @java.lang.Override @@ -476,15 +411,14 @@ public java.lang.String getRewriteToken() { 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(); rewriteToken_ = s; return s; } } /** - * - * *
    * Include this field (from the previous rewrite response) on each rewrite
    * request after the first one, until the rewrite response 'done' flag is
@@ -494,15 +428,16 @@ public java.lang.String getRewriteToken() {
    * 
* * string rewrite_token = 5; - * * @return The bytes for rewriteToken. */ @java.lang.Override - public com.google.protobuf.ByteString getRewriteTokenBytes() { + public com.google.protobuf.ByteString + getRewriteTokenBytes() { java.lang.Object ref = rewriteToken_; 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); rewriteToken_ = b; return b; } else { @@ -511,12 +446,9 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() { } public static final int DESTINATION_PREDEFINED_ACL_FIELD_NUMBER = 28; - @SuppressWarnings("serial") private volatile java.lang.Object destinationPredefinedAcl_ = ""; /** - * - * *
    * Apply a predefined set of access controls to the destination object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -524,7 +456,6 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() {
    * 
* * string destination_predefined_acl = 28; - * * @return The destinationPredefinedAcl. */ @java.lang.Override @@ -533,15 +464,14 @@ public java.lang.String getDestinationPredefinedAcl() { 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(); destinationPredefinedAcl_ = s; return s; } } /** - * - * *
    * Apply a predefined set of access controls to the destination object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -549,15 +479,16 @@ public java.lang.String getDestinationPredefinedAcl() {
    * 
* * string destination_predefined_acl = 28; - * * @return The bytes for destinationPredefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { + public com.google.protobuf.ByteString + getDestinationPredefinedAclBytes() { java.lang.Object ref = destinationPredefinedAcl_; 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); destinationPredefinedAcl_ = b; return b; } else { @@ -568,8 +499,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 7; private long ifGenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -577,16 +506,13 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() {
    * 
* * optional int64 if_generation_match = 7; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override public boolean hasIfGenerationMatch() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -594,7 +520,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 7; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -605,8 +530,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 8; private long ifGenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -615,16 +538,13 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 8; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfGenerationNotMatch() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -633,7 +553,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 8; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -644,31 +563,25 @@ public long getIfGenerationNotMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 9; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the destination object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 9; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationMatch() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Makes the operation conditional on whether the destination object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 9; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -679,31 +592,25 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 10; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the destination object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 10; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationNotMatch() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * Makes the operation conditional on whether the destination object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 10; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -714,31 +621,25 @@ public long getIfMetagenerationNotMatch() { public static final int IF_SOURCE_GENERATION_MATCH_FIELD_NUMBER = 11; private long ifSourceGenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the source object's live
    * generation matches the given value.
    * 
* * optional int64 if_source_generation_match = 11; - * * @return Whether the ifSourceGenerationMatch field is set. */ @java.lang.Override public boolean hasIfSourceGenerationMatch() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
    * Makes the operation conditional on whether the source object's live
    * generation matches the given value.
    * 
* * optional int64 if_source_generation_match = 11; - * * @return The ifSourceGenerationMatch. */ @java.lang.Override @@ -749,31 +650,25 @@ public long getIfSourceGenerationMatch() { public static final int IF_SOURCE_GENERATION_NOT_MATCH_FIELD_NUMBER = 12; private long ifSourceGenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the source object's live
    * generation does not match the given value.
    * 
* * optional int64 if_source_generation_not_match = 12; - * * @return Whether the ifSourceGenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfSourceGenerationNotMatch() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
    * Makes the operation conditional on whether the source object's live
    * generation does not match the given value.
    * 
* * optional int64 if_source_generation_not_match = 12; - * * @return The ifSourceGenerationNotMatch. */ @java.lang.Override @@ -784,31 +679,25 @@ public long getIfSourceGenerationNotMatch() { public static final int IF_SOURCE_METAGENERATION_MATCH_FIELD_NUMBER = 13; private long ifSourceMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the source object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_source_metageneration_match = 13; - * * @return Whether the ifSourceMetagenerationMatch field is set. */ @java.lang.Override public boolean hasIfSourceMetagenerationMatch() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
    * Makes the operation conditional on whether the source object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_source_metageneration_match = 13; - * * @return The ifSourceMetagenerationMatch. */ @java.lang.Override @@ -819,31 +708,25 @@ public long getIfSourceMetagenerationMatch() { public static final int IF_SOURCE_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 14; private long ifSourceMetagenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the source object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_source_metageneration_not_match = 14; - * * @return Whether the ifSourceMetagenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfSourceMetagenerationNotMatch() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
    * Makes the operation conditional on whether the source object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_source_metageneration_not_match = 14; - * * @return The ifSourceMetagenerationNotMatch. */ @java.lang.Override @@ -854,8 +737,6 @@ public long getIfSourceMetagenerationNotMatch() { public static final int MAX_BYTES_REWRITTEN_PER_CALL_FIELD_NUMBER = 15; private long maxBytesRewrittenPerCall_ = 0L; /** - * - * *
    * The maximum number of bytes that will be rewritten per rewrite request.
    * Most callers
@@ -868,7 +749,6 @@ public long getIfSourceMetagenerationNotMatch() {
    * 
* * int64 max_bytes_rewritten_per_call = 15; - * * @return The maxBytesRewrittenPerCall. */ @java.lang.Override @@ -877,19 +757,15 @@ public long getMaxBytesRewrittenPerCall() { } public static final int COPY_SOURCE_ENCRYPTION_ALGORITHM_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private volatile java.lang.Object copySourceEncryptionAlgorithm_ = ""; /** - * - * *
    * The algorithm used to encrypt the source object, if any. Used if the source
    * object was encrypted with a Customer-Supplied Encryption Key.
    * 
* * string copy_source_encryption_algorithm = 16; - * * @return The copySourceEncryptionAlgorithm. */ @java.lang.Override @@ -898,30 +774,30 @@ public java.lang.String getCopySourceEncryptionAlgorithm() { 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(); copySourceEncryptionAlgorithm_ = s; return s; } } /** - * - * *
    * The algorithm used to encrypt the source object, if any. Used if the source
    * object was encrypted with a Customer-Supplied Encryption Key.
    * 
* * string copy_source_encryption_algorithm = 16; - * * @return The bytes for copySourceEncryptionAlgorithm. */ @java.lang.Override - public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getCopySourceEncryptionAlgorithmBytes() { java.lang.Object ref = copySourceEncryptionAlgorithm_; 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); copySourceEncryptionAlgorithm_ = b; return b; } else { @@ -930,11 +806,8 @@ public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes() { } public static final int COPY_SOURCE_ENCRYPTION_KEY_BYTES_FIELD_NUMBER = 21; - private com.google.protobuf.ByteString copySourceEncryptionKeyBytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString copySourceEncryptionKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * The raw bytes (not base64-encoded) AES-256 encryption key used to encrypt
    * the source object, if it was encrypted with a Customer-Supplied Encryption
@@ -942,7 +815,6 @@ public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes() {
    * 
* * bytes copy_source_encryption_key_bytes = 21; - * * @return The copySourceEncryptionKeyBytes. */ @java.lang.Override @@ -951,11 +823,8 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes() { } public static final int COPY_SOURCE_ENCRYPTION_KEY_SHA256_BYTES_FIELD_NUMBER = 22; - private com.google.protobuf.ByteString copySourceEncryptionKeySha256Bytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString copySourceEncryptionKeySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * The raw bytes (not base64-encoded) SHA256 hash of the encryption key used
    * to encrypt the source object, if it was encrypted with a Customer-Supplied
@@ -963,7 +832,6 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes() {
    * 
* * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @return The copySourceEncryptionKeySha256Bytes. */ @java.lang.Override @@ -974,40 +842,30 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeySha256Bytes() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 19; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { - return commonObjectRequestParams_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -1015,52 +873,39 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 29; private com.google.storage.v2.ObjectChecksums objectChecksums_; /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * destination object after rewriting.
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 29; - * * @return Whether the objectChecksums field is set. */ @java.lang.Override public boolean hasObjectChecksums() { - return objectChecksums_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * destination object after rewriting.
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 29; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * destination object after rewriting.
@@ -1070,13 +915,10 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
    */
   @java.lang.Override
   public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
-    return objectChecksums_ == null
-        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-        : objectChecksums_;
+    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1088,8 +930,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (destination_ != null) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getDestination());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBucket_)) {
@@ -1104,38 +947,37 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewriteToken_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, rewriteToken_);
     }
-    if (((bitField0_ & 0x00000001) != 0)) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeInt64(7, ifGenerationMatch_);
     }
-    if (((bitField0_ & 0x00000002) != 0)) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       output.writeInt64(8, ifGenerationNotMatch_);
     }
-    if (((bitField0_ & 0x00000004) != 0)) {
+    if (((bitField0_ & 0x00000008) != 0)) {
       output.writeInt64(9, ifMetagenerationMatch_);
     }
-    if (((bitField0_ & 0x00000008) != 0)) {
+    if (((bitField0_ & 0x00000010) != 0)) {
       output.writeInt64(10, ifMetagenerationNotMatch_);
     }
-    if (((bitField0_ & 0x00000010) != 0)) {
+    if (((bitField0_ & 0x00000020) != 0)) {
       output.writeInt64(11, ifSourceGenerationMatch_);
     }
-    if (((bitField0_ & 0x00000020) != 0)) {
+    if (((bitField0_ & 0x00000040) != 0)) {
       output.writeInt64(12, ifSourceGenerationNotMatch_);
     }
-    if (((bitField0_ & 0x00000040) != 0)) {
+    if (((bitField0_ & 0x00000080) != 0)) {
       output.writeInt64(13, ifSourceMetagenerationMatch_);
     }
-    if (((bitField0_ & 0x00000080) != 0)) {
+    if (((bitField0_ & 0x00000100) != 0)) {
       output.writeInt64(14, ifSourceMetagenerationNotMatch_);
     }
     if (maxBytesRewrittenPerCall_ != 0L) {
       output.writeInt64(15, maxBytesRewrittenPerCall_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(copySourceEncryptionAlgorithm_)) {
-      com.google.protobuf.GeneratedMessageV3.writeString(
-          output, 16, copySourceEncryptionAlgorithm_);
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, copySourceEncryptionAlgorithm_);
     }
-    if (commonObjectRequestParams_ != null) {
+    if (((bitField0_ & 0x00000200) != 0)) {
       output.writeMessage(19, getCommonObjectRequestParams());
     }
     if (!copySourceEncryptionKeyBytes_.isEmpty()) {
@@ -1156,7 +998,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationPredefinedAcl_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 28, destinationPredefinedAcl_);
     }
-    if (objectChecksums_ != null) {
+    if (((bitField0_ & 0x00000400) != 0)) {
       output.writeMessage(29, getObjectChecksums());
     }
     getUnknownFields().writeTo(output);
@@ -1168,8 +1010,9 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (destination_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDestination());
+    if (((bitField0_ & 0x00000001) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getDestination());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBucket_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceBucket_);
@@ -1178,60 +1021,62 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceObject_);
     }
     if (sourceGeneration_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, sourceGeneration_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(4, sourceGeneration_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewriteToken_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, rewriteToken_);
     }
-    if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifGenerationMatch_);
-    }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, ifGenerationNotMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(7, ifGenerationMatch_);
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, ifMetagenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(8, ifGenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000008) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, ifMetagenerationNotMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(9, ifMetagenerationMatch_);
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, ifSourceGenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(10, ifMetagenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000020) != 0)) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeInt64Size(12, ifSourceGenerationNotMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(11, ifSourceGenerationMatch_);
     }
     if (((bitField0_ & 0x00000040) != 0)) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeInt64Size(13, ifSourceMetagenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(12, ifSourceGenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000080) != 0)) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeInt64Size(
-              14, ifSourceMetagenerationNotMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(13, ifSourceMetagenerationMatch_);
+    }
+    if (((bitField0_ & 0x00000100) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(14, ifSourceMetagenerationNotMatch_);
     }
     if (maxBytesRewrittenPerCall_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(15, maxBytesRewrittenPerCall_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(15, maxBytesRewrittenPerCall_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(copySourceEncryptionAlgorithm_)) {
-      size +=
-          com.google.protobuf.GeneratedMessageV3.computeStringSize(
-              16, copySourceEncryptionAlgorithm_);
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, copySourceEncryptionAlgorithm_);
     }
-    if (commonObjectRequestParams_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              19, getCommonObjectRequestParams());
+    if (((bitField0_ & 0x00000200) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(19, getCommonObjectRequestParams());
     }
     if (!copySourceEncryptionKeyBytes_.isEmpty()) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeBytesSize(21, copySourceEncryptionKeyBytes_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(21, copySourceEncryptionKeyBytes_);
     }
     if (!copySourceEncryptionKeySha256Bytes_.isEmpty()) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeBytesSize(
-              22, copySourceEncryptionKeySha256Bytes_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(22, copySourceEncryptionKeySha256Bytes_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, destinationName_);
@@ -1243,11 +1088,11 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, destinationKmsKey_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationPredefinedAcl_)) {
-      size +=
-          com.google.protobuf.GeneratedMessageV3.computeStringSize(28, destinationPredefinedAcl_);
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, destinationPredefinedAcl_);
     }
-    if (objectChecksums_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getObjectChecksums());
+    if (((bitField0_ & 0x00000400) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(29, getObjectChecksums());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1257,75 +1102,91 @@ 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.storage.v2.RewriteObjectRequest)) {
       return super.equals(obj);
     }
-    com.google.storage.v2.RewriteObjectRequest other =
-        (com.google.storage.v2.RewriteObjectRequest) obj;
+    com.google.storage.v2.RewriteObjectRequest other = (com.google.storage.v2.RewriteObjectRequest) obj;
 
-    if (!getDestinationName().equals(other.getDestinationName())) return false;
-    if (!getDestinationBucket().equals(other.getDestinationBucket())) return false;
-    if (!getDestinationKmsKey().equals(other.getDestinationKmsKey())) return false;
+    if (!getDestinationName()
+        .equals(other.getDestinationName())) return false;
+    if (!getDestinationBucket()
+        .equals(other.getDestinationBucket())) return false;
+    if (!getDestinationKmsKey()
+        .equals(other.getDestinationKmsKey())) return false;
     if (hasDestination() != other.hasDestination()) return false;
     if (hasDestination()) {
-      if (!getDestination().equals(other.getDestination())) return false;
-    }
-    if (!getSourceBucket().equals(other.getSourceBucket())) return false;
-    if (!getSourceObject().equals(other.getSourceObject())) return false;
-    if (getSourceGeneration() != other.getSourceGeneration()) return false;
-    if (!getRewriteToken().equals(other.getRewriteToken())) return false;
-    if (!getDestinationPredefinedAcl().equals(other.getDestinationPredefinedAcl())) return false;
+      if (!getDestination()
+          .equals(other.getDestination())) return false;
+    }
+    if (!getSourceBucket()
+        .equals(other.getSourceBucket())) return false;
+    if (!getSourceObject()
+        .equals(other.getSourceObject())) return false;
+    if (getSourceGeneration()
+        != other.getSourceGeneration()) return false;
+    if (!getRewriteToken()
+        .equals(other.getRewriteToken())) return false;
+    if (!getDestinationPredefinedAcl()
+        .equals(other.getDestinationPredefinedAcl())) return false;
     if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false;
     if (hasIfGenerationMatch()) {
-      if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false;
+      if (getIfGenerationMatch()
+          != other.getIfGenerationMatch()) return false;
     }
     if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false;
     if (hasIfGenerationNotMatch()) {
-      if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false;
+      if (getIfGenerationNotMatch()
+          != other.getIfGenerationNotMatch()) return false;
     }
     if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false;
     if (hasIfMetagenerationMatch()) {
-      if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false;
+      if (getIfMetagenerationMatch()
+          != other.getIfMetagenerationMatch()) return false;
     }
     if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false;
     if (hasIfMetagenerationNotMatch()) {
-      if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false;
+      if (getIfMetagenerationNotMatch()
+          != other.getIfMetagenerationNotMatch()) return false;
     }
     if (hasIfSourceGenerationMatch() != other.hasIfSourceGenerationMatch()) return false;
     if (hasIfSourceGenerationMatch()) {
-      if (getIfSourceGenerationMatch() != other.getIfSourceGenerationMatch()) return false;
+      if (getIfSourceGenerationMatch()
+          != other.getIfSourceGenerationMatch()) return false;
     }
     if (hasIfSourceGenerationNotMatch() != other.hasIfSourceGenerationNotMatch()) return false;
     if (hasIfSourceGenerationNotMatch()) {
-      if (getIfSourceGenerationNotMatch() != other.getIfSourceGenerationNotMatch()) return false;
+      if (getIfSourceGenerationNotMatch()
+          != other.getIfSourceGenerationNotMatch()) return false;
     }
     if (hasIfSourceMetagenerationMatch() != other.hasIfSourceMetagenerationMatch()) return false;
     if (hasIfSourceMetagenerationMatch()) {
-      if (getIfSourceMetagenerationMatch() != other.getIfSourceMetagenerationMatch()) return false;
+      if (getIfSourceMetagenerationMatch()
+          != other.getIfSourceMetagenerationMatch()) return false;
     }
-    if (hasIfSourceMetagenerationNotMatch() != other.hasIfSourceMetagenerationNotMatch())
-      return false;
+    if (hasIfSourceMetagenerationNotMatch() != other.hasIfSourceMetagenerationNotMatch()) return false;
     if (hasIfSourceMetagenerationNotMatch()) {
-      if (getIfSourceMetagenerationNotMatch() != other.getIfSourceMetagenerationNotMatch())
-        return false;
-    }
-    if (getMaxBytesRewrittenPerCall() != other.getMaxBytesRewrittenPerCall()) return false;
-    if (!getCopySourceEncryptionAlgorithm().equals(other.getCopySourceEncryptionAlgorithm()))
-      return false;
-    if (!getCopySourceEncryptionKeyBytes().equals(other.getCopySourceEncryptionKeyBytes()))
-      return false;
+      if (getIfSourceMetagenerationNotMatch()
+          != other.getIfSourceMetagenerationNotMatch()) return false;
+    }
+    if (getMaxBytesRewrittenPerCall()
+        != other.getMaxBytesRewrittenPerCall()) return false;
+    if (!getCopySourceEncryptionAlgorithm()
+        .equals(other.getCopySourceEncryptionAlgorithm())) return false;
+    if (!getCopySourceEncryptionKeyBytes()
+        .equals(other.getCopySourceEncryptionKeyBytes())) return false;
     if (!getCopySourceEncryptionKeySha256Bytes()
         .equals(other.getCopySourceEncryptionKeySha256Bytes())) return false;
     if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false;
     if (hasCommonObjectRequestParams()) {
-      if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams()))
-        return false;
+      if (!getCommonObjectRequestParams()
+          .equals(other.getCommonObjectRequestParams())) return false;
     }
     if (hasObjectChecksums() != other.hasObjectChecksums()) return false;
     if (hasObjectChecksums()) {
-      if (!getObjectChecksums().equals(other.getObjectChecksums())) return false;
+      if (!getObjectChecksums()
+          .equals(other.getObjectChecksums())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1353,46 +1214,55 @@ public int hashCode() {
     hash = (37 * hash) + SOURCE_OBJECT_FIELD_NUMBER;
     hash = (53 * hash) + getSourceObject().hashCode();
     hash = (37 * hash) + SOURCE_GENERATION_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSourceGeneration());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getSourceGeneration());
     hash = (37 * hash) + REWRITE_TOKEN_FIELD_NUMBER;
     hash = (53 * hash) + getRewriteToken().hashCode();
     hash = (37 * hash) + DESTINATION_PREDEFINED_ACL_FIELD_NUMBER;
     hash = (53 * hash) + getDestinationPredefinedAcl().hashCode();
     if (hasIfGenerationMatch()) {
       hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfGenerationMatch());
     }
     if (hasIfGenerationNotMatch()) {
       hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfGenerationNotMatch());
     }
     if (hasIfMetagenerationMatch()) {
       hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfMetagenerationMatch());
     }
     if (hasIfMetagenerationNotMatch()) {
       hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfMetagenerationNotMatch());
     }
     if (hasIfSourceGenerationMatch()) {
       hash = (37 * hash) + IF_SOURCE_GENERATION_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfSourceGenerationMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfSourceGenerationMatch());
     }
     if (hasIfSourceGenerationNotMatch()) {
       hash = (37 * hash) + IF_SOURCE_GENERATION_NOT_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfSourceGenerationNotMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfSourceGenerationNotMatch());
     }
     if (hasIfSourceMetagenerationMatch()) {
       hash = (37 * hash) + IF_SOURCE_METAGENERATION_MATCH_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfSourceMetagenerationMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfSourceMetagenerationMatch());
     }
     if (hasIfSourceMetagenerationNotMatch()) {
       hash = (37 * hash) + IF_SOURCE_METAGENERATION_NOT_MATCH_FIELD_NUMBER;
-      hash =
-          (53 * hash) + com.google.protobuf.Internal.hashLong(getIfSourceMetagenerationNotMatch());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getIfSourceMetagenerationNotMatch());
     }
     hash = (37 * hash) + MAX_BYTES_REWRITTEN_PER_CALL_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxBytesRewrittenPerCall());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getMaxBytesRewrittenPerCall());
     hash = (37 * hash) + COPY_SOURCE_ENCRYPTION_ALGORITHM_FIELD_NUMBER;
     hash = (53 * hash) + getCopySourceEncryptionAlgorithm().hashCode();
     hash = (37 * hash) + COPY_SOURCE_ENCRYPTION_KEY_BYTES_FIELD_NUMBER;
@@ -1412,104 +1282,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.RewriteObjectRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.RewriteObjectRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.RewriteObjectRequest 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.storage.v2.RewriteObjectRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.RewriteObjectRequest 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.storage.v2.RewriteObjectRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.RewriteObjectRequest 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.storage.v2.RewriteObjectRequest 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.storage.v2.RewriteObjectRequest 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.storage.v2.RewriteObjectRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.storage.v2.RewriteObjectRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.RewriteObjectRequest 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.storage.v2.RewriteObjectRequest 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.storage.v2.RewriteObjectRequest 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.storage.v2.RewriteObjectRequest 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 RewriteObject.
    * If the source object is encrypted using a Customer-Supplied Encryption Key
@@ -1523,32 +1388,41 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.storage.v2.RewriteObjectRequest}
    */
-  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.storage.v2.RewriteObjectRequest)
       com.google.storage.v2.RewriteObjectRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.RewriteObjectRequest.class,
-              com.google.storage.v2.RewriteObjectRequest.Builder.class);
+              com.google.storage.v2.RewriteObjectRequest.class, com.google.storage.v2.RewriteObjectRequest.Builder.class);
     }
 
     // Construct using com.google.storage.v2.RewriteObjectRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+        getDestinationFieldBuilder();
+        getCommonObjectRequestParamsFieldBuilder();
+        getObjectChecksumsFieldBuilder();
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1592,9 +1466,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
     }
 
     @java.lang.Override
@@ -1613,11 +1487,8 @@ public com.google.storage.v2.RewriteObjectRequest build() {
 
     @java.lang.Override
     public com.google.storage.v2.RewriteObjectRequest buildPartial() {
-      com.google.storage.v2.RewriteObjectRequest result =
-          new com.google.storage.v2.RewriteObjectRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.storage.v2.RewriteObjectRequest result = new com.google.storage.v2.RewriteObjectRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1633,9 +1504,12 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.destinationKmsKey_ = destinationKmsKey_;
       }
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.destination_ =
-            destinationBuilder_ == null ? destination_ : destinationBuilder_.build();
+        result.destination_ = destinationBuilder_ == null
+            ? destination_
+            : destinationBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.sourceBucket_ = sourceBucket_;
@@ -1652,38 +1526,37 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
       if (((from_bitField0_ & 0x00000100) != 0)) {
         result.destinationPredefinedAcl_ = destinationPredefinedAcl_;
       }
-      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.ifGenerationMatch_ = ifGenerationMatch_;
-        to_bitField0_ |= 0x00000001;
+        to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.ifGenerationNotMatch_ = ifGenerationNotMatch_;
-        to_bitField0_ |= 0x00000002;
+        to_bitField0_ |= 0x00000004;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
         result.ifMetagenerationMatch_ = ifMetagenerationMatch_;
-        to_bitField0_ |= 0x00000004;
+        to_bitField0_ |= 0x00000008;
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
         result.ifMetagenerationNotMatch_ = ifMetagenerationNotMatch_;
-        to_bitField0_ |= 0x00000008;
+        to_bitField0_ |= 0x00000010;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
         result.ifSourceGenerationMatch_ = ifSourceGenerationMatch_;
-        to_bitField0_ |= 0x00000010;
+        to_bitField0_ |= 0x00000020;
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
         result.ifSourceGenerationNotMatch_ = ifSourceGenerationNotMatch_;
-        to_bitField0_ |= 0x00000020;
+        to_bitField0_ |= 0x00000040;
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
         result.ifSourceMetagenerationMatch_ = ifSourceMetagenerationMatch_;
-        to_bitField0_ |= 0x00000040;
+        to_bitField0_ |= 0x00000080;
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
         result.ifSourceMetagenerationNotMatch_ = ifSourceMetagenerationNotMatch_;
-        to_bitField0_ |= 0x00000080;
+        to_bitField0_ |= 0x00000100;
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
         result.maxBytesRewrittenPerCall_ = maxBytesRewrittenPerCall_;
@@ -1698,14 +1571,16 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
         result.copySourceEncryptionKeySha256Bytes_ = copySourceEncryptionKeySha256Bytes_;
       }
       if (((from_bitField0_ & 0x00200000) != 0)) {
-        result.commonObjectRequestParams_ =
-            commonObjectRequestParamsBuilder_ == null
-                ? commonObjectRequestParams_
-                : commonObjectRequestParamsBuilder_.build();
+        result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null
+            ? commonObjectRequestParams_
+            : commonObjectRequestParamsBuilder_.build();
+        to_bitField0_ |= 0x00000200;
       }
       if (((from_bitField0_ & 0x00400000) != 0)) {
-        result.objectChecksums_ =
-            objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build();
+        result.objectChecksums_ = objectChecksumsBuilder_ == null
+            ? objectChecksums_
+            : objectChecksumsBuilder_.build();
+        to_bitField0_ |= 0x00000400;
       }
       result.bitField0_ |= to_bitField0_;
     }
@@ -1714,39 +1589,38 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest 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.storage.v2.RewriteObjectRequest) {
-        return mergeFrom((com.google.storage.v2.RewriteObjectRequest) other);
+        return mergeFrom((com.google.storage.v2.RewriteObjectRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1866,170 +1740,148 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 10
-            case 18:
-              {
-                sourceBucket_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 18
-            case 26:
-              {
-                sourceObject_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 26
-            case 32:
-              {
-                sourceGeneration_ = input.readInt64();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 32
-            case 42:
-              {
-                rewriteToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 42
-            case 56:
-              {
-                ifGenerationMatch_ = input.readInt64();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 56
-            case 64:
-              {
-                ifGenerationNotMatch_ = input.readInt64();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 64
-            case 72:
-              {
-                ifMetagenerationMatch_ = input.readInt64();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 72
-            case 80:
-              {
-                ifMetagenerationNotMatch_ = input.readInt64();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 80
-            case 88:
-              {
-                ifSourceGenerationMatch_ = input.readInt64();
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 88
-            case 96:
-              {
-                ifSourceGenerationNotMatch_ = input.readInt64();
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 96
-            case 104:
-              {
-                ifSourceMetagenerationMatch_ = input.readInt64();
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 104
-            case 112:
-              {
-                ifSourceMetagenerationNotMatch_ = input.readInt64();
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 112
-            case 120:
-              {
-                maxBytesRewrittenPerCall_ = input.readInt64();
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 120
-            case 130:
-              {
-                copySourceEncryptionAlgorithm_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00040000;
-                break;
-              } // case 130
-            case 154:
-              {
-                input.readMessage(
-                    getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00200000;
-                break;
-              } // case 154
-            case 170:
-              {
-                copySourceEncryptionKeyBytes_ = input.readBytes();
-                bitField0_ |= 0x00080000;
-                break;
-              } // case 170
-            case 178:
-              {
-                copySourceEncryptionKeySha256Bytes_ = input.readBytes();
-                bitField0_ |= 0x00100000;
-                break;
-              } // case 178
-            case 194:
-              {
-                destinationName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 194
-            case 202:
-              {
-                destinationBucket_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 202
-            case 218:
-              {
-                destinationKmsKey_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 218
-            case 226:
-              {
-                destinationPredefinedAcl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 226
-            case 234:
-              {
-                input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00400000;
-                break;
-              } // case 234
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
-          } // switch (tag)
-        } // while (!done)
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.unwrapIOException();
-      } finally {
-        onChanged();
-      } // finally
-      return this;
-    }
-
-    private int bitField0_;
-
-    private java.lang.Object destinationName_ = "";
-    /**
-     *
-     *
-     * 
-     * Required. Immutable. The name of the destination object.
+            case 10: {
+              input.readMessage(
+                  getDestinationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 10
+            case 18: {
+              sourceBucket_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 18
+            case 26: {
+              sourceObject_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 26
+            case 32: {
+              sourceGeneration_ = input.readInt64();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 32
+            case 42: {
+              rewriteToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 42
+            case 56: {
+              ifGenerationMatch_ = input.readInt64();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 56
+            case 64: {
+              ifGenerationNotMatch_ = input.readInt64();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 64
+            case 72: {
+              ifMetagenerationMatch_ = input.readInt64();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 72
+            case 80: {
+              ifMetagenerationNotMatch_ = input.readInt64();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 80
+            case 88: {
+              ifSourceGenerationMatch_ = input.readInt64();
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 88
+            case 96: {
+              ifSourceGenerationNotMatch_ = input.readInt64();
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 96
+            case 104: {
+              ifSourceMetagenerationMatch_ = input.readInt64();
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 104
+            case 112: {
+              ifSourceMetagenerationNotMatch_ = input.readInt64();
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 112
+            case 120: {
+              maxBytesRewrittenPerCall_ = input.readInt64();
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 120
+            case 130: {
+              copySourceEncryptionAlgorithm_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00040000;
+              break;
+            } // case 130
+            case 154: {
+              input.readMessage(
+                  getCommonObjectRequestParamsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00200000;
+              break;
+            } // case 154
+            case 170: {
+              copySourceEncryptionKeyBytes_ = input.readBytes();
+              bitField0_ |= 0x00080000;
+              break;
+            } // case 170
+            case 178: {
+              copySourceEncryptionKeySha256Bytes_ = input.readBytes();
+              bitField0_ |= 0x00100000;
+              break;
+            } // case 178
+            case 194: {
+              destinationName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 194
+            case 202: {
+              destinationBucket_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 202
+            case 218: {
+              destinationKmsKey_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 218
+            case 226: {
+              destinationPredefinedAcl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 226
+            case 234: {
+              input.readMessage(
+                  getObjectChecksumsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00400000;
+              break;
+            } // case 234
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
+          } // switch (tag)
+        } // while (!done)
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.unwrapIOException();
+      } finally {
+        onChanged();
+      } // finally
+      return this;
+    }
+    private int bitField0_;
+
+    private java.lang.Object destinationName_ = "";
+    /**
+     * 
+     * Required. Immutable. The name of the destination object.
      * See the
      * [Naming Guidelines](https://cloud.google.com/storage/docs/objects#naming).
      * Example: `test.txt`
@@ -2038,16 +1890,14 @@ public Builder mergeFrom(
      * (bucket, object, generation).
      * 
* - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The destinationName. */ public java.lang.String getDestinationName() { java.lang.Object ref = destinationName_; 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(); destinationName_ = s; return s; @@ -2056,8 +1906,6 @@ public java.lang.String getDestinationName() { } } /** - * - * *
      * Required. Immutable. The name of the destination object.
      * See the
@@ -2068,17 +1916,16 @@ public java.lang.String getDestinationName() {
      * (bucket, object, generation).
      * 
* - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for destinationName. */ - public com.google.protobuf.ByteString getDestinationNameBytes() { + public com.google.protobuf.ByteString + getDestinationNameBytes() { java.lang.Object ref = destinationName_; 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); destinationName_ = b; return b; } else { @@ -2086,8 +1933,6 @@ public com.google.protobuf.ByteString getDestinationNameBytes() { } } /** - * - * *
      * Required. Immutable. The name of the destination object.
      * See the
@@ -2098,25 +1943,19 @@ public com.google.protobuf.ByteString getDestinationNameBytes() {
      * (bucket, object, generation).
      * 
* - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The destinationName to set. * @return This builder for chaining. */ - public Builder setDestinationName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Immutable. The name of the destination object.
      * See the
@@ -2127,10 +1966,7 @@ public Builder setDestinationName(java.lang.String value) {
      * (bucket, object, generation).
      * 
* - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearDestinationName() { @@ -2140,8 +1976,6 @@ public Builder clearDestinationName() { return this; } /** - * - * *
      * Required. Immutable. The name of the destination object.
      * See the
@@ -2152,17 +1986,13 @@ public Builder clearDestinationName() {
      * (bucket, object, generation).
      * 
* - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The bytes for destinationName to set. * @return This builder for chaining. */ - public Builder setDestinationNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationName_ = value; bitField0_ |= 0x00000001; @@ -2172,23 +2002,19 @@ public Builder setDestinationNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationBucket_ = ""; /** - * - * *
      * Required. Immutable. The name of the bucket containing the destination
      * object.
      * 
* - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The destinationBucket. */ public java.lang.String getDestinationBucket() { java.lang.Object ref = destinationBucket_; 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(); destinationBucket_ = s; return s; @@ -2197,24 +2023,21 @@ public java.lang.String getDestinationBucket() { } } /** - * - * *
      * Required. Immutable. The name of the bucket containing the destination
      * object.
      * 
* - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for destinationBucket. */ - public com.google.protobuf.ByteString getDestinationBucketBytes() { + public com.google.protobuf.ByteString + getDestinationBucketBytes() { java.lang.Object ref = destinationBucket_; 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); destinationBucket_ = b; return b; } else { @@ -2222,41 +2045,30 @@ public com.google.protobuf.ByteString getDestinationBucketBytes() { } } /** - * - * *
      * Required. Immutable. The name of the bucket containing the destination
      * object.
      * 
* - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The destinationBucket to set. * @return This builder for chaining. */ - public Builder setDestinationBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationBucket_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Immutable. The name of the bucket containing the destination
      * object.
      * 
* - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDestinationBucket() { @@ -2266,24 +2078,18 @@ public Builder clearDestinationBucket() { return this; } /** - * - * *
      * Required. Immutable. The name of the bucket containing the destination
      * object.
      * 
* - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for destinationBucket to set. * @return This builder for chaining. */ - public Builder setDestinationBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationBucket_ = value; bitField0_ |= 0x00000002; @@ -2293,8 +2099,6 @@ public Builder setDestinationBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationKmsKey_ = ""; /** - * - * *
      * The name of the Cloud KMS key that will be used to encrypt the destination
      * object. The Cloud KMS key must be located in same location as the object.
@@ -2304,13 +2108,13 @@ public Builder setDestinationBucketBytes(com.google.protobuf.ByteString value) {
      * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The destinationKmsKey. */ public java.lang.String getDestinationKmsKey() { java.lang.Object ref = destinationKmsKey_; 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(); destinationKmsKey_ = s; return s; @@ -2319,8 +2123,6 @@ public java.lang.String getDestinationKmsKey() { } } /** - * - * *
      * The name of the Cloud KMS key that will be used to encrypt the destination
      * object. The Cloud KMS key must be located in same location as the object.
@@ -2330,14 +2132,15 @@ public java.lang.String getDestinationKmsKey() {
      * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The bytes for destinationKmsKey. */ - public com.google.protobuf.ByteString getDestinationKmsKeyBytes() { + public com.google.protobuf.ByteString + getDestinationKmsKeyBytes() { java.lang.Object ref = destinationKmsKey_; 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); destinationKmsKey_ = b; return b; } else { @@ -2345,8 +2148,6 @@ public com.google.protobuf.ByteString getDestinationKmsKeyBytes() { } } /** - * - * *
      * The name of the Cloud KMS key that will be used to encrypt the destination
      * object. The Cloud KMS key must be located in same location as the object.
@@ -2356,22 +2157,18 @@ public com.google.protobuf.ByteString getDestinationKmsKeyBytes() {
      * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @param value The destinationKmsKey to set. * @return This builder for chaining. */ - public Builder setDestinationKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationKmsKey_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The name of the Cloud KMS key that will be used to encrypt the destination
      * object. The Cloud KMS key must be located in same location as the object.
@@ -2381,7 +2178,6 @@ public Builder setDestinationKmsKey(java.lang.String value) {
      * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDestinationKmsKey() { @@ -2391,8 +2187,6 @@ public Builder clearDestinationKmsKey() { return this; } /** - * - * *
      * The name of the Cloud KMS key that will be used to encrypt the destination
      * object. The Cloud KMS key must be located in same location as the object.
@@ -2402,14 +2196,12 @@ public Builder clearDestinationKmsKey() {
      * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for destinationKmsKey to set. * @return This builder for chaining. */ - public Builder setDestinationKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationKmsKey_ = value; bitField0_ |= 0x00000004; @@ -2419,13 +2211,8 @@ public Builder setDestinationKmsKeyBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.Object destination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - destinationBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> destinationBuilder_; /** - * - * *
      * Properties of the destination, post-rewrite object.
      * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -2437,15 +2224,12 @@ public Builder setDestinationKmsKeyBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.storage.v2.Object destination = 1; - * * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Properties of the destination, post-rewrite object.
      * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -2457,21 +2241,16 @@ public boolean hasDestination() {
      * 
* * .google.storage.v2.Object destination = 1; - * * @return The destination. */ public com.google.storage.v2.Object getDestination() { if (destinationBuilder_ == null) { - return destination_ == null - ? com.google.storage.v2.Object.getDefaultInstance() - : destination_; + return destination_ == null ? com.google.storage.v2.Object.getDefaultInstance() : destination_; } else { return destinationBuilder_.getMessage(); } } /** - * - * *
      * Properties of the destination, post-rewrite object.
      * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -2498,8 +2277,6 @@ public Builder setDestination(com.google.storage.v2.Object value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Properties of the destination, post-rewrite object.
      * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -2512,7 +2289,8 @@ public Builder setDestination(com.google.storage.v2.Object value) {
      *
      * .google.storage.v2.Object destination = 1;
      */
-    public Builder setDestination(com.google.storage.v2.Object.Builder builderForValue) {
+    public Builder setDestination(
+        com.google.storage.v2.Object.Builder builderForValue) {
       if (destinationBuilder_ == null) {
         destination_ = builderForValue.build();
       } else {
@@ -2523,8 +2301,6 @@ public Builder setDestination(com.google.storage.v2.Object.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Properties of the destination, post-rewrite object.
      * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -2539,9 +2315,9 @@ public Builder setDestination(com.google.storage.v2.Object.Builder builderForVal
      */
     public Builder mergeDestination(com.google.storage.v2.Object value) {
       if (destinationBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && destination_ != null
-            && destination_ != com.google.storage.v2.Object.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          destination_ != null &&
+          destination_ != com.google.storage.v2.Object.getDefaultInstance()) {
           getDestinationBuilder().mergeFrom(value);
         } else {
           destination_ = value;
@@ -2549,13 +2325,13 @@ public Builder mergeDestination(com.google.storage.v2.Object value) {
       } else {
         destinationBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000008;
-      onChanged();
+      if (destination_ != null) {
+        bitField0_ |= 0x00000008;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Properties of the destination, post-rewrite object.
      * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -2579,8 +2355,6 @@ public Builder clearDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Properties of the destination, post-rewrite object.
      * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -2599,8 +2373,6 @@ public com.google.storage.v2.Object.Builder getDestinationBuilder() {
       return getDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Properties of the destination, post-rewrite object.
      * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -2617,14 +2389,11 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() {
       if (destinationBuilder_ != null) {
         return destinationBuilder_.getMessageOrBuilder();
       } else {
-        return destination_ == null
-            ? com.google.storage.v2.Object.getDefaultInstance()
-            : destination_;
+        return destination_ == null ?
+            com.google.storage.v2.Object.getDefaultInstance() : destination_;
       }
     }
     /**
-     *
-     *
      * 
      * Properties of the destination, post-rewrite object.
      * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -2638,17 +2407,14 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() {
      * .google.storage.v2.Object destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Object,
-            com.google.storage.v2.Object.Builder,
-            com.google.storage.v2.ObjectOrBuilder>
+        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
         getDestinationFieldBuilder() {
       if (destinationBuilder_ == null) {
-        destinationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Object,
-                com.google.storage.v2.Object.Builder,
-                com.google.storage.v2.ObjectOrBuilder>(
-                getDestination(), getParentForChildren(), isClean());
+        destinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
+                getDestination(),
+                getParentForChildren(),
+                isClean());
         destination_ = null;
       }
       return destinationBuilder_;
@@ -2656,22 +2422,18 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() {
 
     private java.lang.Object sourceBucket_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the bucket in which to find the source object.
      * 
* - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sourceBucket. */ public java.lang.String getSourceBucket() { java.lang.Object ref = sourceBucket_; 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(); sourceBucket_ = s; return s; @@ -2680,23 +2442,20 @@ public java.lang.String getSourceBucket() { } } /** - * - * *
      * Required. Name of the bucket in which to find the source object.
      * 
* - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sourceBucket. */ - public com.google.protobuf.ByteString getSourceBucketBytes() { + public com.google.protobuf.ByteString + getSourceBucketBytes() { java.lang.Object ref = sourceBucket_; 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); sourceBucket_ = b; return b; } else { @@ -2704,39 +2463,28 @@ public com.google.protobuf.ByteString getSourceBucketBytes() { } } /** - * - * *
      * Required. Name of the bucket in which to find the source object.
      * 
* - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The sourceBucket to set. * @return This builder for chaining. */ - public Builder setSourceBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceBucket_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Name of the bucket in which to find the source object.
      * 
* - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSourceBucket() { @@ -2746,23 +2494,17 @@ public Builder clearSourceBucket() { return this; } /** - * - * *
      * Required. Name of the bucket in which to find the source object.
      * 
* - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for sourceBucket to set. * @return This builder for chaining. */ - public Builder setSourceBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceBucket_ = value; bitField0_ |= 0x00000010; @@ -2772,20 +2514,18 @@ public Builder setSourceBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceObject_ = ""; /** - * - * *
      * Required. Name of the source object.
      * 
* * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceObject. */ public java.lang.String getSourceObject() { java.lang.Object ref = sourceObject_; 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(); sourceObject_ = s; return s; @@ -2794,21 +2534,20 @@ public java.lang.String getSourceObject() { } } /** - * - * *
      * Required. Name of the source object.
      * 
* * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceObject. */ - public com.google.protobuf.ByteString getSourceObjectBytes() { + public com.google.protobuf.ByteString + getSourceObjectBytes() { java.lang.Object ref = sourceObject_; 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); sourceObject_ = b; return b; } else { @@ -2816,35 +2555,28 @@ public com.google.protobuf.ByteString getSourceObjectBytes() { } } /** - * - * *
      * Required. Name of the source object.
      * 
* * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceObject to set. * @return This builder for chaining. */ - public Builder setSourceObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceObject_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Required. Name of the source object.
      * 
* * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceObject() { @@ -2854,21 +2586,17 @@ public Builder clearSourceObject() { return this; } /** - * - * *
      * Required. Name of the source object.
      * 
* * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceObject to set. * @return This builder for chaining. */ - public Builder setSourceObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceObject_ = value; bitField0_ |= 0x00000020; @@ -2876,17 +2604,14 @@ public Builder setSourceObjectBytes(com.google.protobuf.ByteString value) { return this; } - private long sourceGeneration_; + private long sourceGeneration_ ; /** - * - * *
      * If present, selects a specific revision of the source object (as opposed to
      * the latest version, the default).
      * 
* * int64 source_generation = 4; - * * @return The sourceGeneration. */ @java.lang.Override @@ -2894,15 +2619,12 @@ public long getSourceGeneration() { return sourceGeneration_; } /** - * - * *
      * If present, selects a specific revision of the source object (as opposed to
      * the latest version, the default).
      * 
* * int64 source_generation = 4; - * * @param value The sourceGeneration to set. * @return This builder for chaining. */ @@ -2914,15 +2636,12 @@ public Builder setSourceGeneration(long value) { return this; } /** - * - * *
      * If present, selects a specific revision of the source object (as opposed to
      * the latest version, the default).
      * 
* * int64 source_generation = 4; - * * @return This builder for chaining. */ public Builder clearSourceGeneration() { @@ -2934,8 +2653,6 @@ public Builder clearSourceGeneration() { private java.lang.Object rewriteToken_ = ""; /** - * - * *
      * Include this field (from the previous rewrite response) on each rewrite
      * request after the first one, until the rewrite response 'done' flag is
@@ -2945,13 +2662,13 @@ public Builder clearSourceGeneration() {
      * 
* * string rewrite_token = 5; - * * @return The rewriteToken. */ public java.lang.String getRewriteToken() { java.lang.Object ref = rewriteToken_; 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(); rewriteToken_ = s; return s; @@ -2960,8 +2677,6 @@ public java.lang.String getRewriteToken() { } } /** - * - * *
      * Include this field (from the previous rewrite response) on each rewrite
      * request after the first one, until the rewrite response 'done' flag is
@@ -2971,14 +2686,15 @@ public java.lang.String getRewriteToken() {
      * 
* * string rewrite_token = 5; - * * @return The bytes for rewriteToken. */ - public com.google.protobuf.ByteString getRewriteTokenBytes() { + public com.google.protobuf.ByteString + getRewriteTokenBytes() { java.lang.Object ref = rewriteToken_; 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); rewriteToken_ = b; return b; } else { @@ -2986,8 +2702,6 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() { } } /** - * - * *
      * Include this field (from the previous rewrite response) on each rewrite
      * request after the first one, until the rewrite response 'done' flag is
@@ -2997,22 +2711,18 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() {
      * 
* * string rewrite_token = 5; - * * @param value The rewriteToken to set. * @return This builder for chaining. */ - public Builder setRewriteToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRewriteToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rewriteToken_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Include this field (from the previous rewrite response) on each rewrite
      * request after the first one, until the rewrite response 'done' flag is
@@ -3022,7 +2732,6 @@ public Builder setRewriteToken(java.lang.String value) {
      * 
* * string rewrite_token = 5; - * * @return This builder for chaining. */ public Builder clearRewriteToken() { @@ -3032,8 +2741,6 @@ public Builder clearRewriteToken() { return this; } /** - * - * *
      * Include this field (from the previous rewrite response) on each rewrite
      * request after the first one, until the rewrite response 'done' flag is
@@ -3043,14 +2750,12 @@ public Builder clearRewriteToken() {
      * 
* * string rewrite_token = 5; - * * @param value The bytes for rewriteToken to set. * @return This builder for chaining. */ - public Builder setRewriteTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRewriteTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rewriteToken_ = value; bitField0_ |= 0x00000080; @@ -3060,8 +2765,6 @@ public Builder setRewriteTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationPredefinedAcl_ = ""; /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3069,13 +2772,13 @@ public Builder setRewriteTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string destination_predefined_acl = 28; - * * @return The destinationPredefinedAcl. */ public java.lang.String getDestinationPredefinedAcl() { java.lang.Object ref = destinationPredefinedAcl_; 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(); destinationPredefinedAcl_ = s; return s; @@ -3084,8 +2787,6 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3093,14 +2794,15 @@ public java.lang.String getDestinationPredefinedAcl() {
      * 
* * string destination_predefined_acl = 28; - * * @return The bytes for destinationPredefinedAcl. */ - public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { + public com.google.protobuf.ByteString + getDestinationPredefinedAclBytes() { java.lang.Object ref = destinationPredefinedAcl_; 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); destinationPredefinedAcl_ = b; return b; } else { @@ -3108,8 +2810,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3117,22 +2817,18 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() {
      * 
* * string destination_predefined_acl = 28; - * * @param value The destinationPredefinedAcl to set. * @return This builder for chaining. */ - public Builder setDestinationPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationPredefinedAcl_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3140,7 +2836,6 @@ public Builder setDestinationPredefinedAcl(java.lang.String value) {
      * 
* * string destination_predefined_acl = 28; - * * @return This builder for chaining. */ public Builder clearDestinationPredefinedAcl() { @@ -3150,8 +2845,6 @@ public Builder clearDestinationPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3159,14 +2852,12 @@ public Builder clearDestinationPredefinedAcl() {
      * 
* * string destination_predefined_acl = 28; - * * @param value The bytes for destinationPredefinedAcl to set. * @return This builder for chaining. */ - public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationPredefinedAcl_ = value; bitField0_ |= 0x00000100; @@ -3174,10 +2865,8 @@ public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString v return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -3185,7 +2874,6 @@ public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString v
      * 
* * optional int64 if_generation_match = 7; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -3193,8 +2881,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -3202,7 +2888,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 7; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -3210,8 +2895,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -3219,7 +2902,6 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 7; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -3231,8 +2913,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -3240,7 +2920,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 7; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -3250,10 +2929,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -3262,7 +2939,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 8; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -3270,8 +2946,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -3280,7 +2954,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 8; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -3288,8 +2961,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -3298,7 +2969,6 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 8; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -3310,8 +2980,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -3320,7 +2988,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 8; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -3330,17 +2997,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the destination object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 9; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -3348,15 +3012,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Makes the operation conditional on whether the destination object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 9; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -3364,15 +3025,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the destination object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 9; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -3384,15 +3042,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the destination object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 9; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -3402,17 +3057,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the destination object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 10; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -3420,15 +3072,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Makes the operation conditional on whether the destination object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 10; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -3436,15 +3085,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the destination object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 10; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -3456,15 +3102,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the destination object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 10; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -3474,17 +3117,14 @@ public Builder clearIfMetagenerationNotMatch() { return this; } - private long ifSourceGenerationMatch_; + private long ifSourceGenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the source object's live
      * generation matches the given value.
      * 
* * optional int64 if_source_generation_match = 11; - * * @return Whether the ifSourceGenerationMatch field is set. */ @java.lang.Override @@ -3492,15 +3132,12 @@ public boolean hasIfSourceGenerationMatch() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * Makes the operation conditional on whether the source object's live
      * generation matches the given value.
      * 
* * optional int64 if_source_generation_match = 11; - * * @return The ifSourceGenerationMatch. */ @java.lang.Override @@ -3508,15 +3145,12 @@ public long getIfSourceGenerationMatch() { return ifSourceGenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the source object's live
      * generation matches the given value.
      * 
* * optional int64 if_source_generation_match = 11; - * * @param value The ifSourceGenerationMatch to set. * @return This builder for chaining. */ @@ -3528,15 +3162,12 @@ public Builder setIfSourceGenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the source object's live
      * generation matches the given value.
      * 
* * optional int64 if_source_generation_match = 11; - * * @return This builder for chaining. */ public Builder clearIfSourceGenerationMatch() { @@ -3546,17 +3177,14 @@ public Builder clearIfSourceGenerationMatch() { return this; } - private long ifSourceGenerationNotMatch_; + private long ifSourceGenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the source object's live
      * generation does not match the given value.
      * 
* * optional int64 if_source_generation_not_match = 12; - * * @return Whether the ifSourceGenerationNotMatch field is set. */ @java.lang.Override @@ -3564,15 +3192,12 @@ public boolean hasIfSourceGenerationNotMatch() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * Makes the operation conditional on whether the source object's live
      * generation does not match the given value.
      * 
* * optional int64 if_source_generation_not_match = 12; - * * @return The ifSourceGenerationNotMatch. */ @java.lang.Override @@ -3580,15 +3205,12 @@ public long getIfSourceGenerationNotMatch() { return ifSourceGenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the source object's live
      * generation does not match the given value.
      * 
* * optional int64 if_source_generation_not_match = 12; - * * @param value The ifSourceGenerationNotMatch to set. * @return This builder for chaining. */ @@ -3600,15 +3222,12 @@ public Builder setIfSourceGenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the source object's live
      * generation does not match the given value.
      * 
* * optional int64 if_source_generation_not_match = 12; - * * @return This builder for chaining. */ public Builder clearIfSourceGenerationNotMatch() { @@ -3618,17 +3237,14 @@ public Builder clearIfSourceGenerationNotMatch() { return this; } - private long ifSourceMetagenerationMatch_; + private long ifSourceMetagenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the source object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_source_metageneration_match = 13; - * * @return Whether the ifSourceMetagenerationMatch field is set. */ @java.lang.Override @@ -3636,15 +3252,12 @@ public boolean hasIfSourceMetagenerationMatch() { return ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * Makes the operation conditional on whether the source object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_source_metageneration_match = 13; - * * @return The ifSourceMetagenerationMatch. */ @java.lang.Override @@ -3652,15 +3265,12 @@ public long getIfSourceMetagenerationMatch() { return ifSourceMetagenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the source object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_source_metageneration_match = 13; - * * @param value The ifSourceMetagenerationMatch to set. * @return This builder for chaining. */ @@ -3672,15 +3282,12 @@ public Builder setIfSourceMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the source object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_source_metageneration_match = 13; - * * @return This builder for chaining. */ public Builder clearIfSourceMetagenerationMatch() { @@ -3690,17 +3297,14 @@ public Builder clearIfSourceMetagenerationMatch() { return this; } - private long ifSourceMetagenerationNotMatch_; + private long ifSourceMetagenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the source object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_source_metageneration_not_match = 14; - * * @return Whether the ifSourceMetagenerationNotMatch field is set. */ @java.lang.Override @@ -3708,15 +3312,12 @@ public boolean hasIfSourceMetagenerationNotMatch() { return ((bitField0_ & 0x00010000) != 0); } /** - * - * *
      * Makes the operation conditional on whether the source object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_source_metageneration_not_match = 14; - * * @return The ifSourceMetagenerationNotMatch. */ @java.lang.Override @@ -3724,15 +3325,12 @@ public long getIfSourceMetagenerationNotMatch() { return ifSourceMetagenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the source object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_source_metageneration_not_match = 14; - * * @param value The ifSourceMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -3744,15 +3342,12 @@ public Builder setIfSourceMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the source object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_source_metageneration_not_match = 14; - * * @return This builder for chaining. */ public Builder clearIfSourceMetagenerationNotMatch() { @@ -3762,10 +3357,8 @@ public Builder clearIfSourceMetagenerationNotMatch() { return this; } - private long maxBytesRewrittenPerCall_; + private long maxBytesRewrittenPerCall_ ; /** - * - * *
      * The maximum number of bytes that will be rewritten per rewrite request.
      * Most callers
@@ -3778,7 +3371,6 @@ public Builder clearIfSourceMetagenerationNotMatch() {
      * 
* * int64 max_bytes_rewritten_per_call = 15; - * * @return The maxBytesRewrittenPerCall. */ @java.lang.Override @@ -3786,8 +3378,6 @@ public long getMaxBytesRewrittenPerCall() { return maxBytesRewrittenPerCall_; } /** - * - * *
      * The maximum number of bytes that will be rewritten per rewrite request.
      * Most callers
@@ -3800,7 +3390,6 @@ public long getMaxBytesRewrittenPerCall() {
      * 
* * int64 max_bytes_rewritten_per_call = 15; - * * @param value The maxBytesRewrittenPerCall to set. * @return This builder for chaining. */ @@ -3812,8 +3401,6 @@ public Builder setMaxBytesRewrittenPerCall(long value) { return this; } /** - * - * *
      * The maximum number of bytes that will be rewritten per rewrite request.
      * Most callers
@@ -3826,7 +3413,6 @@ public Builder setMaxBytesRewrittenPerCall(long value) {
      * 
* * int64 max_bytes_rewritten_per_call = 15; - * * @return This builder for chaining. */ public Builder clearMaxBytesRewrittenPerCall() { @@ -3838,21 +3424,19 @@ public Builder clearMaxBytesRewrittenPerCall() { private java.lang.Object copySourceEncryptionAlgorithm_ = ""; /** - * - * *
      * The algorithm used to encrypt the source object, if any. Used if the source
      * object was encrypted with a Customer-Supplied Encryption Key.
      * 
* * string copy_source_encryption_algorithm = 16; - * * @return The copySourceEncryptionAlgorithm. */ public java.lang.String getCopySourceEncryptionAlgorithm() { java.lang.Object ref = copySourceEncryptionAlgorithm_; 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(); copySourceEncryptionAlgorithm_ = s; return s; @@ -3861,22 +3445,21 @@ public java.lang.String getCopySourceEncryptionAlgorithm() { } } /** - * - * *
      * The algorithm used to encrypt the source object, if any. Used if the source
      * object was encrypted with a Customer-Supplied Encryption Key.
      * 
* * string copy_source_encryption_algorithm = 16; - * * @return The bytes for copySourceEncryptionAlgorithm. */ - public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getCopySourceEncryptionAlgorithmBytes() { java.lang.Object ref = copySourceEncryptionAlgorithm_; 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); copySourceEncryptionAlgorithm_ = b; return b; } else { @@ -3884,37 +3467,30 @@ public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes() { } } /** - * - * *
      * The algorithm used to encrypt the source object, if any. Used if the source
      * object was encrypted with a Customer-Supplied Encryption Key.
      * 
* * string copy_source_encryption_algorithm = 16; - * * @param value The copySourceEncryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setCopySourceEncryptionAlgorithm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCopySourceEncryptionAlgorithm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } copySourceEncryptionAlgorithm_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** - * - * *
      * The algorithm used to encrypt the source object, if any. Used if the source
      * object was encrypted with a Customer-Supplied Encryption Key.
      * 
* * string copy_source_encryption_algorithm = 16; - * * @return This builder for chaining. */ public Builder clearCopySourceEncryptionAlgorithm() { @@ -3924,22 +3500,18 @@ public Builder clearCopySourceEncryptionAlgorithm() { return this; } /** - * - * *
      * The algorithm used to encrypt the source object, if any. Used if the source
      * object was encrypted with a Customer-Supplied Encryption Key.
      * 
* * string copy_source_encryption_algorithm = 16; - * * @param value The bytes for copySourceEncryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setCopySourceEncryptionAlgorithmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCopySourceEncryptionAlgorithmBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); copySourceEncryptionAlgorithm_ = value; bitField0_ |= 0x00040000; @@ -3947,11 +3519,8 @@ public Builder setCopySourceEncryptionAlgorithmBytes(com.google.protobuf.ByteStr return this; } - private com.google.protobuf.ByteString copySourceEncryptionKeyBytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString copySourceEncryptionKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The raw bytes (not base64-encoded) AES-256 encryption key used to encrypt
      * the source object, if it was encrypted with a Customer-Supplied Encryption
@@ -3959,7 +3528,6 @@ public Builder setCopySourceEncryptionAlgorithmBytes(com.google.protobuf.ByteStr
      * 
* * bytes copy_source_encryption_key_bytes = 21; - * * @return The copySourceEncryptionKeyBytes. */ @java.lang.Override @@ -3967,8 +3535,6 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes() { return copySourceEncryptionKeyBytes_; } /** - * - * *
      * The raw bytes (not base64-encoded) AES-256 encryption key used to encrypt
      * the source object, if it was encrypted with a Customer-Supplied Encryption
@@ -3976,22 +3542,17 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes() {
      * 
* * bytes copy_source_encryption_key_bytes = 21; - * * @param value The copySourceEncryptionKeyBytes to set. * @return This builder for chaining. */ public Builder setCopySourceEncryptionKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } copySourceEncryptionKeyBytes_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** - * - * *
      * The raw bytes (not base64-encoded) AES-256 encryption key used to encrypt
      * the source object, if it was encrypted with a Customer-Supplied Encryption
@@ -3999,7 +3560,6 @@ public Builder setCopySourceEncryptionKeyBytes(com.google.protobuf.ByteString va
      * 
* * bytes copy_source_encryption_key_bytes = 21; - * * @return This builder for chaining. */ public Builder clearCopySourceEncryptionKeyBytes() { @@ -4009,11 +3569,8 @@ public Builder clearCopySourceEncryptionKeyBytes() { return this; } - private com.google.protobuf.ByteString copySourceEncryptionKeySha256Bytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString copySourceEncryptionKeySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The raw bytes (not base64-encoded) SHA256 hash of the encryption key used
      * to encrypt the source object, if it was encrypted with a Customer-Supplied
@@ -4021,7 +3578,6 @@ public Builder clearCopySourceEncryptionKeyBytes() {
      * 
* * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @return The copySourceEncryptionKeySha256Bytes. */ @java.lang.Override @@ -4029,8 +3585,6 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeySha256Bytes() { return copySourceEncryptionKeySha256Bytes_; } /** - * - * *
      * The raw bytes (not base64-encoded) SHA256 hash of the encryption key used
      * to encrypt the source object, if it was encrypted with a Customer-Supplied
@@ -4038,22 +3592,17 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeySha256Bytes() {
      * 
* * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @param value The copySourceEncryptionKeySha256Bytes to set. * @return This builder for chaining. */ public Builder setCopySourceEncryptionKeySha256Bytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } copySourceEncryptionKeySha256Bytes_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** - * - * *
      * The raw bytes (not base64-encoded) SHA256 hash of the encryption key used
      * to encrypt the source object, if it was encrypted with a Customer-Supplied
@@ -4061,68 +3610,52 @@ public Builder setCopySourceEncryptionKeySha256Bytes(com.google.protobuf.ByteStr
      * 
* * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @return This builder for chaining. */ public Builder clearCopySourceEncryptionKeySha256Bytes() { bitField0_ = (bitField0_ & ~0x00100000); - copySourceEncryptionKeySha256Bytes_ = - getDefaultInstance().getCopySourceEncryptionKeySha256Bytes(); + copySourceEncryptionKeySha256Bytes_ = getDefaultInstance().getCopySourceEncryptionKeySha256Bytes(); onChanged(); return this; } private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00200000) != 0); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4136,8 +3669,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -4156,21 +3687,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00200000) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -4178,13 +3705,13 @@ public Builder mergeCommonObjectRequestParams( } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00200000; - onChanged(); + if (commonObjectRequestParams_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -4202,42 +3729,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00200000; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -4245,17 +3763,14 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; @@ -4263,49 +3778,36 @@ public Builder clearCommonObjectRequestParams() { private com.google.storage.v2.ObjectChecksums objectChecksums_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ObjectChecksums, - com.google.storage.v2.ObjectChecksums.Builder, - com.google.storage.v2.ObjectChecksumsOrBuilder> - objectChecksumsBuilder_; + com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_; /** - * - * *
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 29; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00400000) != 0); } /** - * - * *
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 29; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
@@ -4327,8 +3829,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
@@ -4348,8 +3848,6 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
@@ -4359,9 +3857,9 @@ public Builder setObjectChecksums(
      */
     public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       if (objectChecksumsBuilder_ == null) {
-        if (((bitField0_ & 0x00400000) != 0)
-            && objectChecksums_ != null
-            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
+        if (((bitField0_ & 0x00400000) != 0) &&
+          objectChecksums_ != null &&
+          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
           getObjectChecksumsBuilder().mergeFrom(value);
         } else {
           objectChecksums_ = value;
@@ -4369,13 +3867,13 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
       } else {
         objectChecksumsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00400000;
-      onChanged();
+      if (objectChecksums_ != null) {
+        bitField0_ |= 0x00400000;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
@@ -4394,8 +3892,6 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
@@ -4409,8 +3905,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
       return getObjectChecksumsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
@@ -4422,14 +3916,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
       if (objectChecksumsBuilder_ != null) {
         return objectChecksumsBuilder_.getMessageOrBuilder();
       } else {
-        return objectChecksums_ == null
-            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-            : objectChecksums_;
+        return objectChecksums_ == null ?
+            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
       }
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
@@ -4438,24 +3929,21 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
      * .google.storage.v2.ObjectChecksums object_checksums = 29;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ObjectChecksums,
-            com.google.storage.v2.ObjectChecksums.Builder,
-            com.google.storage.v2.ObjectChecksumsOrBuilder>
+        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
         getObjectChecksumsFieldBuilder() {
       if (objectChecksumsBuilder_ == null) {
-        objectChecksumsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.ObjectChecksums,
-                com.google.storage.v2.ObjectChecksums.Builder,
-                com.google.storage.v2.ObjectChecksumsOrBuilder>(
-                getObjectChecksums(), getParentForChildren(), isClean());
+        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
+                getObjectChecksums(),
+                getParentForChildren(),
+                isClean());
         objectChecksums_ = null;
       }
       return objectChecksumsBuilder_;
     }
-
     @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);
     }
 
@@ -4465,12 +3953,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.RewriteObjectRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.RewriteObjectRequest)
   private static final com.google.storage.v2.RewriteObjectRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.RewriteObjectRequest();
   }
@@ -4479,27 +3967,27 @@ public static com.google.storage.v2.RewriteObjectRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public RewriteObjectRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 RewriteObjectRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -4514,4 +4002,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.RewriteObjectRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
similarity index 86%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
index dc5beddfce..0d7cd9ccb5 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
@@ -1,31 +1,14 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface RewriteObjectRequestOrBuilder
-    extends
+public interface RewriteObjectRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.RewriteObjectRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Immutable. The name of the destination object.
    * See the
@@ -36,16 +19,11 @@ public interface RewriteObjectRequestOrBuilder
    * (bucket, object, generation).
    * 
* - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The destinationName. */ java.lang.String getDestinationName(); /** - * - * *
    * Required. Immutable. The name of the destination object.
    * See the
@@ -56,48 +34,35 @@ public interface RewriteObjectRequestOrBuilder
    * (bucket, object, generation).
    * 
* - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for destinationName. */ - com.google.protobuf.ByteString getDestinationNameBytes(); + com.google.protobuf.ByteString + getDestinationNameBytes(); /** - * - * *
    * Required. Immutable. The name of the bucket containing the destination
    * object.
    * 
* - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The destinationBucket. */ java.lang.String getDestinationBucket(); /** - * - * *
    * Required. Immutable. The name of the bucket containing the destination
    * object.
    * 
* - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for destinationBucket. */ - com.google.protobuf.ByteString getDestinationBucketBytes(); + com.google.protobuf.ByteString + getDestinationBucketBytes(); /** - * - * *
    * The name of the Cloud KMS key that will be used to encrypt the destination
    * object. The Cloud KMS key must be located in same location as the object.
@@ -107,13 +72,10 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The destinationKmsKey. */ java.lang.String getDestinationKmsKey(); /** - * - * *
    * The name of the Cloud KMS key that will be used to encrypt the destination
    * object. The Cloud KMS key must be located in same location as the object.
@@ -123,14 +85,12 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The bytes for destinationKmsKey. */ - com.google.protobuf.ByteString getDestinationKmsKeyBytes(); + com.google.protobuf.ByteString + getDestinationKmsKeyBytes(); /** - * - * *
    * Properties of the destination, post-rewrite object.
    * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -142,13 +102,10 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * .google.storage.v2.Object destination = 1; - * * @return Whether the destination field is set. */ boolean hasDestination(); /** - * - * *
    * Properties of the destination, post-rewrite object.
    * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -160,13 +117,10 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * .google.storage.v2.Object destination = 1; - * * @return The destination. */ com.google.storage.v2.Object getDestination(); /** - * - * *
    * Properties of the destination, post-rewrite object.
    * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -182,76 +136,57 @@ public interface RewriteObjectRequestOrBuilder
   com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. Name of the bucket in which to find the source object.
    * 
* - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sourceBucket. */ java.lang.String getSourceBucket(); /** - * - * *
    * Required. Name of the bucket in which to find the source object.
    * 
* - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sourceBucket. */ - com.google.protobuf.ByteString getSourceBucketBytes(); + com.google.protobuf.ByteString + getSourceBucketBytes(); /** - * - * *
    * Required. Name of the source object.
    * 
* * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceObject. */ java.lang.String getSourceObject(); /** - * - * *
    * Required. Name of the source object.
    * 
* * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceObject. */ - com.google.protobuf.ByteString getSourceObjectBytes(); + com.google.protobuf.ByteString + getSourceObjectBytes(); /** - * - * *
    * If present, selects a specific revision of the source object (as opposed to
    * the latest version, the default).
    * 
* * int64 source_generation = 4; - * * @return The sourceGeneration. */ long getSourceGeneration(); /** - * - * *
    * Include this field (from the previous rewrite response) on each rewrite
    * request after the first one, until the rewrite response 'done' flag is
@@ -261,13 +196,10 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * string rewrite_token = 5; - * * @return The rewriteToken. */ java.lang.String getRewriteToken(); /** - * - * *
    * Include this field (from the previous rewrite response) on each rewrite
    * request after the first one, until the rewrite response 'done' flag is
@@ -277,14 +209,12 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * string rewrite_token = 5; - * * @return The bytes for rewriteToken. */ - com.google.protobuf.ByteString getRewriteTokenBytes(); + com.google.protobuf.ByteString + getRewriteTokenBytes(); /** - * - * *
    * Apply a predefined set of access controls to the destination object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -292,13 +222,10 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * string destination_predefined_acl = 28; - * * @return The destinationPredefinedAcl. */ java.lang.String getDestinationPredefinedAcl(); /** - * - * *
    * Apply a predefined set of access controls to the destination object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -306,14 +233,12 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * string destination_predefined_acl = 28; - * * @return The bytes for destinationPredefinedAcl. */ - com.google.protobuf.ByteString getDestinationPredefinedAclBytes(); + com.google.protobuf.ByteString + getDestinationPredefinedAclBytes(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -321,13 +246,10 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 7; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -335,14 +257,11 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 7; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -351,13 +270,10 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 8; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -366,176 +282,137 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 8; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the destination object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 9; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the destination object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 9; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the destination object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 10; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the destination object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 10; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the source object's live
    * generation matches the given value.
    * 
* * optional int64 if_source_generation_match = 11; - * * @return Whether the ifSourceGenerationMatch field is set. */ boolean hasIfSourceGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the source object's live
    * generation matches the given value.
    * 
* * optional int64 if_source_generation_match = 11; - * * @return The ifSourceGenerationMatch. */ long getIfSourceGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the source object's live
    * generation does not match the given value.
    * 
* * optional int64 if_source_generation_not_match = 12; - * * @return Whether the ifSourceGenerationNotMatch field is set. */ boolean hasIfSourceGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the source object's live
    * generation does not match the given value.
    * 
* * optional int64 if_source_generation_not_match = 12; - * * @return The ifSourceGenerationNotMatch. */ long getIfSourceGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the source object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_source_metageneration_match = 13; - * * @return Whether the ifSourceMetagenerationMatch field is set. */ boolean hasIfSourceMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the source object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_source_metageneration_match = 13; - * * @return The ifSourceMetagenerationMatch. */ long getIfSourceMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the source object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_source_metageneration_not_match = 14; - * * @return Whether the ifSourceMetagenerationNotMatch field is set. */ boolean hasIfSourceMetagenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the source object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_source_metageneration_not_match = 14; - * * @return The ifSourceMetagenerationNotMatch. */ long getIfSourceMetagenerationNotMatch(); /** - * - * *
    * The maximum number of bytes that will be rewritten per rewrite request.
    * Most callers
@@ -548,41 +425,33 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * int64 max_bytes_rewritten_per_call = 15; - * * @return The maxBytesRewrittenPerCall. */ long getMaxBytesRewrittenPerCall(); /** - * - * *
    * The algorithm used to encrypt the source object, if any. Used if the source
    * object was encrypted with a Customer-Supplied Encryption Key.
    * 
* * string copy_source_encryption_algorithm = 16; - * * @return The copySourceEncryptionAlgorithm. */ java.lang.String getCopySourceEncryptionAlgorithm(); /** - * - * *
    * The algorithm used to encrypt the source object, if any. Used if the source
    * object was encrypted with a Customer-Supplied Encryption Key.
    * 
* * string copy_source_encryption_algorithm = 16; - * * @return The bytes for copySourceEncryptionAlgorithm. */ - com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes(); + com.google.protobuf.ByteString + getCopySourceEncryptionAlgorithmBytes(); /** - * - * *
    * The raw bytes (not base64-encoded) AES-256 encryption key used to encrypt
    * the source object, if it was encrypted with a Customer-Supplied Encryption
@@ -590,14 +459,11 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * bytes copy_source_encryption_key_bytes = 21; - * * @return The copySourceEncryptionKeyBytes. */ com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes(); /** - * - * *
    * The raw bytes (not base64-encoded) SHA256 hash of the encryption key used
    * to encrypt the source object, if it was encrypted with a Customer-Supplied
@@ -605,38 +471,29 @@ public interface RewriteObjectRequestOrBuilder
    * 
* * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @return The copySourceEncryptionKeySha256Bytes. */ com.google.protobuf.ByteString getCopySourceEncryptionKeySha256Bytes(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -646,34 +503,26 @@ public interface RewriteObjectRequestOrBuilder com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder(); /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * destination object after rewriting.
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 29; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * destination object after rewriting.
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 29; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * destination object after rewriting.
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
similarity index 72%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
index ac31614a86..91d7e678de 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
@@ -1,79 +1,59 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * A rewrite response.
  * 
* * Protobuf type {@code google.storage.v2.RewriteResponse} */ -public final class RewriteResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RewriteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.RewriteResponse) RewriteResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RewriteResponse.newBuilder() to construct. private RewriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RewriteResponse() { rewriteToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RewriteResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_RewriteResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.RewriteResponse.class, - com.google.storage.v2.RewriteResponse.Builder.class); + com.google.storage.v2.RewriteResponse.class, com.google.storage.v2.RewriteResponse.Builder.class); } + private int bitField0_; public static final int TOTAL_BYTES_REWRITTEN_FIELD_NUMBER = 1; private long totalBytesRewritten_ = 0L; /** - * - * *
    * The total bytes written so far, which can be used to provide a waiting user
    * with a progress indicator. This property is always present in the response.
    * 
* * int64 total_bytes_rewritten = 1; - * * @return The totalBytesRewritten. */ @java.lang.Override @@ -84,15 +64,12 @@ public long getTotalBytesRewritten() { public static final int OBJECT_SIZE_FIELD_NUMBER = 2; private long objectSize_ = 0L; /** - * - * *
    * The total size of the object being copied in bytes. This property is always
    * present in the response.
    * 
* * int64 object_size = 2; - * * @return The objectSize. */ @java.lang.Override @@ -103,15 +80,12 @@ public long getObjectSize() { public static final int DONE_FIELD_NUMBER = 3; private boolean done_ = false; /** - * - * *
    * `true` if the copy is finished; otherwise, `false` if
    * the copy is in progress. This property is always present in the response.
    * 
* * bool done = 3; - * * @return The done. */ @java.lang.Override @@ -120,19 +94,15 @@ public boolean getDone() { } public static final int REWRITE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object rewriteToken_ = ""; /** - * - * *
    * A token to use in subsequent requests to continue copying data. This token
    * is present in the response only when there is more data to copy.
    * 
* * string rewrite_token = 4; - * * @return The rewriteToken. */ @java.lang.Override @@ -141,30 +111,30 @@ public java.lang.String getRewriteToken() { 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(); rewriteToken_ = s; return s; } } /** - * - * *
    * A token to use in subsequent requests to continue copying data. This token
    * is present in the response only when there is more data to copy.
    * 
* * string rewrite_token = 4; - * * @return The bytes for rewriteToken. */ @java.lang.Override - public com.google.protobuf.ByteString getRewriteTokenBytes() { + public com.google.protobuf.ByteString + getRewriteTokenBytes() { java.lang.Object ref = rewriteToken_; 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); rewriteToken_ = b; return b; } else { @@ -175,31 +145,25 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() { public static final int RESOURCE_FIELD_NUMBER = 5; private com.google.storage.v2.Object resource_; /** - * - * *
    * A resource containing the metadata for the copied-to object. This property
    * is present in the response only when copying completes.
    * 
* * .google.storage.v2.Object resource = 5; - * * @return Whether the resource field is set. */ @java.lang.Override public boolean hasResource() { - return resource_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * A resource containing the metadata for the copied-to object. This property
    * is present in the response only when copying completes.
    * 
* * .google.storage.v2.Object resource = 5; - * * @return The resource. */ @java.lang.Override @@ -207,8 +171,6 @@ public com.google.storage.v2.Object getResource() { return resource_ == null ? com.google.storage.v2.Object.getDefaultInstance() : resource_; } /** - * - * *
    * A resource containing the metadata for the copied-to object. This property
    * is present in the response only when copying completes.
@@ -222,7 +184,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -234,7 +195,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 (totalBytesRewritten_ != 0L) {
       output.writeInt64(1, totalBytesRewritten_);
     }
@@ -247,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewriteToken_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rewriteToken_);
     }
-    if (resource_ != null) {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(5, getResource());
     }
     getUnknownFields().writeTo(output);
@@ -260,19 +222,23 @@ public int getSerializedSize() {
 
     size = 0;
     if (totalBytesRewritten_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalBytesRewritten_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, totalBytesRewritten_);
     }
     if (objectSize_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, objectSize_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, objectSize_);
     }
     if (done_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, done_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(3, done_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewriteToken_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rewriteToken_);
     }
-    if (resource_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResource());
+    if (((bitField0_ & 0x00000001) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getResource());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -282,20 +248,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.storage.v2.RewriteResponse)) {
       return super.equals(obj);
     }
     com.google.storage.v2.RewriteResponse other = (com.google.storage.v2.RewriteResponse) obj;
 
-    if (getTotalBytesRewritten() != other.getTotalBytesRewritten()) return false;
-    if (getObjectSize() != other.getObjectSize()) return false;
-    if (getDone() != other.getDone()) return false;
-    if (!getRewriteToken().equals(other.getRewriteToken())) return false;
+    if (getTotalBytesRewritten()
+        != other.getTotalBytesRewritten()) return false;
+    if (getObjectSize()
+        != other.getObjectSize()) return false;
+    if (getDone()
+        != other.getDone()) return false;
+    if (!getRewriteToken()
+        .equals(other.getRewriteToken())) return false;
     if (hasResource() != other.hasResource()) return false;
     if (hasResource()) {
-      if (!getResource().equals(other.getResource())) return false;
+      if (!getResource()
+          .equals(other.getResource())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -309,11 +280,14 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + TOTAL_BYTES_REWRITTEN_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBytesRewritten());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getTotalBytesRewritten());
     hash = (37 * hash) + OBJECT_SIZE_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObjectSize());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getObjectSize());
     hash = (37 * hash) + DONE_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getDone());
     hash = (37 * hash) + REWRITE_TOKEN_FIELD_NUMBER;
     hash = (53 * hash) + getRewriteToken().hashCode();
     if (hasResource()) {
@@ -325,135 +299,138 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.RewriteResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.RewriteResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.RewriteResponse 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.storage.v2.RewriteResponse parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.storage.v2.RewriteResponse parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.RewriteResponse 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.storage.v2.RewriteResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.RewriteResponse 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.storage.v2.RewriteResponse 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.storage.v2.RewriteResponse 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.storage.v2.RewriteResponse parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.RewriteResponse 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.storage.v2.RewriteResponse 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.storage.v2.RewriteResponse 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.storage.v2.RewriteResponse 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 rewrite response.
    * 
* * Protobuf type {@code google.storage.v2.RewriteResponse} */ - 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.storage.v2.RewriteResponse) com.google.storage.v2.RewriteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_RewriteResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.RewriteResponse.class, - com.google.storage.v2.RewriteResponse.Builder.class); + com.google.storage.v2.RewriteResponse.class, com.google.storage.v2.RewriteResponse.Builder.class); } // Construct using com.google.storage.v2.RewriteResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResourceFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_RewriteResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteResponse_descriptor; } @java.lang.Override @@ -492,11 +469,8 @@ public com.google.storage.v2.RewriteResponse build() { @java.lang.Override public com.google.storage.v2.RewriteResponse buildPartial() { - com.google.storage.v2.RewriteResponse result = - new com.google.storage.v2.RewriteResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.RewriteResponse result = new com.google.storage.v2.RewriteResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -515,48 +489,52 @@ private void buildPartial0(com.google.storage.v2.RewriteResponse result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.rewriteToken_ = rewriteToken_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null + ? resource_ + : resourceBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.RewriteResponse) { - return mergeFrom((com.google.storage.v2.RewriteResponse) other); + return mergeFrom((com.google.storage.v2.RewriteResponse)other); } else { super.mergeFrom(other); return this; @@ -608,43 +586,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - totalBytesRewritten_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - objectSize_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - done_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - rewriteToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + totalBytesRewritten_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + objectSize_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + done_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + rewriteToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getResourceFieldBuilder().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) { @@ -654,20 +628,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long totalBytesRewritten_; + private long totalBytesRewritten_ ; /** - * - * *
      * The total bytes written so far, which can be used to provide a waiting user
      * with a progress indicator. This property is always present in the response.
      * 
* * int64 total_bytes_rewritten = 1; - * * @return The totalBytesRewritten. */ @java.lang.Override @@ -675,15 +645,12 @@ public long getTotalBytesRewritten() { return totalBytesRewritten_; } /** - * - * *
      * The total bytes written so far, which can be used to provide a waiting user
      * with a progress indicator. This property is always present in the response.
      * 
* * int64 total_bytes_rewritten = 1; - * * @param value The totalBytesRewritten to set. * @return This builder for chaining. */ @@ -695,15 +662,12 @@ public Builder setTotalBytesRewritten(long value) { return this; } /** - * - * *
      * The total bytes written so far, which can be used to provide a waiting user
      * with a progress indicator. This property is always present in the response.
      * 
* * int64 total_bytes_rewritten = 1; - * * @return This builder for chaining. */ public Builder clearTotalBytesRewritten() { @@ -713,17 +677,14 @@ public Builder clearTotalBytesRewritten() { return this; } - private long objectSize_; + private long objectSize_ ; /** - * - * *
      * The total size of the object being copied in bytes. This property is always
      * present in the response.
      * 
* * int64 object_size = 2; - * * @return The objectSize. */ @java.lang.Override @@ -731,15 +692,12 @@ public long getObjectSize() { return objectSize_; } /** - * - * *
      * The total size of the object being copied in bytes. This property is always
      * present in the response.
      * 
* * int64 object_size = 2; - * * @param value The objectSize to set. * @return This builder for chaining. */ @@ -751,15 +709,12 @@ public Builder setObjectSize(long value) { return this; } /** - * - * *
      * The total size of the object being copied in bytes. This property is always
      * present in the response.
      * 
* * int64 object_size = 2; - * * @return This builder for chaining. */ public Builder clearObjectSize() { @@ -769,17 +724,14 @@ public Builder clearObjectSize() { return this; } - private boolean done_; + private boolean done_ ; /** - * - * *
      * `true` if the copy is finished; otherwise, `false` if
      * the copy is in progress. This property is always present in the response.
      * 
* * bool done = 3; - * * @return The done. */ @java.lang.Override @@ -787,15 +739,12 @@ public boolean getDone() { return done_; } /** - * - * *
      * `true` if the copy is finished; otherwise, `false` if
      * the copy is in progress. This property is always present in the response.
      * 
* * bool done = 3; - * * @param value The done to set. * @return This builder for chaining. */ @@ -807,15 +756,12 @@ public Builder setDone(boolean value) { return this; } /** - * - * *
      * `true` if the copy is finished; otherwise, `false` if
      * the copy is in progress. This property is always present in the response.
      * 
* * bool done = 3; - * * @return This builder for chaining. */ public Builder clearDone() { @@ -827,21 +773,19 @@ public Builder clearDone() { private java.lang.Object rewriteToken_ = ""; /** - * - * *
      * A token to use in subsequent requests to continue copying data. This token
      * is present in the response only when there is more data to copy.
      * 
* * string rewrite_token = 4; - * * @return The rewriteToken. */ public java.lang.String getRewriteToken() { java.lang.Object ref = rewriteToken_; 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(); rewriteToken_ = s; return s; @@ -850,22 +794,21 @@ public java.lang.String getRewriteToken() { } } /** - * - * *
      * A token to use in subsequent requests to continue copying data. This token
      * is present in the response only when there is more data to copy.
      * 
* * string rewrite_token = 4; - * * @return The bytes for rewriteToken. */ - public com.google.protobuf.ByteString getRewriteTokenBytes() { + public com.google.protobuf.ByteString + getRewriteTokenBytes() { java.lang.Object ref = rewriteToken_; 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); rewriteToken_ = b; return b; } else { @@ -873,37 +816,30 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() { } } /** - * - * *
      * A token to use in subsequent requests to continue copying data. This token
      * is present in the response only when there is more data to copy.
      * 
* * string rewrite_token = 4; - * * @param value The rewriteToken to set. * @return This builder for chaining. */ - public Builder setRewriteToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRewriteToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rewriteToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A token to use in subsequent requests to continue copying data. This token
      * is present in the response only when there is more data to copy.
      * 
* * string rewrite_token = 4; - * * @return This builder for chaining. */ public Builder clearRewriteToken() { @@ -913,22 +849,18 @@ public Builder clearRewriteToken() { return this; } /** - * - * *
      * A token to use in subsequent requests to continue copying data. This token
      * is present in the response only when there is more data to copy.
      * 
* * string rewrite_token = 4; - * * @param value The bytes for rewriteToken to set. * @return This builder for chaining. */ - public Builder setRewriteTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRewriteTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rewriteToken_ = value; bitField0_ |= 0x00000008; @@ -938,35 +870,26 @@ public Builder setRewriteTokenBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.Object resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - resourceBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> resourceBuilder_; /** - * - * *
      * A resource containing the metadata for the copied-to object. This property
      * is present in the response only when copying completes.
      * 
* * .google.storage.v2.Object resource = 5; - * * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * A resource containing the metadata for the copied-to object. This property
      * is present in the response only when copying completes.
      * 
* * .google.storage.v2.Object resource = 5; - * * @return The resource. */ public com.google.storage.v2.Object getResource() { @@ -977,8 +900,6 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
      * A resource containing the metadata for the copied-to object. This property
      * is present in the response only when copying completes.
@@ -1000,8 +921,6 @@ public Builder setResource(com.google.storage.v2.Object value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the copied-to object. This property
      * is present in the response only when copying completes.
@@ -1009,7 +928,8 @@ public Builder setResource(com.google.storage.v2.Object value) {
      *
      * .google.storage.v2.Object resource = 5;
      */
-    public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) {
+    public Builder setResource(
+        com.google.storage.v2.Object.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         resource_ = builderForValue.build();
       } else {
@@ -1020,8 +940,6 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the copied-to object. This property
      * is present in the response only when copying completes.
@@ -1031,9 +949,9 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
      */
     public Builder mergeResource(com.google.storage.v2.Object value) {
       if (resourceBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && resource_ != null
-            && resource_ != com.google.storage.v2.Object.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          resource_ != null &&
+          resource_ != com.google.storage.v2.Object.getDefaultInstance()) {
           getResourceBuilder().mergeFrom(value);
         } else {
           resource_ = value;
@@ -1041,13 +959,13 @@ public Builder mergeResource(com.google.storage.v2.Object value) {
       } else {
         resourceBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000010;
-      onChanged();
+      if (resource_ != null) {
+        bitField0_ |= 0x00000010;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the copied-to object. This property
      * is present in the response only when copying completes.
@@ -1066,8 +984,6 @@ public Builder clearResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the copied-to object. This property
      * is present in the response only when copying completes.
@@ -1081,8 +997,6 @@ public com.google.storage.v2.Object.Builder getResourceBuilder() {
       return getResourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the copied-to object. This property
      * is present in the response only when copying completes.
@@ -1094,12 +1008,11 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
       if (resourceBuilder_ != null) {
         return resourceBuilder_.getMessageOrBuilder();
       } else {
-        return resource_ == null ? com.google.storage.v2.Object.getDefaultInstance() : resource_;
+        return resource_ == null ?
+            com.google.storage.v2.Object.getDefaultInstance() : resource_;
       }
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the copied-to object. This property
      * is present in the response only when copying completes.
@@ -1108,24 +1021,21 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
      * .google.storage.v2.Object resource = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Object,
-            com.google.storage.v2.Object.Builder,
-            com.google.storage.v2.ObjectOrBuilder>
+        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
-        resourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Object,
-                com.google.storage.v2.Object.Builder,
-                com.google.storage.v2.ObjectOrBuilder>(
-                getResource(), getParentForChildren(), isClean());
+        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
+                getResource(),
+                getParentForChildren(),
+                isClean());
         resource_ = null;
       }
       return resourceBuilder_;
     }
-
     @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,12 +1045,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.RewriteResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.RewriteResponse)
   private static final com.google.storage.v2.RewriteResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.RewriteResponse();
   }
@@ -1149,27 +1059,27 @@ public static com.google.storage.v2.RewriteResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public RewriteResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 RewriteResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -1184,4 +1094,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.RewriteResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
similarity index 76%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
index b556f3b6c9..427ee9f273 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
@@ -1,126 +1,89 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface RewriteResponseOrBuilder
-    extends
+public interface RewriteResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.RewriteResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The total bytes written so far, which can be used to provide a waiting user
    * with a progress indicator. This property is always present in the response.
    * 
* * int64 total_bytes_rewritten = 1; - * * @return The totalBytesRewritten. */ long getTotalBytesRewritten(); /** - * - * *
    * The total size of the object being copied in bytes. This property is always
    * present in the response.
    * 
* * int64 object_size = 2; - * * @return The objectSize. */ long getObjectSize(); /** - * - * *
    * `true` if the copy is finished; otherwise, `false` if
    * the copy is in progress. This property is always present in the response.
    * 
* * bool done = 3; - * * @return The done. */ boolean getDone(); /** - * - * *
    * A token to use in subsequent requests to continue copying data. This token
    * is present in the response only when there is more data to copy.
    * 
* * string rewrite_token = 4; - * * @return The rewriteToken. */ java.lang.String getRewriteToken(); /** - * - * *
    * A token to use in subsequent requests to continue copying data. This token
    * is present in the response only when there is more data to copy.
    * 
* * string rewrite_token = 4; - * * @return The bytes for rewriteToken. */ - com.google.protobuf.ByteString getRewriteTokenBytes(); + com.google.protobuf.ByteString + getRewriteTokenBytes(); /** - * - * *
    * A resource containing the metadata for the copied-to object. This property
    * is present in the response only when copying completes.
    * 
* * .google.storage.v2.Object resource = 5; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * A resource containing the metadata for the copied-to object. This property
    * is present in the response only when copying completes.
    * 
* * .google.storage.v2.Object resource = 5; - * * @return The resource. */ com.google.storage.v2.Object getResource(); /** - * - * *
    * A resource containing the metadata for the copied-to object. This property
    * is present in the response only when copying completes.
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
similarity index 66%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
index 20742ebc07..770083d6e3 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
@@ -1,26 +1,10 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * A service account, owned by Cloud Storage, which may be used when taking
  * action on behalf of a given project, for example to publish Pub/Sub
@@ -29,54 +13,48 @@
  *
  * Protobuf type {@code google.storage.v2.ServiceAccount}
  */
-public final class ServiceAccount extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ServiceAccount extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.storage.v2.ServiceAccount)
     ServiceAccountOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ServiceAccount.newBuilder() to construct.
   private ServiceAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ServiceAccount() {
     emailAddress_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ServiceAccount();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_ServiceAccount_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.storage.v2.ServiceAccount.class,
-            com.google.storage.v2.ServiceAccount.Builder.class);
+            com.google.storage.v2.ServiceAccount.class, com.google.storage.v2.ServiceAccount.Builder.class);
   }
 
   public static final int EMAIL_ADDRESS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object emailAddress_ = "";
   /**
-   *
-   *
    * 
    * The ID of the notification.
    * 
* * string email_address = 1; - * * @return The emailAddress. */ @java.lang.Override @@ -85,29 +63,29 @@ public java.lang.String getEmailAddress() { 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(); emailAddress_ = s; return s; } } /** - * - * *
    * The ID of the notification.
    * 
* * string email_address = 1; - * * @return The bytes for emailAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailAddressBytes() { + public com.google.protobuf.ByteString + getEmailAddressBytes() { java.lang.Object ref = emailAddress_; 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); emailAddress_ = b; return b; } else { @@ -116,7 +94,6 @@ public com.google.protobuf.ByteString getEmailAddressBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +105,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(emailAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, emailAddress_); } @@ -152,14 +130,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.storage.v2.ServiceAccount)) { return super.equals(obj); } com.google.storage.v2.ServiceAccount other = (com.google.storage.v2.ServiceAccount) obj; - if (!getEmailAddress().equals(other.getEmailAddress())) return false; + if (!getEmailAddress() + .equals(other.getEmailAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,103 +157,99 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ServiceAccount parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ServiceAccount parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ServiceAccount 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.storage.v2.ServiceAccount parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.ServiceAccount parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ServiceAccount 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.storage.v2.ServiceAccount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ServiceAccount 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.storage.v2.ServiceAccount 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.storage.v2.ServiceAccount 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.storage.v2.ServiceAccount parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ServiceAccount 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.storage.v2.ServiceAccount 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.storage.v2.ServiceAccount 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.storage.v2.ServiceAccount 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 service account, owned by Cloud Storage, which may be used when taking
    * action on behalf of a given project, for example to publish Pub/Sub
@@ -283,32 +258,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.storage.v2.ServiceAccount}
    */
-  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.storage.v2.ServiceAccount)
       com.google.storage.v2.ServiceAccountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_ServiceAccount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.ServiceAccount.class,
-              com.google.storage.v2.ServiceAccount.Builder.class);
+              com.google.storage.v2.ServiceAccount.class, com.google.storage.v2.ServiceAccount.Builder.class);
     }
 
     // Construct using com.google.storage.v2.ServiceAccount.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();
@@ -318,9 +294,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_ServiceAccount_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_descriptor;
     }
 
     @java.lang.Override
@@ -340,9 +316,7 @@ public com.google.storage.v2.ServiceAccount build() {
     @java.lang.Override
     public com.google.storage.v2.ServiceAccount buildPartial() {
       com.google.storage.v2.ServiceAccount result = new com.google.storage.v2.ServiceAccount(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -358,39 +332,38 @@ private void buildPartial0(com.google.storage.v2.ServiceAccount 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.storage.v2.ServiceAccount) {
-        return mergeFrom((com.google.storage.v2.ServiceAccount) other);
+        return mergeFrom((com.google.storage.v2.ServiceAccount)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -430,19 +403,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                emailAddress_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              emailAddress_ = 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) {
@@ -452,25 +423,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object emailAddress_ = "";
     /**
-     *
-     *
      * 
      * The ID of the notification.
      * 
* * string email_address = 1; - * * @return The emailAddress. */ public java.lang.String getEmailAddress() { java.lang.Object ref = emailAddress_; 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(); emailAddress_ = s; return s; @@ -479,21 +447,20 @@ public java.lang.String getEmailAddress() { } } /** - * - * *
      * The ID of the notification.
      * 
* * string email_address = 1; - * * @return The bytes for emailAddress. */ - public com.google.protobuf.ByteString getEmailAddressBytes() { + public com.google.protobuf.ByteString + getEmailAddressBytes() { java.lang.Object ref = emailAddress_; 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); emailAddress_ = b; return b; } else { @@ -501,35 +468,28 @@ public com.google.protobuf.ByteString getEmailAddressBytes() { } } /** - * - * *
      * The ID of the notification.
      * 
* * string email_address = 1; - * * @param value The emailAddress to set. * @return This builder for chaining. */ - public Builder setEmailAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } emailAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The ID of the notification.
      * 
* * string email_address = 1; - * * @return This builder for chaining. */ public Builder clearEmailAddress() { @@ -539,30 +499,26 @@ public Builder clearEmailAddress() { return this; } /** - * - * *
      * The ID of the notification.
      * 
* * string email_address = 1; - * * @param value The bytes for emailAddress to set. * @return This builder for chaining. */ - public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); emailAddress_ = 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); } @@ -572,12 +528,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ServiceAccount) } // @@protoc_insertion_point(class_scope:google.storage.v2.ServiceAccount) private static final com.google.storage.v2.ServiceAccount DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ServiceAccount(); } @@ -586,27 +542,27 @@ public static com.google.storage.v2.ServiceAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ServiceAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -621,4 +577,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ServiceAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java new file mode 100644 index 0000000000..98d8e92e5c --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.2 +package com.google.storage.v2; + +public interface ServiceAccountOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.storage.v2.ServiceAccount) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The ID of the notification.
+   * 
+ * + * string email_address = 1; + * @return The emailAddress. + */ + java.lang.String getEmailAddress(); + /** + *
+   * The ID of the notification.
+   * 
+ * + * string email_address = 1; + * @return The bytes for emailAddress. + */ + com.google.protobuf.ByteString + getEmailAddressBytes(); +} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java similarity index 71% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java index b80de230f6..dd2d6ab380 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java @@ -1,78 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Shared constants.
  * 
* * Protobuf type {@code google.storage.v2.ServiceConstants} */ -public final class ServiceConstants extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ServiceConstants extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ServiceConstants) ServiceConstantsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ServiceConstants.newBuilder() to construct. private ServiceConstants(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ServiceConstants() {} + private ServiceConstants() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ServiceConstants(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ServiceConstants_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ServiceConstants.class, - com.google.storage.v2.ServiceConstants.Builder.class); + com.google.storage.v2.ServiceConstants.class, com.google.storage.v2.ServiceConstants.Builder.class); } /** - * - * *
    * A collection of constant values meaningful to the Storage API.
    * 
* * Protobuf enum {@code google.storage.v2.ServiceConstants.Values} */ - public enum Values implements com.google.protobuf.ProtocolMessageEnum { + public enum Values + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unused. Proto3 requires first enum to be 0.
      * 
@@ -81,8 +61,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ VALUES_UNSPECIFIED(0, 0), /** - * - * *
      * The maximum size chunk that can will be returned in a single
      * ReadRequest.
@@ -93,8 +71,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_READ_CHUNK_BYTES(1, 2097152),
     /**
-     *
-     *
      * 
      * The maximum size of an object in MB - whether written in a single stream
      * or composed from multiple other objects.
@@ -105,8 +81,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_OBJECT_SIZE_MB(3, 5242880),
     /**
-     *
-     *
      * 
      * The maximum length field name that can be sent in a single
      * custom metadata field.
@@ -117,8 +91,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_CUSTOM_METADATA_FIELD_NAME_BYTES(4, 1024),
     /**
-     *
-     *
      * 
      * The maximum length field value that can be sent in a single
      * custom_metadata field.
@@ -129,8 +101,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES(5, 4096),
     /**
-     *
-     *
      * 
      * The maximum total bytes that can be populated into all field names and
      * values of the custom_metadata for one object.
@@ -141,8 +111,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES(6, 8192),
     /**
-     *
-     *
      * 
      * The maximum total bytes that can be populated into all bucket metadata
      * fields.
@@ -153,8 +121,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES(7, 20480),
     /**
-     *
-     *
      * 
      * The maximum number of NotificationConfigs that can be registered
      * for a given bucket.
@@ -164,8 +130,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_NOTIFICATION_CONFIGS_PER_BUCKET(8, 100),
     /**
-     *
-     *
      * 
      * The maximum number of custom attributes per NotificationConfigs.
      * 
@@ -174,8 +138,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ MAX_NOTIFICATION_CUSTOM_ATTRIBUTES(10, 5), /** - * - * *
      * The maximum length of a custom attribute key included in
      * NotificationConfig.
@@ -185,8 +147,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH(11, 256),
     /**
-     *
-     *
      * 
      * The maximum number of key/value entries per bucket label.
      * 
@@ -195,8 +155,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ MAX_LABELS_ENTRIES_COUNT(13, 64), /** - * - * *
      * The maximum character length of the key or value in a bucket
      * label map.
@@ -206,8 +164,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_LABELS_KEY_VALUE_LENGTH(14, 63),
     /**
-     *
-     *
      * 
      * The maximum byte size of the key or value in a bucket label
      * map.
@@ -217,8 +173,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_LABELS_KEY_VALUE_BYTES(15, 128),
     /**
-     *
-     *
      * 
      * The maximum number of object IDs that can be included in a
      * DeleteObjectsRequest.
@@ -228,8 +182,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST(16, 1000),
     /**
-     *
-     *
      * 
      * The maximum number of days for which a token returned by the
      * GetListObjectsSplitPoints RPC is valid.
@@ -242,8 +194,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The maximum size chunk that can be sent in a single WriteObjectRequest.
      * 2 MiB.
@@ -253,8 +203,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final Values MAX_WRITE_CHUNK_BYTES = MAX_READ_CHUNK_BYTES;
     /**
-     *
-     *
      * 
      * The maximum number of LifecycleRules that can be registered for a given
      * bucket.
@@ -264,8 +212,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final Values MAX_LIFECYCLE_RULES_PER_BUCKET = MAX_NOTIFICATION_CONFIGS_PER_BUCKET;
     /**
-     *
-     *
      * 
      * The maximum length of a custom attribute value included in a
      * NotificationConfig.
@@ -273,11 +219,8 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH = 1024;
      */
-    public static final Values MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH =
-        MAX_CUSTOM_METADATA_FIELD_NAME_BYTES;
+    public static final Values MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH = MAX_CUSTOM_METADATA_FIELD_NAME_BYTES;
     /**
-     *
-     *
      * 
      * Unused. Proto3 requires first enum to be 0.
      * 
@@ -286,8 +229,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VALUES_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The maximum size chunk that can will be returned in a single
      * ReadRequest.
@@ -298,8 +239,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_READ_CHUNK_BYTES_VALUE = 2097152;
     /**
-     *
-     *
      * 
      * The maximum size chunk that can be sent in a single WriteObjectRequest.
      * 2 MiB.
@@ -309,8 +248,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_WRITE_CHUNK_BYTES_VALUE = 2097152;
     /**
-     *
-     *
      * 
      * The maximum size of an object in MB - whether written in a single stream
      * or composed from multiple other objects.
@@ -321,8 +258,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_OBJECT_SIZE_MB_VALUE = 5242880;
     /**
-     *
-     *
      * 
      * The maximum length field name that can be sent in a single
      * custom metadata field.
@@ -333,8 +268,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_CUSTOM_METADATA_FIELD_NAME_BYTES_VALUE = 1024;
     /**
-     *
-     *
      * 
      * The maximum length field value that can be sent in a single
      * custom_metadata field.
@@ -345,8 +278,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES_VALUE = 4096;
     /**
-     *
-     *
      * 
      * The maximum total bytes that can be populated into all field names and
      * values of the custom_metadata for one object.
@@ -357,8 +288,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES_VALUE = 8192;
     /**
-     *
-     *
      * 
      * The maximum total bytes that can be populated into all bucket metadata
      * fields.
@@ -369,8 +298,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES_VALUE = 20480;
     /**
-     *
-     *
      * 
      * The maximum number of NotificationConfigs that can be registered
      * for a given bucket.
@@ -380,8 +307,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_NOTIFICATION_CONFIGS_PER_BUCKET_VALUE = 100;
     /**
-     *
-     *
      * 
      * The maximum number of LifecycleRules that can be registered for a given
      * bucket.
@@ -391,8 +316,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_LIFECYCLE_RULES_PER_BUCKET_VALUE = 100;
     /**
-     *
-     *
      * 
      * The maximum number of custom attributes per NotificationConfigs.
      * 
@@ -401,8 +324,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTES_VALUE = 5; /** - * - * *
      * The maximum length of a custom attribute key included in
      * NotificationConfig.
@@ -412,8 +333,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH_VALUE = 256;
     /**
-     *
-     *
      * 
      * The maximum length of a custom attribute value included in a
      * NotificationConfig.
@@ -423,8 +342,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH_VALUE = 1024;
     /**
-     *
-     *
      * 
      * The maximum number of key/value entries per bucket label.
      * 
@@ -433,8 +350,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MAX_LABELS_ENTRIES_COUNT_VALUE = 64; /** - * - * *
      * The maximum character length of the key or value in a bucket
      * label map.
@@ -444,8 +359,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_LABELS_KEY_VALUE_LENGTH_VALUE = 63;
     /**
-     *
-     *
      * 
      * The maximum byte size of the key or value in a bucket label
      * map.
@@ -455,8 +368,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_LABELS_KEY_VALUE_BYTES_VALUE = 128;
     /**
-     *
-     *
      * 
      * The maximum number of object IDs that can be included in a
      * DeleteObjectsRequest.
@@ -466,8 +377,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST_VALUE = 1000;
     /**
-     *
-     *
      * 
      * The maximum number of days for which a token returned by the
      * GetListObjectsSplitPoints RPC is valid.
@@ -477,6 +386,7 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SPLIT_TOKEN_MAX_VALID_DAYS_VALUE = 14;
 
+
     public final int getNumber() {
       if (index == -1) {
         throw new java.lang.IllegalArgumentException(
@@ -501,96 +411,65 @@ public static Values valueOf(int value) {
      */
     public static Values forNumber(int value) {
       switch (value) {
-        case 0:
-          return VALUES_UNSPECIFIED;
-        case 2097152:
-          return MAX_READ_CHUNK_BYTES;
-        case 5242880:
-          return MAX_OBJECT_SIZE_MB;
-        case 1024:
-          return MAX_CUSTOM_METADATA_FIELD_NAME_BYTES;
-        case 4096:
-          return MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES;
-        case 8192:
-          return MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES;
-        case 20480:
-          return MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES;
-        case 100:
-          return MAX_NOTIFICATION_CONFIGS_PER_BUCKET;
-        case 5:
-          return MAX_NOTIFICATION_CUSTOM_ATTRIBUTES;
-        case 256:
-          return MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH;
-        case 64:
-          return MAX_LABELS_ENTRIES_COUNT;
-        case 63:
-          return MAX_LABELS_KEY_VALUE_LENGTH;
-        case 128:
-          return MAX_LABELS_KEY_VALUE_BYTES;
-        case 1000:
-          return MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST;
-        case 14:
-          return SPLIT_TOKEN_MAX_VALID_DAYS;
-        default:
-          return null;
+        case 0: return VALUES_UNSPECIFIED;
+        case 2097152: return MAX_READ_CHUNK_BYTES;
+        case 5242880: return MAX_OBJECT_SIZE_MB;
+        case 1024: return MAX_CUSTOM_METADATA_FIELD_NAME_BYTES;
+        case 4096: return MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES;
+        case 8192: return MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES;
+        case 20480: return MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES;
+        case 100: return MAX_NOTIFICATION_CONFIGS_PER_BUCKET;
+        case 5: return MAX_NOTIFICATION_CUSTOM_ATTRIBUTES;
+        case 256: return MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH;
+        case 64: return MAX_LABELS_ENTRIES_COUNT;
+        case 63: return MAX_LABELS_KEY_VALUE_LENGTH;
+        case 128: return MAX_LABELS_KEY_VALUE_BYTES;
+        case 1000: return MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST;
+        case 14: return SPLIT_TOKEN_MAX_VALID_DAYS;
+        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<
+        Values> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Values findValueByNumber(int number) {
+              return Values.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Values findValueByNumber(int number) {
-            return Values.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (index == -1) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(index);
     }
-
-    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.storage.v2.ServiceConstants.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Values[] VALUES = getStaticValuesArray();
-
     private static Values[] getStaticValuesArray() {
       return new Values[] {
-        VALUES_UNSPECIFIED,
-        MAX_READ_CHUNK_BYTES,
-        MAX_WRITE_CHUNK_BYTES,
-        MAX_OBJECT_SIZE_MB,
-        MAX_CUSTOM_METADATA_FIELD_NAME_BYTES,
-        MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES,
-        MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES,
-        MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES,
-        MAX_NOTIFICATION_CONFIGS_PER_BUCKET,
-        MAX_LIFECYCLE_RULES_PER_BUCKET,
-        MAX_NOTIFICATION_CUSTOM_ATTRIBUTES,
-        MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH,
-        MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH,
-        MAX_LABELS_ENTRIES_COUNT,
-        MAX_LABELS_KEY_VALUE_LENGTH,
-        MAX_LABELS_KEY_VALUE_BYTES,
-        MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST,
-        SPLIT_TOKEN_MAX_VALID_DAYS,
+      VALUES_UNSPECIFIED, MAX_READ_CHUNK_BYTES, MAX_WRITE_CHUNK_BYTES, MAX_OBJECT_SIZE_MB, MAX_CUSTOM_METADATA_FIELD_NAME_BYTES, MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES, MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES, MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES, MAX_NOTIFICATION_CONFIGS_PER_BUCKET, MAX_LIFECYCLE_RULES_PER_BUCKET, MAX_NOTIFICATION_CUSTOM_ATTRIBUTES, MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH, MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH, MAX_LABELS_ENTRIES_COUNT, MAX_LABELS_KEY_VALUE_LENGTH, MAX_LABELS_KEY_VALUE_BYTES, MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST, SPLIT_TOKEN_MAX_VALID_DAYS, 
       };
     }
-
-    public static Values valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Values 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;
@@ -610,7 +489,6 @@ private Values(int index, int value) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -622,7 +500,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -640,7 +519,7 @@ 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.storage.v2.ServiceConstants)) {
       return super.equals(obj);
@@ -663,136 +542,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.ServiceConstants parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.ServiceConstants parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ServiceConstants 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.storage.v2.ServiceConstants parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ServiceConstants 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.storage.v2.ServiceConstants parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.ServiceConstants 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.storage.v2.ServiceConstants 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.storage.v2.ServiceConstants 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.storage.v2.ServiceConstants parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.ServiceConstants 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.storage.v2.ServiceConstants 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.storage.v2.ServiceConstants 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.storage.v2.ServiceConstants 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;
   }
   /**
-   *
-   *
    * 
    * Shared constants.
    * 
* * Protobuf type {@code google.storage.v2.ServiceConstants} */ - 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.storage.v2.ServiceConstants) com.google.storage.v2.ServiceConstantsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ServiceConstants_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ServiceConstants.class, - com.google.storage.v2.ServiceConstants.Builder.class); + com.google.storage.v2.ServiceConstants.class, com.google.storage.v2.ServiceConstants.Builder.class); } // Construct using com.google.storage.v2.ServiceConstants.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(); @@ -800,9 +675,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ServiceConstants_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_descriptor; } @java.lang.Override @@ -821,8 +696,7 @@ public com.google.storage.v2.ServiceConstants build() { @java.lang.Override public com.google.storage.v2.ServiceConstants buildPartial() { - com.google.storage.v2.ServiceConstants result = - new com.google.storage.v2.ServiceConstants(this); + com.google.storage.v2.ServiceConstants result = new com.google.storage.v2.ServiceConstants(this); onBuilt(); return result; } @@ -831,39 +705,38 @@ public com.google.storage.v2.ServiceConstants buildPartial() { 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.storage.v2.ServiceConstants) { - return mergeFrom((com.google.storage.v2.ServiceConstants) other); + return mergeFrom((com.google.storage.v2.ServiceConstants)other); } else { super.mergeFrom(other); return this; @@ -898,13 +771,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -914,9 +786,9 @@ public Builder mergeFrom( } // finally 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); } @@ -926,12 +798,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ServiceConstants) } // @@protoc_insertion_point(class_scope:google.storage.v2.ServiceConstants) private static final com.google.storage.v2.ServiceConstants DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ServiceConstants(); } @@ -940,27 +812,27 @@ public static com.google.storage.v2.ServiceConstants getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceConstants parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 ServiceConstants parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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,4 +847,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ServiceConstants getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java new file mode 100644 index 0000000000..8c56a593fc --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.2 +package com.google.storage.v2; + +public interface ServiceConstantsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.storage.v2.ServiceConstants) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java similarity index 66% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java index 30b9435ea7..674bec9fd9 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java @@ -1,161 +1,117 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message StartResumableWrite.
  * 
* * Protobuf type {@code google.storage.v2.StartResumableWriteRequest} */ -public final class StartResumableWriteRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartResumableWriteRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.StartResumableWriteRequest) StartResumableWriteRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartResumableWriteRequest.newBuilder() to construct. private StartResumableWriteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StartResumableWriteRequest() {} + private StartResumableWriteRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartResumableWriteRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.StartResumableWriteRequest.class, - com.google.storage.v2.StartResumableWriteRequest.Builder.class); + com.google.storage.v2.StartResumableWriteRequest.class, com.google.storage.v2.StartResumableWriteRequest.Builder.class); } + private int bitField0_; public static final int WRITE_OBJECT_SPEC_FIELD_NUMBER = 1; private com.google.storage.v2.WriteObjectSpec writeObjectSpec_; /** - * - * *
    * Required. The destination bucket, object, and metadata, as well as any
    * preconditions.
    * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the writeObjectSpec field is set. */ @java.lang.Override public boolean hasWriteObjectSpec() { - return writeObjectSpec_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The destination bucket, object, and metadata, as well as any
    * preconditions.
    * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The writeObjectSpec. */ @java.lang.Override public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { - return writeObjectSpec_ == null - ? com.google.storage.v2.WriteObjectSpec.getDefaultInstance() - : writeObjectSpec_; + return writeObjectSpec_ == null ? com.google.storage.v2.WriteObjectSpec.getDefaultInstance() : writeObjectSpec_; } /** - * - * *
    * Required. The destination bucket, object, and metadata, as well as any
    * preconditions.
    * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder() { - return writeObjectSpec_ == null - ? com.google.storage.v2.WriteObjectSpec.getDefaultInstance() - : writeObjectSpec_; + return writeObjectSpec_ == null ? com.google.storage.v2.WriteObjectSpec.getDefaultInstance() : writeObjectSpec_; } public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 3; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { - return commonObjectRequestParams_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -163,18 +119,13 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 5; private com.google.storage.v2.ObjectChecksums objectChecksums_; /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * uploaded object. For each upload, object_checksums can be provided with
@@ -183,16 +134,13 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return Whether the objectChecksums field is set. */ @java.lang.Override public boolean hasObjectChecksums() { - return objectChecksums_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * uploaded object. For each upload, object_checksums can be provided with
@@ -201,18 +149,13 @@ public boolean hasObjectChecksums() {
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * uploaded object. For each upload, object_checksums can be provided with
@@ -224,13 +167,10 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
    */
   @java.lang.Override
   public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
-    return objectChecksums_ == null
-        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-        : objectChecksums_;
+    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -242,14 +182,15 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (writeObjectSpec_ != null) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getWriteObjectSpec());
     }
-    if (commonObjectRequestParams_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeMessage(3, getCommonObjectRequestParams());
     }
-    if (objectChecksums_ != null) {
+    if (((bitField0_ & 0x00000004) != 0)) {
       output.writeMessage(5, getObjectChecksums());
     }
     getUnknownFields().writeTo(output);
@@ -261,16 +202,17 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (writeObjectSpec_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWriteObjectSpec());
+    if (((bitField0_ & 0x00000001) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getWriteObjectSpec());
     }
-    if (commonObjectRequestParams_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, getCommonObjectRequestParams());
+    if (((bitField0_ & 0x00000002) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getCommonObjectRequestParams());
     }
-    if (objectChecksums_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getObjectChecksums());
+    if (((bitField0_ & 0x00000004) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getObjectChecksums());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -280,26 +222,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.storage.v2.StartResumableWriteRequest)) {
       return super.equals(obj);
     }
-    com.google.storage.v2.StartResumableWriteRequest other =
-        (com.google.storage.v2.StartResumableWriteRequest) obj;
+    com.google.storage.v2.StartResumableWriteRequest other = (com.google.storage.v2.StartResumableWriteRequest) obj;
 
     if (hasWriteObjectSpec() != other.hasWriteObjectSpec()) return false;
     if (hasWriteObjectSpec()) {
-      if (!getWriteObjectSpec().equals(other.getWriteObjectSpec())) return false;
+      if (!getWriteObjectSpec()
+          .equals(other.getWriteObjectSpec())) return false;
     }
     if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false;
     if (hasCommonObjectRequestParams()) {
-      if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams()))
-        return false;
+      if (!getCommonObjectRequestParams()
+          .equals(other.getCommonObjectRequestParams())) return false;
     }
     if (hasObjectChecksums() != other.hasObjectChecksums()) return false;
     if (hasObjectChecksums()) {
-      if (!getObjectChecksums().equals(other.getObjectChecksums())) return false;
+      if (!getObjectChecksums()
+          .equals(other.getObjectChecksums())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -329,136 +272,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.StartResumableWriteRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.StartResumableWriteRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.StartResumableWriteRequest 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.storage.v2.StartResumableWriteRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.StartResumableWriteRequest 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.storage.v2.StartResumableWriteRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.StartResumableWriteRequest 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.storage.v2.StartResumableWriteRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.storage.v2.StartResumableWriteRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.storage.v2.StartResumableWriteRequest 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.storage.v2.StartResumableWriteRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.storage.v2.StartResumableWriteRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.StartResumableWriteRequest 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.storage.v2.StartResumableWriteRequest 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.storage.v2.StartResumableWriteRequest 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.storage.v2.StartResumableWriteRequest 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 StartResumableWrite.
    * 
* * Protobuf type {@code google.storage.v2.StartResumableWriteRequest} */ - 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.storage.v2.StartResumableWriteRequest) com.google.storage.v2.StartResumableWriteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.StartResumableWriteRequest.class, - com.google.storage.v2.StartResumableWriteRequest.Builder.class); + com.google.storage.v2.StartResumableWriteRequest.class, com.google.storage.v2.StartResumableWriteRequest.Builder.class); } // Construct using com.google.storage.v2.StartResumableWriteRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getWriteObjectSpecFieldBuilder(); + getCommonObjectRequestParamsFieldBuilder(); + getObjectChecksumsFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; } @java.lang.Override @@ -503,70 +450,72 @@ public com.google.storage.v2.StartResumableWriteRequest build() { @java.lang.Override public com.google.storage.v2.StartResumableWriteRequest buildPartial() { - com.google.storage.v2.StartResumableWriteRequest result = - new com.google.storage.v2.StartResumableWriteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.StartResumableWriteRequest result = new com.google.storage.v2.StartResumableWriteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.storage.v2.StartResumableWriteRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.writeObjectSpec_ = - writeObjectSpecBuilder_ == null ? writeObjectSpec_ : writeObjectSpecBuilder_.build(); + result.writeObjectSpec_ = writeObjectSpecBuilder_ == null + ? writeObjectSpec_ + : writeObjectSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.storage.v2.StartResumableWriteRequest) { - return mergeFrom((com.google.storage.v2.StartResumableWriteRequest) other); + return mergeFrom((com.google.storage.v2.StartResumableWriteRequest)other); } else { super.mergeFrom(other); return this; @@ -574,8 +523,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.StartResumableWriteRequest other) { - if (other == com.google.storage.v2.StartResumableWriteRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.StartResumableWriteRequest.getDefaultInstance()) return this; if (other.hasWriteObjectSpec()) { mergeWriteObjectSpec(other.getWriteObjectSpec()); } @@ -611,32 +559,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getWriteObjectSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 42: - { - input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWriteObjectSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 42: { + input.readMessage( + getObjectChecksumsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + 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) { @@ -646,66 +595,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.WriteObjectSpec writeObjectSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.WriteObjectSpec, - com.google.storage.v2.WriteObjectSpec.Builder, - com.google.storage.v2.WriteObjectSpecOrBuilder> - writeObjectSpecBuilder_; + com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> writeObjectSpecBuilder_; /** - * - * *
      * Required. The destination bucket, object, and metadata, as well as any
      * preconditions.
      * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the writeObjectSpec field is set. */ public boolean hasWriteObjectSpec() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The destination bucket, object, and metadata, as well as any
      * preconditions.
      * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The writeObjectSpec. */ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { if (writeObjectSpecBuilder_ == null) { - return writeObjectSpec_ == null - ? com.google.storage.v2.WriteObjectSpec.getDefaultInstance() - : writeObjectSpec_; + return writeObjectSpec_ == null ? com.google.storage.v2.WriteObjectSpec.getDefaultInstance() : writeObjectSpec_; } else { return writeObjectSpecBuilder_.getMessage(); } } /** - * - * *
      * Required. The destination bucket, object, and metadata, as well as any
      * preconditions.
      * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) { if (writeObjectSpecBuilder_ == null) { @@ -721,16 +650,12 @@ public Builder setWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) { return this; } /** - * - * *
      * Required. The destination bucket, object, and metadata, as well as any
      * preconditions.
      * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWriteObjectSpec( com.google.storage.v2.WriteObjectSpec.Builder builderForValue) { @@ -744,22 +669,18 @@ public Builder setWriteObjectSpec( return this; } /** - * - * *
      * Required. The destination bucket, object, and metadata, as well as any
      * preconditions.
      * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) { if (writeObjectSpecBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && writeObjectSpec_ != null - && writeObjectSpec_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + writeObjectSpec_ != null && + writeObjectSpec_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) { getWriteObjectSpecBuilder().mergeFrom(value); } else { writeObjectSpec_ = value; @@ -767,21 +688,19 @@ public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) } else { writeObjectSpecBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (writeObjectSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** - * - * *
      * Required. The destination bucket, object, and metadata, as well as any
      * preconditions.
      * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWriteObjectSpec() { bitField0_ = (bitField0_ & ~0x00000001); @@ -794,16 +713,12 @@ public Builder clearWriteObjectSpec() { return this; } /** - * - * *
      * Required. The destination bucket, object, and metadata, as well as any
      * preconditions.
      * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.WriteObjectSpec.Builder getWriteObjectSpecBuilder() { bitField0_ |= 0x00000001; @@ -811,50 +726,38 @@ public com.google.storage.v2.WriteObjectSpec.Builder getWriteObjectSpecBuilder() return getWriteObjectSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The destination bucket, object, and metadata, as well as any
      * preconditions.
      * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder() { if (writeObjectSpecBuilder_ != null) { return writeObjectSpecBuilder_.getMessageOrBuilder(); } else { - return writeObjectSpec_ == null - ? com.google.storage.v2.WriteObjectSpec.getDefaultInstance() - : writeObjectSpec_; + return writeObjectSpec_ == null ? + com.google.storage.v2.WriteObjectSpec.getDefaultInstance() : writeObjectSpec_; } } /** - * - * *
      * Required. The destination bucket, object, and metadata, as well as any
      * preconditions.
      * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.WriteObjectSpec, - com.google.storage.v2.WriteObjectSpec.Builder, - com.google.storage.v2.WriteObjectSpecOrBuilder> + com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> getWriteObjectSpecFieldBuilder() { if (writeObjectSpecBuilder_ == null) { - writeObjectSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.WriteObjectSpec, - com.google.storage.v2.WriteObjectSpec.Builder, - com.google.storage.v2.WriteObjectSpecOrBuilder>( - getWriteObjectSpec(), getParentForChildren(), isClean()); + writeObjectSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder>( + getWriteObjectSpec(), + getParentForChildren(), + isClean()); writeObjectSpec_ = null; } return writeObjectSpecBuilder_; @@ -862,55 +765,41 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -924,8 +813,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -944,21 +831,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -966,13 +849,13 @@ public Builder mergeCommonObjectRequestParams( } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (commonObjectRequestParams_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -990,42 +873,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1033,17 +907,14 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; @@ -1051,13 +922,8 @@ public Builder clearCommonObjectRequestParams() { private com.google.storage.v2.ObjectChecksums objectChecksums_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ObjectChecksums, - com.google.storage.v2.ObjectChecksums.Builder, - com.google.storage.v2.ObjectChecksumsOrBuilder> - objectChecksumsBuilder_; + com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_; /** - * - * *
      * The checksums of the complete object. This will be used to validate the
      * uploaded object. For each upload, object_checksums can be provided with
@@ -1066,15 +932,12 @@ public Builder clearCommonObjectRequestParams() {
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The checksums of the complete object. This will be used to validate the
      * uploaded object. For each upload, object_checksums can be provided with
@@ -1083,21 +946,16 @@ public boolean hasObjectChecksums() {
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
      * The checksums of the complete object. This will be used to validate the
      * uploaded object. For each upload, object_checksums can be provided with
@@ -1121,8 +979,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * uploaded object. For each upload, object_checksums can be provided with
@@ -1144,8 +1000,6 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * uploaded object. For each upload, object_checksums can be provided with
@@ -1157,9 +1011,9 @@ public Builder setObjectChecksums(
      */
     public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       if (objectChecksumsBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && objectChecksums_ != null
-            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          objectChecksums_ != null &&
+          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
           getObjectChecksumsBuilder().mergeFrom(value);
         } else {
           objectChecksums_ = value;
@@ -1167,13 +1021,13 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
       } else {
         objectChecksumsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000004;
-      onChanged();
+      if (objectChecksums_ != null) {
+        bitField0_ |= 0x00000004;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * uploaded object. For each upload, object_checksums can be provided with
@@ -1194,8 +1048,6 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * uploaded object. For each upload, object_checksums can be provided with
@@ -1211,8 +1063,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
       return getObjectChecksumsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * uploaded object. For each upload, object_checksums can be provided with
@@ -1226,14 +1076,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
       if (objectChecksumsBuilder_ != null) {
         return objectChecksumsBuilder_.getMessageOrBuilder();
       } else {
-        return objectChecksums_ == null
-            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-            : objectChecksums_;
+        return objectChecksums_ == null ?
+            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
       }
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * uploaded object. For each upload, object_checksums can be provided with
@@ -1244,24 +1091,21 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
      * .google.storage.v2.ObjectChecksums object_checksums = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ObjectChecksums,
-            com.google.storage.v2.ObjectChecksums.Builder,
-            com.google.storage.v2.ObjectChecksumsOrBuilder>
+        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
         getObjectChecksumsFieldBuilder() {
       if (objectChecksumsBuilder_ == null) {
-        objectChecksumsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.ObjectChecksums,
-                com.google.storage.v2.ObjectChecksums.Builder,
-                com.google.storage.v2.ObjectChecksumsOrBuilder>(
-                getObjectChecksums(), getParentForChildren(), isClean());
+        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
+                getObjectChecksums(),
+                getParentForChildren(),
+                isClean());
         objectChecksums_ = null;
       }
       return objectChecksumsBuilder_;
     }
-
     @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);
     }
 
@@ -1271,12 +1115,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.StartResumableWriteRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.StartResumableWriteRequest)
   private static final com.google.storage.v2.StartResumableWriteRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.StartResumableWriteRequest();
   }
@@ -1285,27 +1129,27 @@ public static com.google.storage.v2.StartResumableWriteRequest getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public StartResumableWriteRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 StartResumableWriteRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -1320,4 +1164,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.storage.v2.StartResumableWriteRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
similarity index 73%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
index edd9a323ab..f7dff8e5fe 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
@@ -1,99 +1,62 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface StartResumableWriteRequestOrBuilder
-    extends
+public interface StartResumableWriteRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.StartResumableWriteRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The destination bucket, object, and metadata, as well as any
    * preconditions.
    * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the writeObjectSpec field is set. */ boolean hasWriteObjectSpec(); /** - * - * *
    * Required. The destination bucket, object, and metadata, as well as any
    * preconditions.
    * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The writeObjectSpec. */ com.google.storage.v2.WriteObjectSpec getWriteObjectSpec(); /** - * - * *
    * Required. The destination bucket, object, and metadata, as well as any
    * preconditions.
    * 
* - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -103,8 +66,6 @@ public interface StartResumableWriteRequestOrBuilder com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder(); /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * uploaded object. For each upload, object_checksums can be provided with
@@ -113,13 +74,10 @@ public interface StartResumableWriteRequestOrBuilder
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * uploaded object. For each upload, object_checksums can be provided with
@@ -128,13 +86,10 @@ public interface StartResumableWriteRequestOrBuilder
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * uploaded object. For each upload, object_checksums can be provided with
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
similarity index 66%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
index 1d8e46aa1c..17adbbb60b 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
@@ -1,81 +1,59 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Response object for `StartResumableWrite`.
  * 
* * Protobuf type {@code google.storage.v2.StartResumableWriteResponse} */ -public final class StartResumableWriteResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartResumableWriteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.StartResumableWriteResponse) StartResumableWriteResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartResumableWriteResponse.newBuilder() to construct. private StartResumableWriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartResumableWriteResponse() { uploadId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartResumableWriteResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.StartResumableWriteResponse.class, - com.google.storage.v2.StartResumableWriteResponse.Builder.class); + com.google.storage.v2.StartResumableWriteResponse.class, com.google.storage.v2.StartResumableWriteResponse.Builder.class); } public static final int UPLOAD_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object uploadId_ = ""; /** - * - * *
    * The upload_id of the newly started resumable write operation. This
    * value should be copied into the `WriteObjectRequest.upload_id` field.
    * 
* * string upload_id = 1; - * * @return The uploadId. */ @java.lang.Override @@ -84,30 +62,30 @@ public java.lang.String getUploadId() { 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(); uploadId_ = s; return s; } } /** - * - * *
    * The upload_id of the newly started resumable write operation. This
    * value should be copied into the `WriteObjectRequest.upload_id` field.
    * 
* * string upload_id = 1; - * * @return The bytes for uploadId. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; 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); uploadId_ = b; return b; } else { @@ -116,7 +94,6 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +105,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(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } @@ -152,15 +130,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.storage.v2.StartResumableWriteResponse)) { return super.equals(obj); } - com.google.storage.v2.StartResumableWriteResponse other = - (com.google.storage.v2.StartResumableWriteResponse) obj; + com.google.storage.v2.StartResumableWriteResponse other = (com.google.storage.v2.StartResumableWriteResponse) obj; - if (!getUploadId().equals(other.getUploadId())) return false; + if (!getUploadId() + .equals(other.getUploadId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,135 +158,131 @@ public int hashCode() { } public static com.google.storage.v2.StartResumableWriteResponse 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.storage.v2.StartResumableWriteResponse 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.storage.v2.StartResumableWriteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.StartResumableWriteResponse 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.storage.v2.StartResumableWriteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.StartResumableWriteResponse 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.storage.v2.StartResumableWriteResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.StartResumableWriteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.StartResumableWriteResponse 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.storage.v2.StartResumableWriteResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.StartResumableWriteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.StartResumableWriteResponse 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.storage.v2.StartResumableWriteResponse 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.storage.v2.StartResumableWriteResponse 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.storage.v2.StartResumableWriteResponse 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 object for `StartResumableWrite`.
    * 
* * Protobuf type {@code google.storage.v2.StartResumableWriteResponse} */ - 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.storage.v2.StartResumableWriteResponse) com.google.storage.v2.StartResumableWriteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.StartResumableWriteResponse.class, - com.google.storage.v2.StartResumableWriteResponse.Builder.class); + com.google.storage.v2.StartResumableWriteResponse.class, com.google.storage.v2.StartResumableWriteResponse.Builder.class); } // Construct using com.google.storage.v2.StartResumableWriteResponse.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(); @@ -318,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; } @java.lang.Override @@ -339,11 +313,8 @@ public com.google.storage.v2.StartResumableWriteResponse build() { @java.lang.Override public com.google.storage.v2.StartResumableWriteResponse buildPartial() { - com.google.storage.v2.StartResumableWriteResponse result = - new com.google.storage.v2.StartResumableWriteResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.StartResumableWriteResponse result = new com.google.storage.v2.StartResumableWriteResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -359,39 +330,38 @@ private void buildPartial0(com.google.storage.v2.StartResumableWriteResponse 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.storage.v2.StartResumableWriteResponse) { - return mergeFrom((com.google.storage.v2.StartResumableWriteResponse) other); + return mergeFrom((com.google.storage.v2.StartResumableWriteResponse)other); } else { super.mergeFrom(other); return this; @@ -399,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.StartResumableWriteResponse other) { - if (other == com.google.storage.v2.StartResumableWriteResponse.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.StartResumableWriteResponse.getDefaultInstance()) return this; if (!other.getUploadId().isEmpty()) { uploadId_ = other.uploadId_; bitField0_ |= 0x00000001; @@ -432,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - uploadId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + uploadId_ = 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) { @@ -454,26 +421,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object uploadId_ = ""; /** - * - * *
      * The upload_id of the newly started resumable write operation. This
      * value should be copied into the `WriteObjectRequest.upload_id` field.
      * 
* * string upload_id = 1; - * * @return The uploadId. */ public java.lang.String getUploadId() { java.lang.Object ref = uploadId_; 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(); uploadId_ = s; return s; @@ -482,22 +446,21 @@ public java.lang.String getUploadId() { } } /** - * - * *
      * The upload_id of the newly started resumable write operation. This
      * value should be copied into the `WriteObjectRequest.upload_id` field.
      * 
* * string upload_id = 1; - * * @return The bytes for uploadId. */ - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; 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); uploadId_ = b; return b; } else { @@ -505,37 +468,30 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } } /** - * - * *
      * The upload_id of the newly started resumable write operation. This
      * value should be copied into the `WriteObjectRequest.upload_id` field.
      * 
* * string upload_id = 1; - * * @param value The uploadId to set. * @return This builder for chaining. */ - public Builder setUploadId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uploadId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The upload_id of the newly started resumable write operation. This
      * value should be copied into the `WriteObjectRequest.upload_id` field.
      * 
* * string upload_id = 1; - * * @return This builder for chaining. */ public Builder clearUploadId() { @@ -545,31 +501,27 @@ public Builder clearUploadId() { return this; } /** - * - * *
      * The upload_id of the newly started resumable write operation. This
      * value should be copied into the `WriteObjectRequest.upload_id` field.
      * 
* * string upload_id = 1; - * * @param value The bytes for uploadId to set. * @return This builder for chaining. */ - public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uploadId_ = 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); } @@ -579,12 +531,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.StartResumableWriteResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.StartResumableWriteResponse) private static final com.google.storage.v2.StartResumableWriteResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.StartResumableWriteResponse(); } @@ -593,27 +545,27 @@ public static com.google.storage.v2.StartResumableWriteResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartResumableWriteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 StartResumableWriteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -628,4 +580,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.storage.v2.StartResumableWriteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java similarity index 52% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java index decbf93374..d60d84a704 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java @@ -1,52 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface StartResumableWriteResponseOrBuilder - extends +public interface StartResumableWriteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.StartResumableWriteResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The upload_id of the newly started resumable write operation. This
    * value should be copied into the `WriteObjectRequest.upload_id` field.
    * 
* * string upload_id = 1; - * * @return The uploadId. */ java.lang.String getUploadId(); /** - * - * *
    * The upload_id of the newly started resumable write operation. This
    * value should be copied into the `WriteObjectRequest.upload_id` field.
    * 
* * string upload_id = 1; - * * @return The bytes for uploadId. */ - com.google.protobuf.ByteString getUploadIdBytes(); + com.google.protobuf.ByteString + getUploadIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java new file mode 100644 index 0000000000..ec5cb15bb9 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java @@ -0,0 +1,1515 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.2 +package com.google.storage.v2; + +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_storage_v2_DeleteBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListBucketsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListBucketsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_UpdateBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ComposeObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_DeleteObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_RestoreObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ReadObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ReadObjectResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_WriteObjectSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_WriteObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_WriteObjectResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListObjectsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_RewriteObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_RewriteResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_UpdateObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ServiceConstants_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Billing_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Cors_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Encryption_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_IamConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Logging_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Versioning_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Website_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Autoclass_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_BucketAccessControl_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ChecksummedData_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ObjectChecksums_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_HmacKeyMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_NotificationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CustomerEncryption_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Object_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Object_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Object_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ObjectAccessControl_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListObjectsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ProjectTeam_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ServiceAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Owner_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Owner_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ContentRange_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ContentRange_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\037google/storage/v2/storage.proto\022\021googl" + + "e.storage.v2\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032\030google/api/routing.pr" + + "oto\032\036google/iam/v1/iam_policy.proto\032\032goo" + + "gle/iam/v1/policy.proto\032\036google/protobuf" + + "/duration.proto\032\033google/protobuf/empty.p" + + "roto\032 google/protobuf/field_mask.proto\032\037" + + "google/protobuf/timestamp.proto\032\026google/" + + "type/date.proto\"\326\001\n\023DeleteBucketRequest\022" + + "3\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035storage.googleapi" + + "s.com/Bucket\022$\n\027if_metageneration_match\030" + + "\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_matc" + + "h\030\003 \001(\003H\001\210\001\001B\032\n\030_if_metageneration_match" + + "B\036\n\034_if_metageneration_not_match\"\225\002\n\020Get" + + "BucketRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035sto" + + "rage.googleapis.com/Bucket\022$\n\027if_metagen" + + "eration_match\030\002 \001(\003H\000\210\001\001\022(\n\033if_metagener" + + "ation_not_match\030\003 \001(\003H\001\210\001\001\0222\n\tread_mask\030" + + "\005 \001(\0132\032.google.protobuf.FieldMaskH\002\210\001\001B\032" + + "\n\030_if_metageneration_matchB\036\n\034_if_metage" + + "neration_not_matchB\014\n\n_read_mask\"\316\001\n\023Cre" + + "ateBucketRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" + + "\022\035storage.googleapis.com/Bucket\022)\n\006bucke" + + "t\030\002 \001(\0132\031.google.storage.v2.Bucket\022\026\n\tbu" + + "cket_id\030\003 \001(\tB\003\340A\002\022\026\n\016predefined_acl\030\006 \001" + + "(\t\022%\n\035predefined_default_object_acl\030\007 \001(" + + "\t\"\304\001\n\022ListBucketsRequest\0225\n\006parent\030\001 \001(\t" + + "B%\340A\002\372A\037\022\035storage.googleapis.com/Bucket\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + + "\n\006prefix\030\004 \001(\t\0222\n\tread_mask\030\005 \001(\0132\032.goog" + + "le.protobuf.FieldMaskH\000\210\001\001B\014\n\n_read_mask" + + "\"Z\n\023ListBucketsResponse\022*\n\007buckets\030\001 \003(\013" + + "2\031.google.storage.v2.Bucket\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\177\n LockBucketRetentionPolic" + + "yRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storag" + + "e.googleapis.com/Bucket\022$\n\027if_metagenera" + + "tion_match\030\002 \001(\003B\003\340A\002\"\306\002\n\023UpdateBucketRe" + + "quest\022.\n\006bucket\030\001 \001(\0132\031.google.storage.v" + + "2.BucketB\003\340A\002\022$\n\027if_metageneration_match" + + "\030\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_mat" + + "ch\030\003 \001(\003H\001\210\001\001\022\026\n\016predefined_acl\030\010 \001(\t\022%\n" + + "\035predefined_default_object_acl\030\t \001(\t\0224\n\013" + + "update_mask\030\006 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002B\032\n\030_if_metageneration_matchB\036" + + "\n\034_if_metageneration_not_match\"b\n\037Delete" + + "NotificationConfigRequest\022?\n\004name\030\001 \001(\tB" + + "1\340A\002\372A+\n)storage.googleapis.com/Notifica" + + "tionConfig\"_\n\034GetNotificationConfigReque" + + "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)storage.google" + + "apis.com/NotificationConfig\"\255\001\n\037CreateNo" + + "tificationConfigRequest\022A\n\006parent\030\001 \001(\tB" + + "1\340A\002\372A+\022)storage.googleapis.com/Notifica" + + "tionConfig\022G\n\023notification_config\030\002 \001(\0132" + + "%.google.storage.v2.NotificationConfigB\003" + + "\340A\002\"\212\001\n\036ListNotificationConfigsRequest\022A" + + "\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)storage.googleap" + + "is.com/NotificationConfig\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"\177\n\037ListNotifica" + + "tionConfigsResponse\022C\n\024notification_conf" + + "igs\030\001 \003(\0132%.google.storage.v2.Notificati" + + "onConfig\022\027\n\017next_page_token\030\002 \001(\t\"\365\005\n\024Co" + + "mposeObjectRequest\0223\n\013destination\030\001 \001(\0132" + + "\031.google.storage.v2.ObjectB\003\340A\002\022L\n\016sourc" + + "e_objects\030\002 \003(\01324.google.storage.v2.Comp" + + "oseObjectRequest.SourceObject\022\"\n\032destina" + + "tion_predefined_acl\030\t \001(\t\022 \n\023if_generati" + + "on_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_metageneration" + + "_match\030\005 \001(\003H\001\210\001\001\0227\n\007kms_key\030\006 \001(\tB&\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022R\n\034co" + + "mmon_object_request_params\030\007 \001(\0132,.googl" + + "e.storage.v2.CommonObjectRequestParams\022<" + + "\n\020object_checksums\030\n \001(\0132\".google.storag" + + "e.v2.ObjectChecksums\032\356\001\n\014SourceObject\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\022\n\ngeneration\030\002 \001(\003\022f\n\024" + + "object_preconditions\030\003 \001(\0132H.google.stor" + + "age.v2.ComposeObjectRequest.SourceObject" + + ".ObjectPreconditions\032O\n\023ObjectPreconditi" + + "ons\022 \n\023if_generation_match\030\001 \001(\003H\000\210\001\001B\026\n" + + "\024_if_generation_matchB\026\n\024_if_generation_" + + "matchB\032\n\030_if_metageneration_match\"\321\003\n\023De" + + "leteObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A" + + "\037\n\035storage.googleapis.com/Bucket\022\023\n\006obje" + + "ct\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\004 \001(\003\022 \n\023if_" + + "generation_match\030\005 \001(\003H\000\210\001\001\022$\n\027if_genera" + + "tion_not_match\030\006 \001(\003H\001\210\001\001\022$\n\027if_metagene" + + "ration_match\030\007 \001(\003H\002\210\001\001\022(\n\033if_metagenera" + + "tion_not_match\030\010 \001(\003H\003\210\001\001\022R\n\034common_obje" + + "ct_request_params\030\n \001(\0132,.google.storage" + + ".v2.CommonObjectRequestParamsB\026\n\024_if_gen" + + "eration_matchB\032\n\030_if_generation_not_matc" + + "hB\032\n\030_if_metageneration_matchB\036\n\034_if_met" + + "ageneration_not_match\"\211\004\n\024RestoreObjectR" + + "equest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storage." + + "googleapis.com/Bucket\022\023\n\006object\030\002 \001(\tB\003\340" + + "A\002\022\027\n\ngeneration\030\003 \001(\003B\003\340A\002\022 \n\023if_genera" + + "tion_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_generation_n" + + "ot_match\030\005 \001(\003H\001\210\001\001\022$\n\027if_metageneration" + + "_match\030\006 \001(\003H\002\210\001\001\022(\n\033if_metageneration_n" + + "ot_match\030\007 \001(\003H\003\210\001\001\022\034\n\017copy_source_acl\030\t" + + " \001(\010H\004\210\001\001\022R\n\034common_object_request_param" + + "s\030\010 \001(\0132,.google.storage.v2.CommonObject" + + "RequestParamsB\026\n\024_if_generation_matchB\032\n" + + "\030_if_generation_not_matchB\032\n\030_if_metagen" + + "eration_matchB\036\n\034_if_metageneration_not_" + + "matchB\022\n\020_copy_source_acl\"5\n\033CancelResum" + + "ableWriteRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002" + + "\"\036\n\034CancelResumableWriteResponse\"\272\004\n\021Rea" + + "dObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035" + + "storage.googleapis.com/Bucket\022\023\n\006object\030" + + "\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001(\003\022\023\n\013read_o" + + "ffset\030\004 \001(\003\022\022\n\nread_limit\030\005 \001(\003\022 \n\023if_ge" + + "neration_match\030\006 \001(\003H\000\210\001\001\022$\n\027if_generati" + + "on_not_match\030\007 \001(\003H\001\210\001\001\022$\n\027if_metagenera" + + "tion_match\030\010 \001(\003H\002\210\001\001\022(\n\033if_metagenerati" + + "on_not_match\030\t \001(\003H\003\210\001\001\022R\n\034common_object" + + "_request_params\030\n \001(\0132,.google.storage.v" + + "2.CommonObjectRequestParams\0222\n\tread_mask" + + "\030\014 \001(\0132\032.google.protobuf.FieldMaskH\004\210\001\001B" + + "\026\n\024_if_generation_matchB\032\n\030_if_generatio" + + "n_not_matchB\032\n\030_if_metageneration_matchB" + + "\036\n\034_if_metageneration_not_matchB\014\n\n_read" + + "_mask\"\274\004\n\020GetObjectRequest\0225\n\006bucket\030\001 \001" + + "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke" + + "t\022\023\n\006object\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001" + + "(\003\022\031\n\014soft_deleted\030\013 \001(\010H\000\210\001\001\022 \n\023if_gene" + + "ration_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_generation" + + "_not_match\030\005 \001(\003H\002\210\001\001\022$\n\027if_metagenerati" + + "on_match\030\006 \001(\003H\003\210\001\001\022(\n\033if_metageneration" + + "_not_match\030\007 \001(\003H\004\210\001\001\022R\n\034common_object_r" + + "equest_params\030\010 \001(\0132,.google.storage.v2." + + "CommonObjectRequestParams\0222\n\tread_mask\030\n" + + " \001(\0132\032.google.protobuf.FieldMaskH\005\210\001\001B\017\n" + + "\r_soft_deletedB\026\n\024_if_generation_matchB\032" + + "\n\030_if_generation_not_matchB\032\n\030_if_metage" + + "neration_matchB\036\n\034_if_metageneration_not" + + "_matchB\014\n\n_read_mask\"\365\001\n\022ReadObjectRespo" + + "nse\022<\n\020checksummed_data\030\001 \001(\0132\".google.s" + + "torage.v2.ChecksummedData\022<\n\020object_chec" + + "ksums\030\002 \001(\0132\".google.storage.v2.ObjectCh" + + "ecksums\0226\n\rcontent_range\030\003 \001(\0132\037.google." + + "storage.v2.ContentRange\022+\n\010metadata\030\004 \001(" + + "\0132\031.google.storage.v2.Object\"\215\003\n\017WriteOb" + + "jectSpec\0220\n\010resource\030\001 \001(\0132\031.google.stor" + + "age.v2.ObjectB\003\340A\002\022\026\n\016predefined_acl\030\007 \001" + + "(\t\022 \n\023if_generation_match\030\003 \001(\003H\000\210\001\001\022$\n\027" + + "if_generation_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if" + + "_metageneration_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_m" + + "etageneration_not_match\030\006 \001(\003H\003\210\001\001\022\030\n\013ob" + + "ject_size\030\010 \001(\003H\004\210\001\001B\026\n\024_if_generation_m" + + "atchB\032\n\030_if_generation_not_matchB\032\n\030_if_" + + "metageneration_matchB\036\n\034_if_metagenerati" + + "on_not_matchB\016\n\014_object_size\"\206\003\n\022WriteOb" + + "jectRequest\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021writ" + + "e_object_spec\030\002 \001(\0132\".google.storage.v2." + + "WriteObjectSpecH\000\022\031\n\014write_offset\030\003 \001(\003B" + + "\003\340A\002\022>\n\020checksummed_data\030\004 \001(\0132\".google." + + "storage.v2.ChecksummedDataH\001\022<\n\020object_c" + + "hecksums\030\006 \001(\0132\".google.storage.v2.Objec" + + "tChecksums\022\024\n\014finish_write\030\007 \001(\010\022R\n\034comm" + + "on_object_request_params\030\010 \001(\0132,.google." + + "storage.v2.CommonObjectRequestParamsB\017\n\r" + + "first_messageB\006\n\004data\"n\n\023WriteObjectResp" + + "onse\022\030\n\016persisted_size\030\001 \001(\003H\000\022-\n\010resour" + + "ce\030\002 \001(\0132\031.google.storage.v2.ObjectH\000B\016\n" + + "\014write_status\"\257\003\n\026BidiWriteObjectRequest" + + "\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_object_sp" + + "ec\030\002 \001(\0132\".google.storage.v2.WriteObject" + + "SpecH\000\022\031\n\014write_offset\030\003 \001(\003B\003\340A\002\022>\n\020che" + + "cksummed_data\030\004 \001(\0132\".google.storage.v2." + + "ChecksummedDataH\001\022<\n\020object_checksums\030\006 " + + "\001(\0132\".google.storage.v2.ObjectChecksums\022" + + "\024\n\014state_lookup\030\007 \001(\010\022\r\n\005flush\030\010 \001(\010\022\024\n\014" + + "finish_write\030\t \001(\010\022R\n\034common_object_requ" + + "est_params\030\n \001(\0132,.google.storage.v2.Com" + + "monObjectRequestParamsB\017\n\rfirst_messageB" + + "\006\n\004data\"r\n\027BidiWriteObjectResponse\022\030\n\016pe" + + "rsisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031" + + ".google.storage.v2.ObjectH\000B\016\n\014write_sta" + + "tus\"\203\003\n\022ListObjectsRequest\0225\n\006parent\030\001 \001" + + "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke" + + "t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\022\021\n\tdelimiter\030\004 \001(\t\022\"\n\032include_trailing_" + + "delimiter\030\005 \001(\010\022\016\n\006prefix\030\006 \001(\t\022\020\n\010versi" + + "ons\030\007 \001(\010\0222\n\tread_mask\030\010 \001(\0132\032.google.pr" + + "otobuf.FieldMaskH\000\210\001\001\022 \n\023lexicographic_s" + + "tart\030\n \001(\tB\003\340A\001\022\036\n\021lexicographic_end\030\013 \001" + + "(\tB\003\340A\001\022\031\n\014soft_deleted\030\014 \001(\010B\003\340A\001\022\027\n\nma" + + "tch_glob\030\016 \001(\tB\003\340A\001B\014\n\n_read_mask\"\205\001\n\027Qu" + + "eryWriteStatusRequest\022\026\n\tupload_id\030\001 \001(\t" + + "B\003\340A\002\022R\n\034common_object_request_params\030\002 " + + "\001(\0132,.google.storage.v2.CommonObjectRequ" + + "estParams\"s\n\030QueryWriteStatusResponse\022\030\n" + + "\016persisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(" + + "\0132\031.google.storage.v2.ObjectH\000B\016\n\014write_" + + "status\"\250\n\n\024RewriteObjectRequest\022 \n\020desti" + + "nation_name\030\030 \001(\tB\006\340A\002\340A\005\022D\n\022destination" + + "_bucket\030\031 \001(\tB(\340A\002\340A\005\372A\037\n\035storage.google" + + "apis.com/Bucket\022C\n\023destination_kms_key\030\033" + + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" + + "oKey\022.\n\013destination\030\001 \001(\0132\031.google.stora" + + "ge.v2.Object\022<\n\rsource_bucket\030\002 \001(\tB%\340A\002" + + "\372A\037\n\035storage.googleapis.com/Bucket\022\032\n\rso" + + "urce_object\030\003 \001(\tB\003\340A\002\022\031\n\021source_generat" + + "ion\030\004 \001(\003\022\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032dest" + + "ination_predefined_acl\030\034 \001(\t\022 \n\023if_gener" + + "ation_match\030\007 \001(\003H\000\210\001\001\022$\n\027if_generation_" + + "not_match\030\010 \001(\003H\001\210\001\001\022$\n\027if_metageneratio" + + "n_match\030\t \001(\003H\002\210\001\001\022(\n\033if_metageneration_" + + "not_match\030\n \001(\003H\003\210\001\001\022\'\n\032if_source_genera" + + "tion_match\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_gener" + + "ation_not_match\030\014 \001(\003H\005\210\001\001\022+\n\036if_source_" + + "metageneration_match\030\r \001(\003H\006\210\001\001\022/\n\"if_so" + + "urce_metageneration_not_match\030\016 \001(\003H\007\210\001\001" + + "\022$\n\034max_bytes_rewritten_per_call\030\017 \001(\003\022(" + + "\n copy_source_encryption_algorithm\030\020 \001(\t" + + "\022(\n copy_source_encryption_key_bytes\030\025 \001" + + "(\014\022/\n\'copy_source_encryption_key_sha256_" + + "bytes\030\026 \001(\014\022R\n\034common_object_request_par" + + "ams\030\023 \001(\0132,.google.storage.v2.CommonObje" + + "ctRequestParams\022<\n\020object_checksums\030\035 \001(" + + "\0132\".google.storage.v2.ObjectChecksumsB\026\n" + + "\024_if_generation_matchB\032\n\030_if_generation_" + + "not_matchB\032\n\030_if_metageneration_matchB\036\n" + + "\034_if_metageneration_not_matchB\035\n\033_if_sou" + + "rce_generation_matchB!\n\037_if_source_gener" + + "ation_not_matchB!\n\037_if_source_metagenera" + + "tion_matchB%\n#_if_source_metageneration_" + + "not_match\"\227\001\n\017RewriteResponse\022\035\n\025total_b" + + "ytes_rewritten\030\001 \001(\003\022\023\n\013object_size\030\002 \001(" + + "\003\022\014\n\004done\030\003 \001(\010\022\025\n\rrewrite_token\030\004 \001(\t\022+" + + "\n\010resource\030\005 \001(\0132\031.google.storage.v2.Obj" + + "ect\"\362\001\n\032StartResumableWriteRequest\022B\n\021wr" + + "ite_object_spec\030\001 \001(\0132\".google.storage.v" + + "2.WriteObjectSpecB\003\340A\002\022R\n\034common_object_" + + "request_params\030\003 \001(\0132,.google.storage.v2" + + ".CommonObjectRequestParams\022<\n\020object_che" + + "cksums\030\005 \001(\0132\".google.storage.v2.ObjectC" + + "hecksums\"0\n\033StartResumableWriteResponse\022" + + "\021\n\tupload_id\030\001 \001(\t\"\357\003\n\023UpdateObjectReque" + + "st\022.\n\006object\030\001 \001(\0132\031.google.storage.v2.O" + + "bjectB\003\340A\002\022 \n\023if_generation_match\030\002 \001(\003H" + + "\000\210\001\001\022$\n\027if_generation_not_match\030\003 \001(\003H\001\210" + + "\001\001\022$\n\027if_metageneration_match\030\004 \001(\003H\002\210\001\001" + + "\022(\n\033if_metageneration_not_match\030\005 \001(\003H\003\210" + + "\001\001\022\026\n\016predefined_acl\030\n \001(\t\0224\n\013update_mas" + + "k\030\007 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002" + + "\022R\n\034common_object_request_params\030\010 \001(\0132," + + ".google.storage.v2.CommonObjectRequestPa" + + "ramsB\026\n\024_if_generation_matchB\032\n\030_if_gene" + + "ration_not_matchB\032\n\030_if_metageneration_m" + + "atchB\036\n\034_if_metageneration_not_match\"`\n\030" + + "GetServiceAccountRequest\022D\n\007project\030\001 \001(" + + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" + + "is.com/Project\"\200\001\n\024CreateHmacKeyRequest\022" + + "D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcem" + + "anager.googleapis.com/Project\022\"\n\025service" + + "_account_email\030\002 \001(\tB\003\340A\002\"g\n\025CreateHmacK" + + "eyResponse\0224\n\010metadata\030\001 \001(\0132\".google.st" + + "orage.v2.HmacKeyMetadata\022\030\n\020secret_key_b" + + "ytes\030\003 \001(\014\"t\n\024DeleteHmacKeyRequest\022\026\n\tac" + + "cess_id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002" + + "\372A-\n+cloudresourcemanager.googleapis.com" + + "/Project\"q\n\021GetHmacKeyRequest\022\026\n\taccess_" + + "id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-\n+" + + "cloudresourcemanager.googleapis.com/Proj" + + "ect\"\274\001\n\023ListHmacKeysRequest\022D\n\007project\030\001" + + " \001(\tB3\340A\002\372A-\n+cloudresourcemanager.googl" + + "eapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\022\035\n\025service_account_emai" + + "l\030\004 \001(\t\022\031\n\021show_deleted_keys\030\005 \001(\010\"f\n\024Li" + + "stHmacKeysResponse\0225\n\thmac_keys\030\001 \003(\0132\"." + + "google.storage.v2.HmacKeyMetadata\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\202\001\n\024UpdateHmacKeyRequ" + + "est\0229\n\010hmac_key\030\001 \001(\0132\".google.storage.v" + + "2.HmacKeyMetadataB\003\340A\002\022/\n\013update_mask\030\003 " + + "\001(\0132\032.google.protobuf.FieldMask\"|\n\031Commo" + + "nObjectRequestParams\022\034\n\024encryption_algor" + + "ithm\030\001 \001(\t\022\034\n\024encryption_key_bytes\030\004 \001(\014" + + "\022#\n\033encryption_key_sha256_bytes\030\005 \001(\014\"\312\005" + + "\n\020ServiceConstants\"\265\005\n\006Values\022\026\n\022VALUES_" + + "UNSPECIFIED\020\000\022\033\n\024MAX_READ_CHUNK_BYTES\020\200\200" + + "\200\001\022\034\n\025MAX_WRITE_CHUNK_BYTES\020\200\200\200\001\022\031\n\022MAX_" + + "OBJECT_SIZE_MB\020\200\200\300\002\022)\n$MAX_CUSTOM_METADA" + + "TA_FIELD_NAME_BYTES\020\200\010\022*\n%MAX_CUSTOM_MET" + + "ADATA_FIELD_VALUE_BYTES\020\200 \022)\n$MAX_CUSTOM" + + "_METADATA_TOTAL_SIZE_BYTES\020\200@\022*\n$MAX_BUC" + + "KET_METADATA_TOTAL_SIZE_BYTES\020\200\240\001\022\'\n#MAX" + + "_NOTIFICATION_CONFIGS_PER_BUCKET\020d\022\"\n\036MA" + + "X_LIFECYCLE_RULES_PER_BUCKET\020d\022&\n\"MAX_NO" + + "TIFICATION_CUSTOM_ATTRIBUTES\020\005\0221\n,MAX_NO" + + "TIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH\020\200" + + "\002\0223\n.MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_V" + + "ALUE_LENGTH\020\200\010\022\034\n\030MAX_LABELS_ENTRIES_COU" + + "NT\020@\022\037\n\033MAX_LABELS_KEY_VALUE_LENGTH\020?\022\037\n" + + "\032MAX_LABELS_KEY_VALUE_BYTES\020\200\001\022.\n)MAX_OB" + + "JECT_IDS_PER_DELETE_OBJECTS_REQUEST\020\350\007\022\036" + + "\n\032SPLIT_TOKEN_MAX_VALID_DAYS\020\016\032\002\020\001\"\215\033\n\006B" + + "ucket\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\026\n\tbucket_id\030\002 " + + "\001(\tB\003\340A\003\022\014\n\004etag\030\035 \001(\t\022D\n\007project\030\003 \001(\tB" + + "3\340A\005\372A-\n+cloudresourcemanager.googleapis" + + ".com/Project\022\033\n\016metageneration\030\004 \001(\003B\003\340A" + + "\003\022\025\n\010location\030\005 \001(\tB\003\340A\005\022\032\n\rlocation_typ" + + "e\030\006 \001(\tB\003\340A\003\022\025\n\rstorage_class\030\007 \001(\t\022\013\n\003r" + + "po\030\033 \001(\t\0223\n\003acl\030\010 \003(\0132&.google.storage.v" + + "2.BucketAccessControl\022B\n\022default_object_" + + "acl\030\t \003(\0132&.google.storage.v2.ObjectAcce" + + "ssControl\0226\n\tlifecycle\030\n \001(\0132#.google.st" + + "orage.v2.Bucket.Lifecycle\0224\n\013create_time" + + "\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + ",\n\004cors\030\014 \003(\0132\036.google.storage.v2.Bucket" + + ".Cors\0224\n\013update_time\030\r \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022 \n\030default_event_bas" + + "ed_hold\030\016 \001(\010\0225\n\006labels\030\017 \003(\0132%.google.s" + + "torage.v2.Bucket.LabelsEntry\0222\n\007website\030" + + "\020 \001(\0132!.google.storage.v2.Bucket.Website" + + "\0228\n\nversioning\030\021 \001(\0132$.google.storage.v2" + + ".Bucket.Versioning\0222\n\007logging\030\022 \001(\0132!.go" + + "ogle.storage.v2.Bucket.Logging\022,\n\005owner\030" + + "\023 \001(\0132\030.google.storage.v2.OwnerB\003\340A\003\0228\n\n" + + "encryption\030\024 \001(\0132$.google.storage.v2.Buc" + + "ket.Encryption\0222\n\007billing\030\025 \001(\0132!.google" + + ".storage.v2.Bucket.Billing\022C\n\020retention_" + + "policy\030\026 \001(\0132).google.storage.v2.Bucket." + + "RetentionPolicy\0227\n\niam_config\030\027 \001(\0132#.go" + + "ogle.storage.v2.Bucket.IamConfig\022\025\n\rsati" + + "sfies_pzs\030\031 \001(\010\022P\n\027custom_placement_conf" + + "ig\030\032 \001(\0132/.google.storage.v2.Bucket.Cust" + + "omPlacementConfig\0226\n\tautoclass\030\034 \001(\0132#.g" + + "oogle.storage.v2.Bucket.Autoclass\022K\n\022sof" + + "t_delete_policy\030\037 \001(\0132*.google.storage.v" + + "2.Bucket.SoftDeletePolicyB\003\340A\001\032!\n\007Billin" + + "g\022\026\n\016requester_pays\030\001 \001(\010\032X\n\004Cors\022\016\n\006ori" + + "gin\030\001 \003(\t\022\016\n\006method\030\002 \003(\t\022\027\n\017response_he" + + "ader\030\003 \003(\t\022\027\n\017max_age_seconds\030\004 \001(\005\032M\n\nE" + + "ncryption\022?\n\017default_kms_key\030\001 \001(\tB&\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\032\354\001\n\tI" + + "amConfig\022a\n\033uniform_bucket_level_access\030" + + "\001 \001(\0132<.google.storage.v2.Bucket.IamConf" + + "ig.UniformBucketLevelAccess\022 \n\030public_ac" + + "cess_prevention\030\003 \001(\t\032Z\n\030UniformBucketLe" + + "velAccess\022\017\n\007enabled\030\001 \001(\010\022-\n\tlock_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\032\363\005\n\tLi" + + "fecycle\0226\n\004rule\030\001 \003(\0132(.google.storage.v" + + "2.Bucket.Lifecycle.Rule\032\255\005\n\004Rule\022?\n\006acti" + + "on\030\001 \001(\0132/.google.storage.v2.Bucket.Life" + + "cycle.Rule.Action\022E\n\tcondition\030\002 \001(\01322.g" + + "oogle.storage.v2.Bucket.Lifecycle.Rule.C" + + "ondition\032-\n\006Action\022\014\n\004type\030\001 \001(\t\022\025\n\rstor" + + "age_class\030\002 \001(\t\032\355\003\n\tCondition\022\025\n\010age_day" + + "s\030\001 \001(\005H\000\210\001\001\022)\n\016created_before\030\002 \001(\0132\021.g" + + "oogle.type.Date\022\024\n\007is_live\030\003 \001(\010H\001\210\001\001\022\037\n" + + "\022num_newer_versions\030\004 \001(\005H\002\210\001\001\022\035\n\025matche" + + "s_storage_class\030\005 \003(\t\022#\n\026days_since_cust" + + "om_time\030\007 \001(\005H\003\210\001\001\022-\n\022custom_time_before" + + "\030\010 \001(\0132\021.google.type.Date\022\'\n\032days_since_" + + "noncurrent_time\030\t \001(\005H\004\210\001\001\0221\n\026noncurrent" + + "_time_before\030\n \001(\0132\021.google.type.Date\022\026\n" + + "\016matches_prefix\030\013 \003(\t\022\026\n\016matches_suffix\030" + + "\014 \003(\tB\013\n\t_age_daysB\n\n\010_is_liveB\025\n\023_num_n" + + "ewer_versionsB\031\n\027_days_since_custom_time" + + "B\035\n\033_days_since_noncurrent_time\0328\n\007Loggi" + + "ng\022\022\n\nlog_bucket\030\001 \001(\t\022\031\n\021log_object_pre" + + "fix\030\002 \001(\t\032\217\001\n\017RetentionPolicy\0222\n\016effecti" + + "ve_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "p\022\021\n\tis_locked\030\002 \001(\010\0225\n\022retention_durati" + + "on\030\004 \001(\0132\031.google.protobuf.Duration\032\261\001\n\020" + + "SoftDeletePolicy\022:\n\022retention_duration\030\001" + + " \001(\0132\031.google.protobuf.DurationH\000\210\001\001\0227\n\016" + + "effective_time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampH\001\210\001\001B\025\n\023_retention_durationB\021\n\017" + + "_effective_time\032\035\n\nVersioning\022\017\n\007enabled" + + "\030\001 \001(\010\032;\n\007Website\022\030\n\020main_page_suffix\030\001 " + + "\001(\t\022\026\n\016not_found_page\030\002 \001(\t\032/\n\025CustomPla" + + "cementConfig\022\026\n\016data_locations\030\001 \003(\t\032\213\002\n" + + "\tAutoclass\022\017\n\007enabled\030\001 \001(\010\0224\n\013toggle_ti" + + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022#\n\026terminal_storage_class\030\003 \001(\tH\000\210\001\001\022P" + + "\n\"terminal_storage_class_update_time\030\004 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001" + + "B\031\n\027_terminal_storage_classB%\n#_terminal" + + "_storage_class_update_time\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:G\352AD\n\035" + + "storage.googleapis.com/Bucket\022#projects/" + + "{project}/buckets/{bucket}\"\316\001\n\023BucketAcc" + + "essControl\022\014\n\004role\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n\006" + + "entity\030\003 \001(\t\022\027\n\nentity_alt\030\t \001(\tB\003\340A\003\022\021\n" + + "\tentity_id\030\004 \001(\t\022\014\n\004etag\030\010 \001(\t\022\r\n\005email\030" + + "\005 \001(\t\022\016\n\006domain\030\006 \001(\t\0224\n\014project_team\030\007 " + + "\001(\0132\036.google.storage.v2.ProjectTeam\"I\n\017C" + + "hecksummedData\022\026\n\007content\030\001 \001(\014B\005\010\001\340A\001\022\023" + + "\n\006crc32c\030\002 \001(\007H\000\210\001\001B\t\n\007_crc32c\"C\n\017Object" + + "Checksums\022\023\n\006crc32c\030\001 \001(\007H\000\210\001\001\022\020\n\010md5_ha" + + "sh\030\002 \001(\014B\t\n\007_crc32c\"\255\002\n\017HmacKeyMetadata\022" + + "\017\n\002id\030\001 \001(\tB\003\340A\005\022\026\n\taccess_id\030\002 \001(\tB\003\340A\005" + + "\022D\n\007project\030\003 \001(\tB3\340A\005\372A-\n+cloudresource" + + "manager.googleapis.com/Project\022\"\n\025servic" + + "e_account_email\030\004 \001(\tB\003\340A\003\022\r\n\005state\030\005 \001(" + + "\t\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.g", + "oogle.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030\010 " + + "\001(\t\"\247\003\n\022NotificationConfig\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\002\022\022\n\005topic\030\002 \001(\tB\003\340A\002\022\014\n\004etag\030\007 \001(\t\022" + + "\023\n\013event_types\030\003 \003(\t\022V\n\021custom_attribute" + + "s\030\004 \003(\0132;.google.storage.v2.Notification" + + "Config.CustomAttributesEntry\022\032\n\022object_n" + + "ame_prefix\030\005 \001(\t\022\033\n\016payload_format\030\006 \001(\t" + + "B\003\340A\002\0327\n\025CustomAttributesEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:}\352Az\n)storage.goo" + + "gleapis.com/NotificationConfig\022Mprojects" + + "/{project}/buckets/{bucket}/notification" + + "Configs/{notification_config}\"L\n\022Custome" + + "rEncryption\022\034\n\024encryption_algorithm\030\001 \001(" + + "\t\022\030\n\020key_sha256_bytes\030\003 \001(\014\"\202\t\n\006Object\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\005\0225\n\006bucket\030\002 \001(\tB%\340A\005\372A" + + "\037\n\035storage.googleapis.com/Bucket\022\014\n\004etag" + + "\030\033 \001(\t\022\027\n\ngeneration\030\003 \001(\003B\003\340A\005\022\033\n\016metag" + + "eneration\030\004 \001(\003B\003\340A\003\022\025\n\rstorage_class\030\005 " + + "\001(\t\022\021\n\004size\030\006 \001(\003B\003\340A\003\022\030\n\020content_encodi" + + "ng\030\007 \001(\t\022\033\n\023content_disposition\030\010 \001(\t\022\025\n" + + "\rcache_control\030\t \001(\t\0223\n\003acl\030\n \003(\0132&.goog" + + "le.storage.v2.ObjectAccessControl\022\030\n\020con" + + "tent_language\030\013 \001(\t\0224\n\013delete_time\030\014 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\024\n\014con" + + "tent_type\030\r \001(\t\0224\n\013create_time\030\016 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\034\n\017compone" + + "nt_count\030\017 \001(\005B\003\340A\003\022:\n\tchecksums\030\020 \001(\0132\"" + + ".google.storage.v2.ObjectChecksumsB\003\340A\003\022" + + "4\n\013update_time\030\021 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0227\n\007kms_key\030\022 \001(\tB&\372A#\n!clo" + + "udkms.googleapis.com/CryptoKey\022B\n\031update" + + "_storage_class_time\030\023 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\026\n\016temporary_hold\030\024 \001" + + "(\010\0229\n\025retention_expire_time\030\025 \001(\0132\032.goog" + + "le.protobuf.Timestamp\0229\n\010metadata\030\026 \003(\0132" + + "\'.google.storage.v2.Object.MetadataEntry" + + "\022\035\n\020event_based_hold\030\027 \001(\010H\000\210\001\001\022,\n\005owner" + + "\030\030 \001(\0132\030.google.storage.v2.OwnerB\003\340A\003\022B\n" + + "\023customer_encryption\030\031 \001(\0132%.google.stor" + + "age.v2.CustomerEncryption\022/\n\013custom_time" + + "\030\032 \001(\0132\032.google.protobuf.Timestamp\032/\n\rMe" + + "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001B\023\n\021_event_based_hold\"\316\001\n\023ObjectAcces" + + "sControl\022\014\n\004role\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n\006en" + + "tity\030\003 \001(\t\022\027\n\nentity_alt\030\t \001(\tB\003\340A\003\022\021\n\te" + + "ntity_id\030\004 \001(\t\022\014\n\004etag\030\010 \001(\t\022\r\n\005email\030\005 " + + "\001(\t\022\016\n\006domain\030\006 \001(\t\0224\n\014project_team\030\007 \001(" + + "\0132\036.google.storage.v2.ProjectTeam\"l\n\023Lis" + + "tObjectsResponse\022*\n\007objects\030\001 \003(\0132\031.goog" + + "le.storage.v2.Object\022\020\n\010prefixes\030\002 \003(\t\022\027" + + "\n\017next_page_token\030\003 \001(\t\"3\n\013ProjectTeam\022\026" + + "\n\016project_number\030\001 \001(\t\022\014\n\004team\030\002 \001(\t\"\'\n\016" + + "ServiceAccount\022\025\n\remail_address\030\001 \001(\t\"*\n" + + "\005Owner\022\016\n\006entity\030\001 \001(\t\022\021\n\tentity_id\030\002 \001(" + + "\t\"C\n\014ContentRange\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030" + + "\002 \001(\003\022\027\n\017complete_length\030\003 \001(\0032\252\'\n\007Stora" + + "ge\022r\n\014DeleteBucket\022&.google.storage.v2.D" + + "eleteBucketRequest\032\026.google.protobuf.Emp" + + "ty\"\"\332A\004name\212\323\344\223\002\025\022\023\n\004name\022\013{bucket=**}\022o" + + "\n\tGetBucket\022#.google.storage.v2.GetBucke" + + "tRequest\032\031.google.storage.v2.Bucket\"\"\332A\004" + + "name\212\323\344\223\002\025\022\023\n\004name\022\013{bucket=**}\022\253\001\n\014Crea" + + "teBucket\022&.google.storage.v2.CreateBucke" + + "tRequest\032\031.google.storage.v2.Bucket\"X\332A\027" + + "parent,bucket,bucket_id\212\323\344\223\0028\022\026\n\006parent\022" + + "\014{project=**}\022\036\n\016bucket.project\022\014{projec" + + "t=**}\022\205\001\n\013ListBuckets\022%.google.storage.v" + + "2.ListBucketsRequest\032&.google.storage.v2" + + ".ListBucketsResponse\"\'\332A\006parent\212\323\344\223\002\030\022\026\n" + + "\006parent\022\014{project=**}\022\223\001\n\031LockBucketRete" + + "ntionPolicy\0223.google.storage.v2.LockBuck" + + "etRetentionPolicyRequest\032\031.google.storag" + + "e.v2.Bucket\"&\332A\006bucket\212\323\344\223\002\027\022\025\n\006bucket\022\013" + + "{bucket=**}\022u\n\014GetIamPolicy\022\".google.iam" + + ".v1.GetIamPolicyRequest\032\025.google.iam.v1." + + "Policy\"*\332A\010resource\212\323\344\223\002\031\022\027\n\010resource\022\013{" + + "bucket=**}\022|\n\014SetIamPolicy\022\".google.iam." + + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\"1\332A\017resource,policy\212\323\344\223\002\031\022\027\n\010resou" + + "rce\022\013{bucket=**}\022\327\001\n\022TestIamPermissions\022" + + "(.google.iam.v1.TestIamPermissionsReques" + + "t\032).google.iam.v1.TestIamPermissionsResp" + + "onse\"l\332A\024resource,permissions\212\323\344\223\002O\022\027\n\010r" + + "esource\022\013{bucket=**}\0224\n\010resource\022({bucke" + + "t=projects/*/buckets/*}/objects/**\022\212\001\n\014U" + + "pdateBucket\022&.google.storage.v2.UpdateBu" + + "cketRequest\032\031.google.storage.v2.Bucket\"7" + + "\332A\022bucket,update_mask\212\323\344\223\002\034\022\032\n\013bucket.na" + + "me\022\013{bucket=**}\022\237\001\n\030DeleteNotificationCo" + + "nfig\0222.google.storage.v2.DeleteNotificat" + + "ionConfigRequest\032\026.google.protobuf.Empty" + + "\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=project" + + "s/*/buckets/*}/**\022\250\001\n\025GetNotificationCon" + + "fig\022/.google.storage.v2.GetNotificationC" + + "onfigRequest\032%.google.storage.v2.Notific" + + "ationConfig\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {buc" + + "ket=projects/*/buckets/*}/**\022\261\001\n\030CreateN" + + "otificationConfig\0222.google.storage.v2.Cr" + + "eateNotificationConfigRequest\032%.google.s" + + "torage.v2.NotificationConfig\":\332A\032parent," + + "notification_config\212\323\344\223\002\027\022\025\n\006parent\022\013{bu" + + "cket=**}\022\250\001\n\027ListNotificationConfigs\0221.g" + + "oogle.storage.v2.ListNotificationConfigs" + + "Request\0322.google.storage.v2.ListNotifica" + + "tionConfigsResponse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006" + + "parent\022\013{bucket=**}\022~\n\rComposeObject\022\'.g" + + "oogle.storage.v2.ComposeObjectRequest\032\031." + + "google.storage.v2.Object\")\212\323\344\223\002#\022!\n\022dest" + + "ination.bucket\022\013{bucket=**}\022\230\001\n\014DeleteOb" + + "ject\022&.google.storage.v2.DeleteObjectReq" + + "uest\032\026.google.protobuf.Empty\"H\332A\rbucket," + + "object\332A\030bucket,object,generation\212\323\344\223\002\027\022" + + "\025\n\006bucket\022\013{bucket=**}\022\215\001\n\rRestoreObject" + + "\022\'.google.storage.v2.RestoreObjectReques" + + "t\032\031.google.storage.v2.Object\"8\332A\030bucket," + + "object,generation\212\323\344\223\002\027\022\025\n\006bucket\022\013{buck" + + "et=**}\022\272\001\n\024CancelResumableWrite\022..google" + + ".storage.v2.CancelResumableWriteRequest\032" + + "/.google.storage.v2.CancelResumableWrite" + + "Response\"A\332A\tupload_id\212\323\344\223\002/\022-\n\tupload_i" + + "d\022 {bucket=projects/*/buckets/*}/**\022\225\001\n\t" + + "GetObject\022#.google.storage.v2.GetObjectR" + + "equest\032\031.google.storage.v2.Object\"H\332A\rbu" + + "cket,object\332A\030bucket,object,generation\212\323" + + "\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\022\245\001\n\nReadObje" + + "ct\022$.google.storage.v2.ReadObjectRequest" + + "\032%.google.storage.v2.ReadObjectResponse\"" + + "H\332A\rbucket,object\332A\030bucket,object,genera" + + "tion\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}0\001\022\214\001\n\014" + + "UpdateObject\022&.google.storage.v2.UpdateO" + + "bjectRequest\032\031.google.storage.v2.Object\"" + + "9\332A\022object,update_mask\212\323\344\223\002\036\022\034\n\robject.b" + + "ucket\022\013{bucket=**}\022`\n\013WriteObject\022%.goog" + + "le.storage.v2.WriteObjectRequest\032&.googl" + + "e.storage.v2.WriteObjectResponse\"\000(\001\022n\n\017" + + "BidiWriteObject\022).google.storage.v2.Bidi" + + "WriteObjectRequest\032*.google.storage.v2.B" + + "idiWriteObjectResponse\"\000(\0010\001\022\204\001\n\013ListObj" + + "ects\022%.google.storage.v2.ListObjectsRequ" + + "est\032&.google.storage.v2.ListObjectsRespo" + + "nse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=" + + "**}\022\230\001\n\rRewriteObject\022\'.google.storage.v" + + "2.RewriteObjectRequest\032\".google.storage." + + "v2.RewriteResponse\":\212\323\344\223\0024\022\017\n\rsource_buc" + + "ket\022!\n\022destination_bucket\022\013{bucket=**}\022\256" + + "\001\n\023StartResumableWrite\022-.google.storage." + + "v2.StartResumableWriteRequest\032..google.s" + + "torage.v2.StartResumableWriteResponse\"8\212" + + "\323\344\223\0022\0220\n!write_object_spec.resource.buck" + + "et\022\013{bucket=**}\022\256\001\n\020QueryWriteStatus\022*.g" + + "oogle.storage.v2.QueryWriteStatusRequest" + + "\032+.google.storage.v2.QueryWriteStatusRes" + + "ponse\"A\332A\tupload_id\212\323\344\223\002/\022-\n\tupload_id\022 " + + "{bucket=projects/*/buckets/*}/**\022\200\001\n\021Get" + + "ServiceAccount\022+.google.storage.v2.GetSe" + + "rviceAccountRequest\032!.google.storage.v2." + + "ServiceAccount\"\033\332A\007project\212\323\344\223\002\013\022\t\n\007proj" + + "ect\022\225\001\n\rCreateHmacKey\022\'.google.storage.v" + + "2.CreateHmacKeyRequest\032(.google.storage." + + "v2.CreateHmacKeyResponse\"1\332A\035project,ser" + + "vice_account_email\212\323\344\223\002\013\022\t\n\007project\022w\n\rD" + + "eleteHmacKey\022\'.google.storage.v2.DeleteH" + + "macKeyRequest\032\026.google.protobuf.Empty\"%\332" + + "A\021access_id,project\212\323\344\223\002\013\022\t\n\007project\022}\n\n" + + "GetHmacKey\022$.google.storage.v2.GetHmacKe" + + "yRequest\032\".google.storage.v2.HmacKeyMeta" + + "data\"%\332A\021access_id,project\212\323\344\223\002\013\022\t\n\007proj" + + "ect\022|\n\014ListHmacKeys\022&.google.storage.v2." + + "ListHmacKeysRequest\032\'.google.storage.v2." + + "ListHmacKeysResponse\"\033\332A\007project\212\323\344\223\002\013\022\t" + + "\n\007project\022\235\001\n\rUpdateHmacKey\022\'.google.sto" + + "rage.v2.UpdateHmacKeyRequest\032\".google.st" + + "orage.v2.HmacKeyMetadata\"?\332A\024hmac_key,up" + + "date_mask\212\323\344\223\002\"\022 \n\020hmac_key.project\022\014{pr" + + "oject=**}\032\247\002\312A\026storage.googleapis.com\322A\212" + + "\002https://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "cloud-platform.read-only,https://www.goo" + + "gleapis.com/auth/devstorage.full_control" + + ",https://www.googleapis.com/auth/devstor" + + "age.read_only,https://www.googleapis.com" + + "/auth/devstorage.read_writeB\342\001\n\025com.goog" + + "le.storage.v2B\014StorageProtoP\001Z>cloud.goo" + + "gle.com/go/storage/internal/apiv2/storag" + + "epb;storagepb\352Ax\n!cloudkms.googleapis.co" + + "m/CryptoKey\022Sprojects/{project}/location" + + "s/{location}/keyRings/{key_ring}/cryptoK" + + "eys/{crypto_key}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + }); + internal_static_google_storage_v2_DeleteBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteBucketRequest_descriptor, + new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", }); + internal_static_google_storage_v2_GetBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetBucketRequest_descriptor, + new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "ReadMask", }); + internal_static_google_storage_v2_CreateBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateBucketRequest_descriptor, + new java.lang.String[] { "Parent", "Bucket", "BucketId", "PredefinedAcl", "PredefinedDefaultObjectAcl", }); + internal_static_google_storage_v2_ListBucketsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListBucketsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Prefix", "ReadMask", }); + internal_static_google_storage_v2_ListBucketsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListBucketsResponse_descriptor, + new java.lang.String[] { "Buckets", "NextPageToken", }); + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor, + new java.lang.String[] { "Bucket", "IfMetagenerationMatch", }); + internal_static_google_storage_v2_UpdateBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_UpdateBucketRequest_descriptor, + new java.lang.String[] { "Bucket", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "PredefinedAcl", "PredefinedDefaultObjectAcl", "UpdateMask", }); + internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor, + new java.lang.String[] { "Parent", "NotificationConfig", }); + internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor, + new java.lang.String[] { "NotificationConfigs", "NextPageToken", }); + internal_static_google_storage_v2_ComposeObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ComposeObjectRequest_descriptor, + new java.lang.String[] { "Destination", "SourceObjects", "DestinationPredefinedAcl", "IfGenerationMatch", "IfMetagenerationMatch", "KmsKey", "CommonObjectRequestParams", "ObjectChecksums", }); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor = + internal_static_google_storage_v2_ComposeObjectRequest_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor, + new java.lang.String[] { "Name", "Generation", "ObjectPreconditions", }); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor = + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor, + new java.lang.String[] { "IfGenerationMatch", }); + internal_static_google_storage_v2_DeleteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteObjectRequest_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CommonObjectRequestParams", }); + internal_static_google_storage_v2_RestoreObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_RestoreObjectRequest_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CopySourceAcl", "CommonObjectRequestParams", }); + internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor, + new java.lang.String[] { "UploadId", }); + internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_storage_v2_ReadObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ReadObjectRequest_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", "ReadOffset", "ReadLimit", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CommonObjectRequestParams", "ReadMask", }); + internal_static_google_storage_v2_GetObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetObjectRequest_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", "SoftDeleted", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CommonObjectRequestParams", "ReadMask", }); + internal_static_google_storage_v2_ReadObjectResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ReadObjectResponse_descriptor, + new java.lang.String[] { "ChecksummedData", "ObjectChecksums", "ContentRange", "Metadata", }); + internal_static_google_storage_v2_WriteObjectSpec_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_WriteObjectSpec_descriptor, + new java.lang.String[] { "Resource", "PredefinedAcl", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "ObjectSize", }); + internal_static_google_storage_v2_WriteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_WriteObjectRequest_descriptor, + new java.lang.String[] { "UploadId", "WriteObjectSpec", "WriteOffset", "ChecksummedData", "ObjectChecksums", "FinishWrite", "CommonObjectRequestParams", "FirstMessage", "Data", }); + internal_static_google_storage_v2_WriteObjectResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_WriteObjectResponse_descriptor, + new java.lang.String[] { "PersistedSize", "Resource", "WriteStatus", }); + internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor, + new java.lang.String[] { "UploadId", "WriteObjectSpec", "WriteOffset", "ChecksummedData", "ObjectChecksums", "StateLookup", "Flush", "FinishWrite", "CommonObjectRequestParams", "FirstMessage", "Data", }); + internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor, + new java.lang.String[] { "PersistedSize", "Resource", "WriteStatus", }); + internal_static_google_storage_v2_ListObjectsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListObjectsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Delimiter", "IncludeTrailingDelimiter", "Prefix", "Versions", "ReadMask", "LexicographicStart", "LexicographicEnd", "SoftDeleted", "MatchGlob", }); + internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor, + new java.lang.String[] { "UploadId", "CommonObjectRequestParams", }); + internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor, + new java.lang.String[] { "PersistedSize", "Resource", "WriteStatus", }); + internal_static_google_storage_v2_RewriteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_RewriteObjectRequest_descriptor, + new java.lang.String[] { "DestinationName", "DestinationBucket", "DestinationKmsKey", "Destination", "SourceBucket", "SourceObject", "SourceGeneration", "RewriteToken", "DestinationPredefinedAcl", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "IfSourceGenerationMatch", "IfSourceGenerationNotMatch", "IfSourceMetagenerationMatch", "IfSourceMetagenerationNotMatch", "MaxBytesRewrittenPerCall", "CopySourceEncryptionAlgorithm", "CopySourceEncryptionKeyBytes", "CopySourceEncryptionKeySha256Bytes", "CommonObjectRequestParams", "ObjectChecksums", }); + internal_static_google_storage_v2_RewriteResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_RewriteResponse_descriptor, + new java.lang.String[] { "TotalBytesRewritten", "ObjectSize", "Done", "RewriteToken", "Resource", }); + internal_static_google_storage_v2_StartResumableWriteRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_StartResumableWriteRequest_descriptor, + new java.lang.String[] { "WriteObjectSpec", "CommonObjectRequestParams", "ObjectChecksums", }); + internal_static_google_storage_v2_StartResumableWriteResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_StartResumableWriteResponse_descriptor, + new java.lang.String[] { "UploadId", }); + internal_static_google_storage_v2_UpdateObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_UpdateObjectRequest_descriptor, + new java.lang.String[] { "Object", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "PredefinedAcl", "UpdateMask", "CommonObjectRequestParams", }); + internal_static_google_storage_v2_GetServiceAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetServiceAccountRequest_descriptor, + new java.lang.String[] { "Project", }); + internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor, + new java.lang.String[] { "Project", "ServiceAccountEmail", }); + internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor, + new java.lang.String[] { "Metadata", "SecretKeyBytes", }); + internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor, + new java.lang.String[] { "AccessId", "Project", }); + internal_static_google_storage_v2_GetHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetHmacKeyRequest_descriptor, + new java.lang.String[] { "AccessId", "Project", }); + internal_static_google_storage_v2_ListHmacKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListHmacKeysRequest_descriptor, + new java.lang.String[] { "Project", "PageSize", "PageToken", "ServiceAccountEmail", "ShowDeletedKeys", }); + internal_static_google_storage_v2_ListHmacKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListHmacKeysResponse_descriptor, + new java.lang.String[] { "HmacKeys", "NextPageToken", }); + internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor, + new java.lang.String[] { "HmacKey", "UpdateMask", }); + internal_static_google_storage_v2_CommonObjectRequestParams_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CommonObjectRequestParams_descriptor, + new java.lang.String[] { "EncryptionAlgorithm", "EncryptionKeyBytes", "EncryptionKeySha256Bytes", }); + internal_static_google_storage_v2_ServiceConstants_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ServiceConstants_descriptor, + new java.lang.String[] { }); + internal_static_google_storage_v2_Bucket_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_storage_v2_Bucket_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_descriptor, + new java.lang.String[] { "Name", "BucketId", "Etag", "Project", "Metageneration", "Location", "LocationType", "StorageClass", "Rpo", "Acl", "DefaultObjectAcl", "Lifecycle", "CreateTime", "Cors", "UpdateTime", "DefaultEventBasedHold", "Labels", "Website", "Versioning", "Logging", "Owner", "Encryption", "Billing", "RetentionPolicy", "IamConfig", "SatisfiesPzs", "CustomPlacementConfig", "Autoclass", "SoftDeletePolicy", }); + internal_static_google_storage_v2_Bucket_Billing_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Billing_descriptor, + new java.lang.String[] { "RequesterPays", }); + internal_static_google_storage_v2_Bucket_Cors_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(1); + internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Cors_descriptor, + new java.lang.String[] { "Origin", "Method", "ResponseHeader", "MaxAgeSeconds", }); + internal_static_google_storage_v2_Bucket_Encryption_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(2); + internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Encryption_descriptor, + new java.lang.String[] { "DefaultKmsKey", }); + internal_static_google_storage_v2_Bucket_IamConfig_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(3); + internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_IamConfig_descriptor, + new java.lang.String[] { "UniformBucketLevelAccess", "PublicAccessPrevention", }); + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor = + internal_static_google_storage_v2_Bucket_IamConfig_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor, + new java.lang.String[] { "Enabled", "LockTime", }); + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(4); + internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor, + new java.lang.String[] { "Rule", }); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor = + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor, + new java.lang.String[] { "Action", "Condition", }); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor = + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor, + new java.lang.String[] { "Type", "StorageClass", }); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor = + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(1); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor, + new java.lang.String[] { "AgeDays", "CreatedBefore", "IsLive", "NumNewerVersions", "MatchesStorageClass", "DaysSinceCustomTime", "CustomTimeBefore", "DaysSinceNoncurrentTime", "NoncurrentTimeBefore", "MatchesPrefix", "MatchesSuffix", }); + internal_static_google_storage_v2_Bucket_Logging_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(5); + internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Logging_descriptor, + new java.lang.String[] { "LogBucket", "LogObjectPrefix", }); + internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(6); + internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor, + new java.lang.String[] { "EffectiveTime", "IsLocked", "RetentionDuration", }); + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(7); + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor, + new java.lang.String[] { "RetentionDuration", "EffectiveTime", }); + internal_static_google_storage_v2_Bucket_Versioning_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(8); + internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Versioning_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_storage_v2_Bucket_Website_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(9); + internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Website_descriptor, + new java.lang.String[] { "MainPageSuffix", "NotFoundPage", }); + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(10); + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor, + new java.lang.String[] { "DataLocations", }); + internal_static_google_storage_v2_Bucket_Autoclass_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(11); + internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Autoclass_descriptor, + new java.lang.String[] { "Enabled", "ToggleTime", "TerminalStorageClass", "TerminalStorageClassUpdateTime", }); + internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(12); + internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_storage_v2_BucketAccessControl_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_BucketAccessControl_descriptor, + new java.lang.String[] { "Role", "Id", "Entity", "EntityAlt", "EntityId", "Etag", "Email", "Domain", "ProjectTeam", }); + internal_static_google_storage_v2_ChecksummedData_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ChecksummedData_descriptor, + new java.lang.String[] { "Content", "Crc32C", }); + internal_static_google_storage_v2_ObjectChecksums_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ObjectChecksums_descriptor, + new java.lang.String[] { "Crc32C", "Md5Hash", }); + internal_static_google_storage_v2_HmacKeyMetadata_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_HmacKeyMetadata_descriptor, + new java.lang.String[] { "Id", "AccessId", "Project", "ServiceAccountEmail", "State", "CreateTime", "UpdateTime", "Etag", }); + internal_static_google_storage_v2_NotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_NotificationConfig_descriptor, + new java.lang.String[] { "Name", "Topic", "Etag", "EventTypes", "CustomAttributes", "ObjectNamePrefix", "PayloadFormat", }); + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor = + internal_static_google_storage_v2_NotificationConfig_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_storage_v2_CustomerEncryption_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CustomerEncryption_descriptor, + new java.lang.String[] { "EncryptionAlgorithm", "KeySha256Bytes", }); + internal_static_google_storage_v2_Object_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_storage_v2_Object_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Object_descriptor, + new java.lang.String[] { "Name", "Bucket", "Etag", "Generation", "Metageneration", "StorageClass", "Size", "ContentEncoding", "ContentDisposition", "CacheControl", "Acl", "ContentLanguage", "DeleteTime", "ContentType", "CreateTime", "ComponentCount", "Checksums", "UpdateTime", "KmsKey", "UpdateStorageClassTime", "TemporaryHold", "RetentionExpireTime", "Metadata", "EventBasedHold", "Owner", "CustomerEncryption", "CustomTime", }); + internal_static_google_storage_v2_Object_MetadataEntry_descriptor = + internal_static_google_storage_v2_Object_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Object_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_storage_v2_ObjectAccessControl_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ObjectAccessControl_descriptor, + new java.lang.String[] { "Role", "Id", "Entity", "EntityAlt", "EntityId", "Etag", "Email", "Domain", "ProjectTeam", }); + internal_static_google_storage_v2_ListObjectsResponse_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListObjectsResponse_descriptor, + new java.lang.String[] { "Objects", "Prefixes", "NextPageToken", }); + internal_static_google_storage_v2_ProjectTeam_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ProjectTeam_descriptor, + new java.lang.String[] { "ProjectNumber", "Team", }); + internal_static_google_storage_v2_ServiceAccount_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ServiceAccount_descriptor, + new java.lang.String[] { "EmailAddress", }); + internal_static_google_storage_v2_Owner_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_storage_v2_Owner_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Owner_descriptor, + new java.lang.String[] { "Entity", "EntityId", }); + internal_static_google_storage_v2_ContentRange_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_storage_v2_ContentRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ContentRange_descriptor, + new java.lang.String[] { "Start", "End", "CompleteLength", }); + 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.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java similarity index 75% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java index 4152fc7326..05d2ed23c8 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request for UpdateBucket method.
  * 
* * Protobuf type {@code google.storage.v2.UpdateBucketRequest} */ -public final class UpdateBucketRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBucketRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.UpdateBucketRequest) UpdateBucketRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBucketRequest.newBuilder() to construct. private UpdateBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateBucketRequest() { predefinedAcl_ = ""; predefinedDefaultObjectAcl_ = ""; @@ -44,54 +27,47 @@ private UpdateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.UpdateBucketRequest.class, - com.google.storage.v2.UpdateBucketRequest.Builder.class); + com.google.storage.v2.UpdateBucketRequest.class, com.google.storage.v2.UpdateBucketRequest.Builder.class); } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.storage.v2.Bucket bucket_; /** - * - * *
    * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
    * 
* * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the bucket field is set. */ @java.lang.Override public boolean hasBucket() { - return bucket_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
    * 
* * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ @java.lang.Override @@ -99,8 +75,6 @@ public com.google.storage.v2.Bucket getBucket() { return bucket_ == null ? com.google.storage.v2.Bucket.getDefaultInstance() : bucket_; } /** - * - * *
    * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
@@ -116,31 +90,25 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
   public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 2;
   private long ifMetagenerationMatch_ = 0L;
   /**
-   *
-   *
    * 
    * If set, will only modify the bucket if its metageneration matches this
    * value.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationMatch() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * If set, will only modify the bucket if its metageneration matches this
    * value.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -151,31 +119,25 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * If set, will only modify the bucket if its metageneration does not match
    * this value.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationNotMatch() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * If set, will only modify the bucket if its metageneration does not match
    * this value.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -184,12 +146,9 @@ public long getIfMetagenerationNotMatch() { } public static final int PREDEFINED_ACL_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedAcl_ = ""; /** - * - * *
    * Apply a predefined set of access controls to this bucket.
    * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -197,7 +156,6 @@ public long getIfMetagenerationNotMatch() {
    * 
* * string predefined_acl = 8; - * * @return The predefinedAcl. */ @java.lang.Override @@ -206,15 +164,14 @@ public java.lang.String getPredefinedAcl() { 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(); predefinedAcl_ = s; return s; } } /** - * - * *
    * Apply a predefined set of access controls to this bucket.
    * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -222,15 +179,16 @@ public java.lang.String getPredefinedAcl() {
    * 
* * string predefined_acl = 8; - * * @return The bytes for predefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; 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); predefinedAcl_ = b; return b; } else { @@ -239,12 +197,9 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } public static final int PREDEFINED_DEFAULT_OBJECT_ACL_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedDefaultObjectAcl_ = ""; /** - * - * *
    * Apply a predefined set of default object access controls to this bucket.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -252,7 +207,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
    * 
* * string predefined_default_object_acl = 9; - * * @return The predefinedDefaultObjectAcl. */ @java.lang.Override @@ -261,15 +215,14 @@ public java.lang.String getPredefinedDefaultObjectAcl() { 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(); predefinedDefaultObjectAcl_ = s; return s; } } /** - * - * *
    * Apply a predefined set of default object access controls to this bucket.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -277,15 +230,16 @@ public java.lang.String getPredefinedDefaultObjectAcl() {
    * 
* * string predefined_default_object_acl = 9; - * * @return The bytes for predefinedDefaultObjectAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { + public com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes() { java.lang.Object ref = predefinedDefaultObjectAcl_; 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); predefinedDefaultObjectAcl_ = b; return b; } else { @@ -296,8 +250,6 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 6; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -309,18 +261,14 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() {
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -332,9 +280,7 @@ public boolean hasUpdateMask() {
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -342,8 +288,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -355,8 +299,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -364,7 +307,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -376,17 +318,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (bucket_ != null) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getBucket()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, ifMetagenerationMatch_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(3, ifMetagenerationNotMatch_); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) { @@ -404,24 +347,27 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (bucket_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBucket()); - } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBucket()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, ifMetagenerationMatch_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifMetagenerationNotMatch_); } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateMask()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, predefinedAcl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedDefaultObjectAcl_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(9, predefinedDefaultObjectAcl_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, predefinedDefaultObjectAcl_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -431,32 +377,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.storage.v2.UpdateBucketRequest)) { return super.equals(obj); } - com.google.storage.v2.UpdateBucketRequest other = - (com.google.storage.v2.UpdateBucketRequest) obj; + com.google.storage.v2.UpdateBucketRequest other = (com.google.storage.v2.UpdateBucketRequest) obj; if (hasBucket() != other.hasBucket()) return false; if (hasBucket()) { - if (!getBucket().equals(other.getBucket())) return false; + if (!getBucket() + .equals(other.getBucket())) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } - if (!getPredefinedAcl().equals(other.getPredefinedAcl())) return false; - if (!getPredefinedDefaultObjectAcl().equals(other.getPredefinedDefaultObjectAcl())) - return false; + if (!getPredefinedAcl() + .equals(other.getPredefinedAcl())) return false; + if (!getPredefinedDefaultObjectAcl() + .equals(other.getPredefinedDefaultObjectAcl())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -475,11 +425,13 @@ public int hashCode() { } if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + PREDEFINED_ACL_FIELD_NUMBER; hash = (53 * hash) + getPredefinedAcl().hashCode(); @@ -494,136 +446,139 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.UpdateBucketRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.UpdateBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.UpdateBucketRequest 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.storage.v2.UpdateBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.UpdateBucketRequest 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.storage.v2.UpdateBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.UpdateBucketRequest 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.storage.v2.UpdateBucketRequest 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.storage.v2.UpdateBucketRequest 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.storage.v2.UpdateBucketRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.UpdateBucketRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.UpdateBucketRequest 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.storage.v2.UpdateBucketRequest 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.storage.v2.UpdateBucketRequest 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.storage.v2.UpdateBucketRequest 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 for UpdateBucket method.
    * 
* * Protobuf type {@code google.storage.v2.UpdateBucketRequest} */ - 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.storage.v2.UpdateBucketRequest) com.google.storage.v2.UpdateBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.UpdateBucketRequest.class, - com.google.storage.v2.UpdateBucketRequest.Builder.class); + com.google.storage.v2.UpdateBucketRequest.class, com.google.storage.v2.UpdateBucketRequest.Builder.class); } // Construct using com.google.storage.v2.UpdateBucketRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBucketFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -646,9 +601,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateBucketRequest_descriptor; } @java.lang.Override @@ -667,28 +622,28 @@ public com.google.storage.v2.UpdateBucketRequest build() { @java.lang.Override public com.google.storage.v2.UpdateBucketRequest buildPartial() { - com.google.storage.v2.UpdateBucketRequest result = - new com.google.storage.v2.UpdateBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.UpdateBucketRequest result = new com.google.storage.v2.UpdateBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.storage.v2.UpdateBucketRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null + ? bucket_ + : bucketBuilder_.build(); + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.ifMetagenerationMatch_ = ifMetagenerationMatch_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ifMetagenerationNotMatch_ = ifMetagenerationNotMatch_; - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.predefinedAcl_ = predefinedAcl_; @@ -697,7 +652,10 @@ private void buildPartial0(com.google.storage.v2.UpdateBucketRequest result) { result.predefinedDefaultObjectAcl_ = predefinedDefaultObjectAcl_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @@ -706,39 +664,38 @@ private void buildPartial0(com.google.storage.v2.UpdateBucketRequest 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.storage.v2.UpdateBucketRequest) { - return mergeFrom((com.google.storage.v2.UpdateBucketRequest) other); + return mergeFrom((com.google.storage.v2.UpdateBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -795,49 +752,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBucketFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 50: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 66: - { - predefinedAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 66 - case 74: - { - predefinedDefaultObjectAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBucketFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 50: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: { + predefinedAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 66 + case 74: { + predefinedDefaultObjectAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 74 + 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) { @@ -847,40 +801,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.Bucket bucket_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket, - com.google.storage.v2.Bucket.Builder, - com.google.storage.v2.BucketOrBuilder> - bucketBuilder_; + com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> bucketBuilder_; /** - * - * *
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
      * 
* * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the bucket field is set. */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
      * 
* * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ public com.google.storage.v2.Bucket getBucket() { @@ -891,8 +835,6 @@ public com.google.storage.v2.Bucket getBucket() { } } /** - * - * *
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
@@ -914,8 +856,6 @@ public Builder setBucket(com.google.storage.v2.Bucket value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
@@ -923,7 +863,8 @@ public Builder setBucket(com.google.storage.v2.Bucket value) {
      *
      * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
+    public Builder setBucket(
+        com.google.storage.v2.Bucket.Builder builderForValue) {
       if (bucketBuilder_ == null) {
         bucket_ = builderForValue.build();
       } else {
@@ -934,8 +875,6 @@ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
@@ -945,9 +884,9 @@ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
      */
     public Builder mergeBucket(com.google.storage.v2.Bucket value) {
       if (bucketBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && bucket_ != null
-            && bucket_ != com.google.storage.v2.Bucket.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          bucket_ != null &&
+          bucket_ != com.google.storage.v2.Bucket.getDefaultInstance()) {
           getBucketBuilder().mergeFrom(value);
         } else {
           bucket_ = value;
@@ -955,13 +894,13 @@ public Builder mergeBucket(com.google.storage.v2.Bucket value) {
       } else {
         bucketBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000001;
-      onChanged();
+      if (bucket_ != null) {
+        bitField0_ |= 0x00000001;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
@@ -980,8 +919,6 @@ public Builder clearBucket() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
@@ -995,8 +932,6 @@ public com.google.storage.v2.Bucket.Builder getBucketBuilder() {
       return getBucketFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
@@ -1008,12 +943,11 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
       if (bucketBuilder_ != null) {
         return bucketBuilder_.getMessageOrBuilder();
       } else {
-        return bucket_ == null ? com.google.storage.v2.Bucket.getDefaultInstance() : bucket_;
+        return bucket_ == null ?
+            com.google.storage.v2.Bucket.getDefaultInstance() : bucket_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
@@ -1022,33 +956,27 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
      * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Bucket,
-            com.google.storage.v2.Bucket.Builder,
-            com.google.storage.v2.BucketOrBuilder>
+        com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> 
         getBucketFieldBuilder() {
       if (bucketBuilder_ == null) {
-        bucketBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Bucket,
-                com.google.storage.v2.Bucket.Builder,
-                com.google.storage.v2.BucketOrBuilder>(
-                getBucket(), getParentForChildren(), isClean());
+        bucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder>(
+                getBucket(),
+                getParentForChildren(),
+                isClean());
         bucket_ = null;
       }
       return bucketBuilder_;
     }
 
-    private long ifMetagenerationMatch_;
+    private long ifMetagenerationMatch_ ;
     /**
-     *
-     *
      * 
      * If set, will only modify the bucket if its metageneration matches this
      * value.
      * 
* * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1056,15 +984,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * If set, will only modify the bucket if its metageneration matches this
      * value.
      * 
* * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1072,15 +997,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * If set, will only modify the bucket if its metageneration matches this
      * value.
      * 
* * optional int64 if_metageneration_match = 2; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1092,15 +1014,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * If set, will only modify the bucket if its metageneration matches this
      * value.
      * 
* * optional int64 if_metageneration_match = 2; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1110,17 +1029,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * If set, will only modify the bucket if its metageneration does not match
      * this value.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1128,15 +1044,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * If set, will only modify the bucket if its metageneration does not match
      * this value.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1144,15 +1057,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * If set, will only modify the bucket if its metageneration does not match
      * this value.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1164,15 +1074,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * If set, will only modify the bucket if its metageneration does not match
      * this value.
      * 
* * optional int64 if_metageneration_not_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1184,8 +1091,6 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object predefinedAcl_ = ""; /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1193,13 +1098,13 @@ public Builder clearIfMetagenerationNotMatch() {
      * 
* * string predefined_acl = 8; - * * @return The predefinedAcl. */ public java.lang.String getPredefinedAcl() { java.lang.Object ref = predefinedAcl_; 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(); predefinedAcl_ = s; return s; @@ -1208,8 +1113,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1217,14 +1120,15 @@ public java.lang.String getPredefinedAcl() {
      * 
* * string predefined_acl = 8; - * * @return The bytes for predefinedAcl. */ - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; 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); predefinedAcl_ = b; return b; } else { @@ -1232,8 +1136,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1241,22 +1143,18 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
      * 
* * string predefined_acl = 8; - * * @param value The predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedAcl_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1264,7 +1162,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
      * 
* * string predefined_acl = 8; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1274,8 +1171,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1283,14 +1178,12 @@ public Builder clearPredefinedAcl() {
      * 
* * string predefined_acl = 8; - * * @param value The bytes for predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedAcl_ = value; bitField0_ |= 0x00000008; @@ -1300,8 +1193,6 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { private java.lang.Object predefinedDefaultObjectAcl_ = ""; /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1309,13 +1200,13 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) {
      * 
* * string predefined_default_object_acl = 9; - * * @return The predefinedDefaultObjectAcl. */ public java.lang.String getPredefinedDefaultObjectAcl() { java.lang.Object ref = predefinedDefaultObjectAcl_; 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(); predefinedDefaultObjectAcl_ = s; return s; @@ -1324,8 +1215,6 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1333,14 +1222,15 @@ public java.lang.String getPredefinedDefaultObjectAcl() {
      * 
* * string predefined_default_object_acl = 9; - * * @return The bytes for predefinedDefaultObjectAcl. */ - public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { + public com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes() { java.lang.Object ref = predefinedDefaultObjectAcl_; 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); predefinedDefaultObjectAcl_ = b; return b; } else { @@ -1348,8 +1238,6 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { } } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1357,22 +1245,18 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() {
      * 
* * string predefined_default_object_acl = 9; - * * @param value The predefinedDefaultObjectAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedDefaultObjectAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedDefaultObjectAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedDefaultObjectAcl_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1380,7 +1264,6 @@ public Builder setPredefinedDefaultObjectAcl(java.lang.String value) {
      * 
* * string predefined_default_object_acl = 9; - * * @return This builder for chaining. */ public Builder clearPredefinedDefaultObjectAcl() { @@ -1390,8 +1273,6 @@ public Builder clearPredefinedDefaultObjectAcl() { return this; } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1399,14 +1280,12 @@ public Builder clearPredefinedDefaultObjectAcl() {
      * 
* * string predefined_default_object_acl = 9; - * * @param value The bytes for predefinedDefaultObjectAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedDefaultObjectAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedDefaultObjectAcl_ = value; bitField0_ |= 0x00000010; @@ -1416,13 +1295,8 @@ public Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1434,17 +1308,13 @@ public Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1456,23 +1326,17 @@ public boolean hasUpdateMask() {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1484,8 +1348,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1501,8 +1364,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1514,10 +1375,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1528,8 +1389,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1541,14 +1400,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1556,13 +1414,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1574,8 +1432,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1588,8 +1445,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1601,8 +1456,7 @@ public Builder clearUpdateMask() {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000020; @@ -1610,8 +1464,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1623,21 +1475,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1649,28 +1497,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1680,12 +1524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.UpdateBucketRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.UpdateBucketRequest) private static final com.google.storage.v2.UpdateBucketRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.UpdateBucketRequest(); } @@ -1694,27 +1538,27 @@ public static com.google.storage.v2.UpdateBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1729,4 +1573,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.UpdateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java similarity index 82% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java index 5917c1c8ac..696704a6b1 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java @@ -1,57 +1,34 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface UpdateBucketRequestOrBuilder - extends +public interface UpdateBucketRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.UpdateBucketRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
    * 
* * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the bucket field is set. */ boolean hasBucket(); /** - * - * *
    * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
    * 
* * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ com.google.storage.v2.Bucket getBucket(); /** - * - * *
    * Required. The bucket to update.
    * The bucket's `name` field will be used to identify the bucket.
@@ -62,62 +39,48 @@ public interface UpdateBucketRequestOrBuilder
   com.google.storage.v2.BucketOrBuilder getBucketOrBuilder();
 
   /**
-   *
-   *
    * 
    * If set, will only modify the bucket if its metageneration matches this
    * value.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * If set, will only modify the bucket if its metageneration matches this
    * value.
    * 
* * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * If set, will only modify the bucket if its metageneration does not match
    * this value.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * If set, will only modify the bucket if its metageneration does not match
    * this value.
    * 
* * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * Apply a predefined set of access controls to this bucket.
    * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -125,13 +88,10 @@ public interface UpdateBucketRequestOrBuilder
    * 
* * string predefined_acl = 8; - * * @return The predefinedAcl. */ java.lang.String getPredefinedAcl(); /** - * - * *
    * Apply a predefined set of access controls to this bucket.
    * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -139,14 +99,12 @@ public interface UpdateBucketRequestOrBuilder
    * 
* * string predefined_acl = 8; - * * @return The bytes for predefinedAcl. */ - com.google.protobuf.ByteString getPredefinedAclBytes(); + com.google.protobuf.ByteString + getPredefinedAclBytes(); /** - * - * *
    * Apply a predefined set of default object access controls to this bucket.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -154,13 +112,10 @@ public interface UpdateBucketRequestOrBuilder
    * 
* * string predefined_default_object_acl = 9; - * * @return The predefinedDefaultObjectAcl. */ java.lang.String getPredefinedDefaultObjectAcl(); /** - * - * *
    * Apply a predefined set of default object access controls to this bucket.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -168,14 +123,12 @@ public interface UpdateBucketRequestOrBuilder
    * 
* * string predefined_default_object_acl = 9; - * * @return The bytes for predefinedDefaultObjectAcl. */ - com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes(); + com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes(); /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -187,15 +140,11 @@ public interface UpdateBucketRequestOrBuilder
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -207,15 +156,11 @@ public interface UpdateBucketRequestOrBuilder
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -227,8 +172,7 @@ public interface UpdateBucketRequestOrBuilder
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java similarity index 67% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java index 37fcd90c0c..95e5fed704 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java @@ -1,26 +1,10 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request object to update an HMAC key state.
  * HmacKeyMetadata.state is required and the only writable field in
@@ -30,44 +14,42 @@
  *
  * Protobuf type {@code google.storage.v2.UpdateHmacKeyRequest}
  */
-public final class UpdateHmacKeyRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateHmacKeyRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.storage.v2.UpdateHmacKeyRequest)
     UpdateHmacKeyRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateHmacKeyRequest.newBuilder() to construct.
   private UpdateHmacKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateHmacKeyRequest() {}
+  private UpdateHmacKeyRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateHmacKeyRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.storage.v2.StorageProto
-        .internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable
+    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.storage.v2.UpdateHmacKeyRequest.class,
-            com.google.storage.v2.UpdateHmacKeyRequest.Builder.class);
+            com.google.storage.v2.UpdateHmacKeyRequest.class, com.google.storage.v2.UpdateHmacKeyRequest.Builder.class);
   }
 
+  private int bitField0_;
   public static final int HMAC_KEY_FIELD_NUMBER = 1;
   private com.google.storage.v2.HmacKeyMetadata hmacKey_;
   /**
-   *
-   *
    * 
    * Required. The HMAC key to update.
    * If present, the hmac_key's `id` field will be used to identify the key.
@@ -75,19 +57,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * identify the key.
    * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hmacKey field is set. */ @java.lang.Override public boolean hasHmacKey() { - return hmacKey_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The HMAC key to update.
    * If present, the hmac_key's `id` field will be used to identify the key.
@@ -95,10 +72,7 @@ public boolean hasHmacKey() {
    * identify the key.
    * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The hmacKey. */ @java.lang.Override @@ -106,8 +80,6 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKey() { return hmacKey_ == null ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : hmacKey_; } /** - * - * *
    * Required. The HMAC key to update.
    * If present, the hmac_key's `id` field will be used to identify the key.
@@ -115,9 +87,7 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKey() {
    * identify the key.
    * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() { @@ -127,8 +97,6 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Update mask for hmac_key.
    * Not specifying any fields will mean only the `state` field is updated to
@@ -136,16 +104,13 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Update mask for hmac_key.
    * Not specifying any fields will mean only the `state` field is updated to
@@ -153,7 +118,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ @java.lang.Override @@ -161,8 +125,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Update mask for hmac_key.
    * Not specifying any fields will mean only the `state` field is updated to
@@ -177,7 +139,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -189,11 +150,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (hmacKey_ != null) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getHmacKey());
     }
-    if (updateMask_ != null) {
+    if (((bitField0_ & 0x00000002) != 0)) {
       output.writeMessage(3, getUpdateMask());
     }
     getUnknownFields().writeTo(output);
@@ -205,11 +167,13 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (hmacKey_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHmacKey());
+    if (((bitField0_ & 0x00000001) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getHmacKey());
     }
-    if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
+    if (((bitField0_ & 0x00000002) != 0)) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -219,21 +183,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.storage.v2.UpdateHmacKeyRequest)) {
       return super.equals(obj);
     }
-    com.google.storage.v2.UpdateHmacKeyRequest other =
-        (com.google.storage.v2.UpdateHmacKeyRequest) obj;
+    com.google.storage.v2.UpdateHmacKeyRequest other = (com.google.storage.v2.UpdateHmacKeyRequest) obj;
 
     if (hasHmacKey() != other.hasHmacKey()) return false;
     if (hasHmacKey()) {
-      if (!getHmacKey().equals(other.getHmacKey())) return false;
+      if (!getHmacKey()
+          .equals(other.getHmacKey())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -259,104 +224,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.UpdateHmacKeyRequest 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.storage.v2.UpdateHmacKeyRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.UpdateHmacKeyRequest 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.storage.v2.UpdateHmacKeyRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.UpdateHmacKeyRequest 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.storage.v2.UpdateHmacKeyRequest 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.storage.v2.UpdateHmacKeyRequest 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.storage.v2.UpdateHmacKeyRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.storage.v2.UpdateHmacKeyRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.UpdateHmacKeyRequest 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.storage.v2.UpdateHmacKeyRequest 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.storage.v2.UpdateHmacKeyRequest 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.storage.v2.UpdateHmacKeyRequest 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 object to update an HMAC key state.
    * HmacKeyMetadata.state is required and the only writable field in
@@ -366,32 +326,40 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.storage.v2.UpdateHmacKeyRequest}
    */
-  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.storage.v2.UpdateHmacKeyRequest)
       com.google.storage.v2.UpdateHmacKeyRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.storage.v2.UpdateHmacKeyRequest.class,
-              com.google.storage.v2.UpdateHmacKeyRequest.Builder.class);
+              com.google.storage.v2.UpdateHmacKeyRequest.class, com.google.storage.v2.UpdateHmacKeyRequest.Builder.class);
     }
 
     // Construct using com.google.storage.v2.UpdateHmacKeyRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+        getHmacKeyFieldBuilder();
+        getUpdateMaskFieldBuilder();
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -410,9 +378,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.storage.v2.StorageProto
-          .internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
     }
 
     @java.lang.Override
@@ -431,62 +399,66 @@ public com.google.storage.v2.UpdateHmacKeyRequest build() {
 
     @java.lang.Override
     public com.google.storage.v2.UpdateHmacKeyRequest buildPartial() {
-      com.google.storage.v2.UpdateHmacKeyRequest result =
-          new com.google.storage.v2.UpdateHmacKeyRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.storage.v2.UpdateHmacKeyRequest result = new com.google.storage.v2.UpdateHmacKeyRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
     private void buildPartial0(com.google.storage.v2.UpdateHmacKeyRequest result) {
       int from_bitField0_ = bitField0_;
+      int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.hmacKey_ = hmacKeyBuilder_ == null ? hmacKey_ : hmacKeyBuilder_.build();
+        result.hmacKey_ = hmacKeyBuilder_ == null
+            ? hmacKey_
+            : hmacKeyBuilder_.build();
+        to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
+        to_bitField0_ |= 0x00000002;
       }
+      result.bitField0_ |= to_bitField0_;
     }
 
     @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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.storage.v2.UpdateHmacKeyRequest) {
-        return mergeFrom((com.google.storage.v2.UpdateHmacKeyRequest) other);
+        return mergeFrom((com.google.storage.v2.UpdateHmacKeyRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -527,25 +499,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getHmacKeyFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getHmacKeyFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              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) {
@@ -555,18 +528,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.storage.v2.HmacKeyMetadata hmacKey_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.HmacKeyMetadata,
-            com.google.storage.v2.HmacKeyMetadata.Builder,
-            com.google.storage.v2.HmacKeyMetadataOrBuilder>
-        hmacKeyBuilder_;
+        com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> hmacKeyBuilder_;
     /**
-     *
-     *
      * 
      * Required. The HMAC key to update.
      * If present, the hmac_key's `id` field will be used to identify the key.
@@ -574,18 +541,13 @@ public Builder mergeFrom(
      * identify the key.
      * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hmacKey field is set. */ public boolean hasHmacKey() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The HMAC key to update.
      * If present, the hmac_key's `id` field will be used to identify the key.
@@ -593,24 +555,17 @@ public boolean hasHmacKey() {
      * identify the key.
      * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The hmacKey. */ public com.google.storage.v2.HmacKeyMetadata getHmacKey() { if (hmacKeyBuilder_ == null) { - return hmacKey_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : hmacKey_; + return hmacKey_ == null ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : hmacKey_; } else { return hmacKeyBuilder_.getMessage(); } } /** - * - * *
      * Required. The HMAC key to update.
      * If present, the hmac_key's `id` field will be used to identify the key.
@@ -618,9 +573,7 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKey() {
      * identify the key.
      * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata value) { if (hmacKeyBuilder_ == null) { @@ -636,8 +589,6 @@ public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata value) { return this; } /** - * - * *
      * Required. The HMAC key to update.
      * If present, the hmac_key's `id` field will be used to identify the key.
@@ -645,11 +596,10 @@ public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata value) {
      * identify the key.
      * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { + public Builder setHmacKey( + com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { if (hmacKeyBuilder_ == null) { hmacKey_ = builderForValue.build(); } else { @@ -660,8 +610,6 @@ public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata.Builder builderF return this; } /** - * - * *
      * Required. The HMAC key to update.
      * If present, the hmac_key's `id` field will be used to identify the key.
@@ -669,15 +617,13 @@ public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata.Builder builderF
      * identify the key.
      * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHmacKey(com.google.storage.v2.HmacKeyMetadata value) { if (hmacKeyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && hmacKey_ != null - && hmacKey_ != com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + hmacKey_ != null && + hmacKey_ != com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()) { getHmacKeyBuilder().mergeFrom(value); } else { hmacKey_ = value; @@ -685,13 +631,13 @@ public Builder mergeHmacKey(com.google.storage.v2.HmacKeyMetadata value) { } else { hmacKeyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (hmacKey_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** - * - * *
      * Required. The HMAC key to update.
      * If present, the hmac_key's `id` field will be used to identify the key.
@@ -699,9 +645,7 @@ public Builder mergeHmacKey(com.google.storage.v2.HmacKeyMetadata value) {
      * identify the key.
      * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHmacKey() { bitField0_ = (bitField0_ & ~0x00000001); @@ -714,8 +658,6 @@ public Builder clearHmacKey() { return this; } /** - * - * *
      * Required. The HMAC key to update.
      * If present, the hmac_key's `id` field will be used to identify the key.
@@ -723,9 +665,7 @@ public Builder clearHmacKey() {
      * identify the key.
      * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.HmacKeyMetadata.Builder getHmacKeyBuilder() { bitField0_ |= 0x00000001; @@ -733,8 +673,6 @@ public com.google.storage.v2.HmacKeyMetadata.Builder getHmacKeyBuilder() { return getHmacKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The HMAC key to update.
      * If present, the hmac_key's `id` field will be used to identify the key.
@@ -742,22 +680,17 @@ public com.google.storage.v2.HmacKeyMetadata.Builder getHmacKeyBuilder() {
      * identify the key.
      * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() { if (hmacKeyBuilder_ != null) { return hmacKeyBuilder_.getMessageOrBuilder(); } else { - return hmacKey_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : hmacKey_; + return hmacKey_ == null ? + com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : hmacKey_; } } /** - * - * *
      * Required. The HMAC key to update.
      * If present, the hmac_key's `id` field will be used to identify the key.
@@ -765,22 +698,17 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() {
      * identify the key.
      * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder> + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> getHmacKeyFieldBuilder() { if (hmacKeyBuilder_ == null) { - hmacKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder>( - getHmacKey(), getParentForChildren(), isClean()); + hmacKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder>( + getHmacKey(), + getParentForChildren(), + isClean()); hmacKey_ = null; } return hmacKeyBuilder_; @@ -788,13 +716,8 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -802,15 +725,12 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -818,21 +738,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -855,8 +770,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -865,7 +778,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 3;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -876,8 +790,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -888,9 +800,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -898,13 +810,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       } else {
         updateMaskBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
-      onChanged();
+      if (updateMask_ != null) {
+        bitField0_ |= 0x00000002;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -924,8 +836,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -940,8 +850,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -954,14 +862,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -971,24 +876,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -998,12 +900,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.UpdateHmacKeyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.UpdateHmacKeyRequest)
   private static final com.google.storage.v2.UpdateHmacKeyRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.UpdateHmacKeyRequest();
   }
@@ -1012,27 +914,27 @@ public static com.google.storage.v2.UpdateHmacKeyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateHmacKeyRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 UpdateHmacKeyRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -1047,4 +949,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.UpdateHmacKeyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
similarity index 67%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
index f276a58154..b73bd05542 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
@@ -1,31 +1,14 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface UpdateHmacKeyRequestOrBuilder
-    extends
+public interface UpdateHmacKeyRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.UpdateHmacKeyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The HMAC key to update.
    * If present, the hmac_key's `id` field will be used to identify the key.
@@ -33,16 +16,11 @@ public interface UpdateHmacKeyRequestOrBuilder
    * identify the key.
    * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hmacKey field is set. */ boolean hasHmacKey(); /** - * - * *
    * Required. The HMAC key to update.
    * If present, the hmac_key's `id` field will be used to identify the key.
@@ -50,16 +28,11 @@ public interface UpdateHmacKeyRequestOrBuilder
    * identify the key.
    * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The hmacKey. */ com.google.storage.v2.HmacKeyMetadata getHmacKey(); /** - * - * *
    * Required. The HMAC key to update.
    * If present, the hmac_key's `id` field will be used to identify the key.
@@ -67,15 +40,11 @@ public interface UpdateHmacKeyRequestOrBuilder
    * identify the key.
    * 
* - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder(); /** - * - * *
    * Update mask for hmac_key.
    * Not specifying any fields will mean only the `state` field is updated to
@@ -83,13 +52,10 @@ public interface UpdateHmacKeyRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Update mask for hmac_key.
    * Not specifying any fields will mean only the `state` field is updated to
@@ -97,13 +63,10 @@ public interface UpdateHmacKeyRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Update mask for hmac_key.
    * Not specifying any fields will mean only the `state` field is updated to
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
similarity index 76%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
index f1fb42789e..033b7806ed 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
@@ -1,73 +1,53 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Request message for UpdateObject.
  * 
* * Protobuf type {@code google.storage.v2.UpdateObjectRequest} */ -public final class UpdateObjectRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateObjectRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.UpdateObjectRequest) UpdateObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateObjectRequest.newBuilder() to construct. private UpdateObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateObjectRequest() { predefinedAcl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.UpdateObjectRequest.class, - com.google.storage.v2.UpdateObjectRequest.Builder.class); + com.google.storage.v2.UpdateObjectRequest.class, com.google.storage.v2.UpdateObjectRequest.Builder.class); } private int bitField0_; public static final int OBJECT_FIELD_NUMBER = 1; private com.google.storage.v2.Object object_; /** - * - * *
    * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
@@ -77,16 +57,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the object field is set. */ @java.lang.Override public boolean hasObject() { - return object_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
@@ -96,7 +73,6 @@ public boolean hasObject() {
    * 
* * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -104,8 +80,6 @@ public com.google.storage.v2.Object getObject() { return object_ == null ? com.google.storage.v2.Object.getDefaultInstance() : object_; } /** - * - * *
    * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
@@ -124,8 +98,6 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
   public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 2;
   private long ifGenerationMatch_ = 0L;
   /**
-   *
-   *
    * 
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -133,16 +105,13 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
    * 
* * optional int64 if_generation_match = 2; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override public boolean hasIfGenerationMatch() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -150,7 +119,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 2; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -161,8 +129,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 3; private long ifGenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -171,16 +137,13 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 3; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfGenerationNotMatch() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -189,7 +152,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 3; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -200,31 +162,25 @@ public long getIfGenerationNotMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 4; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationMatch() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 4; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -235,31 +191,25 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 5; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 5; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationNotMatch() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 5; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -268,12 +218,9 @@ public long getIfMetagenerationNotMatch() { } public static final int PREDEFINED_ACL_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedAcl_ = ""; /** - * - * *
    * Apply a predefined set of access controls to this object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -281,7 +228,6 @@ public long getIfMetagenerationNotMatch() {
    * 
* * string predefined_acl = 10; - * * @return The predefinedAcl. */ @java.lang.Override @@ -290,15 +236,14 @@ public java.lang.String getPredefinedAcl() { 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(); predefinedAcl_ = s; return s; } } /** - * - * *
    * Apply a predefined set of access controls to this object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -306,15 +251,16 @@ public java.lang.String getPredefinedAcl() {
    * 
* * string predefined_acl = 10; - * * @return The bytes for predefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; 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); predefinedAcl_ = b; return b; } else { @@ -325,8 +271,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 7; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -338,18 +282,14 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -361,9 +301,7 @@ public boolean hasUpdateMask() {
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -371,8 +309,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -384,8 +320,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -395,40 +330,30 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 8; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { - return commonObjectRequestParams_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -436,15 +361,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -456,26 +377,27 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (object_ != null) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getObject()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, ifGenerationMatch_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(3, ifGenerationNotMatch_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(4, ifMetagenerationMatch_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeInt64(5, ifMetagenerationNotMatch_); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(7, getUpdateMask()); } - if (commonObjectRequestParams_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(8, getCommonObjectRequestParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) { @@ -490,28 +412,33 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (object_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObject()); - } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getObject()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, ifGenerationMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifMetagenerationMatch_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifMetagenerationNotMatch_); } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateMask()); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateMask()); } - if (commonObjectRequestParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getCommonObjectRequestParams()); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCommonObjectRequestParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, predefinedAcl_); @@ -524,43 +451,49 @@ 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.storage.v2.UpdateObjectRequest)) { return super.equals(obj); } - com.google.storage.v2.UpdateObjectRequest other = - (com.google.storage.v2.UpdateObjectRequest) obj; + com.google.storage.v2.UpdateObjectRequest other = (com.google.storage.v2.UpdateObjectRequest) obj; if (hasObject() != other.hasObject()) return false; if (hasObject()) { - if (!getObject().equals(other.getObject())) return false; + if (!getObject() + .equals(other.getObject())) return false; } if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { - if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; + if (getIfGenerationMatch() + != other.getIfGenerationMatch()) return false; } if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false; if (hasIfGenerationNotMatch()) { - if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false; + if (getIfGenerationNotMatch() + != other.getIfGenerationNotMatch()) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } - if (!getPredefinedAcl().equals(other.getPredefinedAcl())) return false; + if (!getPredefinedAcl() + .equals(other.getPredefinedAcl())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -579,19 +512,23 @@ public int hashCode() { } if (hasIfGenerationMatch()) { hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationMatch()); } if (hasIfGenerationNotMatch()) { hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationNotMatch()); } if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + PREDEFINED_ACL_FIELD_NUMBER; hash = (53 * hash) + getPredefinedAcl().hashCode(); @@ -608,136 +545,140 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.UpdateObjectRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.UpdateObjectRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.UpdateObjectRequest 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.storage.v2.UpdateObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.UpdateObjectRequest 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.storage.v2.UpdateObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.UpdateObjectRequest 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.storage.v2.UpdateObjectRequest 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.storage.v2.UpdateObjectRequest 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.storage.v2.UpdateObjectRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.UpdateObjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.UpdateObjectRequest 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.storage.v2.UpdateObjectRequest 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.storage.v2.UpdateObjectRequest 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.storage.v2.UpdateObjectRequest 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 UpdateObject.
    * 
* * Protobuf type {@code google.storage.v2.UpdateObjectRequest} */ - 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.storage.v2.UpdateObjectRequest) com.google.storage.v2.UpdateObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.UpdateObjectRequest.class, - com.google.storage.v2.UpdateObjectRequest.Builder.class); + com.google.storage.v2.UpdateObjectRequest.class, com.google.storage.v2.UpdateObjectRequest.Builder.class); } // Construct using com.google.storage.v2.UpdateObjectRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getObjectFieldBuilder(); + getUpdateMaskFieldBuilder(); + getCommonObjectRequestParamsFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -766,9 +707,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateObjectRequest_descriptor; } @java.lang.Override @@ -787,48 +728,51 @@ public com.google.storage.v2.UpdateObjectRequest build() { @java.lang.Override public com.google.storage.v2.UpdateObjectRequest buildPartial() { - com.google.storage.v2.UpdateObjectRequest result = - new com.google.storage.v2.UpdateObjectRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.UpdateObjectRequest result = new com.google.storage.v2.UpdateObjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.storage.v2.UpdateObjectRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null ? object_ : objectBuilder_.build(); + result.object_ = objectBuilder_ == null + ? object_ + : objectBuilder_.build(); + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.ifGenerationMatch_ = ifGenerationMatch_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ifGenerationNotMatch_ = ifGenerationNotMatch_; - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.ifMetagenerationMatch_ = ifMetagenerationMatch_; - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.ifMetagenerationNotMatch_ = ifMetagenerationNotMatch_; - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.predefinedAcl_ = predefinedAcl_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); + to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } @@ -837,39 +781,38 @@ private void buildPartial0(com.google.storage.v2.UpdateObjectRequest 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.storage.v2.UpdateObjectRequest) { - return mergeFrom((com.google.storage.v2.UpdateObjectRequest) other); + return mergeFrom((com.google.storage.v2.UpdateObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -930,62 +873,58 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getObjectFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - ifGenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 58: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: - { - predefinedAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getObjectFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ifGenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 58: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: { + predefinedAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + 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) { @@ -995,18 +934,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.Object object_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - objectBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> objectBuilder_; /** - * - * *
      * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
@@ -1016,15 +949,12 @@ public Builder mergeFrom(
      * 
* * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the object field is set. */ public boolean hasObject() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
@@ -1034,7 +964,6 @@ public boolean hasObject() {
      * 
* * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ public com.google.storage.v2.Object getObject() { @@ -1045,8 +974,6 @@ public com.google.storage.v2.Object getObject() { } } /** - * - * *
      * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
@@ -1071,8 +998,6 @@ public Builder setObject(com.google.storage.v2.Object value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
@@ -1083,7 +1008,8 @@ public Builder setObject(com.google.storage.v2.Object value) {
      *
      * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setObject(com.google.storage.v2.Object.Builder builderForValue) {
+    public Builder setObject(
+        com.google.storage.v2.Object.Builder builderForValue) {
       if (objectBuilder_ == null) {
         object_ = builderForValue.build();
       } else {
@@ -1094,8 +1020,6 @@ public Builder setObject(com.google.storage.v2.Object.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
@@ -1108,9 +1032,9 @@ public Builder setObject(com.google.storage.v2.Object.Builder builderForValue) {
      */
     public Builder mergeObject(com.google.storage.v2.Object value) {
       if (objectBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && object_ != null
-            && object_ != com.google.storage.v2.Object.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          object_ != null &&
+          object_ != com.google.storage.v2.Object.getDefaultInstance()) {
           getObjectBuilder().mergeFrom(value);
         } else {
           object_ = value;
@@ -1118,13 +1042,13 @@ public Builder mergeObject(com.google.storage.v2.Object value) {
       } else {
         objectBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000001;
-      onChanged();
+      if (object_ != null) {
+        bitField0_ |= 0x00000001;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
@@ -1146,8 +1070,6 @@ public Builder clearObject() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
@@ -1164,8 +1086,6 @@ public com.google.storage.v2.Object.Builder getObjectBuilder() {
       return getObjectFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
@@ -1180,12 +1100,11 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
       if (objectBuilder_ != null) {
         return objectBuilder_.getMessageOrBuilder();
       } else {
-        return object_ == null ? com.google.storage.v2.Object.getDefaultInstance() : object_;
+        return object_ == null ?
+            com.google.storage.v2.Object.getDefaultInstance() : object_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
@@ -1197,26 +1116,21 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
      * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Object,
-            com.google.storage.v2.Object.Builder,
-            com.google.storage.v2.ObjectOrBuilder>
+        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
         getObjectFieldBuilder() {
       if (objectBuilder_ == null) {
-        objectBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Object,
-                com.google.storage.v2.Object.Builder,
-                com.google.storage.v2.ObjectOrBuilder>(
-                getObject(), getParentForChildren(), isClean());
+        objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
+                getObject(),
+                getParentForChildren(),
+                isClean());
         object_ = null;
       }
       return objectBuilder_;
     }
 
-    private long ifGenerationMatch_;
+    private long ifGenerationMatch_ ;
     /**
-     *
-     *
      * 
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1224,7 +1138,6 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
      * 
* * optional int64 if_generation_match = 2; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1232,8 +1145,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1241,7 +1152,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 2; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1249,8 +1159,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1258,7 +1166,6 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 2; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1270,8 +1177,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current generation
      * matches the given value. Setting to 0 makes the operation succeed only if
@@ -1279,7 +1184,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 2; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1289,10 +1193,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1301,7 +1203,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 3; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1309,8 +1210,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1319,7 +1218,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 3; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1327,8 +1225,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1337,7 +1233,6 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 3; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1349,8 +1244,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's live generation
      * does not match the given value. If no live object exists, the precondition
@@ -1359,7 +1252,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 3; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1369,17 +1261,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 4; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1387,15 +1276,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 4; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1403,15 +1289,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 4; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1423,15 +1306,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 4; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1441,17 +1321,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 5; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1459,15 +1336,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 5; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1475,15 +1349,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 5; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1495,15 +1366,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 5; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1515,8 +1383,6 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object predefinedAcl_ = ""; /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1524,13 +1390,13 @@ public Builder clearIfMetagenerationNotMatch() {
      * 
* * string predefined_acl = 10; - * * @return The predefinedAcl. */ public java.lang.String getPredefinedAcl() { java.lang.Object ref = predefinedAcl_; 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(); predefinedAcl_ = s; return s; @@ -1539,8 +1405,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1548,14 +1412,15 @@ public java.lang.String getPredefinedAcl() {
      * 
* * string predefined_acl = 10; - * * @return The bytes for predefinedAcl. */ - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; 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); predefinedAcl_ = b; return b; } else { @@ -1563,8 +1428,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1572,22 +1435,18 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
      * 
* * string predefined_acl = 10; - * * @param value The predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedAcl_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1595,7 +1454,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
      * 
* * string predefined_acl = 10; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1605,8 +1463,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1614,14 +1470,12 @@ public Builder clearPredefinedAcl() {
      * 
* * string predefined_acl = 10; - * * @param value The bytes for predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedAcl_ = value; bitField0_ |= 0x00000020; @@ -1631,13 +1485,8 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1649,17 +1498,13 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1671,23 +1516,17 @@ public boolean hasUpdateMask() {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1699,8 +1538,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1716,8 +1554,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1729,10 +1565,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1743,8 +1579,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1756,14 +1590,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1771,13 +1604,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1789,8 +1622,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1803,8 +1635,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1816,8 +1646,7 @@ public Builder clearUpdateMask() {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000040; @@ -1825,8 +1654,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1838,21 +1665,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. List of fields to be updated.
      *
@@ -1864,21 +1687,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * Not specifying any fields is an error.
      * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -1886,55 +1705,41 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1948,8 +1753,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1968,21 +1771,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -1990,13 +1789,13 @@ public Builder mergeCommonObjectRequestParams( } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (commonObjectRequestParams_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -2014,42 +1813,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -2057,24 +1847,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @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); } @@ -2084,12 +1871,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.UpdateObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.UpdateObjectRequest) private static final com.google.storage.v2.UpdateObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.UpdateObjectRequest(); } @@ -2098,27 +1885,27 @@ public static com.google.storage.v2.UpdateObjectRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 UpdateObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2133,4 +1920,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.UpdateObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java similarity index 87% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java index e87e0c1dd9..28a3beb52e 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java @@ -1,31 +1,14 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface UpdateObjectRequestOrBuilder - extends +public interface UpdateObjectRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.UpdateObjectRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
@@ -35,13 +18,10 @@ public interface UpdateObjectRequestOrBuilder
    * 
* * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the object field is set. */ boolean hasObject(); /** - * - * *
    * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
@@ -51,13 +31,10 @@ public interface UpdateObjectRequestOrBuilder
    * 
* * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ com.google.storage.v2.Object getObject(); /** - * - * *
    * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
@@ -71,8 +48,6 @@ public interface UpdateObjectRequestOrBuilder
   com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder();
 
   /**
-   *
-   *
    * 
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -80,13 +55,10 @@ public interface UpdateObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 2; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -94,14 +66,11 @@ public interface UpdateObjectRequestOrBuilder
    * 
* * optional int64 if_generation_match = 2; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -110,13 +79,10 @@ public interface UpdateObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 3; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live generation
    * does not match the given value. If no live object exists, the precondition
@@ -125,68 +91,53 @@ public interface UpdateObjectRequestOrBuilder
    * 
* * optional int64 if_generation_not_match = 3; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 4; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 4; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 5; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 5; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * Apply a predefined set of access controls to this object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -194,13 +145,10 @@ public interface UpdateObjectRequestOrBuilder
    * 
* * string predefined_acl = 10; - * * @return The predefinedAcl. */ java.lang.String getPredefinedAcl(); /** - * - * *
    * Apply a predefined set of access controls to this object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -208,14 +156,12 @@ public interface UpdateObjectRequestOrBuilder
    * 
* * string predefined_acl = 10; - * * @return The bytes for predefinedAcl. */ - com.google.protobuf.ByteString getPredefinedAclBytes(); + com.google.protobuf.ByteString + getPredefinedAclBytes(); /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -227,15 +173,11 @@ public interface UpdateObjectRequestOrBuilder
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -247,15 +189,11 @@ public interface UpdateObjectRequestOrBuilder
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. List of fields to be updated.
    *
@@ -267,38 +205,29 @@ public interface UpdateObjectRequestOrBuilder
    * Not specifying any fields is an error.
    * 
* - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java similarity index 74% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java index 51a90b30e6..fe649002b1 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java @@ -1,79 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Request message for WriteObject.
  * 
* * Protobuf type {@code google.storage.v2.WriteObjectRequest} */ -public final class WriteObjectRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteObjectRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.WriteObjectRequest) WriteObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteObjectRequest.newBuilder() to construct. private WriteObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private WriteObjectRequest() {} + private WriteObjectRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectRequest.class, - com.google.storage.v2.WriteObjectRequest.Builder.class); + com.google.storage.v2.WriteObjectRequest.class, com.google.storage.v2.WriteObjectRequest.Builder.class); } + private int bitField0_; private int firstMessageCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object firstMessage_; - public enum FirstMessageCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UPLOAD_ID(1), WRITE_OBJECT_SPEC(2), FIRSTMESSAGE_NOT_SET(0); private final int value; - private FirstMessageCase(int value) { this.value = value; } @@ -89,39 +69,32 @@ public static FirstMessageCase valueOf(int value) { public static FirstMessageCase forNumber(int value) { switch (value) { - case 1: - return UPLOAD_ID; - case 2: - return WRITE_OBJECT_SPEC; - case 0: - return FIRSTMESSAGE_NOT_SET; - default: - return null; + case 1: return UPLOAD_ID; + case 2: return WRITE_OBJECT_SPEC; + case 0: return FIRSTMESSAGE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FirstMessageCase getFirstMessageCase() { - return FirstMessageCase.forNumber(firstMessageCase_); + public FirstMessageCase + getFirstMessageCase() { + return FirstMessageCase.forNumber( + firstMessageCase_); } private int dataCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object data_; - public enum DataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CHECKSUMMED_DATA(4), DATA_NOT_SET(0); private final int value; - private DataCase(int value) { this.value = value; } @@ -137,50 +110,42 @@ public static DataCase valueOf(int value) { public static DataCase forNumber(int value) { switch (value) { - case 4: - return CHECKSUMMED_DATA; - case 0: - return DATA_NOT_SET; - default: - return null; + case 4: return CHECKSUMMED_DATA; + case 0: return DATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public static final int UPLOAD_ID_FIELD_NUMBER = 1; /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return Whether the uploadId field is set. */ public boolean hasUploadId() { return firstMessageCase_ == 1; } /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return The uploadId. */ public java.lang.String getUploadId() { @@ -191,7 +156,8 @@ public java.lang.String getUploadId() { 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(); if (firstMessageCase_ == 1) { firstMessage_ = s; @@ -200,25 +166,24 @@ public java.lang.String getUploadId() { } } /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return The bytes for uploadId. */ - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = ""; if (firstMessageCase_ == 1) { ref = firstMessage_; } 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); if (firstMessageCase_ == 1) { firstMessage_ = b; } @@ -230,15 +195,12 @@ public com.google.protobuf.ByteString getUploadIdBytes() { public static final int WRITE_OBJECT_SPEC_FIELD_NUMBER = 2; /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
    * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return Whether the writeObjectSpec field is set. */ @java.lang.Override @@ -246,27 +208,22 @@ public boolean hasWriteObjectSpec() { return firstMessageCase_ == 2; } /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
    * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return The writeObjectSpec. */ @java.lang.Override public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { if (firstMessageCase_ == 2) { - return (com.google.storage.v2.WriteObjectSpec) firstMessage_; + return (com.google.storage.v2.WriteObjectSpec) firstMessage_; } return com.google.storage.v2.WriteObjectSpec.getDefaultInstance(); } /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
@@ -277,7 +234,7 @@ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() {
   @java.lang.Override
   public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder() {
     if (firstMessageCase_ == 2) {
-      return (com.google.storage.v2.WriteObjectSpec) firstMessage_;
+       return (com.google.storage.v2.WriteObjectSpec) firstMessage_;
     }
     return com.google.storage.v2.WriteObjectSpec.getDefaultInstance();
   }
@@ -285,8 +242,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
   public static final int WRITE_OFFSET_FIELD_NUMBER = 3;
   private long writeOffset_ = 0L;
   /**
-   *
-   *
    * 
    * Required. The offset from the beginning of the object at which the data
    * should be written.
@@ -304,7 +259,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
    * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ @java.lang.Override @@ -314,15 +268,12 @@ public long getWriteOffset() { public static final int CHECKSUMMED_DATA_FIELD_NUMBER = 4; /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -330,27 +281,22 @@ public boolean hasChecksummedData() { return dataCase_ == 4; } /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ @java.lang.Override public com.google.storage.v2.ChecksummedData getChecksummedData() { if (dataCase_ == 4) { - return (com.google.storage.v2.ChecksummedData) data_; + return (com.google.storage.v2.ChecksummedData) data_; } return com.google.storage.v2.ChecksummedData.getDefaultInstance(); } /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
@@ -361,7 +307,7 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() {
   @java.lang.Override
   public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder() {
     if (dataCase_ == 4) {
-      return (com.google.storage.v2.ChecksummedData) data_;
+       return (com.google.storage.v2.ChecksummedData) data_;
     }
     return com.google.storage.v2.ChecksummedData.getDefaultInstance();
   }
@@ -369,8 +315,6 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
   public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 6;
   private com.google.storage.v2.ObjectChecksums objectChecksums_;
   /**
-   *
-   *
    * 
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -379,16 +323,13 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return Whether the objectChecksums field is set. */ @java.lang.Override public boolean hasObjectChecksums() { - return objectChecksums_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -397,18 +338,13 @@ public boolean hasObjectChecksums() {
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -420,16 +356,12 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
    */
   @java.lang.Override
   public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
-    return objectChecksums_ == null
-        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-        : objectChecksums_;
+    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
   }
 
   public static final int FINISH_WRITE_FIELD_NUMBER = 7;
   private boolean finishWrite_ = false;
   /**
-   *
-   *
    * 
    * If `true`, this indicates that the write is complete. Sending any
    * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -440,7 +372,6 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
    * 
* * bool finish_write = 7; - * * @return The finishWrite. */ @java.lang.Override @@ -451,40 +382,30 @@ public boolean getFinishWrite() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 8; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override public boolean hasCommonObjectRequestParams() { - return commonObjectRequestParams_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
@@ -492,15 +413,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -512,7 +429,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 (firstMessageCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firstMessage_); } @@ -525,13 +443,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataCase_ == 4) { output.writeMessage(4, (com.google.storage.v2.ChecksummedData) data_); } - if (objectChecksums_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getObjectChecksums()); } if (finishWrite_ != false) { output.writeBool(7, finishWrite_); } - if (commonObjectRequestParams_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getCommonObjectRequestParams()); } getUnknownFields().writeTo(output); @@ -547,28 +465,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firstMessage_); } if (firstMessageCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.storage.v2.WriteObjectSpec) firstMessage_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.storage.v2.WriteObjectSpec) firstMessage_); } if (writeOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, writeOffset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, writeOffset_); } if (dataCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.storage.v2.ChecksummedData) data_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.storage.v2.ChecksummedData) data_); } - if (objectChecksums_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getObjectChecksums()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getObjectChecksums()); } if (finishWrite_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, finishWrite_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, finishWrite_); } - if (commonObjectRequestParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getCommonObjectRequestParams()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -578,31 +496,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.storage.v2.WriteObjectRequest)) { return super.equals(obj); } com.google.storage.v2.WriteObjectRequest other = (com.google.storage.v2.WriteObjectRequest) obj; - if (getWriteOffset() != other.getWriteOffset()) return false; + if (getWriteOffset() + != other.getWriteOffset()) return false; if (hasObjectChecksums() != other.hasObjectChecksums()) return false; if (hasObjectChecksums()) { - if (!getObjectChecksums().equals(other.getObjectChecksums())) return false; + if (!getObjectChecksums() + .equals(other.getObjectChecksums())) return false; } - if (getFinishWrite() != other.getFinishWrite()) return false; + if (getFinishWrite() + != other.getFinishWrite()) return false; if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getFirstMessageCase().equals(other.getFirstMessageCase())) return false; switch (firstMessageCase_) { case 1: - if (!getUploadId().equals(other.getUploadId())) return false; + if (!getUploadId() + .equals(other.getUploadId())) return false; break; case 2: - if (!getWriteObjectSpec().equals(other.getWriteObjectSpec())) return false; + if (!getWriteObjectSpec() + .equals(other.getWriteObjectSpec())) return false; break; case 0: default: @@ -610,7 +533,8 @@ public boolean equals(final java.lang.Object obj) { if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 4: - if (!getChecksummedData().equals(other.getChecksummedData())) return false; + if (!getChecksummedData() + .equals(other.getChecksummedData())) return false; break; case 0: default: @@ -627,13 +551,15 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WRITE_OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWriteOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWriteOffset()); if (hasObjectChecksums()) { hash = (37 * hash) + OBJECT_CHECKSUMS_FIELD_NUMBER; hash = (53 * hash) + getObjectChecksums().hashCode(); } hash = (37 * hash) + FINISH_WRITE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFinishWrite()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFinishWrite()); if (hasCommonObjectRequestParams()) { hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getCommonObjectRequestParams().hashCode(); @@ -663,136 +589,139 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.WriteObjectRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.WriteObjectRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.WriteObjectRequest 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.storage.v2.WriteObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.WriteObjectRequest 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.storage.v2.WriteObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.WriteObjectRequest 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.storage.v2.WriteObjectRequest 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.storage.v2.WriteObjectRequest 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.storage.v2.WriteObjectRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.WriteObjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.WriteObjectRequest 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.storage.v2.WriteObjectRequest 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.storage.v2.WriteObjectRequest 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.storage.v2.WriteObjectRequest 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 WriteObject.
    * 
* * Protobuf type {@code google.storage.v2.WriteObjectRequest} */ - 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.storage.v2.WriteObjectRequest) com.google.storage.v2.WriteObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectRequest.class, - com.google.storage.v2.WriteObjectRequest.Builder.class); + com.google.storage.v2.WriteObjectRequest.class, com.google.storage.v2.WriteObjectRequest.Builder.class); } // Construct using com.google.storage.v2.WriteObjectRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getObjectChecksumsFieldBuilder(); + getCommonObjectRequestParamsFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -823,9 +752,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectRequest_descriptor; } @java.lang.Override @@ -844,11 +773,8 @@ public com.google.storage.v2.WriteObjectRequest build() { @java.lang.Override public com.google.storage.v2.WriteObjectRequest buildPartial() { - com.google.storage.v2.WriteObjectRequest result = - new com.google.storage.v2.WriteObjectRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.WriteObjectRequest result = new com.google.storage.v2.WriteObjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -859,30 +785,36 @@ private void buildPartial0(com.google.storage.v2.WriteObjectRequest result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.writeOffset_ = writeOffset_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.finishWrite_ = finishWrite_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.storage.v2.WriteObjectRequest result) { result.firstMessageCase_ = firstMessageCase_; result.firstMessage_ = this.firstMessage_; - if (firstMessageCase_ == 2 && writeObjectSpecBuilder_ != null) { + if (firstMessageCase_ == 2 && + writeObjectSpecBuilder_ != null) { result.firstMessage_ = writeObjectSpecBuilder_.build(); } result.dataCase_ = dataCase_; result.data_ = this.data_; - if (dataCase_ == 4 && checksummedDataBuilder_ != null) { + if (dataCase_ == 4 && + checksummedDataBuilder_ != null) { result.data_ = checksummedDataBuilder_.build(); } } @@ -891,39 +823,38 @@ private void buildPartialOneofs(com.google.storage.v2.WriteObjectRequest 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.storage.v2.WriteObjectRequest) { - return mergeFrom((com.google.storage.v2.WriteObjectRequest) other); + return mergeFrom((com.google.storage.v2.WriteObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -945,33 +876,28 @@ public Builder mergeFrom(com.google.storage.v2.WriteObjectRequest other) { mergeCommonObjectRequestParams(other.getCommonObjectRequestParams()); } switch (other.getFirstMessageCase()) { - case UPLOAD_ID: - { - firstMessageCase_ = 1; - firstMessage_ = other.firstMessage_; - onChanged(); - break; - } - case WRITE_OBJECT_SPEC: - { - mergeWriteObjectSpec(other.getWriteObjectSpec()); - break; - } - case FIRSTMESSAGE_NOT_SET: - { - break; - } + case UPLOAD_ID: { + firstMessageCase_ = 1; + firstMessage_ = other.firstMessage_; + onChanged(); + break; + } + case WRITE_OBJECT_SPEC: { + mergeWriteObjectSpec(other.getWriteObjectSpec()); + break; + } + case FIRSTMESSAGE_NOT_SET: { + break; + } } switch (other.getDataCase()) { - case CHECKSUMMED_DATA: - { - mergeChecksummedData(other.getChecksummedData()); - break; - } - case DATA_NOT_SET: - { - break; - } + case CHECKSUMMED_DATA: { + mergeChecksummedData(other.getChecksummedData()); + break; + } + case DATA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -999,57 +925,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - firstMessageCase_ = 1; - firstMessage_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getWriteObjectSpecFieldBuilder().getBuilder(), extensionRegistry); - firstMessageCase_ = 2; - break; - } // case 18 - case 24: - { - writeOffset_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getChecksummedDataFieldBuilder().getBuilder(), extensionRegistry); - dataCase_ = 4; - break; - } // case 34 - case 50: - { - input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: - { - finishWrite_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 66: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + firstMessageCase_ = 1; + firstMessage_ = s; + break; + } // case 10 + case 18: { + input.readMessage( + getWriteObjectSpecFieldBuilder().getBuilder(), + extensionRegistry); + firstMessageCase_ = 2; + break; + } // case 18 + case 24: { + writeOffset_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getChecksummedDataFieldBuilder().getBuilder(), + extensionRegistry); + dataCase_ = 4; + break; + } // case 34 + case 50: { + input.readMessage( + getObjectChecksumsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: { + finishWrite_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + 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) { @@ -1059,12 +984,12 @@ public Builder mergeFrom( } // finally return this; } - private int firstMessageCase_ = 0; private java.lang.Object firstMessage_; - - public FirstMessageCase getFirstMessageCase() { - return FirstMessageCase.forNumber(firstMessageCase_); + public FirstMessageCase + getFirstMessageCase() { + return FirstMessageCase.forNumber( + firstMessageCase_); } public Builder clearFirstMessage() { @@ -1076,9 +1001,10 @@ public Builder clearFirstMessage() { private int dataCase_ = 0; private java.lang.Object data_; - - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public Builder clearData() { @@ -1091,15 +1017,12 @@ public Builder clearData() { private int bitField0_; /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @return Whether the uploadId field is set. */ @java.lang.Override @@ -1107,15 +1030,12 @@ public boolean hasUploadId() { return firstMessageCase_ == 1; } /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @return The uploadId. */ @java.lang.Override @@ -1125,7 +1045,8 @@ public java.lang.String getUploadId() { ref = firstMessage_; } 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(); if (firstMessageCase_ == 1) { firstMessage_ = s; @@ -1136,26 +1057,25 @@ public java.lang.String getUploadId() { } } /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @return The bytes for uploadId. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = ""; if (firstMessageCase_ == 1) { ref = firstMessage_; } 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); if (firstMessageCase_ == 1) { firstMessage_ = b; } @@ -1165,37 +1085,30 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } } /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @param value The uploadId to set. * @return This builder for chaining. */ - public Builder setUploadId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } firstMessageCase_ = 1; firstMessage_ = value; onChanged(); return this; } /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @return This builder for chaining. */ public Builder clearUploadId() { @@ -1207,22 +1120,18 @@ public Builder clearUploadId() { return this; } /** - * - * *
      * For resumable uploads. This should be the `upload_id` returned from a
      * call to `StartResumableWriteResponse`.
      * 
* * string upload_id = 1; - * * @param value The bytes for uploadId to set. * @return This builder for chaining. */ - public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); firstMessageCase_ = 1; firstMessage_ = value; @@ -1231,20 +1140,14 @@ public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.WriteObjectSpec, - com.google.storage.v2.WriteObjectSpec.Builder, - com.google.storage.v2.WriteObjectSpecOrBuilder> - writeObjectSpecBuilder_; + com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> writeObjectSpecBuilder_; /** - * - * *
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
      * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return Whether the writeObjectSpec field is set. */ @java.lang.Override @@ -1252,15 +1155,12 @@ public boolean hasWriteObjectSpec() { return firstMessageCase_ == 2; } /** - * - * *
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
      * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return The writeObjectSpec. */ @java.lang.Override @@ -1278,8 +1178,6 @@ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { } } /** - * - * *
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1301,8 +1199,6 @@ public Builder setWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1322,8 +1218,6 @@ public Builder setWriteObjectSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1333,13 +1227,10 @@ public Builder setWriteObjectSpec(
      */
     public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) {
       if (writeObjectSpecBuilder_ == null) {
-        if (firstMessageCase_ == 2
-            && firstMessage_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) {
-          firstMessage_ =
-              com.google.storage.v2.WriteObjectSpec.newBuilder(
-                      (com.google.storage.v2.WriteObjectSpec) firstMessage_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (firstMessageCase_ == 2 &&
+            firstMessage_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) {
+          firstMessage_ = com.google.storage.v2.WriteObjectSpec.newBuilder((com.google.storage.v2.WriteObjectSpec) firstMessage_)
+              .mergeFrom(value).buildPartial();
         } else {
           firstMessage_ = value;
         }
@@ -1355,8 +1246,6 @@ public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value)
       return this;
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1381,8 +1270,6 @@ public Builder clearWriteObjectSpec() {
       return this;
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1394,8 +1281,6 @@ public com.google.storage.v2.WriteObjectSpec.Builder getWriteObjectSpecBuilder()
       return getWriteObjectSpecFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1415,8 +1300,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1425,19 +1308,14 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
      * .google.storage.v2.WriteObjectSpec write_object_spec = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.WriteObjectSpec,
-            com.google.storage.v2.WriteObjectSpec.Builder,
-            com.google.storage.v2.WriteObjectSpecOrBuilder>
+        com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> 
         getWriteObjectSpecFieldBuilder() {
       if (writeObjectSpecBuilder_ == null) {
         if (!(firstMessageCase_ == 2)) {
           firstMessage_ = com.google.storage.v2.WriteObjectSpec.getDefaultInstance();
         }
-        writeObjectSpecBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.WriteObjectSpec,
-                com.google.storage.v2.WriteObjectSpec.Builder,
-                com.google.storage.v2.WriteObjectSpecOrBuilder>(
+        writeObjectSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder>(
                 (com.google.storage.v2.WriteObjectSpec) firstMessage_,
                 getParentForChildren(),
                 isClean());
@@ -1448,10 +1326,8 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
       return writeObjectSpecBuilder_;
     }
 
-    private long writeOffset_;
+    private long writeOffset_ ;
     /**
-     *
-     *
      * 
      * Required. The offset from the beginning of the object at which the data
      * should be written.
@@ -1469,7 +1345,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ @java.lang.Override @@ -1477,8 +1352,6 @@ public long getWriteOffset() { return writeOffset_; } /** - * - * *
      * Required. The offset from the beginning of the object at which the data
      * should be written.
@@ -1496,7 +1369,6 @@ public long getWriteOffset() {
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The writeOffset to set. * @return This builder for chaining. */ @@ -1508,8 +1380,6 @@ public Builder setWriteOffset(long value) { return this; } /** - * - * *
      * Required. The offset from the beginning of the object at which the data
      * should be written.
@@ -1527,7 +1397,6 @@ public Builder setWriteOffset(long value) {
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWriteOffset() { @@ -1538,20 +1407,14 @@ public Builder clearWriteOffset() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ChecksummedData, - com.google.storage.v2.ChecksummedData.Builder, - com.google.storage.v2.ChecksummedDataOrBuilder> - checksummedDataBuilder_; + com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> checksummedDataBuilder_; /** - * - * *
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
      * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -1559,15 +1422,12 @@ public boolean hasChecksummedData() { return dataCase_ == 4; } /** - * - * *
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
      * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ @java.lang.Override @@ -1585,8 +1445,6 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() { } } /** - * - * *
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1608,8 +1466,6 @@ public Builder setChecksummedData(com.google.storage.v2.ChecksummedData value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1629,8 +1485,6 @@ public Builder setChecksummedData(
       return this;
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1640,12 +1494,10 @@ public Builder setChecksummedData(
      */
     public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value) {
       if (checksummedDataBuilder_ == null) {
-        if (dataCase_ == 4 && data_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
-          data_ =
-              com.google.storage.v2.ChecksummedData.newBuilder(
-                      (com.google.storage.v2.ChecksummedData) data_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (dataCase_ == 4 &&
+            data_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
+          data_ = com.google.storage.v2.ChecksummedData.newBuilder((com.google.storage.v2.ChecksummedData) data_)
+              .mergeFrom(value).buildPartial();
         } else {
           data_ = value;
         }
@@ -1661,8 +1513,6 @@ public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1687,8 +1537,6 @@ public Builder clearChecksummedData() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1700,8 +1548,6 @@ public com.google.storage.v2.ChecksummedData.Builder getChecksummedDataBuilder()
       return getChecksummedDataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1721,8 +1567,6 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * The data to insert. If a crc32c checksum is provided that doesn't match
      * the checksum computed by the service, the request will fail.
@@ -1731,20 +1575,17 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
      * .google.storage.v2.ChecksummedData checksummed_data = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ChecksummedData,
-            com.google.storage.v2.ChecksummedData.Builder,
-            com.google.storage.v2.ChecksummedDataOrBuilder>
+        com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> 
         getChecksummedDataFieldBuilder() {
       if (checksummedDataBuilder_ == null) {
         if (!(dataCase_ == 4)) {
           data_ = com.google.storage.v2.ChecksummedData.getDefaultInstance();
         }
-        checksummedDataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.ChecksummedData,
-                com.google.storage.v2.ChecksummedData.Builder,
-                com.google.storage.v2.ChecksummedDataOrBuilder>(
-                (com.google.storage.v2.ChecksummedData) data_, getParentForChildren(), isClean());
+        checksummedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder>(
+                (com.google.storage.v2.ChecksummedData) data_,
+                getParentForChildren(),
+                isClean());
         data_ = null;
       }
       dataCase_ = 4;
@@ -1754,13 +1595,8 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
 
     private com.google.storage.v2.ObjectChecksums objectChecksums_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ObjectChecksums,
-            com.google.storage.v2.ObjectChecksums.Builder,
-            com.google.storage.v2.ObjectChecksumsOrBuilder>
-        objectChecksumsBuilder_;
+        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_;
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1769,15 +1605,12 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1786,21 +1619,16 @@ public boolean hasObjectChecksums() {
      * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1824,8 +1652,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1847,8 +1673,6 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1860,9 +1684,9 @@ public Builder setObjectChecksums(
      */
     public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       if (objectChecksumsBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && objectChecksums_ != null
-            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          objectChecksums_ != null &&
+          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
           getObjectChecksumsBuilder().mergeFrom(value);
         } else {
           objectChecksums_ = value;
@@ -1870,13 +1694,13 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
       } else {
         objectChecksumsBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000010;
-      onChanged();
+      if (objectChecksums_ != null) {
+        bitField0_ |= 0x00000010;
+        onChanged();
+      }
       return this;
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1897,8 +1721,6 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1914,8 +1736,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
       return getObjectChecksumsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1929,14 +1749,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
       if (objectChecksumsBuilder_ != null) {
         return objectChecksumsBuilder_.getMessageOrBuilder();
       } else {
-        return objectChecksums_ == null
-            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
-            : objectChecksums_;
+        return objectChecksums_ == null ?
+            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
       }
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specified checksums the call will fail. May only be
@@ -1947,26 +1764,21 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
      * .google.storage.v2.ObjectChecksums object_checksums = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.ObjectChecksums,
-            com.google.storage.v2.ObjectChecksums.Builder,
-            com.google.storage.v2.ObjectChecksumsOrBuilder>
+        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
         getObjectChecksumsFieldBuilder() {
       if (objectChecksumsBuilder_ == null) {
-        objectChecksumsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.ObjectChecksums,
-                com.google.storage.v2.ObjectChecksums.Builder,
-                com.google.storage.v2.ObjectChecksumsOrBuilder>(
-                getObjectChecksums(), getParentForChildren(), isClean());
+        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
+                getObjectChecksums(),
+                getParentForChildren(),
+                isClean());
         objectChecksums_ = null;
       }
       return objectChecksumsBuilder_;
     }
 
-    private boolean finishWrite_;
+    private boolean finishWrite_ ;
     /**
-     *
-     *
      * 
      * If `true`, this indicates that the write is complete. Sending any
      * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -1977,7 +1789,6 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
      * 
* * bool finish_write = 7; - * * @return The finishWrite. */ @java.lang.Override @@ -1985,8 +1796,6 @@ public boolean getFinishWrite() { return finishWrite_; } /** - * - * *
      * If `true`, this indicates that the write is complete. Sending any
      * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -1997,7 +1806,6 @@ public boolean getFinishWrite() {
      * 
* * bool finish_write = 7; - * * @param value The finishWrite to set. * @return This builder for chaining. */ @@ -2009,8 +1817,6 @@ public Builder setFinishWrite(boolean value) { return this; } /** - * - * *
      * If `true`, this indicates that the write is complete. Sending any
      * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -2021,7 +1827,6 @@ public Builder setFinishWrite(boolean value) {
      * 
* * bool finish_write = 7; - * * @return This builder for chaining. */ public Builder clearFinishWrite() { @@ -2033,55 +1838,41 @@ public Builder clearFinishWrite() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2095,8 +1886,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -2115,21 +1904,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -2137,13 +1922,13 @@ public Builder mergeCommonObjectRequestParams( } else { commonObjectRequestParamsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (commonObjectRequestParams_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -2161,42 +1946,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -2204,24 +1980,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @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); } @@ -2231,12 +2004,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.WriteObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.WriteObjectRequest) private static final com.google.storage.v2.WriteObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.WriteObjectRequest(); } @@ -2245,27 +2018,27 @@ public static com.google.storage.v2.WriteObjectRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 WriteObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -2280,4 +2053,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.WriteObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java similarity index 87% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java index 3d78815c6d..a6eb29879b 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java @@ -1,97 +1,66 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface WriteObjectRequestOrBuilder - extends +public interface WriteObjectRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.WriteObjectRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return Whether the uploadId field is set. */ boolean hasUploadId(); /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return The uploadId. */ java.lang.String getUploadId(); /** - * - * *
    * For resumable uploads. This should be the `upload_id` returned from a
    * call to `StartResumableWriteResponse`.
    * 
* * string upload_id = 1; - * * @return The bytes for uploadId. */ - com.google.protobuf.ByteString getUploadIdBytes(); + com.google.protobuf.ByteString + getUploadIdBytes(); /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
    * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return Whether the writeObjectSpec field is set. */ boolean hasWriteObjectSpec(); /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
    * 
* * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return The writeObjectSpec. */ com.google.storage.v2.WriteObjectSpec getWriteObjectSpec(); /** - * - * *
    * For non-resumable uploads. Describes the overall upload, including the
    * destination bucket and object name, preconditions, etc.
@@ -102,8 +71,6 @@ public interface WriteObjectRequestOrBuilder
   com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. The offset from the beginning of the object at which the data
    * should be written.
@@ -121,40 +88,31 @@ public interface WriteObjectRequestOrBuilder
    * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ long getWriteOffset(); /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ boolean hasChecksummedData(); /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ com.google.storage.v2.ChecksummedData getChecksummedData(); /** - * - * *
    * The data to insert. If a crc32c checksum is provided that doesn't match
    * the checksum computed by the service, the request will fail.
@@ -165,8 +123,6 @@ public interface WriteObjectRequestOrBuilder
   com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder();
 
   /**
-   *
-   *
    * 
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -175,13 +131,10 @@ public interface WriteObjectRequestOrBuilder
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -190,13 +143,10 @@ public interface WriteObjectRequestOrBuilder
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specified checksums the call will fail. May only be
@@ -209,8 +159,6 @@ public interface WriteObjectRequestOrBuilder
   com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder();
 
   /**
-   *
-   *
    * 
    * If `true`, this indicates that the write is complete. Sending any
    * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -221,38 +169,29 @@ public interface WriteObjectRequestOrBuilder
    * 
* * bool finish_write = 7; - * * @return The finishWrite. */ boolean getFinishWrite(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
* * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
    * A set of parameters common to Storage API requests concerning an object.
    * 
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java similarity index 69% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java index d5f611a4b2..8ac8e72745 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java @@ -1,79 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; /** - * - * *
  * Response message for WriteObject.
  * 
* * Protobuf type {@code google.storage.v2.WriteObjectResponse} */ -public final class WriteObjectResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteObjectResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.WriteObjectResponse) WriteObjectResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteObjectResponse.newBuilder() to construct. private WriteObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private WriteObjectResponse() {} + private WriteObjectResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteObjectResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectResponse.class, - com.google.storage.v2.WriteObjectResponse.Builder.class); + com.google.storage.v2.WriteObjectResponse.class, com.google.storage.v2.WriteObjectResponse.Builder.class); } private int writeStatusCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object writeStatus_; - public enum WriteStatusCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PERSISTED_SIZE(1), RESOURCE(2), WRITESTATUS_NOT_SET(0); private final int value; - private WriteStatusCase(int value) { this.value = value; } @@ -89,37 +68,31 @@ public static WriteStatusCase valueOf(int value) { public static WriteStatusCase forNumber(int value) { switch (value) { - case 1: - return PERSISTED_SIZE; - case 2: - return RESOURCE; - case 0: - return WRITESTATUS_NOT_SET; - default: - return null; + case 1: return PERSISTED_SIZE; + case 2: return RESOURCE; + case 0: return WRITESTATUS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public static final int PERSISTED_SIZE_FIELD_NUMBER = 1; /** - * - * *
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. Only set if the upload has not finalized.
    * 
* * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ @java.lang.Override @@ -127,15 +100,12 @@ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. Only set if the upload has not finalized.
    * 
* * int64 persisted_size = 1; - * * @return The persistedSize. */ @java.lang.Override @@ -148,15 +118,12 @@ public long getPersistedSize() { public static final int RESOURCE_FIELD_NUMBER = 2; /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -164,27 +131,22 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override public com.google.storage.v2.Object getResource() { if (writeStatusCase_ == 2) { - return (com.google.storage.v2.Object) writeStatus_; + return (com.google.storage.v2.Object) writeStatus_; } return com.google.storage.v2.Object.getDefaultInstance(); } /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
@@ -195,13 +157,12 @@ public com.google.storage.v2.Object getResource() {
   @java.lang.Override
   public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
     if (writeStatusCase_ == 2) {
-      return (com.google.storage.v2.Object) writeStatus_;
+       return (com.google.storage.v2.Object) writeStatus_;
     }
     return com.google.storage.v2.Object.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -213,9 +174,11 @@ 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 (writeStatusCase_ == 1) {
-      output.writeInt64(1, (long) ((java.lang.Long) writeStatus_));
+      output.writeInt64(
+          1, (long)((java.lang.Long) writeStatus_));
     }
     if (writeStatusCase_ == 2) {
       output.writeMessage(2, (com.google.storage.v2.Object) writeStatus_);
@@ -230,14 +193,13 @@ public int getSerializedSize() {
 
     size = 0;
     if (writeStatusCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeInt64Size(
-              1, (long) ((java.lang.Long) writeStatus_));
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(
+            1, (long)((java.lang.Long) writeStatus_));
     }
     if (writeStatusCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.storage.v2.Object) writeStatus_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.storage.v2.Object) writeStatus_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -247,21 +209,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.storage.v2.WriteObjectResponse)) {
       return super.equals(obj);
     }
-    com.google.storage.v2.WriteObjectResponse other =
-        (com.google.storage.v2.WriteObjectResponse) obj;
+    com.google.storage.v2.WriteObjectResponse other = (com.google.storage.v2.WriteObjectResponse) obj;
 
     if (!getWriteStatusCase().equals(other.getWriteStatusCase())) return false;
     switch (writeStatusCase_) {
       case 1:
-        if (getPersistedSize() != other.getPersistedSize()) return false;
+        if (getPersistedSize()
+            != other.getPersistedSize()) return false;
         break;
       case 2:
-        if (!getResource().equals(other.getResource())) return false;
+        if (!getResource()
+            .equals(other.getResource())) return false;
         break;
       case 0:
       default:
@@ -280,7 +243,8 @@ public int hashCode() {
     switch (writeStatusCase_) {
       case 1:
         hash = (37 * hash) + PERSISTED_SIZE_FIELD_NUMBER;
-        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPersistedSize());
+        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+            getPersistedSize());
         break;
       case 2:
         hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
@@ -294,136 +258,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.storage.v2.WriteObjectResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.storage.v2.WriteObjectResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.WriteObjectResponse 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.storage.v2.WriteObjectResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.WriteObjectResponse 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.storage.v2.WriteObjectResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.storage.v2.WriteObjectResponse 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.storage.v2.WriteObjectResponse 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.storage.v2.WriteObjectResponse 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.storage.v2.WriteObjectResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.storage.v2.WriteObjectResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.storage.v2.WriteObjectResponse 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.storage.v2.WriteObjectResponse 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.storage.v2.WriteObjectResponse 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.storage.v2.WriteObjectResponse 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 WriteObject.
    * 
* * Protobuf type {@code google.storage.v2.WriteObjectResponse} */ - 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.storage.v2.WriteObjectResponse) com.google.storage.v2.WriteObjectResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectResponse.class, - com.google.storage.v2.WriteObjectResponse.Builder.class); + com.google.storage.v2.WriteObjectResponse.class, com.google.storage.v2.WriteObjectResponse.Builder.class); } // Construct using com.google.storage.v2.WriteObjectResponse.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(); @@ -437,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_descriptor; } @java.lang.Override @@ -458,11 +418,8 @@ public com.google.storage.v2.WriteObjectResponse build() { @java.lang.Override public com.google.storage.v2.WriteObjectResponse buildPartial() { - com.google.storage.v2.WriteObjectResponse result = - new com.google.storage.v2.WriteObjectResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.WriteObjectResponse result = new com.google.storage.v2.WriteObjectResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -475,7 +432,8 @@ private void buildPartial0(com.google.storage.v2.WriteObjectResponse result) { private void buildPartialOneofs(com.google.storage.v2.WriteObjectResponse result) { result.writeStatusCase_ = writeStatusCase_; result.writeStatus_ = this.writeStatus_; - if (writeStatusCase_ == 2 && resourceBuilder_ != null) { + if (writeStatusCase_ == 2 && + resourceBuilder_ != null) { result.writeStatus_ = resourceBuilder_.build(); } } @@ -484,39 +442,38 @@ private void buildPartialOneofs(com.google.storage.v2.WriteObjectResponse 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.storage.v2.WriteObjectResponse) { - return mergeFrom((com.google.storage.v2.WriteObjectResponse) other); + return mergeFrom((com.google.storage.v2.WriteObjectResponse)other); } else { super.mergeFrom(other); return this; @@ -526,20 +483,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.storage.v2.WriteObjectResponse other) { if (other == com.google.storage.v2.WriteObjectResponse.getDefaultInstance()) return this; switch (other.getWriteStatusCase()) { - case PERSISTED_SIZE: - { - setPersistedSize(other.getPersistedSize()); - break; - } - case RESOURCE: - { - mergeResource(other.getResource()); - break; - } - case WRITESTATUS_NOT_SET: - { - break; - } + case PERSISTED_SIZE: { + setPersistedSize(other.getPersistedSize()); + break; + } + case RESOURCE: { + mergeResource(other.getResource()); + break; + } + case WRITESTATUS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -567,25 +521,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - writeStatus_ = input.readInt64(); - writeStatusCase_ = 1; - break; - } // case 8 - case 18: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - writeStatusCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + writeStatus_ = input.readInt64(); + writeStatusCase_ = 1; + break; + } // case 8 + case 18: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + writeStatusCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -595,12 +548,12 @@ public Builder mergeFrom( } // finally return this; } - private int writeStatusCase_ = 0; private java.lang.Object writeStatus_; - - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public Builder clearWriteStatus() { @@ -613,30 +566,24 @@ public Builder clearWriteStatus() { private int bitField0_; /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. Only set if the upload has not finalized.
      * 
* * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. Only set if the upload has not finalized.
      * 
* * int64 persisted_size = 1; - * * @return The persistedSize. */ public long getPersistedSize() { @@ -646,15 +593,12 @@ public long getPersistedSize() { return 0L; } /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. Only set if the upload has not finalized.
      * 
* * int64 persisted_size = 1; - * * @param value The persistedSize to set. * @return This builder for chaining. */ @@ -666,15 +610,12 @@ public Builder setPersistedSize(long value) { return this; } /** - * - * *
      * The total number of bytes that have been processed for the given object
      * from all `WriteObject` calls. Only set if the upload has not finalized.
      * 
* * int64 persisted_size = 1; - * * @return This builder for chaining. */ public Builder clearPersistedSize() { @@ -687,20 +628,14 @@ public Builder clearPersistedSize() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - resourceBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> resourceBuilder_; /** - * - * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
      * 
* * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -708,15 +643,12 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
      * 
* * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override @@ -734,8 +666,6 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -757,8 +687,6 @@ public Builder setResource(com.google.storage.v2.Object value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -766,7 +694,8 @@ public Builder setResource(com.google.storage.v2.Object value) {
      *
      * .google.storage.v2.Object resource = 2;
      */
-    public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) {
+    public Builder setResource(
+        com.google.storage.v2.Object.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         writeStatus_ = builderForValue.build();
         onChanged();
@@ -777,8 +706,6 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -788,12 +715,10 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
      */
     public Builder mergeResource(com.google.storage.v2.Object value) {
       if (resourceBuilder_ == null) {
-        if (writeStatusCase_ == 2
-            && writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
-          writeStatus_ =
-              com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (writeStatusCase_ == 2 &&
+            writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
+          writeStatus_ = com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
+              .mergeFrom(value).buildPartial();
         } else {
           writeStatus_ = value;
         }
@@ -809,8 +734,6 @@ public Builder mergeResource(com.google.storage.v2.Object value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -835,8 +758,6 @@ public Builder clearResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -848,8 +769,6 @@ public com.google.storage.v2.Object.Builder getResourceBuilder() {
       return getResourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -869,8 +788,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -879,29 +796,26 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
      * .google.storage.v2.Object resource = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.storage.v2.Object,
-            com.google.storage.v2.Object.Builder,
-            com.google.storage.v2.ObjectOrBuilder>
+        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
         if (!(writeStatusCase_ == 2)) {
           writeStatus_ = com.google.storage.v2.Object.getDefaultInstance();
         }
-        resourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.storage.v2.Object,
-                com.google.storage.v2.Object.Builder,
-                com.google.storage.v2.ObjectOrBuilder>(
-                (com.google.storage.v2.Object) writeStatus_, getParentForChildren(), isClean());
+        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
+                (com.google.storage.v2.Object) writeStatus_,
+                getParentForChildren(),
+                isClean());
         writeStatus_ = null;
       }
       writeStatusCase_ = 2;
       onChanged();
       return resourceBuilder_;
     }
-
     @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);
     }
 
@@ -911,12 +825,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.storage.v2.WriteObjectResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.storage.v2.WriteObjectResponse)
   private static final com.google.storage.v2.WriteObjectResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.storage.v2.WriteObjectResponse();
   }
@@ -925,27 +839,27 @@ public static com.google.storage.v2.WriteObjectResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public WriteObjectResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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 WriteObjectResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        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;
@@ -960,4 +874,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.WriteObjectResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
similarity index 71%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
index 1a27b9ac88..e5f58acb5f 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
@@ -1,84 +1,55 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
-public interface WriteObjectResponseOrBuilder
-    extends
+public interface WriteObjectResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.storage.v2.WriteObjectResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. Only set if the upload has not finalized.
    * 
* * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ boolean hasPersistedSize(); /** - * - * *
    * The total number of bytes that have been processed for the given object
    * from all `WriteObject` calls. Only set if the upload has not finalized.
    * 
* * int64 persisted_size = 1; - * * @return The persistedSize. */ long getPersistedSize(); /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
    * 
* * .google.storage.v2.Object resource = 2; - * * @return The resource. */ com.google.storage.v2.Object getResource(); /** - * - * *
    * A resource containing the metadata for the uploaded object. Only set if
    * the upload has finalized.
diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
similarity index 77%
rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
index e01485764e..753434d142 100644
--- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
@@ -1,94 +1,70 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
+// Protobuf Java Version: 3.25.2
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Describes an attempt to insert an object, possibly over multiple requests.
  * 
* * Protobuf type {@code google.storage.v2.WriteObjectSpec} */ -public final class WriteObjectSpec extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteObjectSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.WriteObjectSpec) WriteObjectSpecOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteObjectSpec.newBuilder() to construct. private WriteObjectSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WriteObjectSpec() { predefinedAcl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteObjectSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectSpec.class, - com.google.storage.v2.WriteObjectSpec.Builder.class); + com.google.storage.v2.WriteObjectSpec.class, com.google.storage.v2.WriteObjectSpec.Builder.class); } private int bitField0_; public static final int RESOURCE_FIELD_NUMBER = 1; private com.google.storage.v2.Object resource_; /** - * - * *
    * Required. Destination object, including its name and its metadata.
    * 
* * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the resource field is set. */ @java.lang.Override public boolean hasResource() { - return resource_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. Destination object, including its name and its metadata.
    * 
* * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ @java.lang.Override @@ -96,8 +72,6 @@ public com.google.storage.v2.Object getResource() { return resource_ == null ? com.google.storage.v2.Object.getDefaultInstance() : resource_; } /** - * - * *
    * Required. Destination object, including its name and its metadata.
    * 
@@ -110,12 +84,9 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() { } public static final int PREDEFINED_ACL_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedAcl_ = ""; /** - * - * *
    * Apply a predefined set of access controls to this object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -123,7 +94,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
    * 
* * string predefined_acl = 7; - * * @return The predefinedAcl. */ @java.lang.Override @@ -132,15 +102,14 @@ public java.lang.String getPredefinedAcl() { 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(); predefinedAcl_ = s; return s; } } /** - * - * *
    * Apply a predefined set of access controls to this object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -148,15 +117,16 @@ public java.lang.String getPredefinedAcl() {
    * 
* * string predefined_acl = 7; - * * @return The bytes for predefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; 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); predefinedAcl_ = b; return b; } else { @@ -167,8 +137,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 3; private long ifGenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * generation matches the given value. Setting to 0 makes the operation
@@ -176,16 +144,13 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
    * 
* * optional int64 if_generation_match = 3; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override public boolean hasIfGenerationMatch() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * generation matches the given value. Setting to 0 makes the operation
@@ -193,7 +158,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 3; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -204,8 +168,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifGenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's live
    * generation does not match the given value. If no live object exists, the
@@ -214,16 +176,13 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 4; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfGenerationNotMatch() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's live
    * generation does not match the given value. If no live object exists, the
@@ -232,7 +191,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 4; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -243,31 +201,25 @@ public long getIfGenerationNotMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 5; private long ifMetagenerationMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 5; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationMatch() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 5; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -278,31 +230,25 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 6; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 6; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override public boolean hasIfMetagenerationNotMatch() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 6; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -313,8 +259,6 @@ public long getIfMetagenerationNotMatch() { public static final int OBJECT_SIZE_FIELD_NUMBER = 8; private long objectSize_ = 0L; /** - * - * *
    * The expected final object size being uploaded.
    * If this value is set, closing the stream after writing fewer or more than
@@ -326,16 +270,13 @@ public long getIfMetagenerationNotMatch() {
    * 
* * optional int64 object_size = 8; - * * @return Whether the objectSize field is set. */ @java.lang.Override public boolean hasObjectSize() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
    * The expected final object size being uploaded.
    * If this value is set, closing the stream after writing fewer or more than
@@ -347,7 +288,6 @@ public boolean hasObjectSize() {
    * 
* * optional int64 object_size = 8; - * * @return The objectSize. */ @java.lang.Override @@ -356,7 +296,6 @@ public long getObjectSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -368,26 +307,27 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (resource_ != null) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getResource()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(3, ifGenerationMatch_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(4, ifGenerationNotMatch_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(5, ifMetagenerationMatch_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeInt64(6, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, predefinedAcl_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeInt64(8, objectSize_); } getUnknownFields().writeTo(output); @@ -399,26 +339,32 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResource()); - } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResource()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifGenerationMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifMetagenerationMatch_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, predefinedAcl_); } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, objectSize_); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, objectSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -428,7 +374,7 @@ 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.storage.v2.WriteObjectSpec)) { return super.equals(obj); @@ -437,28 +383,35 @@ public boolean equals(final java.lang.Object obj) { if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getPredefinedAcl().equals(other.getPredefinedAcl())) return false; + if (!getPredefinedAcl() + .equals(other.getPredefinedAcl())) return false; if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { - if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; + if (getIfGenerationMatch() + != other.getIfGenerationMatch()) return false; } if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false; if (hasIfGenerationNotMatch()) { - if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false; + if (getIfGenerationNotMatch() + != other.getIfGenerationNotMatch()) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } if (hasObjectSize() != other.hasObjectSize()) return false; if (hasObjectSize()) { - if (getObjectSize() != other.getObjectSize()) return false; + if (getObjectSize() + != other.getObjectSize()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -479,158 +432,166 @@ public int hashCode() { hash = (53 * hash) + getPredefinedAcl().hashCode(); if (hasIfGenerationMatch()) { hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationMatch()); } if (hasIfGenerationNotMatch()) { hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationNotMatch()); } if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } if (hasObjectSize()) { hash = (37 * hash) + OBJECT_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObjectSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getObjectSize()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.WriteObjectSpec parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.WriteObjectSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.WriteObjectSpec 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.storage.v2.WriteObjectSpec parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.WriteObjectSpec parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.WriteObjectSpec 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.storage.v2.WriteObjectSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.WriteObjectSpec 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.storage.v2.WriteObjectSpec 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.storage.v2.WriteObjectSpec 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.storage.v2.WriteObjectSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.WriteObjectSpec 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.storage.v2.WriteObjectSpec 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.storage.v2.WriteObjectSpec 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.storage.v2.WriteObjectSpec 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; } /** - * - * *
    * Describes an attempt to insert an object, possibly over multiple requests.
    * 
* * Protobuf type {@code google.storage.v2.WriteObjectSpec} */ - 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.storage.v2.WriteObjectSpec) com.google.storage.v2.WriteObjectSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectSpec.class, - com.google.storage.v2.WriteObjectSpec.Builder.class); + com.google.storage.v2.WriteObjectSpec.class, com.google.storage.v2.WriteObjectSpec.Builder.class); } // Construct using com.google.storage.v2.WriteObjectSpec.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResourceFieldBuilder(); + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -650,9 +611,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectSpec_descriptor; } @java.lang.Override @@ -671,43 +632,43 @@ public com.google.storage.v2.WriteObjectSpec build() { @java.lang.Override public com.google.storage.v2.WriteObjectSpec buildPartial() { - com.google.storage.v2.WriteObjectSpec result = - new com.google.storage.v2.WriteObjectSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.WriteObjectSpec result = new com.google.storage.v2.WriteObjectSpec(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.storage.v2.WriteObjectSpec result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null + ? resource_ + : resourceBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.predefinedAcl_ = predefinedAcl_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.ifGenerationMatch_ = ifGenerationMatch_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.ifGenerationNotMatch_ = ifGenerationNotMatch_; - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.ifMetagenerationMatch_ = ifMetagenerationMatch_; - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.ifMetagenerationNotMatch_ = ifMetagenerationNotMatch_; - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.objectSize_ = objectSize_; - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @@ -716,39 +677,38 @@ private void buildPartial0(com.google.storage.v2.WriteObjectSpec 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.storage.v2.WriteObjectSpec) { - return mergeFrom((com.google.storage.v2.WriteObjectSpec) other); + return mergeFrom((com.google.storage.v2.WriteObjectSpec)other); } else { super.mergeFrom(other); return this; @@ -806,55 +766,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - ifGenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - predefinedAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 58 - case 64: - { - objectSize_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 64 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + ifGenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + predefinedAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 58 + case 64: { + objectSize_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 64 + 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) { @@ -864,40 +818,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.Object resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - resourceBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> resourceBuilder_; /** - * - * *
      * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ public com.google.storage.v2.Object getResource() { @@ -908,14 +850,11 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
      * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource(com.google.storage.v2.Object value) { if (resourceBuilder_ == null) { @@ -931,16 +870,14 @@ public Builder setResource(com.google.storage.v2.Object value) { return this; } /** - * - * *
      * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) { + public Builder setResource( + com.google.storage.v2.Object.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); } else { @@ -951,20 +888,17 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) return this; } /** - * - * *
      * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeResource(com.google.storage.v2.Object value) { if (resourceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && resource_ != null - && resource_ != com.google.storage.v2.Object.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + resource_ != null && + resource_ != com.google.storage.v2.Object.getDefaultInstance()) { getResourceBuilder().mergeFrom(value); } else { resource_ = value; @@ -972,19 +906,18 @@ public Builder mergeResource(com.google.storage.v2.Object value) { } else { resourceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (resource_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** - * - * *
      * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000001); @@ -997,14 +930,11 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.Object.Builder getResourceBuilder() { bitField0_ |= 0x00000001; @@ -1012,44 +942,36 @@ public com.google.storage.v2.Object.Builder getResourceBuilder() { return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? com.google.storage.v2.Object.getDefaultInstance() : resource_; + return resource_ == null ? + com.google.storage.v2.Object.getDefaultInstance() : resource_; } } /** - * - * *
      * Required. Destination object, including its name and its metadata.
      * 
* - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -1057,8 +979,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() { private java.lang.Object predefinedAcl_ = ""; /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1066,13 +986,13 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
      * 
* * string predefined_acl = 7; - * * @return The predefinedAcl. */ public java.lang.String getPredefinedAcl() { java.lang.Object ref = predefinedAcl_; 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(); predefinedAcl_ = s; return s; @@ -1081,8 +1001,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1090,14 +1008,15 @@ public java.lang.String getPredefinedAcl() {
      * 
* * string predefined_acl = 7; - * * @return The bytes for predefinedAcl. */ - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; 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); predefinedAcl_ = b; return b; } else { @@ -1105,8 +1024,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1114,22 +1031,18 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
      * 
* * string predefined_acl = 7; - * * @param value The predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedAcl_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1137,7 +1050,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
      * 
* * string predefined_acl = 7; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1147,8 +1059,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1156,14 +1066,12 @@ public Builder clearPredefinedAcl() {
      * 
* * string predefined_acl = 7; - * * @param value The bytes for predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedAcl_ = value; bitField0_ |= 0x00000002; @@ -1171,10 +1079,8 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * generation matches the given value. Setting to 0 makes the operation
@@ -1182,7 +1088,6 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) {
      * 
* * optional int64 if_generation_match = 3; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1190,8 +1095,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * generation matches the given value. Setting to 0 makes the operation
@@ -1199,7 +1102,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 3; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1207,8 +1109,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * generation matches the given value. Setting to 0 makes the operation
@@ -1216,7 +1116,6 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 3; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1228,8 +1127,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * generation matches the given value. Setting to 0 makes the operation
@@ -1237,7 +1134,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 3; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1247,10 +1143,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's live
      * generation does not match the given value. If no live object exists, the
@@ -1259,7 +1153,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 4; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1267,8 +1160,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's live
      * generation does not match the given value. If no live object exists, the
@@ -1277,7 +1168,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 4; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1285,8 +1175,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's live
      * generation does not match the given value. If no live object exists, the
@@ -1295,7 +1183,6 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 4; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1307,8 +1194,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's live
      * generation does not match the given value. If no live object exists, the
@@ -1317,7 +1202,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 4; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1327,17 +1211,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 5; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1345,15 +1226,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 5; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1361,15 +1239,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 5; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1381,15 +1256,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration matches the given value.
      * 
* * optional int64 if_metageneration_match = 5; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1399,17 +1271,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 6; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1417,15 +1286,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 6; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1433,15 +1299,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 6; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1453,15 +1316,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * metageneration does not match the given value.
      * 
* * optional int64 if_metageneration_not_match = 6; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1471,10 +1331,8 @@ public Builder clearIfMetagenerationNotMatch() { return this; } - private long objectSize_; + private long objectSize_ ; /** - * - * *
      * The expected final object size being uploaded.
      * If this value is set, closing the stream after writing fewer or more than
@@ -1486,7 +1344,6 @@ public Builder clearIfMetagenerationNotMatch() {
      * 
* * optional int64 object_size = 8; - * * @return Whether the objectSize field is set. */ @java.lang.Override @@ -1494,8 +1351,6 @@ public boolean hasObjectSize() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * The expected final object size being uploaded.
      * If this value is set, closing the stream after writing fewer or more than
@@ -1507,7 +1362,6 @@ public boolean hasObjectSize() {
      * 
* * optional int64 object_size = 8; - * * @return The objectSize. */ @java.lang.Override @@ -1515,8 +1369,6 @@ public long getObjectSize() { return objectSize_; } /** - * - * *
      * The expected final object size being uploaded.
      * If this value is set, closing the stream after writing fewer or more than
@@ -1528,7 +1380,6 @@ public long getObjectSize() {
      * 
* * optional int64 object_size = 8; - * * @param value The objectSize to set. * @return This builder for chaining. */ @@ -1540,8 +1391,6 @@ public Builder setObjectSize(long value) { return this; } /** - * - * *
      * The expected final object size being uploaded.
      * If this value is set, closing the stream after writing fewer or more than
@@ -1553,7 +1402,6 @@ public Builder setObjectSize(long value) {
      * 
* * optional int64 object_size = 8; - * * @return This builder for chaining. */ public Builder clearObjectSize() { @@ -1562,9 +1410,9 @@ public Builder clearObjectSize() { 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); } @@ -1574,12 +1422,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.WriteObjectSpec) } // @@protoc_insertion_point(class_scope:google.storage.v2.WriteObjectSpec) private static final com.google.storage.v2.WriteObjectSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.WriteObjectSpec(); } @@ -1588,27 +1436,27 @@ public static com.google.storage.v2.WriteObjectSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteObjectSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 WriteObjectSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; @@ -1623,4 +1471,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.WriteObjectSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java similarity index 86% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java index 554af4dfbd..13b20672be 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java @@ -1,55 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto +// Protobuf Java Version: 3.25.2 package com.google.storage.v2; -public interface WriteObjectSpecOrBuilder - extends +public interface WriteObjectSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.WriteObjectSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Destination object, including its name and its metadata.
    * 
* * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Required. Destination object, including its name and its metadata.
    * 
* * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ com.google.storage.v2.Object getResource(); /** - * - * *
    * Required. Destination object, including its name and its metadata.
    * 
@@ -59,8 +36,6 @@ public interface WriteObjectSpecOrBuilder com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder(); /** - * - * *
    * Apply a predefined set of access controls to this object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -68,13 +43,10 @@ public interface WriteObjectSpecOrBuilder
    * 
* * string predefined_acl = 7; - * * @return The predefinedAcl. */ java.lang.String getPredefinedAcl(); /** - * - * *
    * Apply a predefined set of access controls to this object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -82,14 +54,12 @@ public interface WriteObjectSpecOrBuilder
    * 
* * string predefined_acl = 7; - * * @return The bytes for predefinedAcl. */ - com.google.protobuf.ByteString getPredefinedAclBytes(); + com.google.protobuf.ByteString + getPredefinedAclBytes(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * generation matches the given value. Setting to 0 makes the operation
@@ -97,13 +67,10 @@ public interface WriteObjectSpecOrBuilder
    * 
* * optional int64 if_generation_match = 3; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * generation matches the given value. Setting to 0 makes the operation
@@ -111,14 +78,11 @@ public interface WriteObjectSpecOrBuilder
    * 
* * optional int64 if_generation_match = 3; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live
    * generation does not match the given value. If no live object exists, the
@@ -127,13 +91,10 @@ public interface WriteObjectSpecOrBuilder
    * 
* * optional int64 if_generation_not_match = 4; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's live
    * generation does not match the given value. If no live object exists, the
@@ -142,68 +103,53 @@ public interface WriteObjectSpecOrBuilder
    * 
* * optional int64 if_generation_not_match = 4; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 5; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration matches the given value.
    * 
* * optional int64 if_metageneration_match = 5; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 6; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
    * Makes the operation conditional on whether the object's current
    * metageneration does not match the given value.
    * 
* * optional int64 if_metageneration_not_match = 6; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
    * The expected final object size being uploaded.
    * If this value is set, closing the stream after writing fewer or more than
@@ -215,13 +161,10 @@ public interface WriteObjectSpecOrBuilder
    * 
* * optional int64 object_size = 8; - * * @return Whether the objectSize field is set. */ boolean hasObjectSize(); /** - * - * *
    * The expected final object size being uploaded.
    * If this value is set, closing the stream after writing fewer or more than
@@ -233,7 +176,6 @@ public interface WriteObjectSpecOrBuilder
    * 
* * optional int64 object_size = 8; - * * @return The objectSize. */ long getObjectSize(); diff --git a/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto similarity index 99% rename from proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto index c9f50a15b5..de6e27ea35 100644 --- a/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto @@ -112,34 +112,24 @@ service Storage { option (google.api.method_signature) = "bucket"; } - // Gets the IAM policy for a specified bucket or object. + // Gets the IAM policy for a specified bucket. // The `resource` field in the request should be - // `projects/_/buckets/{bucket}` for a bucket or - // `projects/_/buckets/{bucket}/objects/{object}` for an object. + // `projects/_/buckets/{bucket}`. rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.routing) = { routing_parameters { field: "resource" path_template: "{bucket=**}" } - routing_parameters { - field: "resource" - path_template: "{bucket=projects/*/buckets/*}/objects/**" - } }; option (google.api.method_signature) = "resource"; } - // Updates an IAM policy for the specified bucket or object. + // Updates an IAM policy for the specified bucket. // The `resource` field in the request should be - // `projects/_/buckets/{bucket}` for a bucket or - // `projects/_/buckets/{bucket}/objects/{object}` for an object. + // `projects/_/buckets/{bucket}`. rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.routing) = { routing_parameters { field: "resource" path_template: "{bucket=**}" } - routing_parameters { - field: "resource" - path_template: "{bucket=projects/*/buckets/*}/objects/**" - } }; option (google.api.method_signature) = "resource,policy"; } @@ -1158,13 +1148,16 @@ message BidiWriteObjectRequest { // covers all the bytes the server has persisted thus far and can be used to // decide what data is safe for the client to drop. Note that the object's // current size reported by the BidiWriteObjectResponse may lag behind the - // number of bytes written by the client. + // number of bytes written by the client. This field is ignored if + // `finish_write` is set to true. bool state_lookup = 7; // Persists data written on the stream, up to and including the current // message, to permanent storage. This option should be used sparingly as it // may reduce performance. Ongoing writes will periodically be persisted on - // the server even when `flush` is not set. + // the server even when `flush` is not set. This field is ignored if + // `finish_write` is set to true since there's no need to checkpoint or flush + // if this message completes the write. bool flush = 8; // If `true`, this indicates that the write is complete. Sending any @@ -2560,10 +2553,10 @@ message Owner { // Specifies a requested range of bytes to download. message ContentRange { - // The starting offset of the object data. + // The starting offset of the object data. This value is inclusive. int64 start = 1; - // The ending offset of the object data. + // The ending offset of the object data. This value is exclusive. int64 end = 2; // The complete length of the object data. diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java deleted file mode 100644 index 541ecd4c24..0000000000 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java +++ /dev/null @@ -1,392 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/control/v2/storage_control.proto - -package com.google.storage.control.v2; - -public final class StorageControlProto { - private StorageControlProto() {} - - 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_storage_control_v2_PendingRenameInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_Folder_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_Folder_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_GetFolderRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_StorageLayout_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_GetStorageLayoutRequest_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/storage/control/v2/storage_cont" - + "rol.proto\022\031google.storage.control.v2\032\027go" - + "ogle/api/client.proto\032\037google/api/field_" - + "behavior.proto\032\033google/api/field_info.pr" - + "oto\032\031google/api/resource.proto\032\030google/a" - + "pi/routing.proto\032#google/longrunning/ope" - + "rations.proto\032\033google/protobuf/empty.pro" - + "to\032\037google/protobuf/timestamp.proto\",\n\021P" - + "endingRenameInfo\022\027\n\toperation\030\001 \001(\tB\004\342A\001" - + "\003\"\347\002\n\006Folder\022\022\n\004name\030\001 \001(\tB\004\342A\001\010\022\034\n\016meta" - + "generation\030\003 \001(\003B\004\342A\001\003\0225\n\013create_time\030\004 " - + "\001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" - + "\013update_time\030\005 \001(\0132\032.google.protobuf.Tim" - + "estampB\004\342A\001\003\022O\n\023pending_rename_info\030\007 \001(" - + "\0132,.google.storage.control.v2.PendingRen" - + "ameInfoB\004\342A\001\003:l\352Ai\n\035storage.googleapis.c" - + "om/Folder\0227projects/{project}/buckets/{b" - + "ucket}/folders/{folder=**}*\007folders2\006fol" - + "der\"\366\001\n\020GetFolderRequest\0224\n\004name\030\006 \001(\tB&" - + "\342A\001\002\372A\037\n\035storage.googleapis.com/Folder\022$" - + "\n\027if_metageneration_match\030\003 \001(\003H\000\210\001\001\022(\n\033" - + "if_metageneration_not_match\030\004 \001(\003H\001\210\001\001\022 " - + "\n\nrequest_id\030\005 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001B\032\n\030_if_" - + "metageneration_matchB\036\n\034_if_metagenerati" - + "on_not_match\"\332\001\n\023CreateFolderRequest\0226\n\006" - + "parent\030\001 \001(\tB&\342A\001\002\372A\037\022\035storage.googleapi" - + "s.com/Folder\0227\n\006folder\030\002 \001(\0132!.google.st" - + "orage.control.v2.FolderB\004\342A\001\002\022\027\n\tfolder_" - + "id\030\003 \001(\tB\004\342A\001\002\022\027\n\trecursive\030\004 \001(\010B\004\342A\001\001\022" - + " \n\nrequest_id\030\005 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\371\001\n\023De" - + "leteFolderRequest\0224\n\004name\030\006 \001(\tB&\342A\001\002\372A\037" - + "\n\035storage.googleapis.com/Folder\022$\n\027if_me" - + "tageneration_match\030\003 \001(\003H\000\210\001\001\022(\n\033if_meta" - + "generation_not_match\030\004 \001(\003H\001\210\001\001\022 \n\nreque" - + "st_id\030\005 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001B\032\n\030_if_metagen" - + "eration_matchB\036\n\034_if_metageneration_not_" - + "match\"\224\002\n\022ListFoldersRequest\0226\n\006parent\030\001" - + " \001(\tB&\342A\001\002\372A\037\022\035storage.googleapis.com/Fo" - + "lder\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_to" - + "ken\030\003 \001(\tB\004\342A\001\001\022\024\n\006prefix\030\004 \001(\tB\004\342A\001\001\022\027\n" - + "\tdelimiter\030\010 \001(\tB\004\342A\001\001\022!\n\023lexicographic_" - + "start\030\006 \001(\tB\004\342A\001\001\022\037\n\021lexicographic_end\030\007" - + " \001(\tB\004\342A\001\001\022 \n\nrequest_id\030\t \001(\tB\014\342A\001\001\342\214\317\327" - + "\010\002\010\001\"b\n\023ListFoldersResponse\0222\n\007folders\030\001" - + " \003(\0132!.google.storage.control.v2.Folder\022" - + "\027\n\017next_page_token\030\002 \001(\t\"\236\002\n\023RenameFolde" - + "rRequest\0224\n\004name\030\007 \001(\tB&\342A\001\002\372A\037\n\035storage" - + ".googleapis.com/Folder\022#\n\025destination_fo" - + "lder_id\030\010 \001(\tB\004\342A\001\002\022$\n\027if_metageneration" - + "_match\030\004 \001(\003H\000\210\001\001\022(\n\033if_metageneration_n" - + "ot_match\030\005 \001(\003H\001\210\001\001\022 \n\nrequest_id\030\006 \001(\tB" - + "\014\342A\001\001\342\214\317\327\010\002\010\001B\032\n\030_if_metageneration_matc" - + "hB\036\n\034_if_metageneration_not_match\"\240\002\n\"Co" - + "mmonLongRunningOperationMetadata\0225\n\013crea" - + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" - + "pB\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132\032.google.proto" - + "buf.TimestampB\004\342A\001\003\0225\n\013update_time\030\003 \001(\013" - + "2\032.google.protobuf.TimestampB\004\342A\001\003\022\022\n\004ty" - + "pe\030\004 \001(\tB\004\342A\001\003\022$\n\026requested_cancellation" - + "\030\005 \001(\010B\004\342A\001\003\022\036\n\020progress_percent\030\006 \001(\005B\004" - + "\342A\001\003\"\247\001\n\024RenameFolderMetadata\022V\n\017common_" - + "metadata\030\001 \001(\0132=.google.storage.control." - + "v2.CommonLongRunningOperationMetadata\022\030\n" - + "\020source_folder_id\030\002 \001(\t\022\035\n\025destination_f" - + "older_id\030\003 \001(\t\"\336\003\n\rStorageLayout\022\022\n\004name" - + "\030\001 \001(\tB\004\342A\001\003\022\026\n\010location\030\002 \001(\tB\004\342A\001\003\022\033\n\r" - + "location_type\030\003 \001(\tB\004\342A\001\003\022e\n\027custom_plac" - + "ement_config\030\004 \001(\0132>.google.storage.cont" - + "rol.v2.StorageLayout.CustomPlacementConf" - + "igB\004\342A\001\003\022d\n\026hierarchical_namespace\030\005 \001(\013" - + "2>.google.storage.control.v2.StorageLayo" - + "ut.HierarchicalNamespaceB\004\342A\001\003\032/\n\025Custom" - + "PlacementConfig\022\026\n\016data_locations\030\001 \003(\t\032" - + "(\n\025HierarchicalNamespace\022\017\n\007enabled\030\001 \001(" - + "\010:\\\352AY\n$storage.googleapis.com/StorageLa" - + "yout\0221projects/{project}/buckets/{bucket" - + "}/storageLayout\"\210\001\n\027GetStorageLayoutRequ" - + "est\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$storage.goog" - + "leapis.com/StorageLayout\022\016\n\006prefix\030\002 \001(\t" - + "\022 \n\nrequest_id\030\003 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\0012\223\n\n\016S" - + "torageControl\022\232\001\n\014CreateFolder\022..google." - + "storage.control.v2.CreateFolderRequest\032!" - + ".google.storage.control.v2.Folder\"7\332A\027pa" - + "rent,folder,folder_id\212\323\344\223\002\027\022\025\n\006parent\022\013{" - + "bucket=**}\022\217\001\n\014DeleteFolder\022..google.sto" - + "rage.control.v2.DeleteFolderRequest\032\026.go" - + "ogle.protobuf.Empty\"7\332A\004name\212\323\344\223\002*\022(\n\004na" - + "me\022 {bucket=projects/*/buckets/*}/**\022\224\001\n" - + "\tGetFolder\022+.google.storage.control.v2.G" - + "etFolderRequest\032!.google.storage.control" - + ".v2.Folder\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {buck" - + "et=projects/*/buckets/*}/**\022\224\001\n\013ListFold" - + "ers\022-.google.storage.control.v2.ListFold" - + "ersRequest\032..google.storage.control.v2.L" - + "istFoldersResponse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006p" - + "arent\022\013{bucket=**}\022\315\001\n\014RenameFolder\022..go" - + "ogle.storage.control.v2.RenameFolderRequ" - + "est\032\035.google.longrunning.Operation\"n\312A\036\n" - + "\006Folder\022\024RenameFolderMetadata\332A\032name,des" - + "tination_folder_id\212\323\344\223\002*\022(\n\004name\022 {bucke" - + "t=projects/*/buckets/*}/**\022\251\001\n\020GetStorag" - + "eLayout\0222.google.storage.control.v2.GetS" - + "torageLayoutRequest\032(.google.storage.con" - + "trol.v2.StorageLayout\"7\332A\004name\212\323\344\223\002*\022(\n\004" - + "name\022 {bucket=projects/*/buckets/*}/**\032\247" - + "\002\312A\026storage.googleapis.com\322A\212\002https://ww" - + "w.googleapis.com/auth/cloud-platform,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm.read-only,https://www.googleapis.com" - + "/auth/devstorage.full_control,https://ww" - + "w.googleapis.com/auth/devstorage.read_on" - + "ly,https://www.googleapis.com/auth/devst" - + "orage.read_writeB\312\001\n\035com.google.storage." - + "control.v2B\023StorageControlProtoP\001ZKcloud" - + ".google.com/go/storage/control/apiv2/sto" - + "ragecontrolpb;storagecontrolpb\352AD\n\035stora" - + "ge.googleapis.com/Bucket\022#projects/{proj" - + "ect}/buckets/{bucket}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.FieldInfoProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_storage_control_v2_PendingRenameInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_PendingRenameInfo_descriptor, - new java.lang.String[] { - "Operation", - }); - internal_static_google_storage_control_v2_Folder_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_storage_control_v2_Folder_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_Folder_descriptor, - new java.lang.String[] { - "Name", "Metageneration", "CreateTime", "UpdateTime", "PendingRenameInfo", - }); - internal_static_google_storage_control_v2_GetFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_GetFolderRequest_descriptor, - new java.lang.String[] { - "Name", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "RequestId", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - }); - internal_static_google_storage_control_v2_CreateFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_CreateFolderRequest_descriptor, - new java.lang.String[] { - "Parent", "Folder", "FolderId", "Recursive", "RequestId", - }); - internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor, - new java.lang.String[] { - "Name", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "RequestId", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - }); - internal_static_google_storage_control_v2_ListFoldersRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ListFoldersRequest_descriptor, - new java.lang.String[] { - "Parent", - "PageSize", - "PageToken", - "Prefix", - "Delimiter", - "LexicographicStart", - "LexicographicEnd", - "RequestId", - }); - internal_static_google_storage_control_v2_ListFoldersResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ListFoldersResponse_descriptor, - new java.lang.String[] { - "Folders", "NextPageToken", - }); - internal_static_google_storage_control_v2_RenameFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_RenameFolderRequest_descriptor, - new java.lang.String[] { - "Name", - "DestinationFolderId", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "RequestId", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - }); - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "UpdateTime", - "Type", - "RequestedCancellation", - "ProgressPercent", - }); - internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor, - new java.lang.String[] { - "CommonMetadata", "SourceFolderId", "DestinationFolderId", - }); - internal_static_google_storage_control_v2_StorageLayout_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_StorageLayout_descriptor, - new java.lang.String[] { - "Name", "Location", "LocationType", "CustomPlacementConfig", "HierarchicalNamespace", - }); - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor = - internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(0); - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor, - new java.lang.String[] { - "DataLocations", - }); - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor = - internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(1); - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor, - new java.lang.String[] { - "Enabled", - }); - internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor, - new java.lang.String[] { - "Name", "Prefix", "RequestId", - }); - 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.FieldInfoProto.fieldInfo); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.FieldInfoProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java deleted file mode 100644 index 59a085ee31..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -package com.google.storage.v2; - -public interface CancelResumableWriteResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.storage.v2.CancelResumableWriteResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java deleted file mode 100644 index da81df1ddf..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -package com.google.storage.v2; - -public interface ContentRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.storage.v2.ContentRange) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The starting offset of the object data.
-   * 
- * - * int64 start = 1; - * - * @return The start. - */ - long getStart(); - - /** - * - * - *
-   * The ending offset of the object data.
-   * 
- * - * int64 end = 2; - * - * @return The end. - */ - long getEnd(); - - /** - * - * - *
-   * The complete length of the object data.
-   * 
- * - * int64 complete_length = 3; - * - * @return The completeLength. - */ - long getCompleteLength(); -} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java deleted file mode 100644 index 1ef0465349..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -package com.google.storage.v2; - -public interface CreateNotificationConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.storage.v2.CreateNotificationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The bucket to which this NotificationConfig belongs.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The bucket to which this NotificationConfig belongs.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Properties of the NotificationConfig to be inserted.
-   * 
- * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the notificationConfig field is set. - */ - boolean hasNotificationConfig(); - /** - * - * - *
-   * Required. Properties of the NotificationConfig to be inserted.
-   * 
- * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The notificationConfig. - */ - com.google.storage.v2.NotificationConfig getNotificationConfig(); - /** - * - * - *
-   * Required. Properties of the NotificationConfig to be inserted.
-   * 
- * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); -} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java deleted file mode 100644 index 1f118d6166..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -package com.google.storage.v2; - -public interface DeleteNotificationConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.storage.v2.DeleteNotificationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent bucket of the NotificationConfig.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The parent bucket of the NotificationConfig.
-   * 
- * - * - * 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-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java deleted file mode 100644 index 6005568821..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -package com.google.storage.v2; - -public interface GetNotificationConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.storage.v2.GetNotificationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent bucket of the NotificationConfig.
-   * Format:
-   * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The parent bucket of the NotificationConfig.
-   * Format:
-   * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
-   * 
- * - * - * 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-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java deleted file mode 100644 index be3deb7152..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -package com.google.storage.v2; - -public interface GetServiceAccountRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.storage.v2.GetServiceAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Project ID, in the format of "projects/{projectIdentifier}".
-   * {projectIdentifier} can be the project ID or project number.
-   * 
- * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The project. - */ - java.lang.String getProject(); - /** - * - * - *
-   * Required. Project ID, in the format of "projects/{projectIdentifier}".
-   * {projectIdentifier} can be the project ID or project number.
-   * 
- * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for project. - */ - com.google.protobuf.ByteString getProjectBytes(); -} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java deleted file mode 100644 index 0d0afef1a8..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -package com.google.storage.v2; - -public interface LockBucketRetentionPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.storage.v2.LockBucketRetentionPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of a bucket.
-   * 
- * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bucket. - */ - java.lang.String getBucket(); - /** - * - * - *
-   * Required. Name of a bucket.
-   * 
- * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for bucket. - */ - com.google.protobuf.ByteString getBucketBytes(); - - /** - * - * - *
-   * Required. Makes the operation conditional on whether bucket's current
-   * metageneration matches the given value. Must be positive.
-   * 
- * - * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The ifMetagenerationMatch. - */ - long getIfMetagenerationMatch(); -} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java deleted file mode 100644 index 880c17100e..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -package com.google.storage.v2; - -public interface ServiceAccountOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.storage.v2.ServiceAccount) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The ID of the notification.
-   * 
- * - * string email_address = 1; - * - * @return The emailAddress. - */ - java.lang.String getEmailAddress(); - /** - * - * - *
-   * The ID of the notification.
-   * 
- * - * string email_address = 1; - * - * @return The bytes for emailAddress. - */ - com.google.protobuf.ByteString getEmailAddressBytes(); -} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java deleted file mode 100644 index 8468f8550d..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -package com.google.storage.v2; - -public interface ServiceConstantsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.storage.v2.ServiceConstants) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java deleted file mode 100644 index 6bc20d78b8..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java +++ /dev/null @@ -1,1872 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -package com.google.storage.v2; - -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_storage_v2_DeleteBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListBucketsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListBucketsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_UpdateBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ComposeObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_DeleteObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_RestoreObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ReadObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ReadObjectResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_WriteObjectSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_WriteObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_WriteObjectResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListObjectsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_RewriteObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_RewriteResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_UpdateObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ServiceConstants_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Billing_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Cors_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Encryption_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_IamConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Logging_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Versioning_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Website_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Autoclass_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_BucketAccessControl_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ChecksummedData_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ObjectChecksums_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_HmacKeyMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_NotificationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CustomerEncryption_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Object_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Object_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Object_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ObjectAccessControl_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListObjectsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ProjectTeam_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ServiceAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Owner_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Owner_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ContentRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ContentRange_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\037google/storage/v2/storage.proto\022\021googl" - + "e.storage.v2\032\027google/api/client.proto\032\037g" - + "oogle/api/field_behavior.proto\032\031google/a" - + "pi/resource.proto\032\030google/api/routing.pr" - + "oto\032\036google/iam/v1/iam_policy.proto\032\032goo" - + "gle/iam/v1/policy.proto\032\036google/protobuf" - + "/duration.proto\032\033google/protobuf/empty.p" - + "roto\032 google/protobuf/field_mask.proto\032\037" - + "google/protobuf/timestamp.proto\032\026google/" - + "type/date.proto\"\327\001\n\023DeleteBucketRequest\022" - + "4\n\004name\030\001 \001(\tB&\342A\001\002\372A\037\n\035storage.googleap" - + "is.com/Bucket\022$\n\027if_metageneration_match" - + "\030\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_mat" - + "ch\030\003 \001(\003H\001\210\001\001B\032\n\030_if_metageneration_matc" - + "hB\036\n\034_if_metageneration_not_match\"\226\002\n\020Ge" - + "tBucketRequest\0224\n\004name\030\001 \001(\tB&\342A\001\002\372A\037\n\035s" - + "torage.googleapis.com/Bucket\022$\n\027if_metag" - + "eneration_match\030\002 \001(\003H\000\210\001\001\022(\n\033if_metagen" - + "eration_not_match\030\003 \001(\003H\001\210\001\001\0222\n\tread_mas" - + "k\030\005 \001(\0132\032.google.protobuf.FieldMaskH\002\210\001\001" - + "B\032\n\030_if_metageneration_matchB\036\n\034_if_meta" - + "generation_not_matchB\014\n\n_read_mask\"\320\001\n\023C" - + "reateBucketRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002" - + "\372A\037\022\035storage.googleapis.com/Bucket\022)\n\006bu" - + "cket\030\002 \001(\0132\031.google.storage.v2.Bucket\022\027\n" - + "\tbucket_id\030\003 \001(\tB\004\342A\001\002\022\026\n\016predefined_acl" - + "\030\006 \001(\t\022%\n\035predefined_default_object_acl\030" - + "\007 \001(\t\"\305\001\n\022ListBucketsRequest\0226\n\006parent\030\001" - + " \001(\tB&\342A\001\002\372A\037\022\035storage.googleapis.com/Bu" - + "cket\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\022\016\n\006prefix\030\004 \001(\t\0222\n\tread_mask\030\005 \001(\0132\032" - + ".google.protobuf.FieldMaskH\000\210\001\001B\014\n\n_read" - + "_mask\"Z\n\023ListBucketsResponse\022*\n\007buckets\030" - + "\001 \003(\0132\031.google.storage.v2.Bucket\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\201\001\n LockBucketRetentio" - + "nPolicyRequest\0226\n\006bucket\030\001 \001(\tB&\342A\001\002\372A\037\n" - + "\035storage.googleapis.com/Bucket\022%\n\027if_met" - + "ageneration_match\030\002 \001(\003B\004\342A\001\002\"\310\002\n\023Update" - + "BucketRequest\022/\n\006bucket\030\001 \001(\0132\031.google.s" - + "torage.v2.BucketB\004\342A\001\002\022$\n\027if_metagenerat" - + "ion_match\030\002 \001(\003H\000\210\001\001\022(\n\033if_metageneratio" - + "n_not_match\030\003 \001(\003H\001\210\001\001\022\026\n\016predefined_acl" - + "\030\010 \001(\t\022%\n\035predefined_default_object_acl\030" - + "\t \001(\t\0225\n\013update_mask\030\006 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\004\342A\001\002B\032\n\030_if_metagenerati" - + "on_matchB\036\n\034_if_metageneration_not_match" - + "\"c\n\037DeleteNotificationConfigRequest\022@\n\004n" - + "ame\030\001 \001(\tB2\342A\001\002\372A+\n)storage.googleapis.c" - + "om/NotificationConfig\"`\n\034GetNotification" - + "ConfigRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)st" - + "orage.googleapis.com/NotificationConfig\"" - + "\257\001\n\037CreateNotificationConfigRequest\022B\n\006p" - + "arent\030\001 \001(\tB2\342A\001\002\372A+\022)storage.googleapis" - + ".com/NotificationConfig\022H\n\023notification_" - + "config\030\002 \001(\0132%.google.storage.v2.Notific" - + "ationConfigB\004\342A\001\002\"\213\001\n\036ListNotificationCo" - + "nfigsRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\022)s" - + "torage.googleapis.com/NotificationConfig" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" - + "\177\n\037ListNotificationConfigsResponse\022C\n\024no" - + "tification_configs\030\001 \003(\0132%.google.storag" - + "e.v2.NotificationConfig\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"\367\005\n\024ComposeObjectRequest\0224\n\013des" - + "tination\030\001 \001(\0132\031.google.storage.v2.Objec" - + "tB\004\342A\001\002\022L\n\016source_objects\030\002 \003(\01324.google" - + ".storage.v2.ComposeObjectRequest.SourceO" - + "bject\022\"\n\032destination_predefined_acl\030\t \001(" - + "\t\022 \n\023if_generation_match\030\004 \001(\003H\000\210\001\001\022$\n\027i" - + "f_metageneration_match\030\005 \001(\003H\001\210\001\001\0227\n\007kms" - + "_key\030\006 \001(\tB&\372A#\n!cloudkms.googleapis.com" - + "/CryptoKey\022R\n\034common_object_request_para" - + "ms\030\007 \001(\0132,.google.storage.v2.CommonObjec" - + "tRequestParams\022<\n\020object_checksums\030\n \001(\013" - + "2\".google.storage.v2.ObjectChecksums\032\357\001\n" - + "\014SourceObject\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\022\n\ngen" - + "eration\030\002 \001(\003\022f\n\024object_preconditions\030\003 " - + "\001(\0132H.google.storage.v2.ComposeObjectReq" - + "uest.SourceObject.ObjectPreconditions\032O\n" - + "\023ObjectPreconditions\022 \n\023if_generation_ma" - + "tch\030\001 \001(\003H\000\210\001\001B\026\n\024_if_generation_matchB\026" - + "\n\024_if_generation_matchB\032\n\030_if_metagenera" - + "tion_match\"\323\003\n\023DeleteObjectRequest\0226\n\006bu" - + "cket\030\001 \001(\tB&\342A\001\002\372A\037\n\035storage.googleapis." - + "com/Bucket\022\024\n\006object\030\002 \001(\tB\004\342A\001\002\022\022\n\ngene" - + "ration\030\004 \001(\003\022 \n\023if_generation_match\030\005 \001(" - + "\003H\000\210\001\001\022$\n\027if_generation_not_match\030\006 \001(\003H" - + "\001\210\001\001\022$\n\027if_metageneration_match\030\007 \001(\003H\002\210" - + "\001\001\022(\n\033if_metageneration_not_match\030\010 \001(\003H" - + "\003\210\001\001\022R\n\034common_object_request_params\030\n \001" - + "(\0132,.google.storage.v2.CommonObjectReque" - + "stParamsB\026\n\024_if_generation_matchB\032\n\030_if_" - + "generation_not_matchB\032\n\030_if_metagenerati" - + "on_matchB\036\n\034_if_metageneration_not_match" - + "\"\214\004\n\024RestoreObjectRequest\0226\n\006bucket\030\001 \001(" - + "\tB&\342A\001\002\372A\037\n\035storage.googleapis.com/Bucke" - + "t\022\024\n\006object\030\002 \001(\tB\004\342A\001\002\022\030\n\ngeneration\030\003 " - + "\001(\003B\004\342A\001\002\022 \n\023if_generation_match\030\004 \001(\003H\000" - + "\210\001\001\022$\n\027if_generation_not_match\030\005 \001(\003H\001\210\001" - + "\001\022$\n\027if_metageneration_match\030\006 \001(\003H\002\210\001\001\022" - + "(\n\033if_metageneration_not_match\030\007 \001(\003H\003\210\001" - + "\001\022\034\n\017copy_source_acl\030\t \001(\010H\004\210\001\001\022R\n\034commo" - + "n_object_request_params\030\010 \001(\0132,.google.s" - + "torage.v2.CommonObjectRequestParamsB\026\n\024_" - + "if_generation_matchB\032\n\030_if_generation_no" - + "t_matchB\032\n\030_if_metageneration_matchB\036\n\034_" - + "if_metageneration_not_matchB\022\n\020_copy_sou" - + "rce_acl\"6\n\033CancelResumableWriteRequest\022\027" - + "\n\tupload_id\030\001 \001(\tB\004\342A\001\002\"\036\n\034CancelResumab" - + "leWriteResponse\"\274\004\n\021ReadObjectRequest\0226\n" - + "\006bucket\030\001 \001(\tB&\342A\001\002\372A\037\n\035storage.googleap" - + "is.com/Bucket\022\024\n\006object\030\002 \001(\tB\004\342A\001\002\022\022\n\ng" - + "eneration\030\003 \001(\003\022\023\n\013read_offset\030\004 \001(\003\022\022\n\n" - + "read_limit\030\005 \001(\003\022 \n\023if_generation_match\030" - + "\006 \001(\003H\000\210\001\001\022$\n\027if_generation_not_match\030\007 " - + "\001(\003H\001\210\001\001\022$\n\027if_metageneration_match\030\010 \001(" - + "\003H\002\210\001\001\022(\n\033if_metageneration_not_match\030\t " - + "\001(\003H\003\210\001\001\022R\n\034common_object_request_params" - + "\030\n \001(\0132,.google.storage.v2.CommonObjectR" - + "equestParams\0222\n\tread_mask\030\014 \001(\0132\032.google" - + ".protobuf.FieldMaskH\004\210\001\001B\026\n\024_if_generati" - + "on_matchB\032\n\030_if_generation_not_matchB\032\n\030" - + "_if_metageneration_matchB\036\n\034_if_metagene" - + "ration_not_matchB\014\n\n_read_mask\"\276\004\n\020GetOb" - + "jectRequest\0226\n\006bucket\030\001 \001(\tB&\342A\001\002\372A\037\n\035st" - + "orage.googleapis.com/Bucket\022\024\n\006object\030\002 " - + "\001(\tB\004\342A\001\002\022\022\n\ngeneration\030\003 \001(\003\022\031\n\014soft_de" - + "leted\030\013 \001(\010H\000\210\001\001\022 \n\023if_generation_match\030" - + "\004 \001(\003H\001\210\001\001\022$\n\027if_generation_not_match\030\005 " - + "\001(\003H\002\210\001\001\022$\n\027if_metageneration_match\030\006 \001(" - + "\003H\003\210\001\001\022(\n\033if_metageneration_not_match\030\007 " - + "\001(\003H\004\210\001\001\022R\n\034common_object_request_params" - + "\030\010 \001(\0132,.google.storage.v2.CommonObjectR" - + "equestParams\0222\n\tread_mask\030\n \001(\0132\032.google" - + ".protobuf.FieldMaskH\005\210\001\001B\017\n\r_soft_delete" - + "dB\026\n\024_if_generation_matchB\032\n\030_if_generat" - + "ion_not_matchB\032\n\030_if_metageneration_matc" - + "hB\036\n\034_if_metageneration_not_matchB\014\n\n_re" - + "ad_mask\"\365\001\n\022ReadObjectResponse\022<\n\020checks" - + "ummed_data\030\001 \001(\0132\".google.storage.v2.Che" - + "cksummedData\022<\n\020object_checksums\030\002 \001(\0132\"" - + ".google.storage.v2.ObjectChecksums\0226\n\rco" - + "ntent_range\030\003 \001(\0132\037.google.storage.v2.Co" - + "ntentRange\022+\n\010metadata\030\004 \001(\0132\031.google.st" - + "orage.v2.Object\"\216\003\n\017WriteObjectSpec\0221\n\010r" - + "esource\030\001 \001(\0132\031.google.storage.v2.Object" - + "B\004\342A\001\002\022\026\n\016predefined_acl\030\007 \001(\t\022 \n\023if_gen" - + "eration_match\030\003 \001(\003H\000\210\001\001\022$\n\027if_generatio" - + "n_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_metagenerat" - + "ion_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_metageneratio" - + "n_not_match\030\006 \001(\003H\003\210\001\001\022\030\n\013object_size\030\010 " - + "\001(\003H\004\210\001\001B\026\n\024_if_generation_matchB\032\n\030_if_" - + "generation_not_matchB\032\n\030_if_metagenerati" - + "on_matchB\036\n\034_if_metageneration_not_match" - + "B\016\n\014_object_size\"\207\003\n\022WriteObjectRequest\022" - + "\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_object_spe" - + "c\030\002 \001(\0132\".google.storage.v2.WriteObjectS" - + "pecH\000\022\032\n\014write_offset\030\003 \001(\003B\004\342A\001\002\022>\n\020che" - + "cksummed_data\030\004 \001(\0132\".google.storage.v2." - + "ChecksummedDataH\001\022<\n\020object_checksums\030\006 " - + "\001(\0132\".google.storage.v2.ObjectChecksums\022" - + "\024\n\014finish_write\030\007 \001(\010\022R\n\034common_object_r" - + "equest_params\030\010 \001(\0132,.google.storage.v2." - + "CommonObjectRequestParamsB\017\n\rfirst_messa" - + "geB\006\n\004data\"n\n\023WriteObjectResponse\022\030\n\016per" - + "sisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031." - + "google.storage.v2.ObjectH\000B\016\n\014write_stat" - + "us\"\260\003\n\026BidiWriteObjectRequest\022\023\n\tupload_" - + "id\030\001 \001(\tH\000\022?\n\021write_object_spec\030\002 \001(\0132\"." - + "google.storage.v2.WriteObjectSpecH\000\022\032\n\014w" - + "rite_offset\030\003 \001(\003B\004\342A\001\002\022>\n\020checksummed_d" - + "ata\030\004 \001(\0132\".google.storage.v2.Checksumme" - + "dDataH\001\022<\n\020object_checksums\030\006 \001(\0132\".goog" - + "le.storage.v2.ObjectChecksums\022\024\n\014state_l" - + "ookup\030\007 \001(\010\022\r\n\005flush\030\010 \001(\010\022\024\n\014finish_wri" - + "te\030\t \001(\010\022R\n\034common_object_request_params" - + "\030\n \001(\0132,.google.storage.v2.CommonObjectR" - + "equestParamsB\017\n\rfirst_messageB\006\n\004data\"r\n" - + "\027BidiWriteObjectResponse\022\030\n\016persisted_si" - + "ze\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031.google.st" - + "orage.v2.ObjectH\000B\016\n\014write_status\"\210\003\n\022Li" - + "stObjectsRequest\0226\n\006parent\030\001 \001(\tB&\342A\001\002\372A" - + "\037\n\035storage.googleapis.com/Bucket\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\021\n\tdelim" - + "iter\030\004 \001(\t\022\"\n\032include_trailing_delimiter" - + "\030\005 \001(\010\022\016\n\006prefix\030\006 \001(\t\022\020\n\010versions\030\007 \001(\010" - + "\0222\n\tread_mask\030\010 \001(\0132\032.google.protobuf.Fi" - + "eldMaskH\000\210\001\001\022!\n\023lexicographic_start\030\n \001(" - + "\tB\004\342A\001\001\022\037\n\021lexicographic_end\030\013 \001(\tB\004\342A\001\001" - + "\022\032\n\014soft_deleted\030\014 \001(\010B\004\342A\001\001\022\030\n\nmatch_gl" - + "ob\030\016 \001(\tB\004\342A\001\001B\014\n\n_read_mask\"\206\001\n\027QueryWr" - + "iteStatusRequest\022\027\n\tupload_id\030\001 \001(\tB\004\342A\001" - + "\002\022R\n\034common_object_request_params\030\002 \001(\0132" - + ",.google.storage.v2.CommonObjectRequestP" - + "arams\"s\n\030QueryWriteStatusResponse\022\030\n\016per" - + "sisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031." - + "google.storage.v2.ObjectH\000B\016\n\014write_stat" - + "us\"\250\n\n\024RewriteObjectRequest\022\037\n\020destinati" - + "on_name\030\030 \001(\tB\005\342A\002\002\005\022C\n\022destination_buck" - + "et\030\031 \001(\tB\'\342A\002\002\005\372A\037\n\035storage.googleapis.c" - + "om/Bucket\022C\n\023destination_kms_key\030\033 \001(\tB&" - + "\372A#\n!cloudkms.googleapis.com/CryptoKey\022." - + "\n\013destination\030\001 \001(\0132\031.google.storage.v2." - + "Object\022=\n\rsource_bucket\030\002 \001(\tB&\342A\001\002\372A\037\n\035" - + "storage.googleapis.com/Bucket\022\033\n\rsource_" - + "object\030\003 \001(\tB\004\342A\001\002\022\031\n\021source_generation\030" - + "\004 \001(\003\022\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032destinat" - + "ion_predefined_acl\030\034 \001(\t\022 \n\023if_generatio" - + "n_match\030\007 \001(\003H\000\210\001\001\022$\n\027if_generation_not_" - + "match\030\010 \001(\003H\001\210\001\001\022$\n\027if_metageneration_ma" - + "tch\030\t \001(\003H\002\210\001\001\022(\n\033if_metageneration_not_" - + "match\030\n \001(\003H\003\210\001\001\022\'\n\032if_source_generation" - + "_match\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_generatio" - + "n_not_match\030\014 \001(\003H\005\210\001\001\022+\n\036if_source_meta" - + "generation_match\030\r \001(\003H\006\210\001\001\022/\n\"if_source" - + "_metageneration_not_match\030\016 \001(\003H\007\210\001\001\022$\n\034" - + "max_bytes_rewritten_per_call\030\017 \001(\003\022(\n co" - + "py_source_encryption_algorithm\030\020 \001(\t\022(\n " - + "copy_source_encryption_key_bytes\030\025 \001(\014\022/" - + "\n\'copy_source_encryption_key_sha256_byte" - + "s\030\026 \001(\014\022R\n\034common_object_request_params\030" - + "\023 \001(\0132,.google.storage.v2.CommonObjectRe" - + "questParams\022<\n\020object_checksums\030\035 \001(\0132\"." - + "google.storage.v2.ObjectChecksumsB\026\n\024_if" - + "_generation_matchB\032\n\030_if_generation_not_" - + "matchB\032\n\030_if_metageneration_matchB\036\n\034_if" - + "_metageneration_not_matchB\035\n\033_if_source_" - + "generation_matchB!\n\037_if_source_generatio" - + "n_not_matchB!\n\037_if_source_metageneration" - + "_matchB%\n#_if_source_metageneration_not_" - + "match\"\227\001\n\017RewriteResponse\022\035\n\025total_bytes" - + "_rewritten\030\001 \001(\003\022\023\n\013object_size\030\002 \001(\003\022\014\n" - + "\004done\030\003 \001(\010\022\025\n\rrewrite_token\030\004 \001(\t\022+\n\010re" - + "source\030\005 \001(\0132\031.google.storage.v2.Object\"" - + "\363\001\n\032StartResumableWriteRequest\022C\n\021write_" - + "object_spec\030\001 \001(\0132\".google.storage.v2.Wr" - + "iteObjectSpecB\004\342A\001\002\022R\n\034common_object_req" - + "uest_params\030\003 \001(\0132,.google.storage.v2.Co" - + "mmonObjectRequestParams\022<\n\020object_checks" - + "ums\030\005 \001(\0132\".google.storage.v2.ObjectChec" - + "ksums\"0\n\033StartResumableWriteResponse\022\021\n\t" - + "upload_id\030\001 \001(\t\"\361\003\n\023UpdateObjectRequest\022" - + "/\n\006object\030\001 \001(\0132\031.google.storage.v2.Obje" - + "ctB\004\342A\001\002\022 \n\023if_generation_match\030\002 \001(\003H\000\210" - + "\001\001\022$\n\027if_generation_not_match\030\003 \001(\003H\001\210\001\001" - + "\022$\n\027if_metageneration_match\030\004 \001(\003H\002\210\001\001\022(" - + "\n\033if_metageneration_not_match\030\005 \001(\003H\003\210\001\001" - + "\022\026\n\016predefined_acl\030\n \001(\t\0225\n\013update_mask\030" - + "\007 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022" - + "R\n\034common_object_request_params\030\010 \001(\0132,." - + "google.storage.v2.CommonObjectRequestPar" - + "amsB\026\n\024_if_generation_matchB\032\n\030_if_gener" - + "ation_not_matchB\032\n\030_if_metageneration_ma" - + "tchB\036\n\034_if_metageneration_not_match\"a\n\030G" - + "etServiceAccountRequest\022E\n\007project\030\001 \001(\t" - + "B4\342A\001\002\372A-\n+cloudresourcemanager.googleap" - + "is.com/Project\"\202\001\n\024CreateHmacKeyRequest\022" - + "E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresource" - + "manager.googleapis.com/Project\022#\n\025servic" - + "e_account_email\030\002 \001(\tB\004\342A\001\002\"g\n\025CreateHma" - + "cKeyResponse\0224\n\010metadata\030\001 \001(\0132\".google." - + "storage.v2.HmacKeyMetadata\022\030\n\020secret_key" - + "_bytes\030\003 \001(\014\"v\n\024DeleteHmacKeyRequest\022\027\n\t" - + "access_id\030\001 \001(\tB\004\342A\001\002\022E\n\007project\030\002 \001(\tB4" - + "\342A\001\002\372A-\n+cloudresourcemanager.googleapis" - + ".com/Project\"s\n\021GetHmacKeyRequest\022\027\n\tacc" - + "ess_id\030\001 \001(\tB\004\342A\001\002\022E\n\007project\030\002 \001(\tB4\342A\001" - + "\002\372A-\n+cloudresourcemanager.googleapis.co" - + "m/Project\"\275\001\n\023ListHmacKeysRequest\022E\n\007pro" - + "ject\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanage" - + "r.googleapis.com/Project\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\035\n\025service_accou" - + "nt_email\030\004 \001(\t\022\031\n\021show_deleted_keys\030\005 \001(" - + "\010\"f\n\024ListHmacKeysResponse\0225\n\thmac_keys\030\001" - + " \003(\0132\".google.storage.v2.HmacKeyMetadata" - + "\022\027\n\017next_page_token\030\002 \001(\t\"\203\001\n\024UpdateHmac" - + "KeyRequest\022:\n\010hmac_key\030\001 \001(\0132\".google.st" - + "orage.v2.HmacKeyMetadataB\004\342A\001\002\022/\n\013update" - + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" - + "|\n\031CommonObjectRequestParams\022\034\n\024encrypti" - + "on_algorithm\030\001 \001(\t\022\034\n\024encryption_key_byt" - + "es\030\004 \001(\014\022#\n\033encryption_key_sha256_bytes\030" - + "\005 \001(\014\"\312\005\n\020ServiceConstants\"\265\005\n\006Values\022\026\n" - + "\022VALUES_UNSPECIFIED\020\000\022\033\n\024MAX_READ_CHUNK_" - + "BYTES\020\200\200\200\001\022\034\n\025MAX_WRITE_CHUNK_BYTES\020\200\200\200\001" - + "\022\031\n\022MAX_OBJECT_SIZE_MB\020\200\200\300\002\022)\n$MAX_CUSTO" - + "M_METADATA_FIELD_NAME_BYTES\020\200\010\022*\n%MAX_CU" - + "STOM_METADATA_FIELD_VALUE_BYTES\020\200 \022)\n$MA" - + "X_CUSTOM_METADATA_TOTAL_SIZE_BYTES\020\200@\022*\n" - + "$MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES\020\200\240" - + "\001\022\'\n#MAX_NOTIFICATION_CONFIGS_PER_BUCKET" - + "\020d\022\"\n\036MAX_LIFECYCLE_RULES_PER_BUCKET\020d\022&" - + "\n\"MAX_NOTIFICATION_CUSTOM_ATTRIBUTES\020\005\0221" - + "\n,MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_" - + "LENGTH\020\200\002\0223\n.MAX_NOTIFICATION_CUSTOM_ATT" - + "RIBUTE_VALUE_LENGTH\020\200\010\022\034\n\030MAX_LABELS_ENT" - + "RIES_COUNT\020@\022\037\n\033MAX_LABELS_KEY_VALUE_LEN" - + "GTH\020?\022\037\n\032MAX_LABELS_KEY_VALUE_BYTES\020\200\001\022." - + "\n)MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQU" - + "EST\020\350\007\022\036\n\032SPLIT_TOKEN_MAX_VALID_DAYS\020\016\032\002" - + "\020\001\"\231\033\n\006Bucket\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\027\n\tbuc" - + "ket_id\030\002 \001(\tB\004\342A\001\003\022\014\n\004etag\030\035 \001(\t\022E\n\007proj" - + "ect\030\003 \001(\tB4\342A\001\005\372A-\n+cloudresourcemanager" - + ".googleapis.com/Project\022\034\n\016metageneratio" - + "n\030\004 \001(\003B\004\342A\001\003\022\026\n\010location\030\005 \001(\tB\004\342A\001\005\022\033\n" - + "\rlocation_type\030\006 \001(\tB\004\342A\001\003\022\025\n\rstorage_cl" - + "ass\030\007 \001(\t\022\013\n\003rpo\030\033 \001(\t\0223\n\003acl\030\010 \003(\0132&.go" - + "ogle.storage.v2.BucketAccessControl\022B\n\022d" - + "efault_object_acl\030\t \003(\0132&.google.storage" - + ".v2.ObjectAccessControl\0226\n\tlifecycle\030\n \001" - + "(\0132#.google.storage.v2.Bucket.Lifecycle\022" - + "5\n\013create_time\030\013 \001(\0132\032.google.protobuf.T" - + "imestampB\004\342A\001\003\022,\n\004cors\030\014 \003(\0132\036.google.st" - + "orage.v2.Bucket.Cors\0225\n\013update_time\030\r \001(" - + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\022 \n\030d" - + "efault_event_based_hold\030\016 \001(\010\0225\n\006labels\030" - + "\017 \003(\0132%.google.storage.v2.Bucket.LabelsE" - + "ntry\0222\n\007website\030\020 \001(\0132!.google.storage.v" - + "2.Bucket.Website\0228\n\nversioning\030\021 \001(\0132$.g" - + "oogle.storage.v2.Bucket.Versioning\0222\n\007lo" - + "gging\030\022 \001(\0132!.google.storage.v2.Bucket.L" - + "ogging\022-\n\005owner\030\023 \001(\0132\030.google.storage.v" - + "2.OwnerB\004\342A\001\003\0228\n\nencryption\030\024 \001(\0132$.goog" - + "le.storage.v2.Bucket.Encryption\0222\n\007billi" - + "ng\030\025 \001(\0132!.google.storage.v2.Bucket.Bill" - + "ing\022C\n\020retention_policy\030\026 \001(\0132).google.s" - + "torage.v2.Bucket.RetentionPolicy\0227\n\niam_" - + "config\030\027 \001(\0132#.google.storage.v2.Bucket." - + "IamConfig\022\025\n\rsatisfies_pzs\030\031 \001(\010\022P\n\027cust" - + "om_placement_config\030\032 \001(\0132/.google.stora" - + "ge.v2.Bucket.CustomPlacementConfig\0226\n\tau" - + "toclass\030\034 \001(\0132#.google.storage.v2.Bucket" - + ".Autoclass\022L\n\022soft_delete_policy\030\037 \001(\0132*" - + ".google.storage.v2.Bucket.SoftDeletePoli" - + "cyB\004\342A\001\001\032!\n\007Billing\022\026\n\016requester_pays\030\001 " - + "\001(\010\032X\n\004Cors\022\016\n\006origin\030\001 \003(\t\022\016\n\006method\030\002 " - + "\003(\t\022\027\n\017response_header\030\003 \003(\t\022\027\n\017max_age_" - + "seconds\030\004 \001(\005\032M\n\nEncryption\022?\n\017default_k" - + "ms_key\030\001 \001(\tB&\372A#\n!cloudkms.googleapis.c" - + "om/CryptoKey\032\354\001\n\tIamConfig\022a\n\033uniform_bu" - + "cket_level_access\030\001 \001(\0132<.google.storage" - + ".v2.Bucket.IamConfig.UniformBucketLevelA" - + "ccess\022 \n\030public_access_prevention\030\003 \001(\t\032" - + "Z\n\030UniformBucketLevelAccess\022\017\n\007enabled\030\001" - + " \001(\010\022-\n\tlock_time\030\002 \001(\0132\032.google.protobu" - + "f.Timestamp\032\363\005\n\tLifecycle\0226\n\004rule\030\001 \003(\0132" - + "(.google.storage.v2.Bucket.Lifecycle.Rul" - + "e\032\255\005\n\004Rule\022?\n\006action\030\001 \001(\0132/.google.stor" - + "age.v2.Bucket.Lifecycle.Rule.Action\022E\n\tc" - + "ondition\030\002 \001(\01322.google.storage.v2.Bucke" - + "t.Lifecycle.Rule.Condition\032-\n\006Action\022\014\n\004" - + "type\030\001 \001(\t\022\025\n\rstorage_class\030\002 \001(\t\032\355\003\n\tCo" - + "ndition\022\025\n\010age_days\030\001 \001(\005H\000\210\001\001\022)\n\016create" - + "d_before\030\002 \001(\0132\021.google.type.Date\022\024\n\007is_" - + "live\030\003 \001(\010H\001\210\001\001\022\037\n\022num_newer_versions\030\004 " - + "\001(\005H\002\210\001\001\022\035\n\025matches_storage_class\030\005 \003(\t\022" - + "#\n\026days_since_custom_time\030\007 \001(\005H\003\210\001\001\022-\n\022" - + "custom_time_before\030\010 \001(\0132\021.google.type.D" - + "ate\022\'\n\032days_since_noncurrent_time\030\t \001(\005H" - + "\004\210\001\001\0221\n\026noncurrent_time_before\030\n \001(\0132\021.g" - + "oogle.type.Date\022\026\n\016matches_prefix\030\013 \003(\t\022" - + "\026\n\016matches_suffix\030\014 \003(\tB\013\n\t_age_daysB\n\n\010" - + "_is_liveB\025\n\023_num_newer_versionsB\031\n\027_days" - + "_since_custom_timeB\035\n\033_days_since_noncur" - + "rent_time\0328\n\007Logging\022\022\n\nlog_bucket\030\001 \001(\t" - + "\022\031\n\021log_object_prefix\030\002 \001(\t\032\217\001\n\017Retentio" - + "nPolicy\0222\n\016effective_time\030\001 \001(\0132\032.google" - + ".protobuf.Timestamp\022\021\n\tis_locked\030\002 \001(\010\0225" - + "\n\022retention_duration\030\004 \001(\0132\031.google.prot" - + "obuf.Duration\032\261\001\n\020SoftDeletePolicy\022:\n\022re" - + "tention_duration\030\001 \001(\0132\031.google.protobuf" - + ".DurationH\000\210\001\001\0227\n\016effective_time\030\002 \001(\0132\032" - + ".google.protobuf.TimestampH\001\210\001\001B\025\n\023_rete" - + "ntion_durationB\021\n\017_effective_time\032\035\n\nVer" - + "sioning\022\017\n\007enabled\030\001 \001(\010\032;\n\007Website\022\030\n\020m" - + "ain_page_suffix\030\001 \001(\t\022\026\n\016not_found_page\030" - + "\002 \001(\t\032/\n\025CustomPlacementConfig\022\026\n\016data_l" - + "ocations\030\001 \003(\t\032\215\002\n\tAutoclass\022\017\n\007enabled\030" - + "\001 \001(\010\0225\n\013toggle_time\030\002 \001(\0132\032.google.prot" - + "obuf.TimestampB\004\342A\001\003\022#\n\026terminal_storage" - + "_class\030\003 \001(\tH\000\210\001\001\022Q\n\"terminal_storage_cl" - + "ass_update_time\030\004 \001(\0132\032.google.protobuf." - + "TimestampB\004\342A\001\003H\001\210\001\001B\031\n\027_terminal_storag" - + "e_classB%\n#_terminal_storage_class_updat" - + "e_time\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:G\352AD\n\035storage.googleapis.c" - + "om/Bucket\022#projects/{project}/buckets/{b" - + "ucket}\"\317\001\n\023BucketAccessControl\022\014\n\004role\030\001" - + " \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n\006entity\030\003 \001(\t\022\030\n\nenti" - + "ty_alt\030\t \001(\tB\004\342A\001\003\022\021\n\tentity_id\030\004 \001(\t\022\014\n" - + "\004etag\030\010 \001(\t\022\r\n\005email\030\005 \001(\t\022\016\n\006domain\030\006 \001" - + "(\t\0224\n\014project_team\030\007 \001(\0132\036.google.storag" - + "e.v2.ProjectTeam\"J\n\017ChecksummedData\022\027\n\007c" - + "ontent\030\001 \001(\014B\006\010\001\342A\001\001\022\023\n\006crc32c\030\002 \001(\007H\000\210\001" - + "\001B\t\n\007_crc32c\"C\n\017ObjectChecksums\022\023\n\006crc32" - + "c\030\001 \001(\007H\000\210\001\001\022\020\n\010md5_hash\030\002 \001(\014B\t\n\007_crc32" - + "c\"\263\002\n\017HmacKeyMetadata\022\020\n\002id\030\001 \001(\tB\004\342A\001\005\022" - + "\027\n\taccess_id\030\002 \001(\tB\004\342A\001\005\022E\n\007project\030\003 \001(" - + "\tB4\342A\001\005\372A-\n+cloudresourcemanager.googlea" - + "pis.com/Project\022#\n\025service_account_email" - + "\030\004 \001(\tB\004\342A\001\003\022\r\n\005state\030\005 \001(\t\0225\n\013create_ti", - "me\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A" - + "\001\003\0225\n\013update_time\030\007 \001(\0132\032.google.protobu" - + "f.TimestampB\004\342A\001\003\022\014\n\004etag\030\010 \001(\t\"\252\003\n\022Noti" - + "ficationConfig\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\023\n\005to" - + "pic\030\002 \001(\tB\004\342A\001\002\022\014\n\004etag\030\007 \001(\t\022\023\n\013event_t" - + "ypes\030\003 \003(\t\022V\n\021custom_attributes\030\004 \003(\0132;." - + "google.storage.v2.NotificationConfig.Cus" - + "tomAttributesEntry\022\032\n\022object_name_prefix" - + "\030\005 \001(\t\022\034\n\016payload_format\030\006 \001(\tB\004\342A\001\002\0327\n\025" - + "CustomAttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:}\352Az\n)storage.googleapis.c" - + "om/NotificationConfig\022Mprojects/{project" - + "}/buckets/{bucket}/notificationConfigs/{" - + "notification_config}\"L\n\022CustomerEncrypti" - + "on\022\034\n\024encryption_algorithm\030\001 \001(\t\022\030\n\020key_" - + "sha256_bytes\030\003 \001(\014\"\216\t\n\006Object\022\022\n\004name\030\001 " - + "\001(\tB\004\342A\001\005\0226\n\006bucket\030\002 \001(\tB&\342A\001\005\372A\037\n\035stor" - + "age.googleapis.com/Bucket\022\014\n\004etag\030\033 \001(\t\022" - + "\030\n\ngeneration\030\003 \001(\003B\004\342A\001\005\022\034\n\016metagenerat" - + "ion\030\004 \001(\003B\004\342A\001\003\022\025\n\rstorage_class\030\005 \001(\t\022\022" - + "\n\004size\030\006 \001(\003B\004\342A\001\003\022\030\n\020content_encoding\030\007" - + " \001(\t\022\033\n\023content_disposition\030\010 \001(\t\022\025\n\rcac" - + "he_control\030\t \001(\t\0223\n\003acl\030\n \003(\0132&.google.s" - + "torage.v2.ObjectAccessControl\022\030\n\020content" - + "_language\030\013 \001(\t\0225\n\013delete_time\030\014 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\004\342A\001\003\022\024\n\014conten" - + "t_type\030\r \001(\t\0225\n\013create_time\030\016 \001(\0132\032.goog" - + "le.protobuf.TimestampB\004\342A\001\003\022\035\n\017component" - + "_count\030\017 \001(\005B\004\342A\001\003\022;\n\tchecksums\030\020 \001(\0132\"." - + "google.storage.v2.ObjectChecksumsB\004\342A\001\003\022" - + "5\n\013update_time\030\021 \001(\0132\032.google.protobuf.T" - + "imestampB\004\342A\001\003\0227\n\007kms_key\030\022 \001(\tB&\372A#\n!cl" - + "oudkms.googleapis.com/CryptoKey\022C\n\031updat" - + "e_storage_class_time\030\023 \001(\0132\032.google.prot" - + "obuf.TimestampB\004\342A\001\003\022\026\n\016temporary_hold\030\024" - + " \001(\010\0229\n\025retention_expire_time\030\025 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\0229\n\010metadata\030\026 \003(" - + "\0132\'.google.storage.v2.Object.MetadataEnt" - + "ry\022\035\n\020event_based_hold\030\027 \001(\010H\000\210\001\001\022-\n\005own" - + "er\030\030 \001(\0132\030.google.storage.v2.OwnerB\004\342A\001\003" - + "\022B\n\023customer_encryption\030\031 \001(\0132%.google.s" - + "torage.v2.CustomerEncryption\022/\n\013custom_t" - + "ime\030\032 \001(\0132\032.google.protobuf.Timestamp\032/\n" - + "\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001B\023\n\021_event_based_hold\"\317\001\n\023ObjectAc" - + "cessControl\022\014\n\004role\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n" - + "\006entity\030\003 \001(\t\022\030\n\nentity_alt\030\t \001(\tB\004\342A\001\003\022" - + "\021\n\tentity_id\030\004 \001(\t\022\014\n\004etag\030\010 \001(\t\022\r\n\005emai" - + "l\030\005 \001(\t\022\016\n\006domain\030\006 \001(\t\0224\n\014project_team\030" - + "\007 \001(\0132\036.google.storage.v2.ProjectTeam\"l\n" - + "\023ListObjectsResponse\022*\n\007objects\030\001 \003(\0132\031." - + "google.storage.v2.Object\022\020\n\010prefixes\030\002 \003" - + "(\t\022\027\n\017next_page_token\030\003 \001(\t\"3\n\013ProjectTe" - + "am\022\026\n\016project_number\030\001 \001(\t\022\014\n\004team\030\002 \001(\t" - + "\"\'\n\016ServiceAccount\022\025\n\remail_address\030\001 \001(" - + "\t\"*\n\005Owner\022\016\n\006entity\030\001 \001(\t\022\021\n\tentity_id\030" - + "\002 \001(\t\"C\n\014ContentRange\022\r\n\005start\030\001 \001(\003\022\013\n\003" - + "end\030\002 \001(\003\022\027\n\017complete_length\030\003 \001(\0032\230(\n\007S" - + "torage\022r\n\014DeleteBucket\022&.google.storage." - + "v2.DeleteBucketRequest\032\026.google.protobuf" - + ".Empty\"\"\332A\004name\212\323\344\223\002\025\022\023\n\004name\022\013{bucket=*" - + "*}\022o\n\tGetBucket\022#.google.storage.v2.GetB" - + "ucketRequest\032\031.google.storage.v2.Bucket\"" - + "\"\332A\004name\212\323\344\223\002\025\022\023\n\004name\022\013{bucket=**}\022\253\001\n\014" - + "CreateBucket\022&.google.storage.v2.CreateB" - + "ucketRequest\032\031.google.storage.v2.Bucket\"" - + "X\332A\027parent,bucket,bucket_id\212\323\344\223\0028\022\026\n\006par" - + "ent\022\014{project=**}\022\036\n\016bucket.project\022\014{pr" - + "oject=**}\022\205\001\n\013ListBuckets\022%.google.stora" - + "ge.v2.ListBucketsRequest\032&.google.storag" - + "e.v2.ListBucketsResponse\"\'\332A\006parent\212\323\344\223\002" - + "\030\022\026\n\006parent\022\014{project=**}\022\223\001\n\031LockBucket" - + "RetentionPolicy\0223.google.storage.v2.Lock" - + "BucketRetentionPolicyRequest\032\031.google.st" - + "orage.v2.Bucket\"&\332A\006bucket\212\323\344\223\002\027\022\025\n\006buck" - + "et\022\013{bucket=**}\022\253\001\n\014GetIamPolicy\022\".googl" - + "e.iam.v1.GetIamPolicyRequest\032\025.google.ia" - + "m.v1.Policy\"`\332A\010resource\212\323\344\223\002O\022\027\n\010resour" - + "ce\022\013{bucket=**}\0224\n\010resource\022({bucket=pro" - + "jects/*/buckets/*}/objects/**\022\262\001\n\014SetIam" - + "Policy\022\".google.iam.v1.SetIamPolicyReque" - + "st\032\025.google.iam.v1.Policy\"g\332A\017resource,p" - + "olicy\212\323\344\223\002O\022\027\n\010resource\022\013{bucket=**}\0224\n\010" - + "resource\022({bucket=projects/*/buckets/*}/" - + "objects/**\022\327\001\n\022TestIamPermissions\022(.goog" - + "le.iam.v1.TestIamPermissionsRequest\032).go" - + "ogle.iam.v1.TestIamPermissionsResponse\"l" - + "\332A\024resource,permissions\212\323\344\223\002O\022\027\n\010resourc" - + "e\022\013{bucket=**}\0224\n\010resource\022({bucket=proj" - + "ects/*/buckets/*}/objects/**\022\212\001\n\014UpdateB" - + "ucket\022&.google.storage.v2.UpdateBucketRe" - + "quest\032\031.google.storage.v2.Bucket\"7\332A\022buc" - + "ket,update_mask\212\323\344\223\002\034\022\032\n\013bucket.name\022\013{b" - + "ucket=**}\022\237\001\n\030DeleteNotificationConfig\0222" - + ".google.storage.v2.DeleteNotificationCon" - + "figRequest\032\026.google.protobuf.Empty\"7\332A\004n" - + "ame\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/*/bu" - + "ckets/*}/**\022\250\001\n\025GetNotificationConfig\022/." - + "google.storage.v2.GetNotificationConfigR" - + "equest\032%.google.storage.v2.NotificationC" - + "onfig\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=pr" - + "ojects/*/buckets/*}/**\022\261\001\n\030CreateNotific" - + "ationConfig\0222.google.storage.v2.CreateNo" - + "tificationConfigRequest\032%.google.storage" - + ".v2.NotificationConfig\":\332A\032parent,notifi" - + "cation_config\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=*" - + "*}\022\250\001\n\027ListNotificationConfigs\0221.google." - + "storage.v2.ListNotificationConfigsReques" - + "t\0322.google.storage.v2.ListNotificationCo" - + "nfigsResponse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006parent" - + "\022\013{bucket=**}\022~\n\rComposeObject\022\'.google." - + "storage.v2.ComposeObjectRequest\032\031.google" - + ".storage.v2.Object\")\212\323\344\223\002#\022!\n\022destinatio" - + "n.bucket\022\013{bucket=**}\022\230\001\n\014DeleteObject\022&" - + ".google.storage.v2.DeleteObjectRequest\032\026" - + ".google.protobuf.Empty\"H\332A\rbucket,object" - + "\332A\030bucket,object,generation\212\323\344\223\002\027\022\025\n\006buc" - + "ket\022\013{bucket=**}\022\215\001\n\rRestoreObject\022\'.goo" - + "gle.storage.v2.RestoreObjectRequest\032\031.go" - + "ogle.storage.v2.Object\"8\332A\030bucket,object" - + ",generation\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}" - + "\022\272\001\n\024CancelResumableWrite\022..google.stora" - + "ge.v2.CancelResumableWriteRequest\032/.goog" - + "le.storage.v2.CancelResumableWriteRespon" - + "se\"A\332A\tupload_id\212\323\344\223\002/\022-\n\tupload_id\022 {bu" - + "cket=projects/*/buckets/*}/**\022\225\001\n\tGetObj" - + "ect\022#.google.storage.v2.GetObjectRequest" - + "\032\031.google.storage.v2.Object\"H\332A\rbucket,o" - + "bject\332A\030bucket,object,generation\212\323\344\223\002\027\022\025" - + "\n\006bucket\022\013{bucket=**}\022\245\001\n\nReadObject\022$.g" - + "oogle.storage.v2.ReadObjectRequest\032%.goo" - + "gle.storage.v2.ReadObjectResponse\"H\332A\rbu" - + "cket,object\332A\030bucket,object,generation\212\323" - + "\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}0\001\022\214\001\n\014Update" - + "Object\022&.google.storage.v2.UpdateObjectR" - + "equest\032\031.google.storage.v2.Object\"9\332A\022ob" - + "ject,update_mask\212\323\344\223\002\036\022\034\n\robject.bucket\022" - + "\013{bucket=**}\022`\n\013WriteObject\022%.google.sto" - + "rage.v2.WriteObjectRequest\032&.google.stor" - + "age.v2.WriteObjectResponse\"\000(\001\022n\n\017BidiWr" - + "iteObject\022).google.storage.v2.BidiWriteO" - + "bjectRequest\032*.google.storage.v2.BidiWri" - + "teObjectResponse\"\000(\0010\001\022\204\001\n\013ListObjects\022%" - + ".google.storage.v2.ListObjectsRequest\032&." - + "google.storage.v2.ListObjectsResponse\"&\332" - + "A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\230\001" - + "\n\rRewriteObject\022\'.google.storage.v2.Rewr" - + "iteObjectRequest\032\".google.storage.v2.Rew" - + "riteResponse\":\212\323\344\223\0024\022\017\n\rsource_bucket\022!\n" - + "\022destination_bucket\022\013{bucket=**}\022\256\001\n\023Sta" - + "rtResumableWrite\022-.google.storage.v2.Sta" - + "rtResumableWriteRequest\032..google.storage" - + ".v2.StartResumableWriteResponse\"8\212\323\344\223\0022\022" - + "0\n!write_object_spec.resource.bucket\022\013{b" - + "ucket=**}\022\256\001\n\020QueryWriteStatus\022*.google." - + "storage.v2.QueryWriteStatusRequest\032+.goo" - + "gle.storage.v2.QueryWriteStatusResponse\"" - + "A\332A\tupload_id\212\323\344\223\002/\022-\n\tupload_id\022 {bucke" - + "t=projects/*/buckets/*}/**\022\200\001\n\021GetServic" - + "eAccount\022+.google.storage.v2.GetServiceA" - + "ccountRequest\032!.google.storage.v2.Servic" - + "eAccount\"\033\332A\007project\212\323\344\223\002\013\022\t\n\007project\022\225\001" - + "\n\rCreateHmacKey\022\'.google.storage.v2.Crea" - + "teHmacKeyRequest\032(.google.storage.v2.Cre" - + "ateHmacKeyResponse\"1\332A\035project,service_a" - + "ccount_email\212\323\344\223\002\013\022\t\n\007project\022w\n\rDeleteH" - + "macKey\022\'.google.storage.v2.DeleteHmacKey" - + "Request\032\026.google.protobuf.Empty\"%\332A\021acce" - + "ss_id,project\212\323\344\223\002\013\022\t\n\007project\022}\n\nGetHma" - + "cKey\022$.google.storage.v2.GetHmacKeyReque" - + "st\032\".google.storage.v2.HmacKeyMetadata\"%" - + "\332A\021access_id,project\212\323\344\223\002\013\022\t\n\007project\022|\n" - + "\014ListHmacKeys\022&.google.storage.v2.ListHm" - + "acKeysRequest\032\'.google.storage.v2.ListHm" - + "acKeysResponse\"\033\332A\007project\212\323\344\223\002\013\022\t\n\007proj" - + "ect\022\235\001\n\rUpdateHmacKey\022\'.google.storage.v" - + "2.UpdateHmacKeyRequest\032\".google.storage." - + "v2.HmacKeyMetadata\"?\332A\024hmac_key,update_m" - + "ask\212\323\344\223\002\"\022 \n\020hmac_key.project\022\014{project=" - + "**}\032\247\002\312A\026storage.googleapis.com\322A\212\002https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m,https://www.googleapis.com/auth/cloud-" - + "platform.read-only,https://www.googleapi" - + "s.com/auth/devstorage.full_control,https" - + "://www.googleapis.com/auth/devstorage.re" - + "ad_only,https://www.googleapis.com/auth/" - + "devstorage.read_writeB\342\001\n\025com.google.sto" - + "rage.v2B\014StorageProtoP\001Z>cloud.google.co" - + "m/go/storage/internal/apiv2/storagepb;st" - + "oragepb\352Ax\n!cloudkms.googleapis.com/Cryp" - + "toKey\022Sprojects/{project}/locations/{loc" - + "ation}/keyRings/{key_ring}/cryptoKeys/{c" - + "rypto_key}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - }); - internal_static_google_storage_v2_DeleteBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteBucketRequest_descriptor, - new java.lang.String[] { - "Name", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - }); - internal_static_google_storage_v2_GetBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetBucketRequest_descriptor, - new java.lang.String[] { - "Name", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "ReadMask", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "ReadMask", - }); - internal_static_google_storage_v2_CreateBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateBucketRequest_descriptor, - new java.lang.String[] { - "Parent", "Bucket", "BucketId", "PredefinedAcl", "PredefinedDefaultObjectAcl", - }); - internal_static_google_storage_v2_ListBucketsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListBucketsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Prefix", "ReadMask", "ReadMask", - }); - internal_static_google_storage_v2_ListBucketsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListBucketsResponse_descriptor, - new java.lang.String[] { - "Buckets", "NextPageToken", - }); - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor, - new java.lang.String[] { - "Bucket", "IfMetagenerationMatch", - }); - internal_static_google_storage_v2_UpdateBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_UpdateBucketRequest_descriptor, - new java.lang.String[] { - "Bucket", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "PredefinedAcl", - "PredefinedDefaultObjectAcl", - "UpdateMask", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - }); - internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "NotificationConfig", - }); - internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor, - new java.lang.String[] { - "NotificationConfigs", "NextPageToken", - }); - internal_static_google_storage_v2_ComposeObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ComposeObjectRequest_descriptor, - new java.lang.String[] { - "Destination", - "SourceObjects", - "DestinationPredefinedAcl", - "IfGenerationMatch", - "IfMetagenerationMatch", - "KmsKey", - "CommonObjectRequestParams", - "ObjectChecksums", - "IfGenerationMatch", - "IfMetagenerationMatch", - }); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor = - internal_static_google_storage_v2_ComposeObjectRequest_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor, - new java.lang.String[] { - "Name", "Generation", "ObjectPreconditions", - }); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor = - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor - .getNestedTypes() - .get(0); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor, - new java.lang.String[] { - "IfGenerationMatch", "IfGenerationMatch", - }); - internal_static_google_storage_v2_DeleteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteObjectRequest_descriptor, - new java.lang.String[] { - "Bucket", - "Object", - "Generation", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "CommonObjectRequestParams", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - }); - internal_static_google_storage_v2_RestoreObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_RestoreObjectRequest_descriptor, - new java.lang.String[] { - "Bucket", - "Object", - "Generation", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "CopySourceAcl", - "CommonObjectRequestParams", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "CopySourceAcl", - }); - internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor, - new java.lang.String[] { - "UploadId", - }); - internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_storage_v2_ReadObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ReadObjectRequest_descriptor, - new java.lang.String[] { - "Bucket", - "Object", - "Generation", - "ReadOffset", - "ReadLimit", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "CommonObjectRequestParams", - "ReadMask", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "ReadMask", - }); - internal_static_google_storage_v2_GetObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetObjectRequest_descriptor, - new java.lang.String[] { - "Bucket", - "Object", - "Generation", - "SoftDeleted", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "CommonObjectRequestParams", - "ReadMask", - "SoftDeleted", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "ReadMask", - }); - internal_static_google_storage_v2_ReadObjectResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ReadObjectResponse_descriptor, - new java.lang.String[] { - "ChecksummedData", "ObjectChecksums", "ContentRange", "Metadata", - }); - internal_static_google_storage_v2_WriteObjectSpec_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_WriteObjectSpec_descriptor, - new java.lang.String[] { - "Resource", - "PredefinedAcl", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "ObjectSize", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "ObjectSize", - }); - internal_static_google_storage_v2_WriteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_WriteObjectRequest_descriptor, - new java.lang.String[] { - "UploadId", - "WriteObjectSpec", - "WriteOffset", - "ChecksummedData", - "ObjectChecksums", - "FinishWrite", - "CommonObjectRequestParams", - "FirstMessage", - "Data", - }); - internal_static_google_storage_v2_WriteObjectResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_WriteObjectResponse_descriptor, - new java.lang.String[] { - "PersistedSize", "Resource", "WriteStatus", - }); - internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor, - new java.lang.String[] { - "UploadId", - "WriteObjectSpec", - "WriteOffset", - "ChecksummedData", - "ObjectChecksums", - "StateLookup", - "Flush", - "FinishWrite", - "CommonObjectRequestParams", - "FirstMessage", - "Data", - }); - internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor, - new java.lang.String[] { - "PersistedSize", "Resource", "WriteStatus", - }); - internal_static_google_storage_v2_ListObjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListObjectsRequest_descriptor, - new java.lang.String[] { - "Parent", - "PageSize", - "PageToken", - "Delimiter", - "IncludeTrailingDelimiter", - "Prefix", - "Versions", - "ReadMask", - "LexicographicStart", - "LexicographicEnd", - "SoftDeleted", - "MatchGlob", - "ReadMask", - }); - internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor, - new java.lang.String[] { - "UploadId", "CommonObjectRequestParams", - }); - internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor, - new java.lang.String[] { - "PersistedSize", "Resource", "WriteStatus", - }); - internal_static_google_storage_v2_RewriteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_RewriteObjectRequest_descriptor, - new java.lang.String[] { - "DestinationName", - "DestinationBucket", - "DestinationKmsKey", - "Destination", - "SourceBucket", - "SourceObject", - "SourceGeneration", - "RewriteToken", - "DestinationPredefinedAcl", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "IfSourceGenerationMatch", - "IfSourceGenerationNotMatch", - "IfSourceMetagenerationMatch", - "IfSourceMetagenerationNotMatch", - "MaxBytesRewrittenPerCall", - "CopySourceEncryptionAlgorithm", - "CopySourceEncryptionKeyBytes", - "CopySourceEncryptionKeySha256Bytes", - "CommonObjectRequestParams", - "ObjectChecksums", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "IfSourceGenerationMatch", - "IfSourceGenerationNotMatch", - "IfSourceMetagenerationMatch", - "IfSourceMetagenerationNotMatch", - }); - internal_static_google_storage_v2_RewriteResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_RewriteResponse_descriptor, - new java.lang.String[] { - "TotalBytesRewritten", "ObjectSize", "Done", "RewriteToken", "Resource", - }); - internal_static_google_storage_v2_StartResumableWriteRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_StartResumableWriteRequest_descriptor, - new java.lang.String[] { - "WriteObjectSpec", "CommonObjectRequestParams", "ObjectChecksums", - }); - internal_static_google_storage_v2_StartResumableWriteResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_StartResumableWriteResponse_descriptor, - new java.lang.String[] { - "UploadId", - }); - internal_static_google_storage_v2_UpdateObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_UpdateObjectRequest_descriptor, - new java.lang.String[] { - "Object", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "PredefinedAcl", - "UpdateMask", - "CommonObjectRequestParams", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - }); - internal_static_google_storage_v2_GetServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetServiceAccountRequest_descriptor, - new java.lang.String[] { - "Project", - }); - internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor, - new java.lang.String[] { - "Project", "ServiceAccountEmail", - }); - internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor, - new java.lang.String[] { - "Metadata", "SecretKeyBytes", - }); - internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor, - new java.lang.String[] { - "AccessId", "Project", - }); - internal_static_google_storage_v2_GetHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetHmacKeyRequest_descriptor, - new java.lang.String[] { - "AccessId", "Project", - }); - internal_static_google_storage_v2_ListHmacKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListHmacKeysRequest_descriptor, - new java.lang.String[] { - "Project", "PageSize", "PageToken", "ServiceAccountEmail", "ShowDeletedKeys", - }); - internal_static_google_storage_v2_ListHmacKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListHmacKeysResponse_descriptor, - new java.lang.String[] { - "HmacKeys", "NextPageToken", - }); - internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor, - new java.lang.String[] { - "HmacKey", "UpdateMask", - }); - internal_static_google_storage_v2_CommonObjectRequestParams_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CommonObjectRequestParams_descriptor, - new java.lang.String[] { - "EncryptionAlgorithm", "EncryptionKeyBytes", "EncryptionKeySha256Bytes", - }); - internal_static_google_storage_v2_ServiceConstants_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ServiceConstants_descriptor, - new java.lang.String[] {}); - internal_static_google_storage_v2_Bucket_descriptor = getDescriptor().getMessageTypes().get(43); - internal_static_google_storage_v2_Bucket_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_descriptor, - new java.lang.String[] { - "Name", - "BucketId", - "Etag", - "Project", - "Metageneration", - "Location", - "LocationType", - "StorageClass", - "Rpo", - "Acl", - "DefaultObjectAcl", - "Lifecycle", - "CreateTime", - "Cors", - "UpdateTime", - "DefaultEventBasedHold", - "Labels", - "Website", - "Versioning", - "Logging", - "Owner", - "Encryption", - "Billing", - "RetentionPolicy", - "IamConfig", - "SatisfiesPzs", - "CustomPlacementConfig", - "Autoclass", - "SoftDeletePolicy", - }); - internal_static_google_storage_v2_Bucket_Billing_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Billing_descriptor, - new java.lang.String[] { - "RequesterPays", - }); - internal_static_google_storage_v2_Bucket_Cors_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(1); - internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Cors_descriptor, - new java.lang.String[] { - "Origin", "Method", "ResponseHeader", "MaxAgeSeconds", - }); - internal_static_google_storage_v2_Bucket_Encryption_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(2); - internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Encryption_descriptor, - new java.lang.String[] { - "DefaultKmsKey", - }); - internal_static_google_storage_v2_Bucket_IamConfig_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(3); - internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_IamConfig_descriptor, - new java.lang.String[] { - "UniformBucketLevelAccess", "PublicAccessPrevention", - }); - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor = - internal_static_google_storage_v2_Bucket_IamConfig_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor, - new java.lang.String[] { - "Enabled", "LockTime", - }); - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(4); - internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor, - new java.lang.String[] { - "Rule", - }); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor = - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor, - new java.lang.String[] { - "Action", "Condition", - }); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor = - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor, - new java.lang.String[] { - "Type", "StorageClass", - }); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor = - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(1); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor, - new java.lang.String[] { - "AgeDays", - "CreatedBefore", - "IsLive", - "NumNewerVersions", - "MatchesStorageClass", - "DaysSinceCustomTime", - "CustomTimeBefore", - "DaysSinceNoncurrentTime", - "NoncurrentTimeBefore", - "MatchesPrefix", - "MatchesSuffix", - "AgeDays", - "IsLive", - "NumNewerVersions", - "DaysSinceCustomTime", - "DaysSinceNoncurrentTime", - }); - internal_static_google_storage_v2_Bucket_Logging_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(5); - internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Logging_descriptor, - new java.lang.String[] { - "LogBucket", "LogObjectPrefix", - }); - internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(6); - internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor, - new java.lang.String[] { - "EffectiveTime", "IsLocked", "RetentionDuration", - }); - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(7); - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor, - new java.lang.String[] { - "RetentionDuration", "EffectiveTime", "RetentionDuration", "EffectiveTime", - }); - internal_static_google_storage_v2_Bucket_Versioning_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(8); - internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Versioning_descriptor, - new java.lang.String[] { - "Enabled", - }); - internal_static_google_storage_v2_Bucket_Website_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(9); - internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Website_descriptor, - new java.lang.String[] { - "MainPageSuffix", "NotFoundPage", - }); - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(10); - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor, - new java.lang.String[] { - "DataLocations", - }); - internal_static_google_storage_v2_Bucket_Autoclass_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(11); - internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Autoclass_descriptor, - new java.lang.String[] { - "Enabled", - "ToggleTime", - "TerminalStorageClass", - "TerminalStorageClassUpdateTime", - "TerminalStorageClass", - "TerminalStorageClassUpdateTime", - }); - internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(12); - internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_storage_v2_BucketAccessControl_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_BucketAccessControl_descriptor, - new java.lang.String[] { - "Role", - "Id", - "Entity", - "EntityAlt", - "EntityId", - "Etag", - "Email", - "Domain", - "ProjectTeam", - }); - internal_static_google_storage_v2_ChecksummedData_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ChecksummedData_descriptor, - new java.lang.String[] { - "Content", "Crc32C", "Crc32C", - }); - internal_static_google_storage_v2_ObjectChecksums_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ObjectChecksums_descriptor, - new java.lang.String[] { - "Crc32C", "Md5Hash", "Crc32C", - }); - internal_static_google_storage_v2_HmacKeyMetadata_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_HmacKeyMetadata_descriptor, - new java.lang.String[] { - "Id", - "AccessId", - "Project", - "ServiceAccountEmail", - "State", - "CreateTime", - "UpdateTime", - "Etag", - }); - internal_static_google_storage_v2_NotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_NotificationConfig_descriptor, - new java.lang.String[] { - "Name", - "Topic", - "Etag", - "EventTypes", - "CustomAttributes", - "ObjectNamePrefix", - "PayloadFormat", - }); - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor = - internal_static_google_storage_v2_NotificationConfig_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_storage_v2_CustomerEncryption_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CustomerEncryption_descriptor, - new java.lang.String[] { - "EncryptionAlgorithm", "KeySha256Bytes", - }); - internal_static_google_storage_v2_Object_descriptor = getDescriptor().getMessageTypes().get(50); - internal_static_google_storage_v2_Object_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Object_descriptor, - new java.lang.String[] { - "Name", - "Bucket", - "Etag", - "Generation", - "Metageneration", - "StorageClass", - "Size", - "ContentEncoding", - "ContentDisposition", - "CacheControl", - "Acl", - "ContentLanguage", - "DeleteTime", - "ContentType", - "CreateTime", - "ComponentCount", - "Checksums", - "UpdateTime", - "KmsKey", - "UpdateStorageClassTime", - "TemporaryHold", - "RetentionExpireTime", - "Metadata", - "EventBasedHold", - "Owner", - "CustomerEncryption", - "CustomTime", - "EventBasedHold", - }); - internal_static_google_storage_v2_Object_MetadataEntry_descriptor = - internal_static_google_storage_v2_Object_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Object_MetadataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_storage_v2_ObjectAccessControl_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ObjectAccessControl_descriptor, - new java.lang.String[] { - "Role", - "Id", - "Entity", - "EntityAlt", - "EntityId", - "Etag", - "Email", - "Domain", - "ProjectTeam", - }); - internal_static_google_storage_v2_ListObjectsResponse_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListObjectsResponse_descriptor, - new java.lang.String[] { - "Objects", "Prefixes", "NextPageToken", - }); - internal_static_google_storage_v2_ProjectTeam_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ProjectTeam_descriptor, - new java.lang.String[] { - "ProjectNumber", "Team", - }); - internal_static_google_storage_v2_ServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ServiceAccount_descriptor, - new java.lang.String[] { - "EmailAddress", - }); - internal_static_google_storage_v2_Owner_descriptor = getDescriptor().getMessageTypes().get(55); - internal_static_google_storage_v2_Owner_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Owner_descriptor, - new java.lang.String[] { - "Entity", "EntityId", - }); - internal_static_google_storage_v2_ContentRange_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_google_storage_v2_ContentRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ContentRange_descriptor, - new java.lang.String[] { - "Start", "End", "CompleteLength", - }); - 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.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}