From 3a6da3766cb47ffba28cc723b8a39953a76117af Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 30 Mar 2023 01:15:40 +0000 Subject: [PATCH 1/2] docs: Updated ChecksummedData message definition to specify ctype=CORD, and removed incorrect earlier attempt that set that annotation in the ReadObjectResponse message definition docs: Clarified behavior of resumable upload cancellation PiperOrigin-RevId: 520467605 Source-Link: https://github.com/googleapis/googleapis/commit/ae0254f922eb6577bb0b5d54d4e1a7ac04ccfd2d Source-Link: https://github.com/googleapis/googleapis-gen/commit/9b05c311fb9086850234522ef6b5775490a87807 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWIwNWMzMTFmYjkwODY4NTAyMzQ1MjJlZjZiNTc3NTQ5MGE4NzgwNyJ9 --- .../com/google/storage/v2/StorageClient.java | 15 + .../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 | 1 + .../google/storage/v2/stub/StorageStub.java | 0 .../storage/v2/stub/StorageStubSettings.java | 0 .../com/google/storage/v2/gapic_metadata.json | 108 + .../com/google/storage/v2/MockStorage.java | 0 .../google/storage/v2/MockStorageImpl.java | 0 .../google/storage/v2/StorageClientTest.java | 0 .../com/google/storage/v2/StorageGrpc.java | 2801 ++--- .../java/com/google/storage/v2/Bucket.java | 9854 ++++++----------- .../storage/v2/BucketAccessControl.java | 922 +- .../v2/BucketAccessControlOrBuilder.java | 98 +- .../com/google/storage/v2/BucketName.java | 0 .../google/storage/v2/BucketOrBuilder.java | 314 +- .../v2/CancelResumableWriteRequest.java | 325 +- .../CancelResumableWriteRequestOrBuilder.java | 27 +- .../v2/CancelResumableWriteResponse.java | 251 +- ...CancelResumableWriteResponseOrBuilder.java | 9 + .../google/storage/v2/ChecksummedData.java | 322 +- .../storage/v2/ChecksummedDataOrBuilder.java | 29 +- .../storage/v2/CommonObjectRequestParams.java | 396 +- .../CommonObjectRequestParamsOrBuilder.java | 33 +- .../storage/v2/ComposeObjectRequest.java | 1994 ++-- .../v2/ComposeObjectRequestOrBuilder.java | 96 +- .../com/google/storage/v2/ContentRange.java | 350 +- .../storage/v2/ContentRangeOrBuilder.java | 27 +- .../storage/v2/CreateBucketRequest.java | 651 +- .../v2/CreateBucketRequestOrBuilder.java | 70 +- .../storage/v2/CreateHmacKeyRequest.java | 418 +- .../v2/CreateHmacKeyRequestOrBuilder.java | 44 +- .../storage/v2/CreateHmacKeyResponse.java | 376 +- .../v2/CreateHmacKeyResponseOrBuilder.java | 29 +- .../v2/CreateNotificationConfigRequest.java | 506 +- ...ateNotificationConfigRequestOrBuilder.java | 56 + .../com/google/storage/v2/CryptoKeyName.java | 0 .../google/storage/v2/CustomerEncryption.java | 348 +- .../v2/CustomerEncryptionOrBuilder.java | 30 +- .../storage/v2/DeleteBucketRequest.java | 430 +- .../v2/DeleteBucketRequestOrBuilder.java | 47 +- .../storage/v2/DeleteHmacKeyRequest.java | 418 +- .../v2/DeleteHmacKeyRequestOrBuilder.java | 44 +- .../v2/DeleteNotificationConfigRequest.java | 359 +- ...eteNotificationConfigRequestOrBuilder.java | 29 + .../storage/v2/DeleteObjectRequest.java | 739 +- .../v2/DeleteObjectRequestOrBuilder.java | 79 +- .../google/storage/v2/GetBucketRequest.java | 505 +- .../storage/v2/GetBucketRequestOrBuilder.java | 55 +- .../google/storage/v2/GetHmacKeyRequest.java | 415 +- .../v2/GetHmacKeyRequestOrBuilder.java | 44 +- .../v2/GetNotificationConfigRequest.java | 353 +- ...GetNotificationConfigRequestOrBuilder.java | 33 + .../google/storage/v2/GetObjectRequest.java | 814 +- .../storage/v2/GetObjectRequestOrBuilder.java | 87 +- .../storage/v2/GetServiceAccountRequest.java | 346 +- .../v2/GetServiceAccountRequestOrBuilder.java | 31 + .../google/storage/v2/HmacKeyMetadata.java | 970 +- .../storage/v2/HmacKeyMetadataOrBuilder.java | 114 +- .../google/storage/v2/ListBucketsRequest.java | 602 +- .../v2/ListBucketsRequestOrBuilder.java | 64 +- .../storage/v2/ListBucketsResponse.java | 480 +- .../v2/ListBucketsResponseOrBuilder.java | 46 +- .../storage/v2/ListHmacKeysRequest.java | 561 +- .../v2/ListHmacKeysRequestOrBuilder.java | 59 +- .../storage/v2/ListHmacKeysResponse.java | 475 +- .../v2/ListHmacKeysResponseOrBuilder.java | 45 +- .../v2/ListNotificationConfigsRequest.java | 461 +- ...stNotificationConfigsRequestOrBuilder.java | 47 +- .../v2/ListNotificationConfigsResponse.java | 470 +- ...tNotificationConfigsResponseOrBuilder.java | 45 +- .../google/storage/v2/ListObjectsRequest.java | 890 +- .../v2/ListObjectsRequestOrBuilder.java | 97 +- .../storage/v2/ListObjectsResponse.java | 581 +- .../v2/ListObjectsResponseOrBuilder.java | 64 +- .../v2/LockBucketRetentionPolicyRequest.java | 395 +- ...BucketRetentionPolicyRequestOrBuilder.java | 40 + .../google/storage/v2/NotificationConfig.java | 937 +- .../storage/v2/NotificationConfigName.java | 0 .../v2/NotificationConfigOrBuilder.java | 111 +- .../java/com/google/storage/v2/Object.java | 2724 ++--- .../storage/v2/ObjectAccessControl.java | 922 +- .../v2/ObjectAccessControlOrBuilder.java | 98 +- .../google/storage/v2/ObjectChecksums.java | 314 +- .../storage/v2/ObjectChecksumsOrBuilder.java | 27 +- .../google/storage/v2/ObjectOrBuilder.java | 308 +- .../java/com/google/storage/v2/Owner.java | 368 +- .../com/google/storage/v2/OwnerOrBuilder.java | 36 +- .../com/google/storage/v2/ProjectName.java | 0 .../com/google/storage/v2/ProjectTeam.java | 383 +- .../storage/v2/ProjectTeamOrBuilder.java | 36 +- .../storage/v2/QueryWriteStatusRequest.java | 435 +- .../v2/QueryWriteStatusRequestOrBuilder.java | 35 +- .../storage/v2/QueryWriteStatusResponse.java | 440 +- .../v2/QueryWriteStatusResponseOrBuilder.java | 32 +- .../google/storage/v2/ReadObjectRequest.java | 890 +- .../v2/ReadObjectRequestOrBuilder.java | 93 +- .../google/storage/v2/ReadObjectResponse.java | 641 +- .../v2/ReadObjectResponseOrBuilder.java | 56 +- .../storage/v2/RewriteObjectRequest.java | 1722 +-- .../v2/RewriteObjectRequestOrBuilder.java | 198 +- .../google/storage/v2/RewriteResponse.java | 505 +- .../storage/v2/RewriteResponseOrBuilder.java | 44 +- .../com/google/storage/v2/ServiceAccount.java | 311 +- .../storage/v2/ServiceAccountOrBuilder.java | 29 + .../google/storage/v2/ServiceConstants.java | 421 +- .../storage/v2/ServiceConstantsOrBuilder.java | 9 + .../v2/StartResumableWriteRequest.java | 611 +- .../StartResumableWriteRequestOrBuilder.java | 54 +- .../v2/StartResumableWriteResponse.java | 325 +- .../StartResumableWriteResponseOrBuilder.java | 27 +- .../com/google/storage/v2/StorageProto.java | 1426 +++ .../storage/v2/UpdateBucketRequest.java | 686 +- .../v2/UpdateBucketRequestOrBuilder.java | 73 +- .../storage/v2/UpdateHmacKeyRequest.java | 475 +- .../v2/UpdateHmacKeyRequestOrBuilder.java | 46 +- .../storage/v2/UpdateObjectRequest.java | 811 +- .../v2/UpdateObjectRequestOrBuilder.java | 84 +- .../google/storage/v2/WriteObjectRequest.java | 882 +- .../v2/WriteObjectRequestOrBuilder.java | 68 +- .../storage/v2/WriteObjectResponse.java | 440 +- .../v2/WriteObjectResponseOrBuilder.java | 32 +- .../google/storage/v2/WriteObjectSpec.java | 634 +- .../storage/v2/WriteObjectSpecOrBuilder.java | 65 +- .../proto/google/storage/v2/storage.proto | 11 +- ...CancelResumableWriteResponseOrBuilder.java | 24 - ...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 | 1742 --- 136 files changed, 19526 insertions(+), 33355 deletions(-) rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StorageClient.java (99%) 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 (100%) 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 {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-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/Bucket.java (76%) 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 (88%) 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 (67%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java (51%) 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 (65%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java (52%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateBucketRequest.java (74%) 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 (67%) 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 (60%) 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 (67%) 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 (82%) 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 (69%) 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 (75%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java (80%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsResponse.java (73%) 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 (75%) 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 (85%) 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 (84%) 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 (65%) 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 (67%) 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 (68%) 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 (77%) 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 (75%) 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-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/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/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 99% 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 12097b0bb0..968772fdb4 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 @@ -2200,6 +2200,11 @@ public final UnaryCallable deleteObjectCallable() { /** * 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. + * *

Sample code: * *

{@code
@@ -2228,6 +2233,11 @@ public final CancelResumableWriteResponse cancelResumableWrite(String uploadId)
   /**
    * 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. + * *

Sample code: * *

{@code
@@ -2255,6 +2265,11 @@ public final CancelResumableWriteResponse 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. + * *

Sample code: * *

{@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 74ff9b61d3..ab1fe71faa 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 bf3d106405..ba739d354b 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
@@ -84,6 +84,7 @@
 import io.grpc.MethodDescriptor;
 import io.grpc.protobuf.ProtoUtils;
 import java.io.IOException;
+import java.util.Map;
 import java.util.concurrent.TimeUnit;
 import javax.annotation.Generated;
 
diff --git a/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 100%
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
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..830838b068
--- /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,108 @@
+{
+  "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": {
+            "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"]
+            },
+            "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/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 d837bfde0e..1acc947b81 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT 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,1310 +35,981 @@ private StorageGrpc() {}
   public static final 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.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.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
@@ -1380,77 +1034,56 @@ 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.
      * The `resource` field in the request should be
@@ -1458,16 +1091,12 @@ default void lockBucketRetentionPolicy(
      * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
      * 
*/ - 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.
      * The `resource` field in the request should be
@@ -1475,16 +1104,12 @@ default void getIamPolicy(
      * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
      * 
*/ - 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.
@@ -1493,59 +1118,42 @@ default void setIamPolicy(
      * projects/_/buckets/<bucket_name>/objects/<object_name> 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
@@ -1553,46 +1161,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
@@ -1601,72 +1196,58 @@ 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); } /** - * - * *
      * 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.
      * 
*/ - 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
@@ -1721,59 +1302,43 @@ 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);
     }
 
     /**
-     *
-     *
      * 
      * 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.
@@ -1788,101 +1353,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
@@ -1904,17 +1442,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
@@ -1936,97 +1473,75 @@ 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.
      * The `resource` field in the request should be
@@ -2034,18 +1549,13 @@ public void lockBucketRetentionPolicy(
      * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
      * 
*/ - 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.
      * The `resource` field in the request should be
@@ -2053,18 +1563,13 @@ public void getIamPolicy(
      * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
      * 
*/ - 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.
@@ -2073,67 +1578,46 @@ public void setIamPolicy(
      * projects/_/buckets/<bucket_name>/objects/<object_name> 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
@@ -2141,52 +1625,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
@@ -2195,80 +1663,63 @@ 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); } /** - * - * *
      * 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.
      * 
*/ - 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
@@ -2328,60 +1779,42 @@ public io.grpc.stub.StreamObserver wri
     }
 
     /**
-     *
-     *
      * 
      * 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.
@@ -2396,114 +1829,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
@@ -2527,31 +1927,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.
      * 
@@ -2562,47 +1959,36 @@ 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.
      * The `resource` field in the request should be
@@ -2616,8 +2002,6 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
     }
 
     /**
-     *
-     *
      * 
      * Updates an IAM policy for the specified bucket or object.
      * The `resource` field in the request should be
@@ -2631,8 +2015,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.
@@ -2641,54 +2023,42 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
      * projects/_/buckets/<bucket_name>/objects/<object_name> 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
@@ -2696,42 +2066,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
@@ -2740,28 +2101,27 @@ 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); } /** - * - * *
      * 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.
      * 
*/ - 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.
      * 
@@ -2772,8 +2132,6 @@ public com.google.storage.v2.Object getObject(com.google.storage.v2.GetObjectReq } /** - * - * *
      * Reads an object's data.
      * 
@@ -2785,64 +2143,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.
@@ -2857,86 +2201,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); } @@ -2944,7 +2269,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
@@ -2968,84 +2292,73 @@ 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.
      * The `resource` field in the request should be
@@ -3053,15 +2366,13 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
      * 
*/ - 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.
      * The `resource` field in the request should be
@@ -3069,15 +2380,13 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
      * 
*/ - 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.
@@ -3086,56 +2395,46 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * projects/_/buckets/<bucket_name>/objects/<object_name> 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
@@ -3143,44 +2442,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
@@ -3189,100 +2480,88 @@ 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); } /** - * - * *
      * 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.
      * 
*/ - 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.
@@ -3297,89 +2576,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); } @@ -3416,11 +2680,11 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c private static final int METHODID_UPDATE_HMAC_KEY = 28; private static final int METHODID_WRITE_OBJECT = 29; - 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; @@ -3434,164 +2698,120 @@ 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_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(); @@ -3604,10 +2824,8 @@ 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); default: throw new AssertionError(); } @@ -3617,197 +2835,220 @@ 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( - 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( - 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 @@ -3821,11 +3062,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 String methodName; @@ -3847,41 +3090,39 @@ 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(getCancelResumableWriteMethod()) - .addMethod(getGetObjectMethod()) - .addMethod(getReadObjectMethod()) - .addMethod(getUpdateObjectMethod()) - .addMethod(getWriteObjectMethod()) - .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(getCancelResumableWriteMethod()) + .addMethod(getGetObjectMethod()) + .addMethod(getReadObjectMethod()) + .addMethod(getUpdateObjectMethod()) + .addMethod(getWriteObjectMethod()) + .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-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 76% 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 5af764aade..2b18b8e326 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,115 +35,107 @@ private Bucket() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Bucket(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + 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.MapField internalGetMapField( + 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -170,7 +144,6 @@ public boolean getRequesterPays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,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 (requesterPays_ != false) { output.writeBool(1, requesterPays_); } @@ -196,7 +170,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; @@ -206,14 +181,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; } @@ -226,100 +202,95 @@ 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 @@ -329,41 +300,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(); @@ -373,9 +342,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 @@ -394,11 +363,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; } @@ -414,41 +380,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; @@ -486,19 +449,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) { @@ -508,19 +469,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 @@ -528,33 +485,27 @@ 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. */ public Builder setRequesterPays(boolean value) { - + requesterPays_ = value; bitField0_ |= 0x00000001; onChanged(); 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() { @@ -563,7 +514,6 @@ public Builder clearRequesterPays() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -576,12 +526,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(); } @@ -590,28 +540,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; @@ -626,16 +575,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.
@@ -643,13 +590,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.
@@ -657,13 +602,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.
@@ -671,14 +613,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.
@@ -686,15 +625,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
@@ -702,13 +639,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
@@ -716,13 +651,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
@@ -730,14 +662,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
@@ -745,15 +674,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
@@ -761,13 +688,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
@@ -775,13 +700,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
@@ -789,14 +711,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
@@ -804,15 +723,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
@@ -820,14 +737,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
@@ -837,16 +751,15 @@ 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.EMPTY;
       method_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -855,37 +768,33 @@ private Cors() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Cors();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.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.LazyStringList origin_;
     /**
-     *
-     *
      * 
      * The list of Origins eligible to receive CORS response headers. See
      * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -893,15 +802,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.
@@ -909,15 +816,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.
@@ -925,7 +829,6 @@ public int getOriginCount() {
      * 
* * repeated string origin = 1; - * * @param index The index of the element to return. * @return The origin at the given index. */ @@ -933,8 +836,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.
@@ -942,21 +843,18 @@ 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.LazyStringList method_; /** - * - * *
      * The list of HTTP methods on which to include CORS response headers,
      * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -964,15 +862,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
@@ -980,15 +876,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
@@ -996,7 +889,6 @@ public int getMethodCount() {
      * 
* * repeated string method = 2; - * * @param index The index of the element to return. * @return The method at the given index. */ @@ -1004,8 +896,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
@@ -1013,21 +903,18 @@ 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.LazyStringList responseHeader_; /** - * - * *
      * The list of HTTP headers other than the
      * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1035,15 +922,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
@@ -1051,15 +936,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
@@ -1067,7 +949,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. */ @@ -1075,8 +956,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
@@ -1084,19 +963,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
@@ -1104,7 +981,6 @@ public com.google.protobuf.ByteString getResponseHeaderBytes(int index) {
      * 
* * int32 max_age_seconds = 4; - * * @return The maxAgeSeconds. */ @java.lang.Override @@ -1113,7 +989,6 @@ public int getMaxAgeSeconds() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1125,7 +1000,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)); } @@ -1172,7 +1048,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; @@ -1182,17 +1059,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; } @@ -1223,93 +1104,88 @@ 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 @@ -1319,8 +1195,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Cross-Origin Response sharing (CORS) properties for a bucket.
      * For more on Cloud Storage and CORS, see
@@ -1330,33 +1204,33 @@ 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();
@@ -1372,9 +1246,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_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
@@ -1395,9 +1269,7 @@ public com.google.storage.v2.Bucket.Cors build() {
       public com.google.storage.v2.Bucket.Cors buildPartial() {
         com.google.storage.v2.Bucket.Cors result = new com.google.storage.v2.Bucket.Cors(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -1431,41 +1303,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;
@@ -1533,40 +1402,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) {
@@ -1576,21 +1440,16 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList origin_ =
-          com.google.protobuf.LazyStringArrayList.EMPTY;
-
+      private com.google.protobuf.LazyStringList origin_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       private void ensureOriginIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           origin_ = new com.google.protobuf.LazyStringArrayList(origin_);
           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.
@@ -1598,15 +1457,13 @@ 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() { return origin_.getUnmodifiableView(); } /** - * - * *
        * The list of Origins eligible to receive CORS response headers. See
        * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -1614,15 +1471,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.
@@ -1630,7 +1484,6 @@ public int getOriginCount() {
        * 
* * repeated string origin = 1; - * * @param index The index of the element to return. * @return The origin at the given index. */ @@ -1638,8 +1491,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.
@@ -1647,16 +1498,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.
@@ -1664,23 +1513,19 @@ 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); 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.
@@ -1688,22 +1533,18 @@ 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); 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.
@@ -1711,19 +1552,18 @@ 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_); 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.
@@ -1731,7 +1571,6 @@ public Builder addAllOrigin(java.lang.Iterable values) {
        * 
* * repeated string origin = 1; - * * @return This builder for chaining. */ public Builder clearOrigin() { @@ -1741,8 +1580,6 @@ public Builder clearOrigin() { 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.
@@ -1750,14 +1587,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); @@ -1765,18 +1600,14 @@ public Builder addOriginBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList method_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList method_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMethodIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { method_ = new com.google.protobuf.LazyStringArrayList(method_); 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
@@ -1784,15 +1615,13 @@ 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() { return method_.getUnmodifiableView(); } /** - * - * *
        * The list of HTTP methods on which to include CORS response headers,
        * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1800,15 +1629,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
@@ -1816,7 +1642,6 @@ public int getMethodCount() {
        * 
* * repeated string method = 2; - * * @param index The index of the element to return. * @return The method at the given index. */ @@ -1824,8 +1649,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
@@ -1833,16 +1656,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
@@ -1850,23 +1671,19 @@ 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); 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
@@ -1874,22 +1691,18 @@ 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); 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
@@ -1897,19 +1710,18 @@ 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_); 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
@@ -1917,7 +1729,6 @@ public Builder addAllMethod(java.lang.Iterable values) {
        * 
* * repeated string method = 2; - * * @return This builder for chaining. */ public Builder clearMethod() { @@ -1927,8 +1738,6 @@ public Builder clearMethod() { 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
@@ -1936,14 +1745,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); @@ -1951,18 +1758,14 @@ public Builder addMethodBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList responseHeader_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList responseHeader_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResponseHeaderIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { responseHeader_ = new com.google.protobuf.LazyStringArrayList(responseHeader_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1970,15 +1773,13 @@ 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() { return responseHeader_.getUnmodifiableView(); } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1986,15 +1787,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
@@ -2002,7 +1800,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. */ @@ -2010,8 +1807,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
@@ -2019,16 +1814,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
@@ -2036,23 +1829,19 @@ 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); onChanged(); return this; } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -2060,22 +1849,18 @@ 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); onChanged(); return this; } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -2083,19 +1868,18 @@ 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_); onChanged(); return this; } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -2103,7 +1887,6 @@ public Builder addAllResponseHeader(java.lang.Iterable values)
        * 
* * repeated string response_header = 3; - * * @return This builder for chaining. */ public Builder clearResponseHeader() { @@ -2113,8 +1896,6 @@ public Builder clearResponseHeader() { return this; } /** - * - * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -2122,14 +1903,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); @@ -2137,10 +1916,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
@@ -2148,7 +1925,6 @@ public Builder addResponseHeaderBytes(com.google.protobuf.ByteString value) {
        * 
* * int32 max_age_seconds = 4; - * * @return The maxAgeSeconds. */ @java.lang.Override @@ -2156,8 +1932,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
@@ -2165,20 +1939,17 @@ public int getMaxAgeSeconds() {
        * 
* * int32 max_age_seconds = 4; - * * @param value The maxAgeSeconds to set. * @return This builder for chaining. */ public Builder setMaxAgeSeconds(int value) { - + maxAgeSeconds_ = value; bitField0_ |= 0x00000008; onChanged(); 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
@@ -2186,7 +1957,6 @@ public Builder setMaxAgeSeconds(int value) {
        * 
* * int32 max_age_seconds = 4; - * * @return This builder for chaining. */ public Builder clearMaxAgeSeconds() { @@ -2195,7 +1965,6 @@ public Builder clearMaxAgeSeconds() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2208,12 +1977,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(); } @@ -2222,28 +1991,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; @@ -2258,103 +2026,90 @@ 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -2363,30 +2118,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 { @@ -2395,7 +2150,6 @@ public com.google.protobuf.ByteString getDefaultKmsKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2407,7 +2161,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_); } @@ -2431,14 +2186,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; } @@ -2457,94 +2213,88 @@ 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 @@ -2554,41 +2304,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(); @@ -2598,9 +2346,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 @@ -2619,11 +2367,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; } @@ -2639,41 +2384,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; @@ -2713,19 +2455,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) { @@ -2735,26 +2475,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; @@ -2763,22 +2500,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 { @@ -2786,37 +2522,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() { @@ -2826,29 +2555,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) { @@ -2861,12 +2585,12 @@ 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(); } @@ -2875,28 +2599,27 @@ 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(); - } - }; + 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; @@ -2911,152 +2634,122 @@ 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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
@@ -3065,13 +2758,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
@@ -3080,13 +2770,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
@@ -3099,8 +2786,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.
@@ -3108,56 +2793,51 @@ 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();
       }
 
       @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+      public final com.google.protobuf.UnknownFieldSet
+      getUnknownFields() {
         return this.unknownFields;
       }
-
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.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);
       }
 
       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 @@ -3168,8 +2848,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
@@ -3178,7 +2856,6 @@ public boolean getEnabled() {
        * 
* * .google.protobuf.Timestamp lock_time = 2; - * * @return Whether the lockTime field is set. */ @java.lang.Override @@ -3186,8 +2863,6 @@ public boolean hasLockTime() { return lockTime_ != null; } /** - * - * *
        * The deadline time for changing
        * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3196,7 +2871,6 @@ public boolean hasLockTime() {
        * 
* * .google.protobuf.Timestamp lock_time = 2; - * * @return The lockTime. */ @java.lang.Override @@ -3204,8 +2878,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
@@ -3221,7 +2893,6 @@ public com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder() {
       }
 
       private byte memoizedIsInitialized = -1;
-
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
@@ -3233,7 +2904,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_);
         }
@@ -3250,10 +2922,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());
+          size += com.google.protobuf.CodedOutputStream
+            .computeMessageSize(2, getLockTime());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
@@ -3263,18 +2937,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;
@@ -3288,7 +2963,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();
@@ -3299,96 +2975,87 @@ 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
@@ -3398,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.
@@ -3407,34 +3072,33 @@ 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() {
 
-        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();
@@ -3449,16 +3113,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
@@ -3472,23 +3134,21 @@ 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_;
           }
           if (((from_bitField0_ & 0x00000002) != 0)) {
-            result.lockTime_ = lockTimeBuilder_ == null ? lockTime_ : lockTimeBuilder_.build();
+            result.lockTime_ = lockTimeBuilder_ == null
+                ? lockTime_
+                : lockTimeBuilder_.build();
           }
         }
 
@@ -3496,53 +3156,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.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());
           }
@@ -3575,25 +3228,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) {
@@ -3603,19 +3255,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 @@ -3623,33 +3271,27 @@ 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. */ public Builder setEnabled(boolean value) { - + enabled_ = value; bitField0_ |= 0x00000001; onChanged(); 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() { @@ -3661,13 +3303,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
@@ -3676,15 +3313,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
@@ -3693,21 +3327,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
@@ -3731,8 +3360,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
@@ -3742,7 +3369,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 {
@@ -3753,8 +3381,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
@@ -3766,9 +3392,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;
@@ -3781,8 +3407,6 @@ public Builder mergeLockTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
-         *
-         *
          * 
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3803,8 +3427,6 @@ public Builder clearLockTime() {
           return this;
         }
         /**
-         *
-         *
          * 
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3820,8 +3442,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
@@ -3835,14 +3455,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
@@ -3853,22 +3470,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) {
@@ -3881,44 +3494,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;
@@ -3930,26 +3540,20 @@ 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;
       }
+
     }
 
     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 @@ -3957,58 +3561,39 @@ public boolean hasUniformBucketLevelAccess() { return uniformBucketLevelAccess_ != null; } /** - * - * *
      * 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 @@ -4017,30 +3602,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 { @@ -4049,7 +3634,6 @@ public com.google.protobuf.ByteString getPublicAccessPreventionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4061,7 +3645,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 (uniformBucketLevelAccess_ != null) { output.writeMessage(1, getUniformBucketLevelAccess()); } @@ -4078,13 +3663,11 @@ public int getSerializedSize() { size = 0; if (uniformBucketLevelAccess_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getUniformBucketLevelAccess()); + 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; @@ -4094,7 +3677,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); @@ -4103,10 +3686,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; } @@ -4129,94 +3713,88 @@ 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 @@ -4226,41 +3804,39 @@ 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() { - 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(); @@ -4275,9 +3851,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 @@ -4296,11 +3872,8 @@ 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; } @@ -4308,10 +3881,9 @@ public com.google.storage.v2.Bucket.IamConfig buildPartial() { private void buildPartial0(com.google.storage.v2.Bucket.IamConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.uniformBucketLevelAccess_ = - uniformBucketLevelAccessBuilder_ == null - ? uniformBucketLevelAccess_ - : uniformBucketLevelAccessBuilder_.build(); + result.uniformBucketLevelAccess_ = uniformBucketLevelAccessBuilder_ == null + ? uniformBucketLevelAccess_ + : uniformBucketLevelAccessBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.publicAccessPrevention_ = publicAccessPrevention_; @@ -4322,41 +3894,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.IamConfig 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.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; @@ -4399,26 +3968,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) { @@ -4428,68 +3995,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(); @@ -4503,15 +4047,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) { @@ -4525,24 +4065,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; @@ -4555,15 +4088,11 @@ public Builder mergeUniformBucketLevelAccess( 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); @@ -4576,66 +4105,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_; @@ -4643,21 +4154,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; @@ -4666,22 +4175,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 { @@ -4689,37 +4197,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() { @@ -4729,29 +4230,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) { @@ -4764,12 +4260,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(); } @@ -4778,28 +4274,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; @@ -4814,16 +4309,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.
@@ -4831,10 +4324,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.
@@ -4844,8 +4336,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.
@@ -4855,8 +4345,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.
@@ -4864,11 +4352,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.
@@ -4876,11 +4362,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.
@@ -4888,78 +4373,67 @@ 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();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.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.
        * 
@@ -4969,32 +4443,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.
        * 
@@ -5004,8 +4470,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.
@@ -5013,122 +4477,107 @@ 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();
       }
 
       @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+      public final com.google.protobuf.UnknownFieldSet
+      getUnknownFields() {
         return this.unknownFields;
       }
-
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.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_ = ""; @@ -5136,44 +4585,39 @@ private Action() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Action(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -5182,30 +4626,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 { @@ -5214,19 +4658,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 @@ -5235,30 +4675,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 { @@ -5267,7 +4707,6 @@ public com.google.protobuf.ByteString getStorageClassBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5280,7 +4719,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_); } @@ -5310,16 +4749,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; } @@ -5341,95 +4781,87 @@ 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 @@ -5439,41 +4871,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(); @@ -5484,9 +4914,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 @@ -5505,11 +4935,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; } @@ -5528,41 +4955,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; @@ -5570,8 +4994,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; @@ -5608,25 +5031,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) { @@ -5636,26 +5056,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; @@ -5664,22 +5081,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 { @@ -5687,37 +5103,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(); - } + 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() { @@ -5727,22 +5136,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; @@ -5752,21 +5157,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; @@ -5775,22 +5178,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 { @@ -5798,37 +5200,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() { @@ -5838,29 +5233,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) { @@ -5873,12 +5263,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(); } @@ -5887,28 +5277,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; @@ -5923,16 +5312,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.
@@ -5941,13 +5328,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.
@@ -5956,40 +5340,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.
@@ -6000,8 +5375,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
@@ -6009,13 +5382,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
@@ -6023,14 +5393,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
@@ -6038,13 +5405,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
@@ -6052,14 +5416,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`,
@@ -6068,13 +5429,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`,
@@ -6083,13 +5442,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`,
@@ -6098,14 +5454,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`,
@@ -6114,15 +5467,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.
@@ -6130,13 +5481,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.
@@ -6144,40 +5492,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.
@@ -6188,8 +5527,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
@@ -6199,13 +5536,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
@@ -6215,14 +5549,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
@@ -6230,13 +5561,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
@@ -6244,13 +5572,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
@@ -6262,134 +5587,111 @@ 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.EMPTY; matchesPrefix_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -6398,36 +5700,33 @@ private Condition() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Condition(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.
@@ -6436,7 +5735,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 @@ -6444,8 +5742,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.
@@ -6454,7 +5750,6 @@ public boolean hasAgeDays() {
          * 
* * optional int32 age_days = 1; - * * @return The ageDays. */ @java.lang.Override @@ -6465,15 +5760,12 @@ 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 @@ -6481,26 +5773,19 @@ public boolean hasCreatedBefore() { return createdBefore_ != null; } /** - * - * *
          * 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.
@@ -6510,16 +5795,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
@@ -6527,7 +5808,6 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
          * 
* * optional bool is_live = 3; - * * @return Whether the isLive field is set. */ @java.lang.Override @@ -6535,8 +5815,6 @@ public boolean hasIsLive() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
          * Relevant only for versioned objects. If the value is
          * `true`, this condition matches live objects; if the value
@@ -6544,7 +5822,6 @@ public boolean hasIsLive() {
          * 
* * optional bool is_live = 3; - * * @return The isLive. */ @java.lang.Override @@ -6555,8 +5832,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
@@ -6564,7 +5839,6 @@ public boolean getIsLive() {
          * 
* * optional int32 num_newer_versions = 4; - * * @return Whether the numNewerVersions field is set. */ @java.lang.Override @@ -6572,8 +5846,6 @@ public boolean hasNumNewerVersions() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
          * Relevant only for versioned objects. If the value is N, this
          * condition is satisfied when there are at least N versions (including
@@ -6581,7 +5853,6 @@ public boolean hasNumNewerVersions() {
          * 
* * optional int32 num_newer_versions = 4; - * * @return The numNewerVersions. */ @java.lang.Override @@ -6590,12 +5861,9 @@ public int getNumNewerVersions() { } public static final int MATCHES_STORAGE_CLASS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList matchesStorageClass_; /** - * - * *
          * Objects having any of the storage classes specified by this condition
          * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -6604,15 +5872,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`,
@@ -6621,15 +5887,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`,
@@ -6638,7 +5901,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. */ @@ -6646,8 +5908,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`,
@@ -6656,19 +5916,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.
@@ -6676,7 +5934,6 @@ 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 @@ -6684,8 +5941,6 @@ public boolean hasDaysSinceCustomTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
          * Number of days that have elapsed since the custom timestamp set on an
          * object.
@@ -6693,7 +5948,6 @@ public boolean hasDaysSinceCustomTime() {
          * 
* * optional int32 days_since_custom_time = 7; - * * @return The daysSinceCustomTime. */ @java.lang.Override @@ -6704,15 +5958,12 @@ 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 @@ -6720,26 +5971,19 @@ public boolean hasCustomTimeBefore() { return customTimeBefore_ != null; } /** - * - * *
          * 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.
@@ -6749,16 +5993,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
@@ -6768,7 +6008,6 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
          * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return Whether the daysSinceNoncurrentTime field is set. */ @java.lang.Override @@ -6776,8 +6015,6 @@ public boolean hasDaysSinceNoncurrentTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if these many days have been
@@ -6787,7 +6024,6 @@ public boolean hasDaysSinceNoncurrentTime() {
          * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return The daysSinceNoncurrentTime. */ @java.lang.Override @@ -6798,8 +6034,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
@@ -6807,7 +6041,6 @@ public int getDaysSinceNoncurrentTime() {
          * 
* * .google.type.Date noncurrent_time_before = 10; - * * @return Whether the noncurrentTimeBefore field is set. */ @java.lang.Override @@ -6815,8 +6048,6 @@ public boolean hasNoncurrentTimeBefore() { return noncurrentTimeBefore_ != null; } /** - * - * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if it became noncurrent before
@@ -6824,18 +6055,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
@@ -6846,55 +6072,44 @@ 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.LazyStringList 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 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. */ @@ -6902,66 +6117,55 @@ 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.LazyStringList 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 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. */ @@ -6969,24 +6173,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; @@ -6999,7 +6200,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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, ageDays_); } @@ -7013,8 +6214,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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)) { output.writeInt32(7, daysSinceCustomTime_); @@ -7029,12 +6229,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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); } @@ -7046,16 +6244,20 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, ageDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, ageDays_); } if (createdBefore_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreatedBefore()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreatedBefore()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isLive_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isLive_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, numNewerVersions_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, numNewerVersions_); } { int dataSize = 0; @@ -7066,20 +6268,20 @@ public int getSerializedSize() { size += 1 * getMatchesStorageClassList().size(); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, daysSinceCustomTime_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, daysSinceCustomTime_); } if (customTimeBefore_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCustomTimeBefore()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCustomTimeBefore()); } if (((bitField0_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(9, daysSinceNoncurrentTime_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, daysSinceNoncurrentTime_); } if (noncurrentTimeBefore_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getNoncurrentTimeBefore()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getNoncurrentTimeBefore()); } { int dataSize = 0; @@ -7105,50 +6307,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; } @@ -7170,7 +6381,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; @@ -7210,95 +6422,87 @@ 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 @@ -7308,41 +6512,39 @@ 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() { - 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(); @@ -7377,9 +6579,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_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 @@ -7398,18 +6600,14 @@ 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); + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result = new com.google.storage.v2.Bucket.Lifecycle.Rule.Condition(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result) { + private void buildPartialRepeatedFields(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result) { if (((bitField0_ & 0x00000010) != 0)) { matchesStorageClass_ = matchesStorageClass_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); @@ -7435,8 +6633,9 @@ 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(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.isLive_ = isLive_; @@ -7451,20 +6650,18 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.customTimeBefore_ = - customTimeBeforeBuilder_ == null - ? customTimeBefore_ - : customTimeBeforeBuilder_.build(); + result.customTimeBefore_ = customTimeBeforeBuilder_ == null + ? customTimeBefore_ + : customTimeBeforeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.daysSinceNoncurrentTime_ = daysSinceNoncurrentTime_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.noncurrentTimeBefore_ = - noncurrentTimeBeforeBuilder_ == null - ? noncurrentTimeBefore_ - : noncurrentTimeBeforeBuilder_.build(); + result.noncurrentTimeBefore_ = noncurrentTimeBeforeBuilder_ == null + ? noncurrentTimeBefore_ + : noncurrentTimeBeforeBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -7473,41 +6670,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; @@ -7515,8 +6709,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()); } @@ -7597,85 +6790,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) { @@ -7685,13 +6869,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.
@@ -7700,7 +6881,6 @@ public Builder mergeFrom(
            * 
* * optional int32 age_days = 1; - * * @return Whether the ageDays field is set. */ @java.lang.Override @@ -7708,8 +6888,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.
@@ -7718,7 +6896,6 @@ public boolean hasAgeDays() {
            * 
* * optional int32 age_days = 1; - * * @return The ageDays. */ @java.lang.Override @@ -7726,8 +6903,6 @@ public int getAgeDays() { return ageDays_; } /** - * - * *
            * Age of an object (in days). This condition is satisfied when an
            * object reaches the specified age.
@@ -7736,20 +6911,17 @@ public int getAgeDays() {
            * 
* * optional int32 age_days = 1; - * * @param value The ageDays to set. * @return This builder for chaining. */ public Builder setAgeDays(int value) { - + ageDays_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
            * Age of an object (in days). This condition is satisfied when an
            * object reaches the specified age.
@@ -7758,7 +6930,6 @@ public Builder setAgeDays(int value) {
            * 
* * optional int32 age_days = 1; - * * @return This builder for chaining. */ public Builder clearAgeDays() { @@ -7770,47 +6941,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.
@@ -7832,8 +6992,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.
@@ -7841,7 +6999,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 {
@@ -7852,8 +7011,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.
@@ -7863,9 +7020,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;
@@ -7878,8 +7035,6 @@ public Builder mergeCreatedBefore(com.google.type.Date value) {
             return this;
           }
           /**
-           *
-           *
            * 
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7898,8 +7053,6 @@ public Builder clearCreatedBefore() {
             return this;
           }
           /**
-           *
-           *
            * 
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7913,8 +7066,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.
@@ -7926,14 +7077,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.
@@ -7942,24 +7090,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
@@ -7967,7 +7112,6 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
            * 
* * optional bool is_live = 3; - * * @return Whether the isLive field is set. */ @java.lang.Override @@ -7975,8 +7119,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
@@ -7984,7 +7126,6 @@ public boolean hasIsLive() {
            * 
* * optional bool is_live = 3; - * * @return The isLive. */ @java.lang.Override @@ -7992,8 +7133,6 @@ public boolean getIsLive() { return isLive_; } /** - * - * *
            * Relevant only for versioned objects. If the value is
            * `true`, this condition matches live objects; if the value
@@ -8001,20 +7140,17 @@ public boolean getIsLive() {
            * 
* * optional bool is_live = 3; - * * @param value The isLive to set. * @return This builder for chaining. */ public Builder setIsLive(boolean value) { - + isLive_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
            * Relevant only for versioned objects. If the value is
            * `true`, this condition matches live objects; if the value
@@ -8022,7 +7158,6 @@ public Builder setIsLive(boolean value) {
            * 
* * optional bool is_live = 3; - * * @return This builder for chaining. */ public Builder clearIsLive() { @@ -8032,10 +7167,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
@@ -8043,7 +7176,6 @@ public Builder clearIsLive() {
            * 
* * optional int32 num_newer_versions = 4; - * * @return Whether the numNewerVersions field is set. */ @java.lang.Override @@ -8051,8 +7183,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
@@ -8060,7 +7190,6 @@ public boolean hasNumNewerVersions() {
            * 
* * optional int32 num_newer_versions = 4; - * * @return The numNewerVersions. */ @java.lang.Override @@ -8068,8 +7197,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
@@ -8077,20 +7204,17 @@ public int getNumNewerVersions() {
            * 
* * optional int32 num_newer_versions = 4; - * * @param value The numNewerVersions to set. * @return This builder for chaining. */ public Builder setNumNewerVersions(int value) { - + numNewerVersions_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
            * Relevant only for versioned objects. If the value is N, this
            * condition is satisfied when there are at least N versions (including
@@ -8098,7 +7222,6 @@ public Builder setNumNewerVersions(int value) {
            * 
* * optional int32 num_newer_versions = 4; - * * @return This builder for chaining. */ public Builder clearNumNewerVersions() { @@ -8108,19 +7231,14 @@ public Builder clearNumNewerVersions() { return this; } - private com.google.protobuf.LazyStringList matchesStorageClass_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMatchesStorageClassIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - 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`,
@@ -8129,15 +7247,13 @@ 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() { return matchesStorageClass_.getUnmodifiableView(); } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8146,15 +7262,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`,
@@ -8163,7 +7276,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. */ @@ -8171,8 +7283,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`,
@@ -8181,16 +7291,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`,
@@ -8199,23 +7307,19 @@ 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); onChanged(); return this; } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8224,22 +7328,18 @@ 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); onChanged(); return this; } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8248,19 +7348,18 @@ 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_); onChanged(); return this; } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8269,7 +7368,6 @@ public Builder addAllMatchesStorageClass(java.lang.Iterable va
            * 
* * repeated string matches_storage_class = 5; - * * @return This builder for chaining. */ public Builder clearMatchesStorageClass() { @@ -8279,8 +7377,6 @@ public Builder clearMatchesStorageClass() { return this; } /** - * - * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -8289,14 +7385,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); @@ -8304,10 +7398,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.
@@ -8315,7 +7407,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 @@ -8323,8 +7414,6 @@ public boolean hasDaysSinceCustomTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
            * Number of days that have elapsed since the custom timestamp set on an
            * object.
@@ -8332,7 +7421,6 @@ public boolean hasDaysSinceCustomTime() {
            * 
* * optional int32 days_since_custom_time = 7; - * * @return The daysSinceCustomTime. */ @java.lang.Override @@ -8340,8 +7428,6 @@ public int getDaysSinceCustomTime() { return daysSinceCustomTime_; } /** - * - * *
            * Number of days that have elapsed since the custom timestamp set on an
            * object.
@@ -8349,20 +7435,17 @@ public int getDaysSinceCustomTime() {
            * 
* * optional int32 days_since_custom_time = 7; - * * @param value The daysSinceCustomTime to set. * @return This builder for chaining. */ public Builder setDaysSinceCustomTime(int value) { - + daysSinceCustomTime_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
            * Number of days that have elapsed since the custom timestamp set on an
            * object.
@@ -8370,7 +7453,6 @@ public Builder setDaysSinceCustomTime(int value) {
            * 
* * optional int32 days_since_custom_time = 7; - * * @return This builder for chaining. */ public Builder clearDaysSinceCustomTime() { @@ -8382,47 +7464,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.
@@ -8444,8 +7515,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.
@@ -8453,7 +7522,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 {
@@ -8464,8 +7534,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.
@@ -8475,9 +7543,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;
@@ -8490,8 +7558,6 @@ public Builder mergeCustomTimeBefore(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.
@@ -8510,8 +7576,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.
@@ -8525,8 +7589,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.
@@ -8538,14 +7600,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.
@@ -8554,24 +7613,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
@@ -8581,7 +7637,6 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
            * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return Whether the daysSinceNoncurrentTime field is set. */ @java.lang.Override @@ -8589,8 +7644,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
@@ -8600,7 +7653,6 @@ public boolean hasDaysSinceNoncurrentTime() {
            * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return The daysSinceNoncurrentTime. */ @java.lang.Override @@ -8608,8 +7660,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
@@ -8619,20 +7669,17 @@ public int getDaysSinceNoncurrentTime() {
            * 
* * optional int32 days_since_noncurrent_time = 9; - * * @param value The daysSinceNoncurrentTime to set. * @return This builder for chaining. */ public Builder setDaysSinceNoncurrentTime(int value) { - + daysSinceNoncurrentTime_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if these many days have been
@@ -8642,7 +7689,6 @@ public Builder setDaysSinceNoncurrentTime(int value) {
            * 
* * optional int32 days_since_noncurrent_time = 9; - * * @return This builder for chaining. */ public Builder clearDaysSinceNoncurrentTime() { @@ -8654,11 +7700,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
@@ -8666,15 +7709,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
@@ -8682,21 +7722,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
@@ -8719,8 +7754,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
@@ -8729,7 +7762,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 {
@@ -8740,8 +7774,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
@@ -8752,9 +7784,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;
@@ -8767,8 +7799,6 @@ public Builder mergeNoncurrentTimeBefore(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
@@ -8788,8 +7818,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
@@ -8804,8 +7832,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
@@ -8818,14 +7844,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
@@ -8835,69 +7858,58 @@ 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_;
           }
 
-          private com.google.protobuf.LazyStringList matchesPrefix_ =
-              com.google.protobuf.LazyStringArrayList.EMPTY;
-
+          private com.google.protobuf.LazyStringList matchesPrefix_ = com.google.protobuf.LazyStringArrayList.EMPTY;
           private void ensureMatchesPrefixIsMutable() {
             if (!((bitField0_ & 0x00000200) != 0)) {
               matchesPrefix_ = new com.google.protobuf.LazyStringArrayList(matchesPrefix_);
               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() { return matchesPrefix_.getUnmodifiableView(); } /** - * - * *
            * 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. */ @@ -8905,95 +7917,81 @@ 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); 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 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); 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 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_); 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() { @@ -9003,22 +8001,18 @@ public Builder clearMatchesPrefix() { 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); @@ -9026,55 +8020,45 @@ public Builder addMatchesPrefixBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList matchesSuffix_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList matchesSuffix_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMatchesSuffixIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { matchesSuffix_ = new com.google.protobuf.LazyStringArrayList(matchesSuffix_); 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() { return matchesSuffix_.getUnmodifiableView(); } /** - * - * *
            * 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. */ @@ -9082,95 +8066,81 @@ 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); 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 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); 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 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_); 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() { @@ -9180,29 +8150,24 @@ public Builder clearMatchesSuffix() { 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); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9214,43 +8179,42 @@ public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { 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(); - } - - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultInstance() { - 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(); - } - }; + + + // @@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(); + } + + public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultInstance() { + 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(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9265,19 +8229,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } 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 @@ -9285,25 +8247,18 @@ public boolean hasAction() { return action_ != null; } /** - * - * *
        * 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.
        * 
@@ -9312,22 +8267,17 @@ 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 @@ -9335,25 +8285,18 @@ public boolean hasCondition() { return condition_ != null; } /** - * - * *
        * 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.
        * 
@@ -9361,15 +8304,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; @@ -9381,7 +8320,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 (action_ != null) { output.writeMessage(1, getAction()); } @@ -9398,10 +8338,12 @@ public int getSerializedSize() { size = 0; if (action_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAction()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAction()); } if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCondition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCondition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9411,21 +8353,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; @@ -9451,94 +8394,88 @@ 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 @@ -9548,8 +8485,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.
@@ -9557,33 +8492,33 @@ 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() {
 
-        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();
@@ -9602,9 +8537,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
@@ -9623,11 +8558,8 @@ 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;
         }
@@ -9635,10 +8567,14 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule buildPartial() {
         private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
-            result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build();
+            result.action_ = actionBuilder_ == null
+                ? action_
+                : actionBuilder_.build();
           }
           if (((from_bitField0_ & 0x00000002) != 0)) {
-            result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build();
+            result.condition_ = conditionBuilder_ == null
+                ? condition_
+                : conditionBuilder_.build();
           }
         }
 
@@ -9646,41 +8582,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule 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.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;
@@ -9688,8 +8621,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());
           }
@@ -9722,25 +8654,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) {
@@ -9750,52 +8683,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.
          * 
@@ -9816,8 +8735,6 @@ public Builder setAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action valu return this; } /** - * - * *
          * The action to take.
          * 
@@ -9836,8 +8753,6 @@ public Builder setAction( return this; } /** - * - * *
          * The action to take.
          * 
@@ -9846,10 +8761,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; @@ -9862,8 +8776,6 @@ public Builder mergeAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action va return this; } /** - * - * *
          * The action to take.
          * 
@@ -9881,8 +8793,6 @@ public Builder clearAction() { return this; } /** - * - * *
          * The action to take.
          * 
@@ -9895,8 +8805,6 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder getActionBuild return getActionFieldBuilder().getBuilder(); } /** - * - * *
          * The action to take.
          * 
@@ -9907,14 +8815,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.
          * 
@@ -9922,17 +8827,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_; @@ -9940,47 +8842,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.
          * 
@@ -10001,8 +8890,6 @@ public Builder setCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Conditio return this; } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
@@ -10021,8 +8908,6 @@ public Builder setCondition( return this; } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
@@ -10031,10 +8916,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; @@ -10047,8 +8931,6 @@ public Builder mergeCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Condit return this; } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
@@ -10066,8 +8948,6 @@ public Builder clearCondition() { return this; } /** - * - * *
          * The condition(s) under which the action will be taken.
          * 
@@ -10080,27 +8960,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.
          * 
@@ -10108,22 +8982,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) { @@ -10136,12 +9006,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(); } @@ -10150,28 +9020,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; @@ -10186,15 +9055,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.
@@ -10207,8 +9074,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.
@@ -10217,13 +9082,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.
@@ -10236,8 +9099,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.
@@ -10250,8 +9111,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.
@@ -10260,12 +9119,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;
@@ -10277,7 +9136,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));
       }
@@ -10291,7 +9151,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;
@@ -10301,14 +9162,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;
     }
@@ -10329,94 +9191,88 @@ 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
@@ -10426,8 +9282,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Lifecycle properties of a bucket.
      * For more information, see https://cloud.google.com/storage/docs/lifecycle.
@@ -10435,33 +9289,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();
@@ -10477,9 +9331,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
@@ -10498,12 +9352,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;
       }
@@ -10528,41 +9379,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;
@@ -10589,10 +9437,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_);
             }
@@ -10624,26 +9471,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) {
@@ -10653,28 +9499,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.
@@ -10690,8 +9529,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.
@@ -10707,8 +9544,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.
@@ -10724,8 +9559,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.
@@ -10733,7 +9566,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();
@@ -10747,8 +9581,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.
@@ -10768,8 +9600,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.
@@ -10791,8 +9621,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.
@@ -10800,7 +9628,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();
@@ -10814,8 +9643,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.
@@ -10823,7 +9650,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());
@@ -10834,8 +9662,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.
@@ -10855,8 +9681,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.
@@ -10868,7 +9692,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);
@@ -10876,8 +9701,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.
@@ -10896,8 +9719,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.
@@ -10916,8 +9737,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.
@@ -10925,12 +9744,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.
@@ -10938,16 +9756,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.
@@ -10955,8 +9771,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 {
@@ -10964,8 +9780,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.
@@ -10974,12 +9788,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.
@@ -10987,13 +9799,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.
@@ -11001,28 +9812,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) {
@@ -11035,12 +9842,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();
     }
@@ -11049,28 +9856,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;
@@ -11085,84 +9891,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_ = ""; @@ -11170,44 +9963,39 @@ private Logging() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Logging(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -11216,30 +10004,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 { @@ -11248,18 +10036,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 @@ -11268,29 +10052,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 { @@ -11299,7 +10083,6 @@ public com.google.protobuf.ByteString getLogObjectPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11311,7 +10094,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_); } @@ -11341,15 +10125,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; } @@ -11370,94 +10156,88 @@ 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 @@ -11467,41 +10247,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(); @@ -11512,9 +10290,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 @@ -11533,11 +10311,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; } @@ -11556,41 +10331,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; @@ -11635,25 +10407,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) { @@ -11663,26 +10432,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; @@ -11691,22 +10457,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 { @@ -11714,37 +10479,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() { @@ -11754,22 +10512,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; @@ -11779,20 +10533,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; @@ -11801,21 +10553,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 { @@ -11823,35 +10574,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() { @@ -11861,28 +10605,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) { @@ -11895,12 +10634,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(); } @@ -11909,28 +10648,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; @@ -11945,42 +10683,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.
@@ -11991,21 +10721,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
@@ -12015,13 +10740,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
@@ -12031,13 +10753,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
@@ -12051,64 +10770,58 @@ 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } 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 @@ -12116,26 +10829,19 @@ public boolean hasEffectiveTime() { return effectiveTime_ != null; } /** - * - * *
      * 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.
@@ -12145,22 +10851,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 @@ -12171,8 +10872,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
@@ -12182,7 +10881,6 @@ public boolean getIsLocked() {
      * 
* * .google.protobuf.Duration retention_duration = 4; - * * @return Whether the retentionDuration field is set. */ @java.lang.Override @@ -12190,8 +10888,6 @@ public boolean hasRetentionDuration() { return retentionDuration_ != null; } /** - * - * *
      * The duration that objects need to be retained. Retention duration must be
      * greater than zero and less than 100 years. Note that enforcement of
@@ -12201,18 +10897,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
@@ -12225,13 +10916,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;
@@ -12243,7 +10931,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 (effectiveTime_ != null) {
         output.writeMessage(1, getEffectiveTime());
       }
@@ -12263,13 +10952,16 @@ public int getSerializedSize() {
 
       size = 0;
       if (effectiveTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEffectiveTime());
+        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());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, getRetentionDuration());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -12279,22 +10971,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;
@@ -12312,7 +11006,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();
@@ -12322,94 +11017,88 @@ 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
@@ -12419,41 +11108,39 @@ 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() { - 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(); @@ -12473,9 +11160,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 @@ -12494,11 +11181,8 @@ 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; } @@ -12506,17 +11190,17 @@ public com.google.storage.v2.Bucket.RetentionPolicy buildPartial() { private void buildPartial0(com.google.storage.v2.Bucket.RetentionPolicy result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.effectiveTime_ = - effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build(); + result.effectiveTime_ = effectiveTimeBuilder_ == null + ? effectiveTime_ + : effectiveTimeBuilder_.build(); } 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(); } } @@ -12524,41 +11208,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.RetentionPolicy 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.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; @@ -12602,32 +11283,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) { @@ -12637,54 +11317,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.
@@ -12706,8 +11372,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.
@@ -12715,7 +11379,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 {
@@ -12726,8 +11391,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.
@@ -12737,9 +11400,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;
@@ -12752,8 +11415,6 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -12772,8 +11433,6 @@ public Builder clearEffectiveTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -12787,8 +11446,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.
@@ -12800,14 +11457,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.
@@ -12816,32 +11470,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 @@ -12849,33 +11497,27 @@ 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. */ public Builder setIsLocked(boolean value) { - + isLocked_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Once locked, an object retention policy cannot be modified.
        * 
* * bool is_locked = 2; - * * @return This builder for chaining. */ public Builder clearIsLocked() { @@ -12887,13 +11529,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
@@ -12903,15 +11540,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
@@ -12921,21 +11555,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
@@ -12960,8 +11589,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
@@ -12972,7 +11599,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 {
@@ -12983,8 +11611,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
@@ -12997,9 +11623,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;
@@ -13012,8 +11638,6 @@ public Builder mergeRetentionDuration(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
@@ -13035,8 +11659,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
@@ -13053,8 +11675,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
@@ -13069,14 +11689,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
@@ -13088,22 +11705,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) {
@@ -13116,12 +11729,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();
     }
@@ -13130,28 +11743,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;
@@ -13166,29 +11778,24 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.storage.v2.Bucket.RetentionPolicy 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
@@ -13197,55 +11804,51 @@ 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();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.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 @@ -13254,7 +11857,6 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13266,7 +11868,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_); } @@ -13280,7 +11883,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; @@ -13290,14 +11894,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; } @@ -13310,100 +11915,95 @@ 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 @@ -13413,8 +12013,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Properties of a bucket related to versioning.
      * For more on Cloud Storage versioning, see
@@ -13423,33 +12021,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();
@@ -13459,9 +12057,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
@@ -13480,11 +12078,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;
       }
@@ -13500,41 +12095,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;
@@ -13572,19 +12164,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) {
@@ -13594,19 +12184,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 @@ -13614,33 +12200,27 @@ 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. */ public Builder setEnabled(boolean value) { - + enabled_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * While set to true, versioning is fully enabled for this bucket.
        * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -13649,7 +12229,6 @@ public Builder clearEnabled() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13662,12 +12241,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(); } @@ -13676,28 +12255,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; @@ -13712,16 +12290,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
@@ -13730,13 +12306,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
@@ -13745,14 +12318,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
@@ -13762,13 +12333,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
@@ -13778,14 +12346,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
@@ -13794,16 +12360,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_ = "";
@@ -13811,37 +12376,33 @@ private Website() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Website();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.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
@@ -13850,7 +12411,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string main_page_suffix = 1; - * * @return The mainPageSuffix. */ @java.lang.Override @@ -13859,15 +12419,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
@@ -13876,15 +12435,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 { @@ -13893,12 +12453,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
@@ -13908,7 +12465,6 @@ public com.google.protobuf.ByteString getMainPageSuffixBytes() {
      * 
* * string not_found_page = 2; - * * @return The notFoundPage. */ @java.lang.Override @@ -13917,15 +12473,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
@@ -13935,15 +12490,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 { @@ -13952,7 +12508,6 @@ public com.google.protobuf.ByteString getNotFoundPageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13964,7 +12519,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_); } @@ -13994,15 +12550,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; } @@ -14023,94 +12581,88 @@ 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 @@ -14120,8 +12672,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
@@ -14130,33 +12680,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();
@@ -14167,9 +12717,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
@@ -14188,11 +12738,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;
       }
@@ -14211,41 +12758,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;
@@ -14290,25 +12834,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) {
@@ -14318,13 +12859,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
@@ -14333,13 +12871,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; @@ -14348,8 +12886,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
@@ -14358,14 +12894,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 { @@ -14373,8 +12910,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
@@ -14383,22 +12918,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
@@ -14407,7 +12938,6 @@ public Builder setMainPageSuffix(java.lang.String value) {
        * 
* * string main_page_suffix = 1; - * * @return This builder for chaining. */ public Builder clearMainPageSuffix() { @@ -14417,8 +12947,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
@@ -14427,14 +12955,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; @@ -14444,8 +12970,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
@@ -14455,13 +12979,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; @@ -14470,8 +12994,6 @@ public java.lang.String getNotFoundPage() { } } /** - * - * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -14481,14 +13003,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 { @@ -14496,8 +13019,6 @@ public com.google.protobuf.ByteString getNotFoundPageBytes() { } } /** - * - * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -14507,22 +13028,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
@@ -14532,7 +13049,6 @@ public Builder setNotFoundPage(java.lang.String value) {
        * 
* * string not_found_page = 2; - * * @return This builder for chaining. */ public Builder clearNotFoundPage() { @@ -14542,8 +13058,6 @@ public Builder clearNotFoundPage() { return this; } /** - * - * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -14553,21 +13067,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) { @@ -14580,12 +13091,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(); } @@ -14594,28 +13105,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; @@ -14630,67 +13140,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
@@ -14699,87 +13197,76 @@ 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.EMPTY;
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new CustomPlacementConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.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.LazyStringList dataLocations_;
     /**
-     *
-     *
      * 
      * 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. */ @@ -14787,23 +13274,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; @@ -14815,7 +13299,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)); } @@ -14844,15 +13329,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; } @@ -14874,93 +13359,87 @@ 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 @@ -14970,8 +13449,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
@@ -14980,33 +13457,33 @@ 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();
@@ -15017,9 +13494,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_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
@@ -15038,18 +13515,14 @@ 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);
+        com.google.storage.v2.Bucket.CustomPlacementConfig result = new com.google.storage.v2.Bucket.CustomPlacementConfig(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.storage.v2.Bucket.CustomPlacementConfig result) {
+      private void buildPartialRepeatedFields(com.google.storage.v2.Bucket.CustomPlacementConfig result) {
         if (((bitField0_ & 0x00000001) != 0)) {
           dataLocations_ = dataLocations_.getUnmodifiableView();
           bitField0_ = (bitField0_ & ~0x00000001);
@@ -15065,41 +13538,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;
@@ -15107,8 +13577,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_;
@@ -15145,20 +13614,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) {
@@ -15168,55 +13635,44 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList dataLocations_ =
-          com.google.protobuf.LazyStringArrayList.EMPTY;
-
+      private com.google.protobuf.LazyStringList dataLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       private void ensureDataLocationsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           dataLocations_ = new com.google.protobuf.LazyStringArrayList(dataLocations_);
           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() { return dataLocations_.getUnmodifiableView(); } /** - * - * *
        * 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. */ @@ -15224,90 +13680,76 @@ 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); onChanged(); 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); onChanged(); 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_); onChanged(); return this; } /** - * - * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; - * * @return This builder for chaining. */ public Builder clearDataLocations() { @@ -15317,28 +13759,23 @@ public Builder clearDataLocations() { 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); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -15351,12 +13788,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(); } @@ -15365,28 +13802,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; @@ -15401,29 +13837,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
@@ -15431,16 +13862,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
@@ -15448,16 +13874,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
@@ -15465,70 +13886,62 @@ 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(); } /** - * - * *
    * 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() {} + private Autoclass() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Autoclass(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** - * - * *
      * Enables Autoclass.
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -15539,8 +13952,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
@@ -15548,10 +13959,7 @@ 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 @@ -15559,8 +13967,6 @@ public boolean hasToggleTime() { return toggleTime_ != null; } /** - * - * *
      * 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
@@ -15568,10 +13974,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 @@ -15579,8 +13982,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
@@ -15588,9 +13989,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() { @@ -15598,7 +13997,6 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -15610,7 +14008,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_); } @@ -15627,10 +14026,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 (toggleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToggleTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getToggleTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -15640,17 +14041,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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -15664,7 +14067,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(); @@ -15674,94 +14078,88 @@ 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 @@ -15771,41 +14169,39 @@ 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() - 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(); @@ -15820,9 +14216,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 @@ -15841,11 +14237,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; } @@ -15856,8 +14249,9 @@ private void buildPartial0(com.google.storage.v2.Bucket.Autoclass result) { result.enabled_ = enabled_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.toggleTime_ = - toggleTimeBuilder_ == null ? toggleTime_ : toggleTimeBuilder_.build(); + result.toggleTime_ = toggleTimeBuilder_ == null + ? toggleTime_ + : toggleTimeBuilder_.build(); } } @@ -15865,41 +14259,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; @@ -15940,25 +14331,24 @@ 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 - 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 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -15968,19 +14358,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 @@ -15988,33 +14374,27 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
        * Enables Autoclass.
        * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Enables Autoclass.
        * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -16026,13 +14406,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
@@ -16040,18 +14415,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
@@ -16059,24 +14429,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
@@ -16084,9 +14447,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) { @@ -16102,8 +14463,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
@@ -16111,11 +14470,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 { @@ -16126,8 +14484,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
@@ -16135,15 +14491,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; @@ -16156,8 +14510,6 @@ public Builder mergeToggleTime(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
@@ -16165,9 +14517,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); @@ -16180,8 +14530,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
@@ -16189,9 +14537,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; @@ -16199,8 +14545,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
@@ -16208,22 +14552,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
@@ -16231,27 +14570,21 @@ 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_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16264,12 +14597,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(); } @@ -16278,28 +14611,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; @@ -16314,21 +14646,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Autoclass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The name of the bucket.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -16337,29 +14666,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; } } /** - * - * *
    * Immutable. The name of the 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 { @@ -16368,12 +14697,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
@@ -16381,7 +14707,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bucketId. */ @java.lang.Override @@ -16390,15 +14715,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
@@ -16406,15 +14730,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 { @@ -16423,12 +14748,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
@@ -16436,7 +14758,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
    * 
* * string etag = 29; - * * @return The etag. */ @java.lang.Override @@ -16445,15 +14766,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
@@ -16461,15 +14781,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 { @@ -16478,22 +14799,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 @@ -16502,33 +14817,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 { @@ -16539,8 +14852,6 @@ 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.
    * Attempting to set or update this field will result in a
@@ -16548,7 +14859,6 @@ public com.google.protobuf.ByteString getProjectBytes() {
    * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -16557,12 +14867,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`.
@@ -16573,7 +14880,6 @@ public long getMetageneration() {
    * 
* * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The location. */ @java.lang.Override @@ -16582,15 +14888,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`.
@@ -16601,15 +14906,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 { @@ -16618,19 +14924,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 @@ -16639,30 +14941,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 { @@ -16671,12 +14973,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
@@ -16687,7 +14986,6 @@ public com.google.protobuf.ByteString getLocationTypeBytes() {
    * 
* * string storage_class = 7; - * * @return The storageClass. */ @java.lang.Override @@ -16696,15 +14994,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
@@ -16715,15 +15012,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 { @@ -16732,12 +15030,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
@@ -16748,7 +15043,6 @@ public com.google.protobuf.ByteString getStorageClassBytes() {
    * 
* * string rpo = 27; - * * @return The rpo. */ @java.lang.Override @@ -16757,15 +15051,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
@@ -16776,15 +15069,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 { @@ -16793,12 +15087,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,
@@ -16812,8 +15103,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,
@@ -16823,13 +15112,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,
@@ -16843,8 +15130,6 @@ public int getAclCount() {
     return acl_.size();
   }
   /**
-   *
-   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -16858,8 +15143,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,
@@ -16869,17 +15152,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,
@@ -16893,8 +15174,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,
@@ -16904,13 +15183,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,
@@ -16924,8 +15201,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,
@@ -16939,8 +15214,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,
@@ -16958,8 +15231,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]
@@ -16967,7 +15238,6 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrB
    * 
* * .google.storage.v2.Bucket.Lifecycle lifecycle = 10; - * * @return Whether the lifecycle field is set. */ @java.lang.Override @@ -16975,8 +15245,6 @@ public boolean hasLifecycle() { return lifecycle_ != null; } /** - * - * *
    * The bucket's lifecycle config. See
    * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -16984,18 +15252,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]
@@ -17006,25 +15269,19 @@ 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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -17032,17 +15289,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation time of the bucket.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -17050,16 +15303,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time of the bucket.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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() { @@ -17067,12 +15317,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.
@@ -17085,8 +15332,6 @@ public java.util.List getCorsList() {
     return cors_;
   }
   /**
-   *
-   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -17095,13 +15340,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.
@@ -17114,8 +15357,6 @@ public int getCorsCount() {
     return cors_.size();
   }
   /**
-   *
-   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -17128,8 +15369,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.
@@ -17138,24 +15377,21 @@ 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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -17163,17 +15399,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The modification time of the bucket.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -17181,16 +15413,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The modification time of the bucket.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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() { @@ -17200,8 +15429,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
@@ -17219,7 +15446,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * bool default_event_based_hold = 14; - * * @return The defaultEventBasedHold. */ @java.lang.Override @@ -17228,34 +15454,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.
    * 
@@ -17263,21 +15487,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.
    * 
@@ -17289,8 +15512,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * User-provided labels, in key/value pairs.
    * 
@@ -17298,19 +15519,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.
    * 
@@ -17318,11 +15537,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(); } @@ -17332,8 +15551,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
@@ -17342,7 +15559,6 @@ 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 @@ -17350,8 +15566,6 @@ public boolean hasWebsite() { return website_ != null; } /** - * - * *
    * The bucket's website config, controlling how the service behaves
    * when accessing bucket contents as a web site. See the
@@ -17360,7 +15574,6 @@ public boolean hasWebsite() {
    * 
* * .google.storage.v2.Bucket.Website website = 16; - * * @return The website. */ @java.lang.Override @@ -17368,8 +15581,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
@@ -17387,14 +15598,11 @@ 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 @@ -17402,25 +15610,18 @@ public boolean hasVersioning() { return versioning_ != null; } /** - * - * *
    * 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.
    * 
@@ -17429,23 +15630,18 @@ 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 @@ -17453,15 +15649,12 @@ public boolean hasLogging() { return logging_ != null; } /** - * - * *
    * 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 @@ -17469,8 +15662,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.
@@ -17486,15 +15677,12 @@ 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 @@ -17502,15 +15690,12 @@ public boolean hasOwner() { return owner_ != null; } /** - * - * *
    * 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 @@ -17518,8 +15703,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.
@@ -17535,14 +15718,11 @@ 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 @@ -17550,25 +15730,18 @@ public boolean hasEncryption() { return encryption_ != null; } /** - * - * *
    * 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.
    * 
@@ -17577,22 +15750,17 @@ 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 @@ -17600,14 +15768,11 @@ public boolean hasBilling() { return billing_ != null; } /** - * - * *
    * The bucket's billing config.
    * 
* * .google.storage.v2.Bucket.Billing billing = 21; - * * @return The billing. */ @java.lang.Override @@ -17615,8 +15780,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.
    * 
@@ -17631,8 +15794,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
@@ -17646,7 +15807,6 @@ 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 @@ -17654,8 +15814,6 @@ public boolean hasRetentionPolicy() { return retentionPolicy_ != null; } /** - * - * *
    * The bucket's retention policy. The retention policy enforces a minimum
    * retention time for all objects contained in the bucket, based on their
@@ -17669,18 +15827,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
@@ -17697,22 +15850,17 @@ 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 @@ -17720,25 +15868,18 @@ public boolean hasIamConfig() { return iamConfig_ != null; } /** - * - * *
    * 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.
    * 
@@ -17747,22 +15888,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 @@ -17773,15 +15909,12 @@ 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 @@ -17789,26 +15922,19 @@ public boolean hasCustomPlacementConfig() { return customPlacementConfig_ != null; } /** - * - * *
    * 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].
@@ -17817,25 +15943,19 @@ 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 @@ -17843,26 +15963,19 @@ public boolean hasAutoclass() { return autoclass_ != null; } /** - * - * *
    * 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.
@@ -17872,13 +15985,10 @@ 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_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -17890,7 +16000,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_);
     }
@@ -17933,8 +16044,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (defaultEventBasedHold_ != false) {
       output.writeBool(14, defaultEventBasedHold_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        15);
     if (website_ != null) {
       output.writeMessage(16, getWebsite());
     }
@@ -17993,7 +16108,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_);
@@ -18005,72 +16121,89 @@ 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());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getLifecycle());
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime());
+      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());
+      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__);
+      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());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(16, getWebsite());
     }
     if (versioning_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getVersioning());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(17, getVersioning());
     }
     if (logging_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLogging());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(18, getLogging());
     }
     if (owner_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getOwner());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(19, getOwner());
     }
     if (encryption_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getEncryption());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(20, getEncryption());
     }
     if (billing_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getBilling());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(21, getBilling());
     }
     if (retentionPolicy_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getRetentionPolicy());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(22, getRetentionPolicy());
     }
     if (iamConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getIamConfig());
+      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());
+      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());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(28, getAutoclass());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, etag_);
@@ -18083,79 +16216,107 @@ public int 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -18177,7 +16338,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;
@@ -18211,7 +16373,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();
@@ -18249,7 +16412,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();
@@ -18263,153 +16427,152 @@ 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.MapField internalGetMapField( + 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.MapField internalGetMutableMapField( + 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() { + + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + } @java.lang.Override public Builder clear() { super.clear(); @@ -18516,7 +16679,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; } @@ -18538,9 +16702,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; } @@ -18605,13 +16767,19 @@ private void buildPartial0(com.google.storage.v2.Bucket result) { result.rpo_ = rpo_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.lifecycle_ = lifecycleBuilder_ == null ? lifecycle_ : lifecycleBuilder_.build(); + result.lifecycle_ = lifecycleBuilder_ == null + ? lifecycle_ + : lifecycleBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00004000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00008000) != 0)) { result.defaultEventBasedHold_ = defaultEventBasedHold_; @@ -18621,41 +16789,57 @@ 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(); } if (((from_bitField0_ & 0x00040000) != 0)) { - result.versioning_ = versioningBuilder_ == null ? versioning_ : versioningBuilder_.build(); + result.versioning_ = versioningBuilder_ == null + ? versioning_ + : versioningBuilder_.build(); } if (((from_bitField0_ & 0x00080000) != 0)) { - result.logging_ = loggingBuilder_ == null ? logging_ : loggingBuilder_.build(); + result.logging_ = loggingBuilder_ == null + ? logging_ + : loggingBuilder_.build(); } if (((from_bitField0_ & 0x00100000) != 0)) { - result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); + result.owner_ = ownerBuilder_ == null + ? owner_ + : ownerBuilder_.build(); } if (((from_bitField0_ & 0x00200000) != 0)) { - result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + result.encryption_ = encryptionBuilder_ == null + ? encryption_ + : encryptionBuilder_.build(); } if (((from_bitField0_ & 0x00400000) != 0)) { - result.billing_ = billingBuilder_ == null ? billing_ : billingBuilder_.build(); + result.billing_ = billingBuilder_ == null + ? billing_ + : billingBuilder_.build(); } if (((from_bitField0_ & 0x00800000) != 0)) { - result.retentionPolicy_ = - retentionPolicyBuilder_ == null ? retentionPolicy_ : retentionPolicyBuilder_.build(); + result.retentionPolicy_ = retentionPolicyBuilder_ == null + ? retentionPolicy_ + : retentionPolicyBuilder_.build(); } if (((from_bitField0_ & 0x01000000) != 0)) { - result.iamConfig_ = iamConfigBuilder_ == null ? iamConfig_ : iamConfigBuilder_.build(); + result.iamConfig_ = iamConfigBuilder_ == null + ? iamConfig_ + : iamConfigBuilder_.build(); } 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(); } if (((from_bitField0_ & 0x08000000) != 0)) { - result.autoclass_ = autoclassBuilder_ == null ? autoclass_ : autoclassBuilder_.build(); + result.autoclass_ = autoclassBuilder_ == null + ? autoclass_ + : autoclassBuilder_.build(); } } @@ -18663,39 +16847,38 @@ private void buildPartial0(com.google.storage.v2.Bucket 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.Bucket) { - return mergeFrom((com.google.storage.v2.Bucket) other); + return mergeFrom((com.google.storage.v2.Bucket)other); } else { super.mergeFrom(other); return this; @@ -18765,10 +16948,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_); } @@ -18792,10 +16974,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_); } @@ -18825,10 +17006,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_); } @@ -18840,7 +17020,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()); @@ -18901,209 +17082,206 @@ 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 - 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 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -19113,25 +17291,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The name of the 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; @@ -19140,21 +17315,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of the 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 { @@ -19162,35 +17336,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of the 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.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -19200,21 +17367,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of the 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; @@ -19224,8 +17387,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
@@ -19233,13 +17394,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; @@ -19248,8 +17409,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
@@ -19257,14 +17416,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 { @@ -19272,8 +17432,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
@@ -19281,22 +17439,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
@@ -19304,7 +17458,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() { @@ -19314,8 +17467,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
@@ -19323,14 +17474,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; @@ -19340,8 +17489,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
@@ -19349,13 +17496,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; @@ -19364,8 +17511,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -19373,14 +17518,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 { @@ -19388,8 +17534,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -19397,22 +17541,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
@@ -19420,7 +17560,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 29; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -19430,8 +17569,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -19439,14 +17576,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; @@ -19456,24 +17591,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; @@ -19482,25 +17613,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 { @@ -19508,43 +17636,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() { @@ -19554,25 +17671,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; @@ -19580,10 +17691,8 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { return this; } - private long metageneration_; + private long metageneration_ ; /** - * - * *
      * Output only. The metadata generation of this bucket.
      * Attempting to set or update this field will result in a
@@ -19591,7 +17700,6 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -19599,8 +17707,6 @@ public long getMetageneration() { return metageneration_; } /** - * - * *
      * Output only. The metadata generation of this bucket.
      * Attempting to set or update this field will result in a
@@ -19608,20 +17714,17 @@ public long getMetageneration() {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The metageneration to set. * @return This builder for chaining. */ public Builder setMetageneration(long value) { - + metageneration_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. The metadata generation of this bucket.
      * Attempting to set or update this field will result in a
@@ -19629,7 +17732,6 @@ public Builder setMetageneration(long value) {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -19641,8 +17743,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`.
@@ -19653,13 +17753,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; @@ -19668,8 +17768,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`.
@@ -19680,14 +17778,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 { @@ -19695,8 +17794,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`.
@@ -19707,22 +17804,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`.
@@ -19733,7 +17826,6 @@ public Builder setLocation(java.lang.String value) {
      * 
* * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearLocation() { @@ -19743,8 +17835,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`.
@@ -19755,14 +17845,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; @@ -19772,21 +17860,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; @@ -19795,22 +17881,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 { @@ -19818,37 +17903,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() { @@ -19858,22 +17936,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; @@ -19883,8 +17957,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
@@ -19895,13 +17967,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; @@ -19910,8 +17982,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
@@ -19922,14 +17992,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 { @@ -19937,8 +18008,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
@@ -19949,22 +18018,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
@@ -19975,7 +18040,6 @@ public Builder setStorageClass(java.lang.String value) {
      * 
* * string storage_class = 7; - * * @return This builder for chaining. */ public Builder clearStorageClass() { @@ -19985,8 +18049,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
@@ -19997,14 +18059,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; @@ -20014,8 +18074,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
@@ -20026,13 +18084,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; @@ -20041,8 +18099,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
@@ -20053,14 +18109,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 { @@ -20068,8 +18125,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
@@ -20080,22 +18135,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
@@ -20106,7 +18157,6 @@ public Builder setRpo(java.lang.String value) {
      * 
* * string rpo = 27; - * * @return This builder for chaining. */ public Builder clearRpo() { @@ -20116,8 +18166,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
@@ -20128,14 +18176,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; @@ -20143,25 +18189,19 @@ public Builder setRpoBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List acl_ = - java.util.Collections.emptyList(); - + private java.util.List acl_ = + 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,
@@ -20178,8 +18218,6 @@ public java.util.List getAclList() {
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -20196,8 +18234,6 @@ public int getAclCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -20214,8 +18250,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,
@@ -20224,7 +18258,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();
@@ -20238,8 +18273,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,
@@ -20260,8 +18293,6 @@ public Builder setAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -20284,8 +18315,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,
@@ -20294,7 +18323,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();
@@ -20308,8 +18338,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,
@@ -20318,7 +18346,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());
@@ -20329,8 +18358,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,
@@ -20351,8 +18378,6 @@ public Builder addAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -20365,7 +18390,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);
@@ -20373,8 +18399,6 @@ public Builder addAllAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -20394,8 +18418,6 @@ public Builder clearAcl() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -20415,8 +18437,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,
@@ -20425,12 +18445,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,
@@ -20439,16 +18458,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,
@@ -20457,8 +18474,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 {
@@ -20466,8 +18483,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,
@@ -20477,12 +18492,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,
@@ -20491,13 +18504,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,
@@ -20506,47 +18518,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,
@@ -20563,8 +18566,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,
@@ -20581,8 +18582,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,
@@ -20599,8 +18598,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,
@@ -20609,7 +18606,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();
@@ -20623,8 +18621,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,
@@ -20645,8 +18641,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,
@@ -20669,8 +18663,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,
@@ -20679,7 +18671,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();
@@ -20693,8 +18686,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,
@@ -20715,8 +18706,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,
@@ -20737,8 +18726,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,
@@ -20751,7 +18738,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);
@@ -20759,8 +18747,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,
@@ -20780,8 +18766,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,
@@ -20801,8 +18785,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,
@@ -20811,12 +18793,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,
@@ -20828,14 +18809,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,
@@ -20844,8 +18822,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 {
@@ -20853,8 +18831,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,
@@ -20864,12 +18840,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,
@@ -20878,13 +18852,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,
@@ -20893,22 +18866,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(),
@@ -20920,13 +18887,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]
@@ -20934,15 +18896,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]
@@ -20950,21 +18909,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]
@@ -20987,8 +18941,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]
@@ -20997,7 +18949,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 {
@@ -21008,8 +18961,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]
@@ -21020,9 +18971,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;
@@ -21035,8 +18986,6 @@ public Builder mergeLifecycle(com.google.storage.v2.Bucket.Lifecycle value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -21056,8 +19005,6 @@ public Builder clearLifecycle() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -21072,8 +19019,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]
@@ -21086,14 +19031,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]
@@ -21103,17 +19045,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_;
@@ -21121,64 +19060,45 @@ 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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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) { @@ -21194,19 +19114,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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 { @@ -21217,23 +19134,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -21246,17 +19159,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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); @@ -21269,17 +19178,13 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -21287,76 +19192,58 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
@@ -21372,8 +19259,6 @@ public java.util.List getCorsList() {
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -21389,8 +19274,6 @@ public int getCorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -21406,8 +19289,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.
@@ -21415,7 +19296,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();
@@ -21429,8 +19311,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.
@@ -21438,7 +19318,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());
@@ -21449,8 +19330,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.
@@ -21472,8 +19351,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.
@@ -21481,7 +19358,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();
@@ -21495,8 +19373,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.
@@ -21504,7 +19380,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());
@@ -21515,8 +19392,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.
@@ -21524,7 +19399,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());
@@ -21535,8 +19411,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.
@@ -21548,7 +19422,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);
@@ -21556,8 +19431,6 @@ public Builder addAllCors(
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -21576,8 +19449,6 @@ public Builder clearCors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -21596,8 +19467,6 @@ public Builder removeCors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -21605,12 +19474,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.
@@ -21618,16 +19486,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.
@@ -21635,8 +19501,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 {
@@ -21644,8 +19510,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.
@@ -21654,12 +19518,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.
@@ -21667,13 +19529,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.
@@ -21681,22 +19542,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_;
@@ -21704,64 +19563,45 @@ 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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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) { @@ -21777,19 +19617,16 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The modification time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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 { @@ -21800,23 +19637,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The modification time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -21829,17 +19662,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The modification time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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); @@ -21852,17 +19681,13 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The modification time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -21870,61 +19695,47 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The modification time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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
@@ -21942,7 +19753,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * bool default_event_based_hold = 14; - * * @return The defaultEventBasedHold. */ @java.lang.Override @@ -21950,8 +19760,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
@@ -21969,20 +19777,17 @@ public boolean getDefaultEventBasedHold() {
      * 
* * bool default_event_based_hold = 14; - * * @param value The defaultEventBasedHold to set. * @return This builder for chaining. */ public Builder setDefaultEventBasedHold(boolean value) { - + defaultEventBasedHold_ = value; bitField0_ |= 0x00008000; onChanged(); 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
@@ -22000,7 +19805,6 @@ public Builder setDefaultEventBasedHold(boolean value) {
      * 
* * bool default_event_based_hold = 14; - * * @return This builder for chaining. */ public Builder clearDefaultEventBasedHold() { @@ -22010,19 +19814,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(); @@ -22031,13 +19837,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * User-provided labels, in key/value pairs.
      * 
@@ -22045,21 +19848,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.
      * 
@@ -22071,8 +19873,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * User-provided labels, in key/value pairs.
      * 
@@ -22080,19 +19880,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.
      * 
@@ -22100,88 +19898,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
@@ -22190,15 +19981,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
@@ -22207,21 +19995,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
@@ -22245,8 +20028,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
@@ -22256,7 +20037,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 {
@@ -22267,8 +20049,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
@@ -22280,9 +20060,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;
@@ -22295,8 +20075,6 @@ public Builder mergeWebsite(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
@@ -22317,8 +20095,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
@@ -22334,8 +20110,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
@@ -22349,14 +20123,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
@@ -22367,17 +20138,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_;
@@ -22385,47 +20153,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.
      * 
@@ -22446,15 +20201,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 { @@ -22465,8 +20219,6 @@ public Builder setVersioning(com.google.storage.v2.Bucket.Versioning.Builder bui return this; } /** - * - * *
      * The bucket's versioning config.
      * 
@@ -22475,9 +20227,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; @@ -22490,8 +20242,6 @@ public Builder mergeVersioning(com.google.storage.v2.Bucket.Versioning value) { return this; } /** - * - * *
      * The bucket's versioning config.
      * 
@@ -22509,8 +20259,6 @@ public Builder clearVersioning() { return this; } /** - * - * *
      * The bucket's versioning config.
      * 
@@ -22523,8 +20271,6 @@ public com.google.storage.v2.Bucket.Versioning.Builder getVersioningBuilder() { return getVersioningFieldBuilder().getBuilder(); } /** - * - * *
      * The bucket's versioning config.
      * 
@@ -22535,14 +20281,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.
      * 
@@ -22550,17 +20293,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_; @@ -22568,49 +20308,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.
@@ -22632,8 +20359,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.
@@ -22641,7 +20366,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 {
@@ -22652,8 +20378,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.
@@ -22663,9 +20387,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;
@@ -22678,8 +20402,6 @@ public Builder mergeLogging(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.
@@ -22698,8 +20420,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.
@@ -22713,8 +20433,6 @@ public com.google.storage.v2.Bucket.Logging.Builder getLoggingBuilder() {
       return getLoggingFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
@@ -22726,14 +20444,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.
@@ -22742,17 +20457,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_;
@@ -22760,37 +20472,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() { @@ -22801,15 +20502,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) { @@ -22825,17 +20523,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 { @@ -22846,21 +20542,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; @@ -22873,15 +20566,12 @@ public Builder mergeOwner(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 clearOwner() { bitField0_ = (bitField0_ & ~0x00100000); @@ -22894,15 +20584,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; @@ -22910,46 +20597,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_; @@ -22957,47 +20636,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.
      * 
@@ -23018,15 +20684,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 { @@ -23037,8 +20702,6 @@ public Builder setEncryption(com.google.storage.v2.Bucket.Encryption.Builder bui return this; } /** - * - * *
      * Encryption config for a bucket.
      * 
@@ -23047,9 +20710,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; @@ -23062,8 +20725,6 @@ public Builder mergeEncryption(com.google.storage.v2.Bucket.Encryption value) { return this; } /** - * - * *
      * Encryption config for a bucket.
      * 
@@ -23081,8 +20742,6 @@ public Builder clearEncryption() { return this; } /** - * - * *
      * Encryption config for a bucket.
      * 
@@ -23095,8 +20754,6 @@ public com.google.storage.v2.Bucket.Encryption.Builder getEncryptionBuilder() { return getEncryptionFieldBuilder().getBuilder(); } /** - * - * *
      * Encryption config for a bucket.
      * 
@@ -23107,14 +20764,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.
      * 
@@ -23122,17 +20776,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_; @@ -23140,47 +20791,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.
      * 
@@ -23201,15 +20839,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 { @@ -23220,8 +20857,6 @@ public Builder setBilling(com.google.storage.v2.Bucket.Billing.Builder builderFo return this; } /** - * - * *
      * The bucket's billing config.
      * 
@@ -23230,9 +20865,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; @@ -23245,8 +20880,6 @@ public Builder mergeBilling(com.google.storage.v2.Bucket.Billing value) { return this; } /** - * - * *
      * The bucket's billing config.
      * 
@@ -23264,8 +20897,6 @@ public Builder clearBilling() { return this; } /** - * - * *
      * The bucket's billing config.
      * 
@@ -23278,8 +20909,6 @@ public com.google.storage.v2.Bucket.Billing.Builder getBillingBuilder() { return getBillingFieldBuilder().getBuilder(); } /** - * - * *
      * The bucket's billing config.
      * 
@@ -23290,14 +20919,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.
      * 
@@ -23305,17 +20931,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_; @@ -23323,13 +20946,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
@@ -23343,15 +20961,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
@@ -23365,21 +20980,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
@@ -23408,8 +21018,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
@@ -23436,8 +21044,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
@@ -23454,10 +21060,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;
@@ -23470,8 +21075,6 @@ public Builder mergeRetentionPolicy(com.google.storage.v2.Bucket.RetentionPolicy
       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
@@ -23497,8 +21100,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
@@ -23519,8 +21120,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
@@ -23539,14 +21138,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
@@ -23562,17 +21158,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_;
@@ -23580,47 +21173,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.
      * 
@@ -23641,15 +21221,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 { @@ -23660,8 +21239,6 @@ public Builder setIamConfig(com.google.storage.v2.Bucket.IamConfig.Builder build return this; } /** - * - * *
      * The bucket's IAM config.
      * 
@@ -23670,9 +21247,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; @@ -23685,8 +21262,6 @@ public Builder mergeIamConfig(com.google.storage.v2.Bucket.IamConfig value) { return this; } /** - * - * *
      * The bucket's IAM config.
      * 
@@ -23704,8 +21279,6 @@ public Builder clearIamConfig() { return this; } /** - * - * *
      * The bucket's IAM config.
      * 
@@ -23718,8 +21291,6 @@ public com.google.storage.v2.Bucket.IamConfig.Builder getIamConfigBuilder() { return getIamConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The bucket's IAM config.
      * 
@@ -23730,14 +21301,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.
      * 
@@ -23745,32 +21313,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 @@ -23778,33 +21340,27 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } /** - * - * *
      * Reserved for future use.
      * 
* * bool satisfies_pzs = 25; - * * @param value The satisfiesPzs to set. * @return This builder for chaining. */ public Builder setSatisfiesPzs(boolean value) { - + satisfiesPzs_ = value; bitField0_ |= 0x02000000; onChanged(); return this; } /** - * - * *
      * Reserved for future use.
      * 
* * bool satisfies_pzs = 25; - * * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { @@ -23816,49 +21372,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].
@@ -23866,8 +21409,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();
@@ -23881,8 +21423,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].
@@ -23902,8 +21442,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].
@@ -23911,13 +21449,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;
@@ -23930,8 +21466,6 @@ public Builder mergeCustomPlacementConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -23950,8 +21484,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].
@@ -23959,15 +21491,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].
@@ -23975,19 +21504,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].
@@ -23996,17 +21521,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_;
@@ -24014,49 +21536,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.
@@ -24078,8 +21587,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.
@@ -24087,7 +21594,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 {
@@ -24098,8 +21606,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.
@@ -24109,9 +21615,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;
@@ -24124,8 +21630,6 @@ public Builder mergeAutoclass(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.
@@ -24144,8 +21648,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.
@@ -24159,8 +21661,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.
@@ -24172,14 +21672,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.
@@ -24188,24 +21685,21 @@ 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_;
     }
-
     @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);
     }
 
@@ -24215,12 +21709,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();
   }
@@ -24229,27 +21723,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;
@@ -24264,4 +21758,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 0a092cd308..00380d5896 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,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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,43 +32,38 @@ private BucketAccessControl() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BucketAccessControl(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } 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 @@ -95,29 +72,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 { @@ -126,18 +103,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 @@ -146,29 +119,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 { @@ -177,12 +150,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}`
@@ -205,7 +175,6 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string entity = 3; - * * @return The entity. */ @java.lang.Override @@ -214,15 +183,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}`
@@ -245,15 +213,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 { @@ -262,19 +231,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 @@ -283,30 +248,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 { @@ -315,18 +280,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 @@ -335,29 +296,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 { @@ -366,12 +327,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
@@ -380,7 +338,6 @@ public com.google.protobuf.ByteString getEntityIdBytes() {
    * 
* * string etag = 8; - * * @return The etag. */ @java.lang.Override @@ -389,15 +346,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
@@ -406,15 +362,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 { @@ -423,18 +380,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 @@ -443,29 +396,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 { @@ -474,18 +427,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 @@ -494,29 +443,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 { @@ -527,14 +476,11 @@ 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 @@ -542,25 +488,18 @@ public boolean hasProjectTeam() { return projectTeam_ != null; } /** - * - * *
    * 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.
    * 
@@ -569,13 +508,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; @@ -587,7 +523,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_); } @@ -643,7 +580,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_); } if (projectTeam_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProjectTeam()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getProjectTeam()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); @@ -659,25 +597,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; @@ -715,136 +661,130 @@ 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() { - 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(); @@ -866,9 +806,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 @@ -887,11 +827,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; } @@ -923,8 +860,9 @@ private void buildPartial0(com.google.storage.v2.BucketAccessControl result) { result.domain_ = domain_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.projectTeam_ = - projectTeamBuilder_ == null ? projectTeam_ : projectTeamBuilder_.build(); + result.projectTeam_ = projectTeamBuilder_ == null + ? projectTeam_ + : projectTeamBuilder_.build(); } } @@ -932,39 +870,38 @@ private void buildPartial0(com.google.storage.v2.BucketAccessControl 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.BucketAccessControl) { - return mergeFrom((com.google.storage.v2.BucketAccessControl) other); + return mergeFrom((com.google.storage.v2.BucketAccessControl)other); } else { super.mergeFrom(other); return this; @@ -1042,67 +979,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) { @@ -1112,25 +1041,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; @@ -1139,21 +1065,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 { @@ -1161,35 +1086,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() { @@ -1199,21 +1117,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; @@ -1223,20 +1137,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; @@ -1245,21 +1157,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 { @@ -1267,35 +1178,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() { @@ -1305,21 +1209,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; @@ -1329,8 +1229,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}`
@@ -1353,13 +1251,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; @@ -1368,8 +1266,6 @@ public java.lang.String getEntity() { } } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1392,14 +1288,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 { @@ -1407,8 +1304,6 @@ public com.google.protobuf.ByteString getEntityBytes() { } } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1431,22 +1326,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}`
@@ -1469,7 +1360,6 @@ public Builder setEntity(java.lang.String value) {
      * 
* * string entity = 3; - * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1479,8 +1369,6 @@ public Builder clearEntity() { return this; } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1503,14 +1391,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; @@ -1520,21 +1406,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; @@ -1543,22 +1427,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 { @@ -1566,37 +1449,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() { @@ -1606,22 +1482,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; @@ -1631,20 +1503,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; @@ -1653,21 +1523,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 { @@ -1675,35 +1544,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() { @@ -1713,21 +1575,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; @@ -1737,8 +1595,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
@@ -1747,13 +1603,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; @@ -1762,8 +1618,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * The etag of the BucketAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1772,14 +1626,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 { @@ -1787,8 +1642,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
@@ -1797,22 +1650,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
@@ -1821,7 +1670,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 8; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1831,8 +1679,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * The etag of the BucketAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1841,14 +1687,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; @@ -1858,20 +1702,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; @@ -1880,21 +1722,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 { @@ -1902,35 +1743,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() { @@ -1940,21 +1774,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; @@ -1964,20 +1794,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; @@ -1986,21 +1814,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 { @@ -2008,35 +1835,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() { @@ -2046,21 +1866,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; @@ -2070,47 +1886,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.
      * 
@@ -2131,15 +1934,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 { @@ -2150,8 +1952,6 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderF return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2160,9 +1960,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; @@ -2175,8 +1975,6 @@ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2194,8 +1992,6 @@ public Builder clearProjectTeam() { return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2208,8 +2004,6 @@ public com.google.storage.v2.ProjectTeam.Builder getProjectTeamBuilder() { return getProjectTeamFieldBuilder().getBuilder(); } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2220,14 +2014,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.
      * 
@@ -2235,24 +2026,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); } @@ -2262,12 +2050,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(); } @@ -2276,27 +2064,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; @@ -2311,4 +2099,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 6b7573f3dc..ca5422c37c 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,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +70,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 +96,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 +152,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 +164,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 88% 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 ccb52fc319..66a37d90b0 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,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of the 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
@@ -58,13 +35,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
@@ -72,14 +46,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
@@ -87,13 +59,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
@@ -101,47 +70,36 @@ 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.
    * Attempting to set or update this field will result in a
@@ -149,14 +107,11 @@ public interface BucketOrBuilder
    * 
* * 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 +122,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 +136,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 +174,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 +188,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 +204,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 +218,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 +232,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 +245,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 +255,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 +263,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 +274,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 +286,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 +299,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 +309,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 +317,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 +328,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 +339,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 +350,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,52 +365,39 @@ public interface BucketOrBuilder
   com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The creation time of the bucket.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
@@ -505,10 +405,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.
@@ -518,8 +417,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.
@@ -529,8 +426,6 @@ public interface BucketOrBuilder
    */
   int getCorsCount();
   /**
-   *
-   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -538,10 +433,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.
@@ -549,55 +443,43 @@ 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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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
@@ -615,14 +497,11 @@ public interface BucketOrBuilder
    * 
* * bool default_event_based_hold = 14; - * * @return The defaultEventBasedHold. */ boolean getDefaultEventBasedHold(); /** - * - * *
    * User-provided labels, in key/value pairs.
    * 
@@ -631,31 +510,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.
    * 
@@ -663,24 +541,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
@@ -689,13 +564,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
@@ -704,13 +576,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
@@ -723,32 +592,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.
    * 
@@ -758,34 +619,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.
@@ -796,34 +649,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.
@@ -834,32 +679,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.
    * 
@@ -869,32 +706,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.
    * 
@@ -904,8 +733,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
@@ -919,13 +746,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
@@ -939,13 +763,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
@@ -963,32 +784,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.
    * 
@@ -998,47 +811,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].
@@ -1049,34 +851,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.
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 c49b1cce31..03906ae864 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,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Message for canceling an in-progress resumable upload.
  * `upload_id` **must** be set.
@@ -28,60 +11,54 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.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 @@ -90,30 +67,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 { @@ -122,7 +99,6 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +110,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_); } @@ -158,15 +135,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; } @@ -186,103 +163,96 @@ 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.
@@ -290,32 +260,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();
@@ -325,9 +296,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
@@ -346,11 +317,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;
     }
@@ -366,39 +334,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;
@@ -406,8 +373,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;
@@ -439,19 +405,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) {
@@ -461,26 +425,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; @@ -489,22 +450,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 { @@ -512,37 +472,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() { @@ -552,31 +505,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); } @@ -586,12 +535,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(); } @@ -600,27 +549,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; @@ -635,4 +584,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 11d2a69182..74d15b5ffe 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,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 c0067a3865..d6e458cfef 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,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto package com.google.storage.v2; /** - * - * *
  * Empty response message for canceling an in-progress resumable upload, will be
  * extended as needed.
@@ -28,46 +11,44 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.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;
@@ -79,7 +60,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);
   }
 
@@ -97,13 +79,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;
@@ -122,103 +103,96 @@ 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.
@@ -226,32 +200,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();
@@ -259,9 +234,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
@@ -280,8 +255,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;
     }
@@ -290,39 +264,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;
@@ -330,8 +303,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;
@@ -358,13 +330,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) {
@@ -374,9 +345,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);
     }
 
@@ -386,12 +357,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();
   }
@@ -400,27 +371,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;
@@ -435,4 +406,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..628c157424
--- /dev/null
+++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java
@@ -0,0 +1,9 @@
+// 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/ChecksummedData.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
similarity index 67%
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 3187e0b80e..a48be4851a 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,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Message used to convey content being read or written, along with an optional
  * checksum.
@@ -28,58 +11,53 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.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;
   /**
-   *
-   *
    * 
    * The data.
    * 
* - * bytes content = 1; - * + * bytes content = 1 [ctype = CORD]; * @return The content. */ @java.lang.Override @@ -90,14 +68,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 @@ -105,14 +80,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 @@ -121,7 +93,6 @@ public int getCrc32C() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +104,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_); } @@ -150,10 +122,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; @@ -163,17 +137,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; @@ -197,103 +173,97 @@ 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.
@@ -301,32 +271,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();
@@ -337,9 +308,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
@@ -358,11 +329,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;
     }
@@ -384,39 +352,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;
@@ -457,25 +424,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) {
@@ -485,19 +449,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * The data.
      * 
* - * bytes content = 1; - * + * bytes content = 1 [ctype = CORD]; * @return The content. */ @java.lang.Override @@ -505,35 +465,27 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** - * - * *
      * The data.
      * 
* - * bytes content = 1; - * + * bytes content = 1 [ctype = CORD]; * @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; } /** - * - * *
      * The data.
      * 
* - * bytes content = 1; - * + * bytes content = 1 [ctype = CORD]; * @return This builder for chaining. */ public Builder clearContent() { @@ -543,16 +495,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 @@ -560,14 +509,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 @@ -575,33 +521,27 @@ 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. */ public Builder setCrc32C(int value) { - + crc32C_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, the CRC32C digest of the content field.
      * 
* * optional fixed32 crc32c = 2; - * * @return This builder for chaining. */ public Builder clearCrc32C() { @@ -610,9 +550,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); } @@ -622,12 +562,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(); } @@ -636,27 +576,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; @@ -671,4 +611,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 51% 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 9fe732c82c..b95ef23363 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,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 ChecksummedDataOrBuilder - extends +public interface ChecksummedDataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ChecksummedData) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The data.
    * 
* - * bytes content = 1; - * + * bytes content = 1 [ctype = CORD]; * @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 f307fee8c0..d5a884febf 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,44 +27,39 @@ private CommonObjectRequestParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonObjectRequestParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -91,30 +68,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 { @@ -125,15 +102,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 @@ -142,18 +116,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 @@ -162,7 +132,6 @@ public com.google.protobuf.ByteString getEncryptionKeySha256Bytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,7 +143,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_); } @@ -197,10 +167,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; @@ -210,17 +182,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; } @@ -243,136 +217,130 @@ 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(); @@ -384,9 +352,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 @@ -405,11 +373,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; } @@ -431,39 +396,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; @@ -471,8 +435,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; @@ -510,31 +473,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) { @@ -544,26 +503,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; @@ -572,22 +528,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 { @@ -595,37 +550,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() { @@ -635,22 +583,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; @@ -658,18 +602,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 @@ -677,37 +617,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() { @@ -717,18 +649,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 @@ -736,37 +664,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() { @@ -775,9 +695,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); } @@ -787,12 +707,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(); } @@ -801,27 +721,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; @@ -836,4 +756,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 327ae41411..ded10290cc 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,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 ec952228f6..1630d1a947 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,175 +27,142 @@ private ComposeObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComposeObjectRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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
@@ -221,13 +170,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
@@ -235,65 +181,58 @@ 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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
@@ -301,7 +240,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 @@ -309,8 +247,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
@@ -318,7 +254,6 @@ public boolean hasIfGenerationMatch() {
        * 
* * optional int64 if_generation_match = 1; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -327,7 +262,6 @@ public long getIfGenerationMatch() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,7 +273,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_); } @@ -353,7 +288,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; @@ -363,19 +299,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; @@ -390,110 +324,96 @@ 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 @@ -503,44 +423,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(); @@ -550,22 +465,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); } @@ -573,19 +485,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)) { @@ -599,56 +506,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.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()); } @@ -678,19 +575,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) { @@ -700,13 +595,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
@@ -714,7 +606,6 @@ public Builder mergeFrom(
          * 
* * optional int64 if_generation_match = 1; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -722,8 +613,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
@@ -731,7 +620,6 @@ public boolean hasIfGenerationMatch() {
          * 
* * optional int64 if_generation_match = 1; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -739,8 +627,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
@@ -748,20 +634,17 @@ public long getIfGenerationMatch() {
          * 
* * optional int64 if_generation_match = 1; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000001; onChanged(); 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
@@ -769,7 +652,6 @@ public Builder setIfGenerationMatch(long value) {
          * 
* * optional int64 if_generation_match = 1; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -778,7 +660,6 @@ public Builder clearIfGenerationMatch() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -791,46 +672,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; @@ -842,26 +718,22 @@ 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; } + } 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 @@ -870,30 +742,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 { @@ -904,14 +776,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 @@ -920,19 +789,13 @@ 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 @@ -940,48 +803,30 @@ public boolean hasObjectPreconditions() { return objectPreconditions_ != null; } /** - * - * *
      * 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; @@ -993,7 +838,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_); } @@ -1016,11 +862,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()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getObjectPreconditions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1030,19 +877,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; @@ -1058,7 +907,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(); @@ -1069,94 +919,87 @@ 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 @@ -1166,41 +1009,39 @@ 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() { - 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(); @@ -1216,9 +1057,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 @@ -1237,11 +1078,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; } @@ -1255,10 +1093,9 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest.SourceObje result.generation_ = generation_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectPreconditions_ = - objectPreconditionsBuilder_ == null - ? objectPreconditions_ - : objectPreconditionsBuilder_.build(); + result.objectPreconditions_ = objectPreconditionsBuilder_ == null + ? objectPreconditions_ + : objectPreconditionsBuilder_.build(); } } @@ -1266,41 +1103,38 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest.SourceObje public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -1308,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; @@ -1347,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) { @@ -1382,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; @@ -1410,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 { @@ -1433,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() { @@ -1473,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; @@ -1496,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 @@ -1513,33 +1325,27 @@ 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. */ public Builder setGeneration(long value) { - + generation_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The generation of this object to use as the source.
        * 
* * int64 generation = 2; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1549,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(); @@ -1622,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 { @@ -1645,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; @@ -1675,15 +1446,11 @@ public Builder mergeObjectPreconditions( 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); @@ -1696,74 +1463,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) { @@ -1776,12 +1521,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(); } @@ -1790,28 +1535,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; @@ -1826,21 +1570,18 @@ 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 @@ -1848,15 +1589,11 @@ public boolean hasDestination() { return destination_ != null; } /** - * - * *
    * 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 @@ -1864,14 +1601,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() { @@ -1879,12 +1613,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.
    * 
@@ -1892,13 +1623,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.
    * 
@@ -1906,13 +1634,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.
    * 
@@ -1924,8 +1650,6 @@ public int getSourceObjectsCount() { return sourceObjects_.size(); } /** - * - * *
    * The list of source objects that will be concatenated into a single object.
    * 
@@ -1937,8 +1661,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.
    * 
@@ -1952,12 +1674,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",
@@ -1965,7 +1684,6 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourc
    * 
* * string destination_predefined_acl = 9; - * * @return The destinationPredefinedAcl. */ @java.lang.Override @@ -1974,15 +1692,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",
@@ -1990,15 +1707,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 { @@ -2009,8 +1727,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
@@ -2018,7 +1734,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() {
    * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -2026,8 +1741,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
@@ -2035,7 +1748,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -2046,15 +1758,12 @@ 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 @@ -2062,15 +1771,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 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 @@ -2079,12 +1785,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`,
@@ -2093,7 +1796,6 @@ public long getIfMetagenerationMatch() {
    * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ @java.lang.Override @@ -2102,15 +1804,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`,
@@ -2119,15 +1820,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 { @@ -2138,14 +1840,11 @@ 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 @@ -2153,25 +1852,18 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** - * - * *
    * 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.
    * 
@@ -2179,25 +1871,19 @@ 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 @@ -2205,26 +1891,19 @@ public boolean hasObjectChecksums() { return objectChecksums_ != null; } /** - * - * *
    * 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.
@@ -2234,13 +1913,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;
@@ -2252,7 +1928,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 (destination_ != null) {
       output.writeMessage(1, getDestination());
     }
@@ -2287,31 +1964,34 @@ public int getSerializedSize() {
 
     size = 0;
     if (destination_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDestination());
+      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));
+      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
+        .computeInt64Size(4, ifGenerationMatch_);
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationMatch_);
+      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());
+      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());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getObjectChecksums());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -2321,37 +2001,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;
@@ -2376,11 +2062,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();
@@ -2397,136 +2085,130 @@ 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() { - 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(); @@ -2561,9 +2243,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 @@ -2582,12 +2264,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; } @@ -2607,8 +2286,9 @@ private void buildPartialRepeatedFields(com.google.storage.v2.ComposeObjectReque private void buildPartial0(com.google.storage.v2.ComposeObjectRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.destination_ = - destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + result.destination_ = destinationBuilder_ == null + ? destination_ + : destinationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.destinationPredefinedAcl_ = destinationPredefinedAcl_; @@ -2626,14 +2306,14 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest result) { result.kmsKey_ = kmsKey_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -2642,39 +2322,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; @@ -2704,10 +2383,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_); } @@ -2761,70 +2439,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) { @@ -2834,60 +2508,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) { @@ -2903,16 +2560,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 { @@ -2923,20 +2578,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; @@ -2949,14 +2601,11 @@ public Builder mergeDestination(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 clearDestination() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2969,14 +2618,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; @@ -2984,81 +2630,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 { @@ -3066,14 +2692,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) { @@ -3083,14 +2706,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) { @@ -3100,14 +2720,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) { @@ -3124,18 +2741,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()); @@ -3146,14 +2759,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) { @@ -3169,14 +2779,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) { @@ -3193,14 +2800,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) { @@ -3214,18 +2818,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()); @@ -3236,21 +2836,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); @@ -3258,14 +2855,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) { @@ -3278,14 +2872,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) { @@ -3298,50 +2889,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 { @@ -3349,62 +2929,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(), @@ -3416,8 +2979,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",
@@ -3425,13 +2986,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; @@ -3440,8 +3001,6 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3449,14 +3008,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 { @@ -3464,8 +3024,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3473,22 +3031,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",
@@ -3496,7 +3050,6 @@ public Builder setDestinationPredefinedAcl(java.lang.String value) {
      * 
* * string destination_predefined_acl = 9; - * * @return This builder for chaining. */ public Builder clearDestinationPredefinedAcl() { @@ -3506,8 +3059,6 @@ public Builder clearDestinationPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3515,14 +3066,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; @@ -3530,10 +3079,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
@@ -3541,7 +3088,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 @@ -3549,8 +3095,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
@@ -3558,7 +3102,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -3566,8 +3109,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
@@ -3575,20 +3116,17 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000008; onChanged(); 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
@@ -3596,7 +3134,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 4; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -3606,17 +3143,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 @@ -3624,15 +3158,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 @@ -3640,35 +3171,29 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000010; onChanged(); 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() { @@ -3680,8 +3205,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`,
@@ -3690,13 +3213,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; @@ -3705,8 +3228,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`,
@@ -3715,14 +3236,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 { @@ -3730,8 +3252,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`,
@@ -3740,22 +3260,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`,
@@ -3764,7 +3280,6 @@ public Builder setKmsKey(java.lang.String value) {
      * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -3774,8 +3289,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`,
@@ -3784,14 +3297,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; @@ -3801,55 +3312,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(); @@ -3863,8 +3360,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -3883,21 +3378,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; @@ -3910,8 +3401,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -3929,42 +3418,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.
      * 
@@ -3972,17 +3452,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_; @@ -3990,49 +3467,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.
@@ -4054,8 +3518,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.
@@ -4075,8 +3537,6 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
@@ -4086,9 +3546,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;
@@ -4101,8 +3561,6 @@ public Builder mergeObjectChecksums(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.
@@ -4121,8 +3579,6 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
@@ -4136,8 +3592,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.
@@ -4149,14 +3603,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.
@@ -4165,24 +3616,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);
     }
 
@@ -4192,12 +3640,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();
   }
@@ -4206,27 +3654,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;
@@ -4241,4 +3689,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 9e95be1591..d18597881e 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,49 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See 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 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 +52,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 +60,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 +79,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 +86,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 +97,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 +110,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 +121,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 +155,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 +167,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 +200,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 65%
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 a60d9bae61..201806221c 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,81 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.
    * 
* * int64 start = 1; - * * @return The start. */ @java.lang.Override @@ -86,14 +65,11 @@ public long getStart() { public static final int END_FIELD_NUMBER = 2; private long end_ = 0L; /** - * - * *
    * The ending offset of the object data.
    * 
* * int64 end = 2; - * * @return The end. */ @java.lang.Override @@ -104,14 +80,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 @@ -120,7 +93,6 @@ public long getCompleteLength() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,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_); } @@ -152,13 +125,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; @@ -168,16 +144,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; } @@ -190,145 +169,143 @@ 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(); @@ -340,9 +317,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 @@ -362,9 +339,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; } @@ -386,39 +361,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; @@ -462,31 +436,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) { @@ -496,19 +466,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long start_; + private long start_ ; /** - * - * *
      * The starting offset of the object data.
      * 
* * int64 start = 1; - * * @return The start. */ @java.lang.Override @@ -516,33 +482,27 @@ public long getStart() { return start_; } /** - * - * *
      * The starting offset of the object data.
      * 
* * int64 start = 1; - * * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(long value) { - + start_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The starting offset of the object data.
      * 
* * int64 start = 1; - * * @return This builder for chaining. */ public Builder clearStart() { @@ -552,16 +512,13 @@ public Builder clearStart() { return this; } - private long end_; + private long end_ ; /** - * - * *
      * The ending offset of the object data.
      * 
* * int64 end = 2; - * * @return The end. */ @java.lang.Override @@ -569,33 +526,27 @@ public long getEnd() { return end_; } /** - * - * *
      * The ending offset of the object data.
      * 
* * int64 end = 2; - * * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(long value) { - + end_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The ending offset of the object data.
      * 
* * int64 end = 2; - * * @return This builder for chaining. */ public Builder clearEnd() { @@ -605,16 +556,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 @@ -622,33 +570,27 @@ 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. */ public Builder setCompleteLength(long value) { - + completeLength_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The complete length of the object data.
      * 
* * int64 complete_length = 3; - * * @return This builder for chaining. */ public Builder clearCompleteLength() { @@ -657,9 +599,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); } @@ -669,12 +611,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(); } @@ -683,27 +625,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; @@ -718,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ContentRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/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 similarity index 52% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java index 969abe6d3b..46bd0a2f70 100644 --- a/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 @@ -1,63 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto package com.google.storage.v2; -public interface ContentRangeOrBuilder - extends +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/CreateBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java similarity index 74% 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 0c1067d945..d56e7f20cd 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,45 +28,38 @@ private CreateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBucketRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } 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 @@ -93,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. 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 { @@ -128,8 +101,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
@@ -141,7 +112,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * .google.storage.v2.Bucket bucket = 2; - * * @return Whether the bucket field is set. */ @java.lang.Override @@ -149,8 +119,6 @@ public boolean hasBucket() { return bucket_ != null; } /** - * - * *
    * Properties of the new bucket being inserted.
    * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -162,7 +130,6 @@ public boolean hasBucket() {
    * 
* * .google.storage.v2.Bucket bucket = 2; - * * @return The bucket. */ @java.lang.Override @@ -170,8 +137,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
@@ -190,12 +155,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
@@ -203,7 +165,6 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
    * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ @java.lang.Override @@ -212,15 +173,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
@@ -228,15 +188,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 { @@ -245,12 +206,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",
@@ -258,7 +216,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
    * 
* * string predefined_acl = 6; - * * @return The predefinedAcl. */ @java.lang.Override @@ -267,15 +224,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",
@@ -283,15 +239,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 { @@ -300,12 +257,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",
@@ -313,7 +267,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
    * 
* * string predefined_default_object_acl = 7; - * * @return The predefinedDefaultObjectAcl. */ @java.lang.Override @@ -322,15 +275,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",
@@ -338,15 +290,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 { @@ -355,7 +308,6 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,7 +319,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_); } @@ -396,7 +349,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (bucket_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBucket()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBucket()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bucketId_); @@ -405,8 +359,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; @@ -416,23 +369,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; } @@ -461,136 +417,130 @@ 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() { - 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(); @@ -608,9 +558,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 @@ -629,11 +579,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; } @@ -644,7 +591,9 @@ private void buildPartial0(com.google.storage.v2.CreateBucketRequest result) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null + ? bucket_ + : bucketBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.bucketId_ = bucketId_; @@ -661,39 +610,38 @@ private void buildPartial0(com.google.storage.v2.CreateBucketRequest 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.CreateBucketRequest) { - return mergeFrom((com.google.storage.v2.CreateBucketRequest) other); + return mergeFrom((com.google.storage.v2.CreateBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -751,43 +699,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) { @@ -797,27 +741,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; @@ -826,23 +765,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 { @@ -850,39 +786,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() { @@ -892,23 +817,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; @@ -918,13 +837,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
@@ -936,15 +850,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
@@ -956,7 +867,6 @@ public boolean hasBucket() {
      * 
* * .google.storage.v2.Bucket bucket = 2; - * * @return The bucket. */ public com.google.storage.v2.Bucket getBucket() { @@ -967,8 +877,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
@@ -995,8 +903,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
@@ -1009,7 +915,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 {
@@ -1020,8 +927,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
@@ -1036,9 +941,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;
@@ -1051,8 +956,6 @@ public Builder mergeBucket(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
@@ -1076,8 +979,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
@@ -1096,8 +997,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
@@ -1114,12 +1013,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
@@ -1133,17 +1031,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_;
@@ -1151,8 +1046,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
@@ -1160,13 +1053,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; @@ -1175,8 +1068,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
@@ -1184,14 +1075,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 { @@ -1199,8 +1091,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
@@ -1208,22 +1098,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
@@ -1231,7 +1117,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() { @@ -1241,8 +1126,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
@@ -1250,14 +1133,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; @@ -1267,8 +1148,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",
@@ -1276,13 +1155,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; @@ -1291,8 +1170,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1300,14 +1177,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 { @@ -1315,8 +1193,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1324,22 +1200,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",
@@ -1347,7 +1219,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
      * 
* * string predefined_acl = 6; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1357,8 +1228,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1366,14 +1235,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; @@ -1383,8 +1250,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",
@@ -1392,13 +1257,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; @@ -1407,8 +1272,6 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1416,14 +1279,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 { @@ -1431,8 +1295,6 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { } } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1440,22 +1302,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",
@@ -1463,7 +1321,6 @@ public Builder setPredefinedDefaultObjectAcl(java.lang.String value) {
      * 
* * string predefined_default_object_acl = 7; - * * @return This builder for chaining. */ public Builder clearPredefinedDefaultObjectAcl() { @@ -1473,8 +1330,6 @@ public Builder clearPredefinedDefaultObjectAcl() { return this; } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1482,23 +1337,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); } @@ -1508,12 +1361,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(); } @@ -1522,27 +1375,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; @@ -1557,4 +1410,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 7ef32cd3f7..ab5f01f023 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,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +39,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 +54,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 +73,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 +80,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 +91,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 +104,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 +115,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 +128,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 +139,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 65e3c8277c..5838a94e7f 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,47 +26,40 @@ private CreateHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateHmacKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -93,33 +68,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 { @@ -128,18 +101,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 @@ -148,29 +117,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 { @@ -179,7 +148,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +159,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_); } @@ -221,16 +190,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; } @@ -251,136 +221,130 @@ 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(); @@ -391,9 +355,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 @@ -412,11 +376,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; } @@ -435,39 +396,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; @@ -512,25 +472,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) { @@ -540,29 +497,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; @@ -571,25 +523,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 { @@ -597,43 +546,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() { @@ -643,25 +581,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; @@ -671,20 +603,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; @@ -693,21 +623,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 { @@ -715,35 +644,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() { @@ -753,30 +675,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); } @@ -786,12 +704,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(); } @@ -800,27 +718,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; @@ -835,4 +753,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 67b9cd539f..ad03e2b07e 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,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 67% 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 78bd22f8de..4e0985cbea 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,83 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } 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 @@ -85,25 +63,18 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * 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.
    * 
@@ -112,23 +83,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 @@ -137,7 +103,6 @@ public com.google.protobuf.ByteString getSecretKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +114,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 (metadata_ != null) { output.writeMessage(1, getMetadata()); } @@ -166,10 +132,12 @@ public int getSerializedSize() { size = 0; if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata()); + 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; @@ -179,19 +147,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; } @@ -214,136 +183,130 @@ 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() { - 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(); @@ -358,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_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 @@ -379,11 +342,8 @@ 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; } @@ -391,7 +351,9 @@ public com.google.storage.v2.CreateHmacKeyResponse buildPartial() { private void buildPartial0(com.google.storage.v2.CreateHmacKeyResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.secretKeyBytes_ = secretKeyBytes_; @@ -402,39 +364,38 @@ private void buildPartial0(com.google.storage.v2.CreateHmacKeyResponse 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.CreateHmacKeyResponse) { - return mergeFrom((com.google.storage.v2.CreateHmacKeyResponse) other); + return mergeFrom((com.google.storage.v2.CreateHmacKeyResponse)other); } else { super.mergeFrom(other); return this; @@ -475,25 +436,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) { @@ -503,52 +463,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.
      * 
@@ -569,15 +515,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 { @@ -588,8 +533,6 @@ public Builder setMetadata(com.google.storage.v2.HmacKeyMetadata.Builder builder return this; } /** - * - * *
      * Key metadata.
      * 
@@ -598,9 +541,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; @@ -613,8 +556,6 @@ public Builder mergeMetadata(com.google.storage.v2.HmacKeyMetadata value) { return this; } /** - * - * *
      * Key metadata.
      * 
@@ -632,8 +573,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Key metadata.
      * 
@@ -646,8 +585,6 @@ public com.google.storage.v2.HmacKeyMetadata.Builder getMetadataBuilder() { return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Key metadata.
      * 
@@ -658,14 +595,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.
      * 
@@ -673,17 +607,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_; @@ -691,15 +622,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 @@ -707,37 +635,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() { @@ -746,9 +666,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); } @@ -758,12 +678,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(); } @@ -772,27 +692,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; @@ -807,4 +727,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 0a77982ef8..aa04e1a343 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,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +35,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 60% 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 27c92fdb30..0e8a3520cf 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,88 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } 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 @@ -91,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 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 { @@ -126,16 +98,11 @@ 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 @@ -143,44 +110,30 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** - * - * *
    * 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; @@ -192,7 +145,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_); } @@ -212,7 +166,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (notificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotificationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNotificationConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,18 +177,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; @@ -258,136 +214,129 @@ 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() { - 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(); @@ -402,9 +351,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 @@ -423,11 +372,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; } @@ -438,10 +384,9 @@ private void buildPartial0(com.google.storage.v2.CreateNotificationConfigRequest result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.notificationConfig_ = - notificationConfigBuilder_ == null - ? notificationConfig_ - : notificationConfigBuilder_.build(); + result.notificationConfig_ = notificationConfigBuilder_ == null + ? notificationConfig_ + : notificationConfigBuilder_.build(); } } @@ -449,39 +394,38 @@ private void buildPartial0(com.google.storage.v2.CreateNotificationConfigRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -489,8 +433,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; @@ -525,26 +468,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) { @@ -554,27 +495,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; @@ -583,23 +519,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 { @@ -607,39 +540,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() { @@ -649,23 +571,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; @@ -675,58 +591,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) { @@ -742,15 +639,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) { @@ -764,22 +657,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; @@ -792,15 +680,11 @@ public Builder mergeNotificationConfig(com.google.storage.v2.NotificationConfig 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); @@ -813,15 +697,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; @@ -829,55 +709,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); } @@ -887,12 +755,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(); } @@ -901,27 +769,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; @@ -936,4 +804,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..2fd4aa2bf8 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +// 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/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 675110b2da..d07bd91093 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,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto package com.google.storage.v2; /** - * - * *
  * Describes the Customer-Supplied Encryption Key mechanism used to store an
  * Object's data at rest.
@@ -28,16 +11,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,43 +27,38 @@ private CustomerEncryption() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CustomerEncryption();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.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 @@ -90,29 +67,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 { @@ -123,15 +100,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 @@ -140,7 +114,6 @@ public com.google.protobuf.ByteString getKeySha256Bytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,7 +125,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_); } @@ -172,7 +146,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; @@ -182,15 +157,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; } @@ -211,104 +188,97 @@ 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.
@@ -316,32 +286,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();
@@ -352,9 +323,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
@@ -373,11 +344,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;
     }
@@ -396,39 +364,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;
@@ -471,25 +438,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) {
@@ -499,25 +463,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; @@ -526,21 +487,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 { @@ -548,35 +508,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() { @@ -586,21 +539,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; @@ -610,15 +559,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 @@ -626,37 +572,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() { @@ -665,9 +603,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); } @@ -677,12 +615,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(); } @@ -691,27 +629,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; @@ -726,4 +664,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 42a2b1effc..842c428be0 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,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 67% 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 dcf1a44f80..5eb34ced38 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,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -91,31 +66,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 { @@ -126,14 +99,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 @@ -141,14 +111,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 @@ -159,15 +126,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 @@ -175,15 +139,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 @@ -192,7 +153,6 @@ public long getIfMetagenerationNotMatch() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +164,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_); } @@ -227,10 +188,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; @@ -240,22 +203,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; @@ -272,147 +237,143 @@ 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(); @@ -424,9 +385,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 @@ -445,11 +406,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; } @@ -475,39 +433,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; @@ -553,31 +510,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) { @@ -587,27 +540,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; @@ -616,23 +564,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 { @@ -640,39 +585,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() { @@ -682,23 +616,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; @@ -706,16 +634,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 @@ -723,14 +648,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 @@ -738,33 +660,27 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { @@ -774,17 +690,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 @@ -792,15 +705,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 @@ -808,35 +718,29 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -845,9 +749,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); } @@ -857,12 +761,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(); } @@ -871,27 +775,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; @@ -906,4 +810,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 7c2e583d25..cebfae1c2b 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,68 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 7d7e4d4c57..b12e31dea6 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,43 +26,38 @@ private DeleteHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteHmacKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -89,29 +66,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 { @@ -120,22 +97,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 @@ -144,33 +115,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 { @@ -179,7 +148,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +159,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_); } @@ -221,16 +190,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; } @@ -251,136 +221,130 @@ 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(); @@ -391,9 +355,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 @@ -412,11 +376,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; } @@ -435,39 +396,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; @@ -512,25 +472,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) { @@ -540,25 +497,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; @@ -567,21 +521,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 { @@ -589,35 +542,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() { @@ -627,21 +573,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; @@ -651,24 +593,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; @@ -677,25 +615,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 { @@ -703,43 +638,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() { @@ -749,34 +673,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); } @@ -786,12 +704,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(); } @@ -800,27 +718,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; @@ -835,4 +753,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 7d11ae9286..5a76e5312b 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,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 4b5245c86e..7b8db9eab0 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,88 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -91,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. 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 { @@ -124,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,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_); } @@ -160,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.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; } @@ -188,136 +160,129 @@ 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(); @@ -327,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_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 @@ -348,11 +313,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; } @@ -368,39 +330,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; @@ -408,8 +369,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; @@ -441,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,27 +421,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; @@ -492,23 +445,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 { @@ -516,39 +466,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() { @@ -558,32 +497,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); } @@ -593,12 +526,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(); } @@ -607,27 +540,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; @@ -642,4 +575,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..89261935e5 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java @@ -0,0 +1,29 @@ +// 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/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 9b34b0481e..f49219cd11 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,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto package com.google.storage.v2; /** - * - * *
  * Message for deleting an object.
  * `bucket` and `object` **must** be set.
@@ -28,16 +11,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,46 +27,39 @@ private DeleteObjectRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteObjectRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.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 @@ -93,31 +68,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 { @@ -126,12 +99,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
@@ -139,7 +109,6 @@ public com.google.protobuf.ByteString getBucketBytes() {
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -148,15 +117,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
@@ -164,15 +132,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 { @@ -183,15 +152,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 @@ -202,8 +168,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
@@ -211,7 +175,6 @@ public long getGeneration() {
    * 
* * optional int64 if_generation_match = 5; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -219,8 +182,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
@@ -228,7 +189,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 5; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -239,8 +199,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
@@ -249,7 +207,6 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 6; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -257,8 +214,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
@@ -267,7 +222,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 6; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -278,15 +232,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 @@ -294,15 +245,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 @@ -313,15 +261,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 @@ -329,15 +274,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 @@ -348,14 +290,11 @@ 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 @@ -363,25 +302,18 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** - * - * *
    * 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.
    * 
@@ -389,15 +321,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; @@ -409,7 +337,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_); } @@ -450,24 +379,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()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -477,37 +410,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; @@ -525,22 +464,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; @@ -551,104 +495,97 @@ 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.
@@ -656,32 +593,33 @@ 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() {
 
-    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();
@@ -702,9 +640,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
@@ -723,11 +661,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;
     }
@@ -761,10 +696,9 @@ 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();
       }
       result.bitField0_ |= to_bitField0_;
     }
@@ -773,39 +707,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;
@@ -868,62 +801,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) {
@@ -933,27 +858,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; @@ -962,23 +882,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 { @@ -986,39 +903,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() { @@ -1028,23 +934,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; @@ -1054,8 +954,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
@@ -1063,13 +961,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; @@ -1078,8 +976,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
@@ -1087,14 +983,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 { @@ -1102,8 +999,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
@@ -1111,22 +1006,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
@@ -1134,7 +1025,6 @@ public Builder setObject(java.lang.String value) {
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearObject() { @@ -1144,8 +1034,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
@@ -1153,14 +1041,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; @@ -1168,17 +1054,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 @@ -1186,35 +1069,29 @@ 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. */ public Builder setGeneration(long value) { - + generation_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -1224,10 +1101,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
@@ -1235,7 +1110,6 @@ public Builder clearGeneration() {
      * 
* * optional int64 if_generation_match = 5; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1243,8 +1117,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
@@ -1252,7 +1124,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 5; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1260,8 +1131,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
@@ -1269,20 +1138,17 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 5; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000008; onChanged(); 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
@@ -1290,7 +1156,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 5; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1300,10 +1165,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
@@ -1312,7 +1175,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 6; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1320,8 +1182,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
@@ -1330,7 +1190,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 6; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1338,8 +1197,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
@@ -1348,20 +1205,17 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 6; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000010; onChanged(); 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
@@ -1370,7 +1224,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 6; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1380,17 +1233,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 @@ -1398,15 +1248,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 @@ -1414,35 +1261,29 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000020; onChanged(); 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() { @@ -1452,17 +1293,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 @@ -1470,15 +1308,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 @@ -1486,35 +1321,29 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000040; onChanged(); 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() { @@ -1526,55 +1355,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(); @@ -1588,8 +1403,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1608,21 +1421,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; @@ -1635,8 +1444,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1654,42 +1461,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.
      * 
@@ -1697,24 +1495,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); } @@ -1724,12 +1519,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(); } @@ -1738,27 +1533,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; @@ -1773,4 +1568,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 c93ab4af16..7b345aec70 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,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +35,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 +46,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 +70,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 +81,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 +94,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 +106,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 2c23307bf2..3543dbc443 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,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -91,31 +66,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 { @@ -126,15 +99,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 @@ -142,15 +112,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 @@ -161,15 +128,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 @@ -177,15 +141,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 @@ -196,8 +157,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.
@@ -205,7 +164,6 @@ public long getIfMetagenerationNotMatch() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ @java.lang.Override @@ -213,8 +171,6 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Mask specifying which fields to read.
    * A "*" field may be used to indicate all fields.
@@ -222,7 +178,6 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ @java.lang.Override @@ -230,8 +185,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.
@@ -246,7 +199,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -258,7 +210,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_);
     }
@@ -284,13 +237,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;
@@ -300,25 +256,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;
@@ -335,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());
     }
     if (hasReadMask()) {
       hash = (37 * hash) + READ_MASK_FIELD_NUMBER;
@@ -350,127 +312,118 @@ 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() @@ -478,17 +431,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(); @@ -505,9 +458,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 @@ -526,11 +479,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; } @@ -550,7 +500,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_; @@ -560,39 +512,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; @@ -641,37 +592,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) { @@ -681,27 +629,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; @@ -710,23 +653,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 { @@ -734,39 +674,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() { @@ -776,23 +705,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; @@ -800,17 +723,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 @@ -818,15 +738,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 @@ -834,35 +751,29 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { @@ -872,17 +783,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 @@ -890,15 +798,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 @@ -906,35 +811,29 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -946,13 +845,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.
@@ -960,15 +854,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.
@@ -976,7 +867,6 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -987,8 +877,6 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -1011,8 +899,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.
@@ -1021,7 +907,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 {
@@ -1032,8 +919,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.
@@ -1044,9 +929,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;
@@ -1059,8 +944,6 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -1080,8 +963,6 @@ public Builder clearReadMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -1096,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.
@@ -1110,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.
@@ -1125,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);
     }
 
@@ -1152,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();
   }
@@ -1166,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;
@@ -1201,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 3b0735f116..82d8ecdf33 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,75 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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 +77,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 +88,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 86c2779249..ee8ef8a15e 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,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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,43 +26,38 @@ private GetHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetHmacKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -89,29 +66,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 { @@ -120,22 +97,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 @@ -144,33 +115,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 { @@ -179,7 +148,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +159,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_); } @@ -221,15 +190,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; } @@ -250,136 +221,130 @@ 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(); @@ -390,9 +355,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 @@ -411,11 +376,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; } @@ -434,39 +396,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; @@ -511,25 +472,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) { @@ -539,25 +497,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; @@ -566,21 +521,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 { @@ -588,35 +542,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() { @@ -626,21 +573,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; @@ -650,24 +593,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; @@ -676,25 +615,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 { @@ -702,43 +638,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() { @@ -748,34 +673,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); } @@ -785,12 +704,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(); } @@ -799,27 +718,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; @@ -834,4 +753,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 e7ba7a09bc..45a8b1b41b 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,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 34b4b50272..e5c94819a8 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,89 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; /** - * - * *
  * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -92,33 +67,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 { @@ -127,7 +100,6 @@ public com.google.protobuf.ByteString getNameBytes() { } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -163,15 +136,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -191,135 +164,129 @@ 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(); @@ -329,9 +296,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 @@ -350,11 +317,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; } @@ -370,39 +334,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; @@ -410,8 +373,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; @@ -443,19 +405,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) { @@ -465,29 +425,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; @@ -496,25 +451,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 { @@ -522,43 +474,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() { @@ -568,34 +509,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); } @@ -605,12 +540,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(); } @@ -619,27 +554,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; @@ -654,4 +589,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..9f675dd1b4 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java @@ -0,0 +1,33 @@ +// 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/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 fca2598d39..f87ed463f7 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,46 +26,39 @@ private GetObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetObjectRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -92,31 +67,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 { @@ -125,18 +98,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 @@ -145,29 +114,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 { @@ -178,15 +147,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 @@ -197,8 +163,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
@@ -206,7 +170,6 @@ public long getGeneration() {
    * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -214,8 +177,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 +184,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -234,8 +194,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
@@ -244,7 +202,6 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -252,8 +209,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 +217,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -273,15 +227,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 @@ -289,15 +240,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 @@ -308,15 +256,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 @@ -324,15 +269,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 @@ -343,14 +285,11 @@ 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 @@ -358,25 +297,18 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** - * - * *
    * 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.
    * 
@@ -384,18 +316,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
@@ -404,7 +331,6 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar
    * 
* * optional .google.protobuf.FieldMask read_mask = 10; - * * @return Whether the readMask field is set. */ @java.lang.Override @@ -412,8 +338,6 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * Mask specifying which fields to read.
    * If no mask is specified, will default to all fields except metadata.acl and
@@ -422,7 +346,6 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 10; - * * @return The readMask. */ @java.lang.Override @@ -430,8 +353,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
@@ -447,7 +368,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -459,7 +379,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_);
     }
@@ -503,27 +424,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());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getCommonObjectRequestParams());
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getReadMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getReadMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -533,40 +459,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.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 (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;
@@ -584,22 +518,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;
@@ -614,127 +553,118 @@ 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() @@ -742,18 +672,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(); @@ -779,9 +709,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 @@ -800,11 +730,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; } @@ -838,13 +765,14 @@ private void buildPartial0(com.google.storage.v2.GetObjectRequest result) { to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null + ? readMask_ + : readMaskBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; @@ -854,39 +782,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; @@ -952,68 +879,61 @@ 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_ |= 0x00000080; - break; - } // case 66 - case 82: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - 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 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_ |= 0x00000080; + break; + } // case 66 + case 82: { + input.readMessage( + getReadMaskFieldBuilder().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) { @@ -1023,27 +943,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; @@ -1052,23 +967,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 { @@ -1076,39 +988,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() { @@ -1118,23 +1019,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; @@ -1144,20 +1039,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; @@ -1166,21 +1059,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 { @@ -1188,35 +1080,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() { @@ -1226,21 +1111,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; @@ -1248,17 +1129,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 @@ -1266,35 +1144,29 @@ 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. */ public Builder setGeneration(long value) { - + generation_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -1304,10 +1176,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
@@ -1315,7 +1185,6 @@ public Builder clearGeneration() {
      * 
* * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1323,8 +1192,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
@@ -1332,7 +1199,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1340,8 +1206,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
@@ -1349,20 +1213,17 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000008; onChanged(); 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
@@ -1370,7 +1231,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 4; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1380,10 +1240,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
@@ -1392,7 +1250,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1400,8 +1257,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
@@ -1410,7 +1265,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1418,8 +1272,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
@@ -1428,20 +1280,17 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 5; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000010; onChanged(); 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
@@ -1450,7 +1299,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 5; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1460,17 +1308,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 @@ -1478,15 +1323,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 @@ -1494,35 +1336,29 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000020; onChanged(); 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() { @@ -1532,17 +1368,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 @@ -1550,15 +1383,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 @@ -1566,35 +1396,29 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000040; onChanged(); 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() { @@ -1606,55 +1430,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_ & 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(); @@ -1668,8 +1478,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1688,21 +1496,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; @@ -1715,8 +1519,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1734,42 +1536,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.
      * 
@@ -1777,17 +1570,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_; @@ -1795,13 +1585,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
@@ -1810,15 +1595,12 @@ public Builder clearCommonObjectRequestParams() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 10; - * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -1827,7 +1609,6 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 10; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1838,8 +1619,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
@@ -1863,8 +1642,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
@@ -1874,7 +1651,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 {
@@ -1885,8 +1663,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
@@ -1898,9 +1674,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
      */
     public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       if (readMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0)
-            && readMask_ != null
-            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0) &&
+          readMask_ != null &&
+          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getReadMaskBuilder().mergeFrom(value);
         } else {
           readMask_ = value;
@@ -1913,8 +1689,6 @@ public Builder mergeReadMask(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
@@ -1935,8 +1709,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
@@ -1952,8 +1724,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
@@ -1967,12 +1737,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
@@ -1983,24 +1752,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);
     }
 
@@ -2010,12 +1776,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();
   }
@@ -2024,27 +1790,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;
@@ -2059,4 +1825,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 82%
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 fd35680f3a..f12223c80b 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,99 +1,64 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See 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 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(); /** - * - * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -101,13 +66,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
@@ -115,14 +77,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
@@ -131,13 +90,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
@@ -146,92 +102,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.
    * 
@@ -241,8 +176,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
@@ -251,13 +184,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
@@ -266,13 +196,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 d8627107b6..60c2f85285 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,88 +1,63 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -91,32 +66,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 { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -161,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -188,136 +161,130 @@ 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(); @@ -327,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_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 @@ -348,11 +315,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; } @@ -368,39 +332,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; @@ -440,19 +403,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) { @@ -462,28 +423,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; @@ -492,24 +448,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 { @@ -517,41 +470,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() { @@ -561,33 +503,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); } @@ -597,12 +533,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(); } @@ -611,27 +547,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; @@ -646,4 +582,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..443452a5ec --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java @@ -0,0 +1,31 @@ +// 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/HmacKeyMetadata.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java similarity index 69% 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 44298f81a1..0f0816c945 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,37 +30,33 @@ private HmacKeyMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HmacKeyMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } 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}.
@@ -86,7 +64,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The id. */ @java.lang.Override @@ -95,15 +72,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}.
@@ -111,15 +87,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 { @@ -128,18 +105,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 @@ -148,29 +121,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 { @@ -179,22 +152,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 @@ -203,33 +170,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 { @@ -238,18 +203,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 @@ -258,29 +219,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 { @@ -289,19 +250,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 @@ -310,30 +267,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 { @@ -344,15 +301,11 @@ 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 @@ -360,15 +313,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * 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 @@ -376,14 +325,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() { @@ -393,15 +339,11 @@ 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 @@ -409,15 +351,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * 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 @@ -425,14 +363,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() { @@ -440,18 +375,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 @@ -460,29 +391,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 { @@ -491,7 +422,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -503,7 +433,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_); } @@ -553,10 +484,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); @@ -569,27 +502,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; } @@ -626,135 +567,130 @@ 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() { - 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(); @@ -779,9 +715,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 @@ -800,11 +736,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; } @@ -827,10 +760,14 @@ private void buildPartial0(com.google.storage.v2.HmacKeyMetadata result) { result.state_ = state_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.etag_ = etag_; @@ -841,39 +778,38 @@ private void buildPartial0(com.google.storage.v2.HmacKeyMetadata 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.HmacKeyMetadata) { - return mergeFrom((com.google.storage.v2.HmacKeyMetadata) other); + return mergeFrom((com.google.storage.v2.HmacKeyMetadata)other); } else { super.mergeFrom(other); return this; @@ -944,61 +880,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) { @@ -1008,13 +939,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}.
@@ -1022,13 +950,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; @@ -1037,8 +965,6 @@ public java.lang.String getId() { } } /** - * - * *
      * Immutable. Resource name ID of the key in the format
      * {projectIdentifier}/{accessId}.
@@ -1046,14 +972,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 { @@ -1061,8 +988,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Immutable. Resource name ID of the key in the format
      * {projectIdentifier}/{accessId}.
@@ -1070,22 +995,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}.
@@ -1093,7 +1014,6 @@ public Builder setId(java.lang.String value) {
      * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1103,8 +1023,6 @@ public Builder clearId() { return this; } /** - * - * *
      * Immutable. Resource name ID of the key in the format
      * {projectIdentifier}/{accessId}.
@@ -1112,14 +1030,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; @@ -1129,20 +1045,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; @@ -1151,21 +1065,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 { @@ -1173,35 +1086,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() { @@ -1211,21 +1117,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; @@ -1235,24 +1137,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; @@ -1261,25 +1159,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 { @@ -1287,43 +1182,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() { @@ -1333,25 +1217,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; @@ -1361,20 +1239,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; @@ -1383,21 +1259,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 { @@ -1405,35 +1280,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() { @@ -1443,21 +1311,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; @@ -1467,21 +1331,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; @@ -1490,22 +1352,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 { @@ -1513,37 +1374,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() { @@ -1553,22 +1407,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; @@ -1578,58 +1428,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) { @@ -1645,17 +1476,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 { @@ -1666,21 +1494,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; @@ -1693,15 +1517,11 @@ public Builder mergeCreateTime(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 clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1714,15 +1534,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; @@ -1730,48 +1546,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_; @@ -1779,58 +1583,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) { @@ -1846,17 +1631,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 { @@ -1867,21 +1649,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; @@ -1894,15 +1672,11 @@ public Builder mergeUpdateTime(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 clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1915,15 +1689,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; @@ -1931,48 +1701,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_; @@ -1980,20 +1738,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; @@ -2002,21 +1758,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 { @@ -2024,35 +1779,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() { @@ -2062,30 +1810,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); } @@ -2095,12 +1839,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(); } @@ -2109,27 +1853,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; @@ -2144,4 +1888,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 8dfc5ee628..d2553f7039 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,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +15,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 +26,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 fda4a2709f..d33419a8a6 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,46 +27,39 @@ private ListBucketsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBucketsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -93,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. 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 { @@ -128,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 buckets to return in a single response. The service will
    * use this parameter or 1,000 items, whichever is smaller. If "acl" is
@@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,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 @@ -168,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 { @@ -200,18 +166,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 @@ -220,29 +182,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 { @@ -253,8 +215,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,
@@ -263,7 +223,6 @@ public com.google.protobuf.ByteString getPrefixBytes() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ @java.lang.Override @@ -271,8 +230,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,
@@ -281,7 +238,6 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ @java.lang.Override @@ -289,8 +245,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,
@@ -306,7 +260,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -318,7 +271,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_);
     }
@@ -347,7 +301,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_);
@@ -356,7 +311,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;
@@ -366,20 +322,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;
@@ -409,127 +370,118 @@ 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() @@ -537,17 +489,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(); @@ -565,9 +517,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 @@ -586,11 +538,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; } @@ -611,7 +560,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_; @@ -621,39 +572,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; @@ -709,43 +659,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) { @@ -755,27 +701,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; @@ -784,23 +725,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 { @@ -808,39 +746,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() { @@ -850,23 +777,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; @@ -874,10 +795,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
@@ -886,7 +805,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -894,8 +812,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
@@ -904,20 +820,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); 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
@@ -926,7 +839,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -938,21 +850,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; @@ -961,22 +871,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 { @@ -984,37 +893,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() { @@ -1024,22 +926,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; @@ -1049,20 +947,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; @@ -1071,21 +967,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 { @@ -1093,35 +988,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() { @@ -1131,21 +1019,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; @@ -1155,13 +1039,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,
@@ -1170,15 +1049,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,
@@ -1187,7 +1063,6 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1198,8 +1073,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,
@@ -1223,8 +1096,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,
@@ -1234,7 +1105,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 {
@@ -1245,8 +1117,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,
@@ -1258,9 +1128,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;
@@ -1273,8 +1143,6 @@ public Builder mergeReadMask(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,
@@ -1295,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,
@@ -1312,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,
@@ -1327,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,
@@ -1343,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);
     }
 
@@ -1370,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();
   }
@@ -1384,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;
@@ -1419,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 0afd2226ce..070860d103 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,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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 +36,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 +91,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 +103,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 c069c61703..4c8c22c54a 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,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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,37 +26,33 @@ private ListBucketsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBucketsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.
    * 
@@ -86,8 +64,6 @@ public java.util.List getBucketsList() { return buckets_; } /** - * - * *
    * The list of items.
    * 
@@ -95,12 +71,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.
    * 
@@ -112,8 +87,6 @@ public int getBucketsCount() { return buckets_.size(); } /** - * - * *
    * The list of items.
    * 
@@ -125,8 +98,6 @@ public com.google.storage.v2.Bucket getBuckets(int index) { return buckets_.get(index); } /** - * - * *
    * The list of items.
    * 
@@ -134,24 +105,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 @@ -160,30 +128,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 { @@ -192,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +171,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)); } @@ -221,7 +189,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_); @@ -234,16 +203,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -266,136 +236,130 @@ 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(); @@ -412,9 +376,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 @@ -433,12 +397,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; } @@ -466,39 +427,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; @@ -525,10 +485,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_); } @@ -565,31 +524,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) { @@ -599,28 +557,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.
      * 
@@ -635,8 +586,6 @@ public java.util.List getBucketsList() { } } /** - * - * *
      * The list of items.
      * 
@@ -651,8 +600,6 @@ public int getBucketsCount() { } } /** - * - * *
      * The list of items.
      * 
@@ -667,15 +614,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(); @@ -689,15 +635,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()); @@ -708,8 +653,6 @@ public Builder setBuckets(int index, com.google.storage.v2.Bucket.Builder builde return this; } /** - * - * *
      * The list of items.
      * 
@@ -730,15 +673,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(); @@ -752,15 +694,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()); @@ -771,15 +712,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()); @@ -790,8 +730,6 @@ public Builder addBuckets(int index, com.google.storage.v2.Bucket.Builder builde return this; } /** - * - * *
      * The list of items.
      * 
@@ -802,7 +740,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); @@ -810,8 +749,6 @@ public Builder addAllBuckets( return this; } /** - * - * *
      * The list of items.
      * 
@@ -829,8 +766,6 @@ public Builder clearBuckets() { return this; } /** - * - * *
      * The list of items.
      * 
@@ -848,44 +783,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 { @@ -893,8 +823,6 @@ public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder(int index) { } } /** - * - * *
      * The list of items.
      * 
@@ -902,46 +830,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_; @@ -949,21 +873,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; @@ -972,22 +894,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 +916,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 +949,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 +979,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(); } @@ -1083,27 +993,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; @@ -1118,4 +1028,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 cdc9f1f78e..2ba5c5a1e9 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,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +25,6 @@ public interface ListBucketsResponseOrBuilder */ com.google.storage.v2.Bucket getBuckets(int index); /** - * - * *
    * The list of items.
    * 
@@ -54,50 +33,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 3acdb3d866..bbb8cd6ffd 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,47 +27,40 @@ private ListHmacKeysRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHmacKeysRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -94,33 +69,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 { @@ -131,14 +104,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 @@ -147,18 +117,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 @@ -167,29 +133,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 { @@ -198,18 +164,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 @@ -218,29 +180,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 { @@ -251,14 +213,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 @@ -267,7 +226,6 @@ public boolean getShowDeletedKeys() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,7 +237,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_); } @@ -308,7 +267,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_); @@ -317,7 +277,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; @@ -327,19 +288,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; } @@ -360,142 +325,137 @@ 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(); @@ -509,9 +469,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 @@ -530,11 +490,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; } @@ -562,39 +519,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; @@ -650,43 +606,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) { @@ -696,29 +646,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; @@ -727,25 +672,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 { @@ -753,43 +695,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() { @@ -799,25 +730,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; @@ -825,16 +750,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 @@ -842,33 +764,27 @@ 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. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of keys to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -880,20 +796,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; @@ -902,21 +816,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 { @@ -924,35 +837,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() { @@ -962,21 +868,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; @@ -986,20 +888,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; @@ -1008,21 +908,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 { @@ -1030,35 +929,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() { @@ -1068,21 +960,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; @@ -1090,16 +978,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 @@ -1107,33 +992,27 @@ 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. */ public Builder setShowDeletedKeys(boolean value) { - + showDeletedKeys_ = value; bitField0_ |= 0x00000010; onChanged(); 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() { @@ -1142,9 +1021,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); } @@ -1154,12 +1033,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(); } @@ -1168,27 +1047,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; @@ -1203,4 +1082,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 3dbfdaea55..8413fd5b1a 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,92 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 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 11f9510a44..aee28fa858 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,37 +26,33 @@ private ListHmacKeysResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHmacKeysResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.
    * 
@@ -86,8 +64,6 @@ public java.util.List getHmacKeysList() { return hmacKeys_; } /** - * - * *
    * The list of items.
    * 
@@ -95,13 +71,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.
    * 
@@ -113,8 +87,6 @@ public int getHmacKeysCount() { return hmacKeys_.size(); } /** - * - * *
    * The list of items.
    * 
@@ -126,8 +98,6 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index) { return hmacKeys_.get(index); } /** - * - * *
    * The list of items.
    * 
@@ -135,24 +105,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 @@ -161,30 +128,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 { @@ -193,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +171,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)); } @@ -222,7 +189,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_); @@ -235,16 +203,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -267,136 +236,130 @@ 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(); @@ -413,9 +376,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 @@ -434,12 +397,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; } @@ -467,39 +427,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; @@ -526,10 +485,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_); } @@ -566,32 +524,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) { @@ -601,28 +557,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.
      * 
@@ -637,8 +586,6 @@ public java.util.List getHmacKeysList() { } } /** - * - * *
      * The list of items.
      * 
@@ -653,8 +600,6 @@ public int getHmacKeysCount() { } } /** - * - * *
      * The list of items.
      * 
@@ -669,15 +614,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(); @@ -691,8 +635,6 @@ public Builder setHmacKeys(int index, com.google.storage.v2.HmacKeyMetadata valu return this; } /** - * - * *
      * The list of items.
      * 
@@ -711,8 +653,6 @@ public Builder setHmacKeys( return this; } /** - * - * *
      * The list of items.
      * 
@@ -733,15 +673,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(); @@ -755,15 +694,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()); @@ -774,8 +712,6 @@ public Builder addHmacKeys(com.google.storage.v2.HmacKeyMetadata.Builder builder return this; } /** - * - * *
      * The list of items.
      * 
@@ -794,8 +730,6 @@ public Builder addHmacKeys( return this; } /** - * - * *
      * The list of items.
      * 
@@ -806,7 +740,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); @@ -814,8 +749,6 @@ public Builder addAllHmacKeys( return this; } /** - * - * *
      * The list of items.
      * 
@@ -833,8 +766,6 @@ public Builder clearHmacKeys() { return this; } /** - * - * *
      * The list of items.
      * 
@@ -852,44 +783,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 { @@ -897,8 +823,6 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder(int i } } /** - * - * *
      * The list of items.
      * 
@@ -906,47 +830,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_; @@ -954,21 +873,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; @@ -977,22 +894,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 { @@ -1000,37 +916,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() { @@ -1040,31 +949,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); } @@ -1074,12 +979,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(); } @@ -1088,27 +993,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; @@ -1123,4 +1028,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 fc777c3430..948ccfa96c 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,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +25,6 @@ public interface ListHmacKeysResponseOrBuilder */ com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index); /** - * - * *
    * The list of items.
    * 
@@ -54,51 +33,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 1b0faf28de..09b17b46d8 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,45 +26,38 @@ private ListNotificationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -92,31 +66,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 { @@ -127,8 +99,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
@@ -136,7 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -145,12 +114,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.
@@ -159,7 +125,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -168,15 +133,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.
@@ -185,15 +149,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 { @@ -202,7 +167,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -237,7 +202,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_); @@ -250,17 +216,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; } @@ -284,135 +252,129 @@ 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(); @@ -424,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 @@ -445,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; } @@ -471,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; @@ -511,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; @@ -552,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) { @@ -586,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; @@ -615,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 { @@ -639,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() { @@ -681,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; @@ -705,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
@@ -716,7 +642,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -724,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
@@ -733,20 +656,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); 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
@@ -754,7 +674,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -766,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.
@@ -776,13 +693,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; @@ -791,8 +708,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListNotificationConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -801,14 +716,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 { @@ -816,8 +732,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 +740,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.
@@ -850,7 +760,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -860,8 +769,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListNotificationConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -870,23 +777,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); } @@ -896,12 +801,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(); } @@ -910,27 +815,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; @@ -945,4 +850,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 dff69f1092..a8dc37b17d 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,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +35,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.
@@ -78,13 +48,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.
@@ -93,8 +60,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 eeedd2a45f..87eee664a4 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,37 +26,33 @@ private ListNotificationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.
    * 
@@ -87,8 +64,6 @@ public java.util.List getNotificationC return notificationConfigs_; } /** - * - * *
    * The list of items.
    * 
@@ -96,13 +71,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.
    * 
@@ -114,8 +87,6 @@ public int getNotificationConfigsCount() { return notificationConfigs_.size(); } /** - * - * *
    * The list of items.
    * 
@@ -127,8 +98,6 @@ public com.google.storage.v2.NotificationConfig getNotificationConfigs(int index return notificationConfigs_.get(index); } /** - * - * *
    * The list of items.
    * 
@@ -142,19 +111,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 @@ -163,30 +128,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 { @@ -195,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +171,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)); } @@ -224,8 +189,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_); @@ -238,16 +203,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -271,136 +237,129 @@ 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(); @@ -417,9 +376,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 @@ -438,18 +397,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_); @@ -472,39 +427,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; @@ -512,8 +466,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()) { @@ -532,10 +485,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_); } @@ -572,32 +524,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) { @@ -607,29 +557,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.
      * 
@@ -644,8 +586,6 @@ public java.util.List getNotificationC } } /** - * - * *
      * The list of items.
      * 
@@ -660,8 +600,6 @@ public int getNotificationConfigsCount() { } } /** - * - * *
      * The list of items.
      * 
@@ -676,8 +614,6 @@ public com.google.storage.v2.NotificationConfig getNotificationConfigs(int index } } /** - * - * *
      * The list of items.
      * 
@@ -699,8 +635,6 @@ public Builder setNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -719,8 +653,6 @@ public Builder setNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -741,8 +673,6 @@ public Builder addNotificationConfigs(com.google.storage.v2.NotificationConfig v return this; } /** - * - * *
      * The list of items.
      * 
@@ -764,8 +694,6 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -784,8 +712,6 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -804,8 +730,6 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -816,7 +740,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); @@ -824,8 +749,6 @@ public Builder addAllNotificationConfigs( return this; } /** - * - * *
      * The list of items.
      * 
@@ -843,8 +766,6 @@ public Builder clearNotificationConfigs() { return this; } /** - * - * *
      * The list of items.
      * 
@@ -862,8 +783,6 @@ public Builder removeNotificationConfigs(int index) { return this; } /** - * - * *
      * The list of items.
      * 
@@ -875,8 +794,6 @@ public com.google.storage.v2.NotificationConfig.Builder getNotificationConfigsBu return getNotificationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of items.
      * 
@@ -886,22 +803,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 { @@ -909,8 +823,6 @@ public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsO } } /** - * - * *
      * The list of items.
      * 
@@ -918,12 +830,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.
      * 
@@ -932,34 +842,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(), @@ -971,21 +873,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; @@ -994,22 +894,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 { @@ -1017,37 +916,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() { @@ -1057,31 +949,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); } @@ -1091,12 +979,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(); } @@ -1105,27 +993,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; @@ -1140,4 +1028,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 f1fe02eeff..9aafab8159 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,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +25,6 @@ public interface ListNotificationConfigsResponseOrBuilder */ com.google.storage.v2.NotificationConfig getNotificationConfigs(int index); /** - * - * *
    * The list of items.
    * 
@@ -54,51 +33,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 75% 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 e90facb948..a97480fdc8 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -48,46 +30,39 @@ private ListObjectsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListObjectsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -96,31 +71,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 { @@ -131,8 +104,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
@@ -141,7 +112,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -150,19 +120,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 @@ -171,30 +137,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 { @@ -203,12 +169,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
@@ -219,7 +182,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string delimiter = 4; - * * @return The delimiter. */ @java.lang.Override @@ -228,15 +190,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
@@ -247,15 +208,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 { @@ -266,8 +228,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
@@ -275,7 +235,6 @@ public com.google.protobuf.ByteString getDelimiterBytes() {
    * 
* * bool include_trailing_delimiter = 5; - * * @return The includeTrailingDelimiter. */ @java.lang.Override @@ -284,18 +243,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 @@ -304,29 +259,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 { @@ -337,8 +292,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
@@ -347,7 +300,6 @@ public com.google.protobuf.ByteString getPrefixBytes() {
    * 
* * bool versions = 7; - * * @return The versions. */ @java.lang.Override @@ -358,8 +310,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
@@ -368,7 +318,6 @@ public boolean getVersions() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 8; - * * @return Whether the readMask field is set. */ @java.lang.Override @@ -376,8 +325,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
@@ -386,7 +333,6 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 8; - * * @return The readMask. */ @java.lang.Override @@ -394,8 +340,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
@@ -411,12 +355,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
@@ -425,7 +366,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
    * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ @java.lang.Override @@ -434,15 +374,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
@@ -451,15 +390,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 { @@ -468,12 +408,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
@@ -482,7 +419,6 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() {
    * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ @java.lang.Override @@ -491,15 +427,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
@@ -508,15 +443,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 { @@ -525,7 +461,6 @@ public com.google.protobuf.ByteString getLexicographicEndBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -537,7 +472,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_); } @@ -581,7 +517,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_); @@ -590,16 +527,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_); @@ -615,26 +555,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.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 (!getReadMask() + .equals(other.getReadMask())) return false; } - if (!getLexicographicStart().equals(other.getLexicographicStart())) return false; - if (!getLexicographicEnd().equals(other.getLexicographicEnd())) return false; + if (!getLexicographicStart() + .equals(other.getLexicographicStart())) return false; + if (!getLexicographicEnd() + .equals(other.getLexicographicEnd())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -655,11 +605,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(); @@ -673,127 +625,118 @@ 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() @@ -801,17 +744,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(); @@ -834,9 +777,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 @@ -855,11 +798,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; } @@ -889,7 +829,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)) { @@ -905,39 +847,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; @@ -1014,73 +955,64 @@ 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 - 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 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1090,27 +1022,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; @@ -1119,23 +1046,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 { @@ -1143,39 +1067,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() { @@ -1185,23 +1098,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; @@ -1209,10 +1116,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
@@ -1221,7 +1126,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -1229,8 +1133,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of `items` plus `prefixes` to return
      * in a single page of responses. As duplicate `prefixes` are
@@ -1239,20 +1141,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of `items` plus `prefixes` to return
      * in a single page of responses. As duplicate `prefixes` are
@@ -1261,7 +1160,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1273,21 +1171,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; @@ -1296,22 +1192,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 { @@ -1319,37 +1214,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() { @@ -1359,22 +1247,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; @@ -1384,8 +1268,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
@@ -1396,13 +1278,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; @@ -1411,8 +1293,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
@@ -1423,14 +1303,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 { @@ -1438,8 +1319,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
@@ -1450,22 +1329,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
@@ -1476,7 +1351,6 @@ public Builder setDelimiter(java.lang.String value) {
      * 
* * string delimiter = 4; - * * @return This builder for chaining. */ public Builder clearDelimiter() { @@ -1486,8 +1360,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
@@ -1498,14 +1370,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; @@ -1513,10 +1383,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
@@ -1524,7 +1392,6 @@ public Builder setDelimiterBytes(com.google.protobuf.ByteString value) {
      * 
* * bool include_trailing_delimiter = 5; - * * @return The includeTrailingDelimiter. */ @java.lang.Override @@ -1532,8 +1399,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
@@ -1541,20 +1406,17 @@ public boolean getIncludeTrailingDelimiter() {
      * 
* * bool include_trailing_delimiter = 5; - * * @param value The includeTrailingDelimiter to set. * @return This builder for chaining. */ public Builder setIncludeTrailingDelimiter(boolean value) { - + includeTrailingDelimiter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * If true, objects that end in exactly one instance of `delimiter`
      * will have their metadata included in `items` in addition to
@@ -1562,7 +1424,6 @@ public Builder setIncludeTrailingDelimiter(boolean value) {
      * 
* * bool include_trailing_delimiter = 5; - * * @return This builder for chaining. */ public Builder clearIncludeTrailingDelimiter() { @@ -1574,20 +1435,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; @@ -1596,21 +1455,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 { @@ -1618,35 +1476,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() { @@ -1656,21 +1507,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; @@ -1678,10 +1525,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
@@ -1690,7 +1535,6 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) {
      * 
* * bool versions = 7; - * * @return The versions. */ @java.lang.Override @@ -1698,8 +1542,6 @@ public boolean getVersions() { return versions_; } /** - * - * *
      * If `true`, lists all versions of an object as distinct results.
      * For more information, see
@@ -1708,20 +1550,17 @@ public boolean getVersions() {
      * 
* * bool versions = 7; - * * @param value The versions to set. * @return This builder for chaining. */ public Builder setVersions(boolean value) { - + versions_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * If `true`, lists all versions of an object as distinct results.
      * For more information, see
@@ -1730,7 +1569,6 @@ public Builder setVersions(boolean value) {
      * 
* * bool versions = 7; - * * @return This builder for chaining. */ public Builder clearVersions() { @@ -1742,13 +1580,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
@@ -1757,15 +1590,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
@@ -1774,7 +1604,6 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 8; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1785,8 +1614,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
@@ -1810,8 +1637,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
@@ -1821,7 +1646,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 {
@@ -1832,8 +1658,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
@@ -1845,9 +1669,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;
@@ -1860,8 +1684,6 @@ public Builder mergeReadMask(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
@@ -1882,8 +1704,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
@@ -1899,8 +1719,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
@@ -1914,12 +1732,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
@@ -1930,17 +1747,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_;
@@ -1948,8 +1762,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
@@ -1958,13 +1770,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; @@ -1973,8 +1785,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
@@ -1983,14 +1793,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 { @@ -1998,8 +1809,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
@@ -2008,22 +1817,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
@@ -2032,7 +1837,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() { @@ -2042,8 +1846,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
@@ -2052,14 +1854,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; @@ -2069,8 +1869,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
@@ -2079,13 +1877,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; @@ -2094,8 +1892,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
@@ -2104,14 +1900,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 { @@ -2119,8 +1916,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
@@ -2129,22 +1924,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
@@ -2153,7 +1944,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() { @@ -2163,8 +1953,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
@@ -2173,23 +1961,21 @@ 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; 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); } @@ -2199,12 +1985,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(); } @@ -2213,27 +1999,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; @@ -2248,4 +2034,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 80% 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 187cfa59cf..0dd58b215e 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,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +36,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 +73,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 +87,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 +100,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 +133,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 +146,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 +158,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 +174,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 +182,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 +194,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 +208,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,8 +220,8 @@ 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(); } 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 73% 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 a4b3acd2e9..1d0164cdb5 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,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.EMPTY; @@ -45,37 +27,33 @@ private ListObjectsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListObjectsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.
    * 
@@ -87,8 +65,6 @@ public java.util.List getObjectsList() { return objects_; } /** - * - * *
    * The list of items.
    * 
@@ -96,12 +72,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.
    * 
@@ -113,8 +88,6 @@ public int getObjectsCount() { return objects_.size(); } /** - * - * *
    * The list of items.
    * 
@@ -126,8 +99,6 @@ public com.google.storage.v2.Object getObjects(int index) { return objects_.get(index); } /** - * - * *
    * The list of items.
    * 
@@ -135,54 +106,46 @@ 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.LazyStringList prefixes_; /** - * - * *
    * 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. */ @@ -190,36 +153,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 @@ -228,30 +185,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 { @@ -260,7 +217,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +228,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)); } @@ -292,7 +249,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; @@ -313,17 +271,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; } @@ -350,136 +310,130 @@ 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(); @@ -498,9 +452,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_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 @@ -519,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; } @@ -557,39 +508,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; @@ -616,10 +566,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_); } @@ -666,38 +615,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) { @@ -707,28 +654,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.
      * 
@@ -743,8 +683,6 @@ public java.util.List getObjectsList() { } } /** - * - * *
      * The list of items.
      * 
@@ -759,8 +697,6 @@ public int getObjectsCount() { } } /** - * - * *
      * The list of items.
      * 
@@ -775,15 +711,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(); @@ -797,15 +732,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()); @@ -816,8 +750,6 @@ public Builder setObjects(int index, com.google.storage.v2.Object.Builder builde return this; } /** - * - * *
      * The list of items.
      * 
@@ -838,15 +770,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(); @@ -860,15 +791,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()); @@ -879,15 +809,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()); @@ -898,8 +827,6 @@ public Builder addObjects(int index, com.google.storage.v2.Object.Builder builde return this; } /** - * - * *
      * The list of items.
      * 
@@ -910,7 +837,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); @@ -918,8 +846,6 @@ public Builder addAllObjects( return this; } /** - * - * *
      * The list of items.
      * 
@@ -937,8 +863,6 @@ public Builder clearObjects() { return this; } /** - * - * *
      * The list of items.
      * 
@@ -956,44 +880,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 { @@ -1001,8 +920,6 @@ public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index) { } } /** - * - * *
      * The list of items.
      * 
@@ -1010,100 +927,86 @@ 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_; } - private com.google.protobuf.LazyStringList prefixes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePrefixesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); 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() { return prefixes_.getUnmodifiableView(); } /** - * - * *
      * 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. */ @@ -1111,95 +1014,81 @@ 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); 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 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); 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 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_); 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() { @@ -1209,22 +1098,18 @@ public Builder clearPrefixes() { 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 +1119,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 +1140,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 +1162,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 +1195,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 +1225,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 +1239,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 +1274,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 6fa2582940..fcecca4ad3 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,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +25,6 @@ public interface ListObjectsResponseOrBuilder */ com.google.storage.v2.Object getObjects(int index); /** - * - * *
    * The list of items.
    * 
@@ -54,105 +33,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 87bc600d93..4cb607433f 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,88 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -91,31 +65,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 { @@ -126,15 +98,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 @@ -143,7 +112,6 @@ public long getIfMetagenerationMatch() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,7 +123,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -175,7 +144,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; @@ -185,16 +155,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; } @@ -209,143 +180,137 @@ 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(); @@ -356,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_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 @@ -377,11 +342,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; } @@ -400,39 +362,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; @@ -440,8 +401,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; @@ -476,25 +436,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) { @@ -504,27 +461,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; @@ -533,23 +485,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 { @@ -557,39 +506,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() { @@ -599,23 +537,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; @@ -623,17 +555,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 @@ -641,35 +570,29 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { @@ -678,9 +601,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); } @@ -690,12 +613,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(); } @@ -704,27 +627,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; @@ -739,4 +662,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..a8d33e2468 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java @@ -0,0 +1,40 @@ +// 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/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 5ca707b839..7fc5f83cfe 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,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -48,48 +30,45 @@ private NotificationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NotificationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.MapField internalGetMapField( + 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:
@@ -98,7 +77,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -107,15 +85,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:
@@ -124,15 +101,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 { @@ -141,12 +119,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:
@@ -154,7 +129,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topic. */ @java.lang.Override @@ -163,15 +137,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:
@@ -179,15 +152,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 { @@ -196,12 +170,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
@@ -209,7 +180,6 @@ public com.google.protobuf.ByteString getTopicBytes() {
    * 
* * string etag = 7; - * * @return The etag. */ @java.lang.Override @@ -218,15 +188,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
@@ -234,15 +203,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 { @@ -251,49 +221,40 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int EVENT_TYPES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList eventTypes_; /** - * - * *
    * 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. */ @@ -301,53 +262,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.
@@ -356,21 +311,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.
@@ -383,8 +337,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.
@@ -393,19 +345,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.
@@ -414,11 +364,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();
     }
@@ -426,19 +376,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 @@ -447,30 +393,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 { @@ -479,18 +425,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 @@ -499,29 +441,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 { @@ -530,7 +472,6 @@ public com.google.protobuf.ByteString getPayloadFormatBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -542,7 +483,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_); } @@ -552,8 +494,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_); } @@ -586,15 +532,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_); @@ -613,20 +559,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; } @@ -661,156 +614,152 @@ 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.MapField internalGetMapField( + 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.MapField internalGetMutableMapField( + 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(); @@ -827,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 @@ -848,12 +797,9 @@ 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); + com.google.storage.v2.NotificationConfig result = new com.google.storage.v2.NotificationConfig(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -893,39 +839,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; @@ -959,7 +904,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_; @@ -997,63 +943,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) { @@ -1063,13 +998,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1078,13 +1010,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; @@ -1093,8 +1025,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1103,14 +1033,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 { @@ -1118,8 +1049,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1128,22 +1057,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:
@@ -1152,7 +1077,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1162,8 +1086,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1172,14 +1094,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; @@ -1189,8 +1109,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:
@@ -1198,13 +1116,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; @@ -1213,8 +1131,6 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1222,14 +1138,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 { @@ -1237,8 +1154,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1246,22 +1161,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:
@@ -1269,7 +1180,6 @@ public Builder setTopic(java.lang.String value) {
      * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTopic() { @@ -1279,8 +1189,6 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1288,14 +1196,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; @@ -1305,8 +1211,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
@@ -1314,13 +1218,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; @@ -1329,8 +1233,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1338,14 +1240,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 { @@ -1353,8 +1256,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1362,22 +1263,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
@@ -1385,7 +1282,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 7; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1395,8 +1291,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1404,14 +1298,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; @@ -1419,55 +1311,45 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList eventTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList eventTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEventTypesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { eventTypes_ = new com.google.protobuf.LazyStringArrayList(eventTypes_); 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() { return eventTypes_.getUnmodifiableView(); } /** - * - * *
      * 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. */ @@ -1475,95 +1357,81 @@ 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); 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 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); 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 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_); 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() { @@ -1573,22 +1441,18 @@ public Builder clearEventTypes() { 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); @@ -1596,8 +1460,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) { @@ -1606,13 +1470,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(); @@ -1621,13 +1483,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.
@@ -1636,21 +1495,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.
@@ -1663,8 +1521,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.
@@ -1673,20 +1529,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.
@@ -1695,10 +1548,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)) {
@@ -1706,15 +1558,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.
@@ -1722,22 +1572,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.
@@ -1745,20 +1596,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.
@@ -1768,28 +1616,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; @@ -1798,22 +1645,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 { @@ -1821,37 +1667,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() { @@ -1861,22 +1700,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; @@ -1886,20 +1721,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; @@ -1908,21 +1741,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 { @@ -1930,35 +1762,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() { @@ -1968,30 +1793,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); } @@ -2001,12 +1822,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(); } @@ -2015,27 +1836,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; @@ -2050,4 +1871,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 8a65871053..444879afbd 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,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +16,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 +28,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 +41,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 +52,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 +65,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 +76,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 +136,6 @@ public interface NotificationConfigOrBuilder
    */
   int getCustomAttributesCount();
   /**
-   *
-   *
    * 
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -188,13 +143,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 +159,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 +170,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 +182,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 75% 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 4021fdef46..349a4f6890 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,47 +35,46 @@ private Object() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Object(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + 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.MapField internalGetMapField( + 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
@@ -105,7 +86,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -114,15 +94,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
@@ -134,15 +113,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 { @@ -151,20 +131,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 @@ -173,31 +147,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 { @@ -206,12 +178,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
@@ -220,7 +189,6 @@ public com.google.protobuf.ByteString getBucketBytes() {
    * 
* * string etag = 27; - * * @return The etag. */ @java.lang.Override @@ -229,15 +197,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
@@ -246,15 +213,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 { @@ -265,8 +233,6 @@ 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. Attempting to set or update this field will result in a
@@ -274,7 +240,6 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The generation. */ @java.lang.Override @@ -285,8 +250,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
@@ -296,7 +259,6 @@ public long getGeneration() {
    * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -305,18 +267,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 @@ -325,29 +283,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 { @@ -358,8 +316,6 @@ 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].
@@ -368,7 +324,6 @@ public com.google.protobuf.ByteString getStorageClassBytes() {
    * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The size. */ @java.lang.Override @@ -377,19 +332,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 @@ -398,30 +349,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 { @@ -430,19 +381,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 @@ -451,30 +398,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 { @@ -483,12 +430,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].
@@ -497,7 +441,6 @@ public com.google.protobuf.ByteString getContentDispositionBytes() {
    * 
* * string cache_control = 9; - * * @return The cacheControl. */ @java.lang.Override @@ -506,15 +449,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].
@@ -523,15 +465,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 { @@ -540,12 +483,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
@@ -559,8 +499,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
@@ -570,13 +508,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
@@ -590,8 +526,6 @@ public int getAclCount() {
     return acl_.size();
   }
   /**
-   *
-   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -605,8 +539,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
@@ -616,24 +548,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 @@ -642,30 +571,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 { @@ -676,8 +605,6 @@ public com.google.protobuf.ByteString getContentLanguageBytes() { public static final int DELETE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -685,9 +612,7 @@ public com.google.protobuf.ByteString getContentLanguageBytes() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -695,8 +620,6 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -704,9 +627,7 @@ public boolean hasDeleteTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -714,8 +635,6 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -723,8 +642,7 @@ public com.google.protobuf.Timestamp getDeleteTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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() { @@ -732,12 +650,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].
@@ -746,7 +661,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string content_type = 13; - * * @return The contentType. */ @java.lang.Override @@ -755,15 +669,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].
@@ -772,15 +685,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 { @@ -791,17 +705,13 @@ 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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -809,17 +719,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation time of the object.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -827,16 +733,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time of the object.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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() { @@ -846,8 +749,6 @@ 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. Attempting to set or
@@ -856,7 +757,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The componentCount. */ @java.lang.Override @@ -867,17 +767,12 @@ 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 @@ -885,49 +780,34 @@ public boolean hasChecksums() { return checksums_ != null; } /** - * - * *
    * 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
@@ -939,9 +819,7 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -949,8 +827,6 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The modification time of the object metadata.
    * Set initially to object creation time and then updated whenever any
@@ -962,9 +838,7 @@ public boolean hasUpdateTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -972,8 +846,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
@@ -985,8 +857,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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() { @@ -994,19 +865,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 @@ -1015,30 +882,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 { @@ -1049,8 +916,6 @@ 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.
@@ -1058,10 +923,7 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * - * .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 @@ -1069,8 +931,6 @@ public boolean hasUpdateStorageClassTime() { return updateStorageClassTime_ != null; } /** - * - * *
    * 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.
@@ -1078,21 +938,14 @@ public boolean hasUpdateStorageClassTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * - * .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.
@@ -1100,22 +953,16 @@ public com.google.protobuf.Timestamp getUpdateStorageClassTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * - * .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
@@ -1125,7 +972,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
    * 
* * bool temporary_hold = 20; - * * @return The temporaryHold. */ @java.lang.Override @@ -1136,8 +982,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.
@@ -1149,7 +993,6 @@ public boolean getTemporaryHold() {
    * 
* * .google.protobuf.Timestamp retention_expire_time = 21; - * * @return Whether the retentionExpireTime field is set. */ @java.lang.Override @@ -1157,8 +1000,6 @@ public boolean hasRetentionExpireTime() { return retentionExpireTime_ != null; } /** - * - * *
    * A server-determined value that specifies the earliest time that the
    * object's retention period expires.
@@ -1170,18 +1011,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.
@@ -1196,40 +1032,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.
    * 
@@ -1237,21 +1069,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.
    * 
@@ -1263,8 +1094,6 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
    * User-provided metadata, in key/value pairs.
    * 
@@ -1272,19 +1101,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.
    * 
@@ -1292,11 +1119,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(); } @@ -1306,8 +1133,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
@@ -1322,7 +1147,6 @@ 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 @@ -1330,8 +1154,6 @@ public boolean hasEventBasedHold() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Whether an object is under event-based hold.
    * An event-based hold is a way to force the retention of an object until
@@ -1346,7 +1168,6 @@ public boolean hasEventBasedHold() {
    * 
* * optional bool event_based_hold = 23; - * * @return The eventBasedHold. */ @java.lang.Override @@ -1357,8 +1178,6 @@ 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. Attempting to set or update this field will result in a
@@ -1366,7 +1185,6 @@ public boolean getEventBasedHold() {
    * 
* * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the owner field is set. */ @java.lang.Override @@ -1374,8 +1192,6 @@ public boolean hasOwner() { return owner_ != null; } /** - * - * *
    * Output only. The owner of the object. This will always be the uploader of
    * the object. Attempting to set or update this field will result in a
@@ -1383,7 +1199,6 @@ public boolean hasOwner() {
    * 
* * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The owner. */ @java.lang.Override @@ -1391,8 +1206,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. Attempting to set or update this field will result in a
@@ -1409,15 +1222,12 @@ 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 @@ -1425,26 +1235,19 @@ public boolean hasCustomerEncryption() { return customerEncryption_ != null; } /** - * - * *
    * 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.
@@ -1454,22 +1257,17 @@ 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 @@ -1477,14 +1275,11 @@ public boolean hasCustomTime() { return customTime_ != null; } /** - * - * *
    * A user-specified timestamp set on an object.
    * 
* * .google.protobuf.Timestamp custom_time = 26; - * * @return The customTime. */ @java.lang.Override @@ -1492,8 +1287,6 @@ public com.google.protobuf.Timestamp getCustomTime() { return customTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : customTime_; } /** - * - * *
    * A user-specified timestamp set on an object.
    * 
@@ -1506,7 +1299,6 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1518,7 +1310,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_); } @@ -1582,8 +1375,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (retentionExpireTime_ != null) { output.writeMessage(21, getRetentionExpireTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 22); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 22); if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(23, eventBasedHold_); } @@ -1615,16 +1412,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_); @@ -1636,64 +1436,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()); + 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()); + 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()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getChecksums()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getUpdateTime()); + 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()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getUpdateStorageClassTime()); } if (temporaryHold_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, temporaryHold_); + 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__); + 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_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(23, eventBasedHold_); } if (owner_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getOwner()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getOwner()); } if (customerEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getCustomerEncryption()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getCustomerEncryption()); } if (customTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getCustomTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getCustomTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, etag_); @@ -1706,69 +1517,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; @@ -1788,13 +1626,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; @@ -1834,7 +1675,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(); @@ -1845,7 +1687,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; @@ -1864,153 +1707,152 @@ 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.MapField internalGetMapField( + 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.MapField internalGetMutableMapField( + 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() { - 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(); @@ -2088,7 +1930,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; } @@ -2110,9 +1953,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; } @@ -2165,40 +2006,46 @@ private void buildPartial0(com.google.storage.v2.Object result) { result.contentLanguage_ = contentLanguage_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); } 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(); } 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(); } if (((from_bitField0_ & 0x00020000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } 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(); } 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(); } if (((from_bitField0_ & 0x00400000) != 0)) { result.metadata_ = internalGetMetadata(); @@ -2210,16 +2057,19 @@ private void buildPartial0(com.google.storage.v2.Object result) { to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x01000000) != 0)) { - result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); + result.owner_ = ownerBuilder_ == null + ? owner_ + : ownerBuilder_.build(); } if (((from_bitField0_ & 0x02000000) != 0)) { - result.customerEncryption_ = - customerEncryptionBuilder_ == null - ? customerEncryption_ - : customerEncryptionBuilder_.build(); + result.customerEncryption_ = customerEncryptionBuilder_ == null + ? customerEncryption_ + : customerEncryptionBuilder_.build(); } if (((from_bitField0_ & 0x04000000) != 0)) { - result.customTime_ = customTimeBuilder_ == null ? customTime_ : customTimeBuilder_.build(); + result.customTime_ = customTimeBuilder_ == null + ? customTime_ + : customTimeBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -2228,39 +2078,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; @@ -2331,10 +2180,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_); } @@ -2379,7 +2227,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()); @@ -2419,208 +2268,191 @@ 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 - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
+            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
      * [Guidelines](https://cloud.google.com/storage/docs/objects#naming).
@@ -2631,13 +2463,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; @@ -2646,8 +2478,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of this object. Nearly any sequence of unicode
      * characters is valid. See
@@ -2659,14 +2489,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 { @@ -2674,8 +2505,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of this object. Nearly any sequence of unicode
      * characters is valid. See
@@ -2687,22 +2516,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
@@ -2714,7 +2539,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2724,8 +2548,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of this object. Nearly any sequence of unicode
      * characters is valid. See
@@ -2737,14 +2559,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; @@ -2754,22 +2574,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; @@ -2778,23 +2594,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 { @@ -2802,39 +2615,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() { @@ -2844,23 +2646,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; @@ -2870,8 +2666,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
@@ -2880,13 +2674,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; @@ -2895,8 +2689,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * The etag of the object.
      * If included in the metadata of an update or delete request message, the
@@ -2905,14 +2697,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 { @@ -2920,8 +2713,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
@@ -2930,22 +2721,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
@@ -2954,7 +2741,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 27; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2964,8 +2750,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * The etag of the object.
      * If included in the metadata of an update or delete request message, the
@@ -2974,14 +2758,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; @@ -2989,10 +2771,8 @@ 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. Attempting to set or update this field will result in a
@@ -3000,7 +2780,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The generation. */ @java.lang.Override @@ -3008,8 +2787,6 @@ public long getGeneration() { return generation_; } /** - * - * *
      * Immutable. The content generation of this object. Used for object
      * versioning. Attempting to set or update this field will result in a
@@ -3017,20 +2794,17 @@ public long getGeneration() {
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Immutable. The content generation of this object. Used for object
      * versioning. Attempting to set or update this field will result in a
@@ -3038,7 +2812,6 @@ public Builder setGeneration(long value) {
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -3048,10 +2821,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
@@ -3061,7 +2832,6 @@ public Builder clearGeneration() {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -3069,8 +2839,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
@@ -3080,20 +2848,17 @@ public long getMetageneration() {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The metageneration to set. * @return This builder for chaining. */ public Builder setMetageneration(long value) { - + metageneration_ = value; bitField0_ |= 0x00000010; onChanged(); 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
@@ -3103,7 +2868,6 @@ public Builder setMetageneration(long value) {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -3115,20 +2879,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; @@ -3137,21 +2899,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 { @@ -3159,35 +2920,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() { @@ -3197,21 +2951,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; @@ -3219,10 +2969,8 @@ 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].
@@ -3231,7 +2979,6 @@ public Builder setStorageClassBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The size. */ @java.lang.Override @@ -3239,8 +2986,6 @@ 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].
@@ -3249,20 +2994,17 @@ public long getSize() {
      * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { - + size_ = value; bitField0_ |= 0x00000040; onChanged(); 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].
@@ -3271,7 +3013,6 @@ public Builder setSize(long value) {
      * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSize() { @@ -3283,21 +3024,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; @@ -3306,22 +3045,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 { @@ -3329,37 +3067,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() { @@ -3369,22 +3100,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; @@ -3394,21 +3121,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; @@ -3417,22 +3142,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 { @@ -3440,37 +3164,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() { @@ -3480,22 +3197,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; @@ -3505,8 +3218,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].
@@ -3515,13 +3226,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; @@ -3530,8 +3241,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].
@@ -3540,14 +3249,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 { @@ -3555,8 +3265,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].
@@ -3565,22 +3273,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].
@@ -3589,7 +3293,6 @@ public Builder setCacheControl(java.lang.String value) {
      * 
* * string cache_control = 9; - * * @return This builder for chaining. */ public Builder clearCacheControl() { @@ -3599,8 +3302,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].
@@ -3609,14 +3310,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; @@ -3625,24 +3324,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
@@ -3659,8 +3352,6 @@ public java.util.List getAclList() {
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3677,8 +3368,6 @@ public int getAclCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3695,8 +3384,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
@@ -3705,7 +3392,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();
@@ -3719,8 +3407,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
@@ -3741,8 +3427,6 @@ public Builder setAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3765,8 +3449,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
@@ -3775,7 +3457,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();
@@ -3789,8 +3472,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
@@ -3799,7 +3480,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());
@@ -3810,8 +3492,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
@@ -3832,8 +3512,6 @@ public Builder addAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3846,7 +3524,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);
@@ -3854,8 +3533,6 @@ public Builder addAllAcl(
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3875,8 +3552,6 @@ public Builder clearAcl() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3896,8 +3571,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
@@ -3906,12 +3579,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
@@ -3920,16 +3592,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
@@ -3938,8 +3608,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 {
@@ -3947,8 +3617,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
@@ -3958,12 +3626,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
@@ -3972,13 +3638,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
@@ -3987,22 +3652,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_;
@@ -4010,21 +3673,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; @@ -4033,22 +3694,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 { @@ -4056,37 +3716,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() { @@ -4096,22 +3749,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; @@ -4121,13 +3770,8 @@ 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. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -4135,18 +3779,13 @@ public Builder setContentLanguageBytes(com.google.protobuf.ByteString value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -4154,24 +3793,17 @@ public boolean hasDeleteTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -4179,9 +3811,7 @@ public com.google.protobuf.Timestamp getDeleteTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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) { @@ -4197,8 +3827,6 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -4206,11 +3834,10 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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 { @@ -4221,8 +3848,6 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -4230,15 +3855,13 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -4251,8 +3874,6 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -4260,9 +3881,7 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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); @@ -4275,8 +3894,6 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -4284,9 +3901,7 @@ public Builder clearDeleteTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -4294,8 +3909,6 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -4303,22 +3916,17 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -4326,22 +3934,17 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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_; @@ -4349,8 +3952,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].
@@ -4359,13 +3960,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; @@ -4374,8 +3975,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].
@@ -4384,14 +3983,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 { @@ -4399,8 +3999,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].
@@ -4409,22 +4007,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].
@@ -4433,7 +4027,6 @@ public Builder setContentType(java.lang.String value) {
      * 
* * string content_type = 13; - * * @return This builder for chaining. */ public Builder clearContentType() { @@ -4443,8 +4036,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].
@@ -4453,14 +4044,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; @@ -4470,64 +4059,45 @@ 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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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) { @@ -4543,19 +4113,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the object.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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 { @@ -4566,23 +4133,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time of the object.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -4595,17 +4158,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the object.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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); @@ -4618,17 +4177,13 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation time of the object.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -4636,61 +4191,47 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation time of the object.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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. Attempting to set or
@@ -4699,7 +4240,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The componentCount. */ @java.lang.Override @@ -4707,8 +4247,6 @@ public int getComponentCount() { return componentCount_; } /** - * - * *
      * Output only. Number of underlying components that make up this object.
      * Components are accumulated by compose operations. Attempting to set or
@@ -4717,20 +4255,17 @@ public int getComponentCount() {
      * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The componentCount to set. * @return This builder for chaining. */ public Builder setComponentCount(int value) { - + componentCount_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** - * - * *
      * Output only. Number of underlying components that make up this object.
      * Components are accumulated by compose operations. Attempting to set or
@@ -4739,7 +4274,6 @@ public Builder setComponentCount(int value) {
      * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearComponentCount() { @@ -4751,61 +4285,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) { @@ -4821,18 +4336,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 { @@ -4843,22 +4355,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; @@ -4871,16 +4379,12 @@ public Builder mergeChecksums(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 clearChecksums() { bitField0_ = (bitField0_ & ~0x00010000); @@ -4893,16 +4397,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; @@ -4910,50 +4410,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_; @@ -4961,13 +4449,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
@@ -4979,18 +4462,13 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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
@@ -5002,24 +4480,17 @@ public boolean hasUpdateTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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
@@ -5031,9 +4502,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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) { @@ -5049,8 +4518,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
@@ -5062,11 +4529,10 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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 { @@ -5077,8 +4543,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
@@ -5090,15 +4554,13 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -5111,8 +4573,6 @@ public Builder mergeUpdateTime(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
@@ -5124,9 +4584,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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); @@ -5139,8 +4597,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
@@ -5152,9 +4608,7 @@ public Builder clearUpdateTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -5162,8 +4616,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
@@ -5175,22 +4627,17 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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
@@ -5202,22 +4649,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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_; @@ -5225,21 +4667,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; @@ -5248,22 +4688,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 { @@ -5271,37 +4710,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() { @@ -5311,22 +4743,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; @@ -5336,13 +4764,8 @@ 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.
@@ -5350,18 +4773,13 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
@@ -5369,24 +4787,17 @@ public boolean hasUpdateStorageClassTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
@@ -5394,9 +4805,7 @@ public com.google.protobuf.Timestamp getUpdateStorageClassTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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) { @@ -5412,8 +4821,6 @@ 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.
@@ -5421,9 +4828,7 @@ public Builder setUpdateStorageClassTime(com.google.protobuf.Timestamp value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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) { @@ -5437,8 +4842,6 @@ 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.
@@ -5446,15 +4849,13 @@ public Builder setUpdateStorageClassTime(
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -5467,8 +4868,6 @@ public Builder mergeUpdateStorageClassTime(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.
@@ -5476,9 +4875,7 @@ public Builder mergeUpdateStorageClassTime(com.google.protobuf.Timestamp value)
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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); @@ -5491,8 +4888,6 @@ 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.
@@ -5500,9 +4895,7 @@ public Builder clearUpdateStorageClassTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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; @@ -5510,8 +4903,6 @@ 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.
@@ -5519,22 +4910,17 @@ public com.google.protobuf.Timestamp.Builder getUpdateStorageClassTimeBuilder()
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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.
@@ -5542,31 +4928,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * - * .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
@@ -5576,7 +4955,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
      * 
* * bool temporary_hold = 20; - * * @return The temporaryHold. */ @java.lang.Override @@ -5584,8 +4962,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
@@ -5595,20 +4971,17 @@ public boolean getTemporaryHold() {
      * 
* * bool temporary_hold = 20; - * * @param value The temporaryHold to set. * @return This builder for chaining. */ public Builder setTemporaryHold(boolean value) { - + temporaryHold_ = value; bitField0_ |= 0x00100000; onChanged(); 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
@@ -5618,7 +4991,6 @@ public Builder setTemporaryHold(boolean value) {
      * 
* * bool temporary_hold = 20; - * * @return This builder for chaining. */ public Builder clearTemporaryHold() { @@ -5630,13 +5002,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.
@@ -5648,15 +5015,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.
@@ -5668,21 +5032,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.
@@ -5709,8 +5068,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.
@@ -5723,7 +5080,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 {
@@ -5734,8 +5092,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.
@@ -5750,9 +5106,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;
@@ -5765,8 +5121,6 @@ public Builder mergeRetentionExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5790,8 +5144,6 @@ public Builder clearRetentionExpireTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5810,8 +5162,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.
@@ -5828,14 +5178,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.
@@ -5849,36 +5196,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();
@@ -5887,13 +5232,10 @@ private com.google.protobuf.MapField interna
       onChanged();
       return metadata_;
     }
-
     public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
-     *
-     *
      * 
      * User-provided metadata, in key/value pairs.
      * 
@@ -5901,21 +5243,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.
      * 
@@ -5927,8 +5268,6 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
      * User-provided metadata, in key/value pairs.
      * 
@@ -5936,19 +5275,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.
      * 
@@ -5956,83 +5293,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
@@ -6047,7 +5380,6 @@ public Builder putAllMetadata(java.util.Map
      * 
* * optional bool event_based_hold = 23; - * * @return Whether the eventBasedHold field is set. */ @java.lang.Override @@ -6055,8 +5387,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
@@ -6071,7 +5401,6 @@ public boolean hasEventBasedHold() {
      * 
* * optional bool event_based_hold = 23; - * * @return The eventBasedHold. */ @java.lang.Override @@ -6079,8 +5408,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
@@ -6095,20 +5422,17 @@ public boolean getEventBasedHold() {
      * 
* * optional bool event_based_hold = 23; - * * @param value The eventBasedHold to set. * @return This builder for chaining. */ public Builder setEventBasedHold(boolean value) { - + eventBasedHold_ = value; bitField0_ |= 0x00800000; onChanged(); 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
@@ -6123,7 +5447,6 @@ public Builder setEventBasedHold(boolean value) {
      * 
* * optional bool event_based_hold = 23; - * * @return This builder for chaining. */ public Builder clearEventBasedHold() { @@ -6135,39 +5458,28 @@ 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. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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() { @@ -6178,16 +5490,13 @@ public com.google.storage.v2.Owner getOwner() { } } /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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) { @@ -6203,18 +5512,16 @@ 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. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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 { @@ -6225,22 +5532,19 @@ 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. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -6253,16 +5557,13 @@ public Builder mergeOwner(com.google.storage.v2.Owner value) { return this; } /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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); @@ -6275,16 +5576,13 @@ public Builder clearOwner() { return this; } /** - * - * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -6292,48 +5590,40 @@ 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. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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_; @@ -6341,49 +5631,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.
@@ -6405,8 +5682,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.
@@ -6426,8 +5701,6 @@ public Builder setCustomerEncryption(
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -6437,10 +5710,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;
@@ -6453,8 +5725,6 @@ public Builder mergeCustomerEncryption(com.google.storage.v2.CustomerEncryption
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -6473,8 +5743,6 @@ public Builder clearCustomerEncryption() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -6488,8 +5756,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.
@@ -6501,14 +5767,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.
@@ -6517,17 +5780,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_;
@@ -6535,47 +5795,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.
      * 
@@ -6596,15 +5843,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 { @@ -6615,8 +5861,6 @@ public Builder setCustomTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
@@ -6625,9 +5869,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; @@ -6640,8 +5884,6 @@ public Builder mergeCustomTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
@@ -6659,8 +5901,6 @@ public Builder clearCustomTime() { return this; } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
@@ -6673,8 +5913,6 @@ public com.google.protobuf.Timestamp.Builder getCustomTimeBuilder() { return getCustomTimeFieldBuilder().getBuilder(); } /** - * - * *
      * A user-specified timestamp set on an object.
      * 
@@ -6685,14 +5923,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.
      * 
@@ -6700,24 +5935,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); } @@ -6727,12 +5959,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(); } @@ -6741,27 +5973,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; @@ -6776,4 +6008,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 659e6cded4..5eb42e3233 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,43 +32,38 @@ private ObjectAccessControl() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectAccessControl(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } 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 @@ -95,29 +72,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 { @@ -126,18 +103,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 @@ -146,29 +119,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 { @@ -177,12 +150,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}`
@@ -205,7 +175,6 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string entity = 3; - * * @return The entity. */ @java.lang.Override @@ -214,15 +183,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}`
@@ -245,15 +213,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 { @@ -262,19 +231,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 @@ -283,30 +248,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 { @@ -315,18 +280,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 @@ -335,29 +296,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 { @@ -366,12 +327,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
@@ -380,7 +338,6 @@ public com.google.protobuf.ByteString getEntityIdBytes() {
    * 
* * string etag = 8; - * * @return The etag. */ @java.lang.Override @@ -389,15 +346,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
@@ -406,15 +362,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 { @@ -423,18 +380,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 @@ -443,29 +396,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 { @@ -474,18 +427,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 @@ -494,29 +443,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 { @@ -527,14 +476,11 @@ 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 @@ -542,25 +488,18 @@ public boolean hasProjectTeam() { return projectTeam_ != null; } /** - * - * *
    * 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.
    * 
@@ -569,13 +508,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; @@ -587,7 +523,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_); } @@ -643,7 +580,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_); } if (projectTeam_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProjectTeam()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getProjectTeam()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); @@ -659,25 +597,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; @@ -715,136 +661,130 @@ 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() { - 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(); @@ -866,9 +806,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 @@ -887,11 +827,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; } @@ -923,8 +860,9 @@ private void buildPartial0(com.google.storage.v2.ObjectAccessControl result) { result.domain_ = domain_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.projectTeam_ = - projectTeamBuilder_ == null ? projectTeam_ : projectTeamBuilder_.build(); + result.projectTeam_ = projectTeamBuilder_ == null + ? projectTeam_ + : projectTeamBuilder_.build(); } } @@ -932,39 +870,38 @@ private void buildPartial0(com.google.storage.v2.ObjectAccessControl 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.ObjectAccessControl) { - return mergeFrom((com.google.storage.v2.ObjectAccessControl) other); + return mergeFrom((com.google.storage.v2.ObjectAccessControl)other); } else { super.mergeFrom(other); return this; @@ -1042,67 +979,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) { @@ -1112,25 +1041,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; @@ -1139,21 +1065,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 { @@ -1161,35 +1086,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() { @@ -1199,21 +1117,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; @@ -1223,20 +1137,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; @@ -1245,21 +1157,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 { @@ -1267,35 +1178,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() { @@ -1305,21 +1209,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; @@ -1329,8 +1229,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}`
@@ -1353,13 +1251,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; @@ -1368,8 +1266,6 @@ public java.lang.String getEntity() { } } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1392,14 +1288,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 { @@ -1407,8 +1304,6 @@ public com.google.protobuf.ByteString getEntityBytes() { } } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1431,22 +1326,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}`
@@ -1469,7 +1360,6 @@ public Builder setEntity(java.lang.String value) {
      * 
* * string entity = 3; - * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1479,8 +1369,6 @@ public Builder clearEntity() { return this; } /** - * - * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1503,14 +1391,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; @@ -1520,21 +1406,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; @@ -1543,22 +1427,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 { @@ -1566,37 +1449,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() { @@ -1606,22 +1482,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; @@ -1631,20 +1503,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; @@ -1653,21 +1523,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 { @@ -1675,35 +1544,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() { @@ -1713,21 +1575,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; @@ -1737,8 +1595,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
@@ -1747,13 +1603,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; @@ -1762,8 +1618,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * The etag of the ObjectAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1772,14 +1626,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 { @@ -1787,8 +1642,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
@@ -1797,22 +1650,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
@@ -1821,7 +1670,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 8; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1831,8 +1679,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * The etag of the ObjectAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1841,14 +1687,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; @@ -1858,20 +1702,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; @@ -1880,21 +1722,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 { @@ -1902,35 +1743,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() { @@ -1940,21 +1774,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; @@ -1964,20 +1794,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; @@ -1986,21 +1814,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 { @@ -2008,35 +1835,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() { @@ -2046,21 +1866,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; @@ -2070,47 +1886,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.
      * 
@@ -2131,15 +1934,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 { @@ -2150,8 +1952,6 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderF return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2160,9 +1960,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; @@ -2175,8 +1975,6 @@ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2194,8 +1992,6 @@ public Builder clearProjectTeam() { return this; } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2208,8 +2004,6 @@ public com.google.storage.v2.ProjectTeam.Builder getProjectTeamBuilder() { return getProjectTeamFieldBuilder().getBuilder(); } /** - * - * *
      * The project team associated with the entity, if any.
      * 
@@ -2220,14 +2014,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.
      * 
@@ -2235,24 +2026,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); } @@ -2262,12 +2050,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(); } @@ -2276,27 +2064,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; @@ -2311,4 +2099,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 20ee2c6a38..dfb08835cc 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,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +70,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 +96,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 +152,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 +164,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 5ad9fc37bf..df0185239d 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,78 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.
@@ -81,7 +60,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * optional fixed32 crc32c = 1; - * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -89,8 +67,6 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * CRC32C digest of the object data. Computed by the Cloud Storage service for
    * all written objects.
@@ -99,7 +75,6 @@ public boolean hasCrc32C() {
    * 
* * optional fixed32 crc32c = 1; - * * @return The crc32c. */ @java.lang.Override @@ -110,8 +85,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
@@ -123,7 +96,6 @@ public int getCrc32C() {
    * 
* * bytes md5_hash = 2; - * * @return The md5Hash. */ @java.lang.Override @@ -132,7 +104,6 @@ public com.google.protobuf.ByteString getMd5Hash() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,7 +115,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_); } @@ -161,10 +133,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; @@ -174,7 +148,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); @@ -183,9 +157,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; } @@ -208,135 +184,130 @@ 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(); @@ -347,9 +318,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 @@ -368,11 +339,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; } @@ -394,39 +362,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; @@ -467,25 +434,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) { @@ -495,13 +459,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.
@@ -510,7 +471,6 @@ public Builder mergeFrom(
      * 
* * optional fixed32 crc32c = 1; - * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -518,8 +478,6 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * CRC32C digest of the object data. Computed by the Cloud Storage service for
      * all written objects.
@@ -528,7 +486,6 @@ public boolean hasCrc32C() {
      * 
* * optional fixed32 crc32c = 1; - * * @return The crc32c. */ @java.lang.Override @@ -536,8 +493,6 @@ public int getCrc32C() { return crc32C_; } /** - * - * *
      * CRC32C digest of the object data. Computed by the Cloud Storage service for
      * all written objects.
@@ -546,20 +501,17 @@ public int getCrc32C() {
      * 
* * optional fixed32 crc32c = 1; - * * @param value The crc32c to set. * @return This builder for chaining. */ public Builder setCrc32C(int value) { - + crc32C_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * CRC32C digest of the object data. Computed by the Cloud Storage service for
      * all written objects.
@@ -568,7 +520,6 @@ public Builder setCrc32C(int value) {
      * 
* * optional fixed32 crc32c = 1; - * * @return This builder for chaining. */ public Builder clearCrc32C() { @@ -580,8 +531,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
@@ -593,7 +542,6 @@ public Builder clearCrc32C() {
      * 
* * bytes md5_hash = 2; - * * @return The md5Hash. */ @java.lang.Override @@ -601,8 +549,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
@@ -614,22 +560,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
@@ -641,7 +582,6 @@ public Builder setMd5Hash(com.google.protobuf.ByteString value) {
      * 
* * bytes md5_hash = 2; - * * @return This builder for chaining. */ public Builder clearMd5Hash() { @@ -650,9 +590,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); } @@ -662,12 +602,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(); } @@ -676,27 +616,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; @@ -711,4 +651,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 f65c591723..f9fc30f0fe 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,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +16,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 +28,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 +44,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 85% 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 b9d77b6967..3fab5a779a 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,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +19,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 +34,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 +68,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,14 +80,12 @@ 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. Attempting to set or update this field will result in a
@@ -130,14 +93,11 @@ public interface ObjectOrBuilder
    * 
* * 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
@@ -147,39 +107,31 @@ 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].
@@ -188,68 +140,55 @@ public interface ObjectOrBuilder
    * 
* * 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].
@@ -258,13 +197,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].
@@ -273,14 +209,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
@@ -289,10 +223,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
@@ -303,8 +236,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
@@ -315,8 +246,6 @@ public interface ObjectOrBuilder
    */
   int getAclCount();
   /**
-   *
-   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -325,11 +254,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
@@ -338,38 +265,32 @@ 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. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -377,15 +298,11 @@ public interface ObjectOrBuilder
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -393,15 +310,11 @@ public interface ObjectOrBuilder
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -409,14 +322,11 @@ public interface ObjectOrBuilder
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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].
@@ -425,13 +335,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].
@@ -440,58 +347,45 @@ 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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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. Attempting to set or
@@ -500,58 +394,41 @@ public interface ObjectOrBuilder
    * 
* * 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
@@ -563,15 +440,11 @@ public interface ObjectOrBuilder
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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
@@ -583,15 +456,11 @@ public interface ObjectOrBuilder
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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
@@ -603,41 +472,33 @@ public interface ObjectOrBuilder
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
@@ -645,16 +506,11 @@ public interface ObjectOrBuilder
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * - * .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.
@@ -662,16 +518,11 @@ public interface ObjectOrBuilder
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * - * .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.
@@ -679,15 +530,11 @@ public interface ObjectOrBuilder
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * - * .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
@@ -697,14 +544,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.
@@ -716,13 +560,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.
@@ -734,13 +575,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.
@@ -756,8 +594,6 @@ public interface ObjectOrBuilder
   com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * User-provided metadata, in key/value pairs.
    * 
@@ -766,31 +602,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.
    * 
@@ -798,24 +633,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
@@ -830,13 +662,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
@@ -851,14 +680,11 @@ 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. Attempting to set or update this field will result in a
@@ -866,13 +692,10 @@ java.lang.String getMetadataOrDefault(
    * 
* * .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. Attempting to set or update this field will result in a
@@ -880,13 +703,10 @@ java.lang.String getMetadataOrDefault(
    * 
* * .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. Attempting to set or update this field will result in a
@@ -898,34 +718,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.
@@ -936,32 +748,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 0d1ff3e141..cc0244cb3d 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,41 +26,38 @@ private Owner() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Owner(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + 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 @@ -87,29 +66,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 { @@ -118,18 +97,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 @@ -138,29 +113,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 { @@ -169,7 +144,6 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(entity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_); } @@ -211,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.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; } @@ -240,133 +217,130 @@ 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(); @@ -377,7 +351,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; } @@ -398,9 +373,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; } @@ -419,39 +392,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; @@ -496,25 +468,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) { @@ -524,25 +493,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; @@ -551,21 +517,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 { @@ -573,35 +538,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() { @@ -611,21 +569,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; @@ -635,20 +589,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; @@ -657,21 +609,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 { @@ -679,35 +630,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() { @@ -717,30 +661,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); } @@ -750,12 +690,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(); } @@ -764,27 +704,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; @@ -799,4 +739,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 4caffe13d6..d4d78b5497 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,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 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 981ebb3d38..2f00269ade 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,43 +26,38 @@ private ProjectTeam() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProjectTeam(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -89,29 +66,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 { @@ -120,18 +97,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 @@ -140,29 +113,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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getTeamBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,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(projectNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectNumber_); } @@ -213,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.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; } @@ -242,135 +217,130 @@ 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(); @@ -381,9 +351,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 @@ -403,9 +373,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; } @@ -424,39 +392,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; @@ -501,25 +468,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) { @@ -529,25 +493,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; @@ -556,21 +517,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 { @@ -578,35 +538,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() { @@ -616,21 +569,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; @@ -640,20 +589,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; @@ -662,21 +609,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 { @@ -684,35 +630,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() { @@ -722,30 +661,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); } @@ -755,12 +690,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(); } @@ -769,27 +704,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; @@ -804,4 +739,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 3af551ee1e..1544bb7527 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,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 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 12833ca516..fb6267f7ff 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,86 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } 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 @@ -89,30 +66,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 { @@ -123,14 +100,11 @@ 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 @@ -138,25 +112,18 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** - * - * *
    * 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.
    * 
@@ -164,15 +131,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; @@ -184,7 +147,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } @@ -204,9 +168,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadId_); } if (commonObjectRequestParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getCommonObjectRequestParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,19 +179,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -252,136 +215,130 @@ 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() { - 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(); @@ -396,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_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 @@ -417,11 +374,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; } @@ -432,10 +386,9 @@ private void buildPartial0(com.google.storage.v2.QueryWriteStatusRequest result) result.uploadId_ = uploadId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); } } @@ -443,39 +396,38 @@ private void buildPartial0(com.google.storage.v2.QueryWriteStatusRequest 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.QueryWriteStatusRequest) { - return mergeFrom((com.google.storage.v2.QueryWriteStatusRequest) other); + return mergeFrom((com.google.storage.v2.QueryWriteStatusRequest)other); } else { super.mergeFrom(other); return this; @@ -518,26 +470,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) { @@ -547,26 +497,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; @@ -575,22 +522,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 { @@ -598,37 +544,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() { @@ -638,22 +577,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; @@ -663,55 +598,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(); @@ -725,8 +646,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -745,21 +664,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; @@ -772,8 +687,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -791,42 +704,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.
      * 
@@ -834,24 +738,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); } @@ -861,12 +762,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(); } @@ -875,27 +776,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; @@ -910,4 +811,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 f56814f69d..898a21ec1c 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,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 add6cb63a2..b0c912fd6e 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,82 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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; 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; } @@ -92,30 +71,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
@@ -124,7 +98,6 @@ public WriteStatusCase getWriteStatusCase() {
    * 
* * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ @java.lang.Override @@ -132,8 +105,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
@@ -142,7 +113,6 @@ public boolean hasPersistedSize() {
    * 
* * int64 persisted_size = 1; - * * @return The persistedSize. */ @java.lang.Override @@ -155,15 +125,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 @@ -171,27 +138,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.
@@ -202,13 +164,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;
@@ -220,9 +181,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_);
@@ -237,14 +200,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;
@@ -254,21 +216,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:
@@ -287,7 +250,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;
@@ -301,136 +265,130 @@ 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(); @@ -444,9 +402,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 @@ -465,11 +423,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; @@ -482,7 +437,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(); } } @@ -491,39 +447,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; @@ -533,20 +488,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(); @@ -574,25 +526,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) { @@ -602,12 +553,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() { @@ -620,8 +571,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
@@ -630,15 +579,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
@@ -647,7 +593,6 @@ public boolean hasPersistedSize() {
      * 
* * int64 persisted_size = 1; - * * @return The persistedSize. */ public long getPersistedSize() { @@ -657,8 +602,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
@@ -667,20 +610,17 @@ public long getPersistedSize() {
      * 
* * int64 persisted_size = 1; - * * @param value The persistedSize to set. * @return This builder for chaining. */ public Builder setPersistedSize(long value) { - + writeStatusCase_ = 1; writeStatus_ = value; onChanged(); 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
@@ -689,7 +629,6 @@ public Builder setPersistedSize(long value) {
      * 
* * int64 persisted_size = 1; - * * @return This builder for chaining. */ public Builder clearPersistedSize() { @@ -702,20 +641,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 @@ -723,15 +656,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 @@ -749,8 +679,6 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -772,8 +700,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.
@@ -781,7 +707,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();
@@ -792,8 +719,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.
@@ -803,12 +728,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;
         }
@@ -824,8 +747,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.
@@ -850,8 +771,6 @@ public Builder clearResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -863,8 +782,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.
@@ -884,8 +801,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -894,29 +809,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);
     }
 
@@ -926,12 +838,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();
   }
@@ -940,27 +852,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;
@@ -975,4 +887,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 27f5c79b52..537856a71e 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,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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 +16,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 +28,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 32cfe8db51..9e317905f8 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,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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,46 +26,39 @@ private ReadObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadObjectRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -92,31 +67,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 { @@ -125,18 +98,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 @@ -145,29 +114,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 { @@ -178,15 +147,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 @@ -197,8 +163,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.
@@ -211,7 +175,6 @@ public long getGeneration() {
    * 
* * int64 read_offset = 4; - * * @return The readOffset. */ @java.lang.Override @@ -222,8 +185,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
@@ -234,7 +195,6 @@ public long getReadOffset() {
    * 
* * int64 read_limit = 5; - * * @return The readLimit. */ @java.lang.Override @@ -245,8 +205,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
@@ -254,7 +212,6 @@ public long getReadLimit() {
    * 
* * optional int64 if_generation_match = 6; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -262,8 +219,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
@@ -271,7 +226,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 6; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -282,8 +236,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
@@ -292,7 +244,6 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 7; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -300,8 +251,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
@@ -310,7 +259,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 7; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -321,15 +269,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 @@ -337,15 +282,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 @@ -356,15 +298,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 @@ -372,15 +311,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 @@ -391,14 +327,11 @@ 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 @@ -406,25 +339,18 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** - * - * *
    * 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.
    * 
@@ -432,18 +358,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.
@@ -453,7 +374,6 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar
    * 
* * optional .google.protobuf.FieldMask read_mask = 12; - * * @return Whether the readMask field is set. */ @java.lang.Override @@ -461,8 +381,6 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * Mask specifying which fields to read.
    * The checksummed_data field and its children will always be present.
@@ -472,7 +390,6 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 12; - * * @return The readMask. */ @java.lang.Override @@ -480,8 +397,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.
@@ -498,7 +413,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -510,7 +424,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_);
     }
@@ -560,33 +475,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_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(9, ifMetagenerationNotMatch_);
     }
     if (commonObjectRequestParams_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              10, getCommonObjectRequestParams());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getCommonObjectRequestParams());
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getReadMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(12, getReadMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -596,42 +518,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;
@@ -649,26 +581,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;
@@ -683,127 +622,118 @@ 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() @@ -811,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(); @@ -850,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 @@ -871,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; } @@ -915,13 +842,14 @@ 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(); } if (((from_bitField0_ & 0x00000400) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null + ? readMask_ + : readMaskBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; @@ -931,39 +859,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; @@ -1035,80 +962,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) { @@ -1118,27 +1036,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; @@ -1147,23 +1060,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 { @@ -1171,39 +1081,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() { @@ -1213,23 +1112,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; @@ -1239,20 +1132,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; @@ -1261,21 +1152,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 { @@ -1283,35 +1173,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() { @@ -1321,21 +1204,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; @@ -1343,17 +1222,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 @@ -1361,35 +1237,29 @@ 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. */ public Builder setGeneration(long value) { - + generation_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -1399,10 +1269,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.
@@ -1415,7 +1283,6 @@ public Builder clearGeneration() {
      * 
* * int64 read_offset = 4; - * * @return The readOffset. */ @java.lang.Override @@ -1423,8 +1290,6 @@ public long getReadOffset() { return readOffset_; } /** - * - * *
      * The offset for the first byte to return in the read, relative to the start
      * of the object.
@@ -1437,20 +1302,17 @@ public long getReadOffset() {
      * 
* * int64 read_offset = 4; - * * @param value The readOffset to set. * @return This builder for chaining. */ public Builder setReadOffset(long value) { - + readOffset_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The offset for the first byte to return in the read, relative to the start
      * of the object.
@@ -1463,7 +1325,6 @@ public Builder setReadOffset(long value) {
      * 
* * int64 read_offset = 4; - * * @return This builder for chaining. */ public Builder clearReadOffset() { @@ -1473,10 +1334,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
@@ -1487,7 +1346,6 @@ public Builder clearReadOffset() {
      * 
* * int64 read_limit = 5; - * * @return The readLimit. */ @java.lang.Override @@ -1495,8 +1353,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
@@ -1507,20 +1363,17 @@ public long getReadLimit() {
      * 
* * int64 read_limit = 5; - * * @param value The readLimit to set. * @return This builder for chaining. */ public Builder setReadLimit(long value) { - + readLimit_ = value; bitField0_ |= 0x00000010; onChanged(); 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
@@ -1531,7 +1384,6 @@ public Builder setReadLimit(long value) {
      * 
* * int64 read_limit = 5; - * * @return This builder for chaining. */ public Builder clearReadLimit() { @@ -1541,10 +1393,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
@@ -1552,7 +1402,6 @@ public Builder clearReadLimit() {
      * 
* * optional int64 if_generation_match = 6; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1560,8 +1409,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
@@ -1569,7 +1416,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 6; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1577,8 +1423,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
@@ -1586,20 +1430,17 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 6; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000020; onChanged(); 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
@@ -1607,7 +1448,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 6; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1617,10 +1457,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
@@ -1629,7 +1467,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 7; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1637,8 +1474,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
@@ -1647,7 +1482,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 7; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1655,8 +1489,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
@@ -1665,20 +1497,17 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 7; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000040; onChanged(); 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
@@ -1687,7 +1516,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 7; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1697,17 +1525,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 @@ -1715,15 +1540,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 @@ -1731,35 +1553,29 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000080; onChanged(); 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() { @@ -1769,17 +1585,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 @@ -1787,15 +1600,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 @@ -1803,35 +1613,29 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000100; onChanged(); 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() { @@ -1843,55 +1647,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(); @@ -1905,8 +1695,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1925,21 +1713,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; @@ -1952,8 +1736,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1971,42 +1753,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.
      * 
@@ -2014,17 +1787,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_; @@ -2032,13 +1802,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.
@@ -2048,15 +1813,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.
@@ -2066,7 +1828,6 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 12; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -2077,8 +1838,6 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2103,8 +1862,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.
@@ -2115,7 +1872,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 {
@@ -2126,8 +1884,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.
@@ -2140,9 +1896,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;
@@ -2155,8 +1911,6 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2178,8 +1932,6 @@ public Builder clearReadMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -2196,8 +1948,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.
@@ -2212,12 +1962,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.
@@ -2229,24 +1978,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);
     }
 
@@ -2256,12 +2002,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();
   }
@@ -2270,27 +2016,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;
@@ -2305,4 +2051,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 1296982fd0..89179cdfc9 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,64 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See 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 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.
@@ -106,14 +71,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
@@ -124,14 +86,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
@@ -139,13 +98,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
@@ -153,14 +109,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
@@ -169,13 +122,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
@@ -184,92 +134,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.
    * 
@@ -279,8 +208,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.
@@ -290,13 +217,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.
@@ -306,13 +230,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 4a6ae14a18..1902d9226d 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,75 +1,55 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } 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
@@ -77,8 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * generate more data.
    * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; - * + * .google.storage.v2.ChecksummedData checksummed_data = 1; * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -86,8 +65,6 @@ public boolean hasChecksummedData() { return checksummedData_ != null; } /** - * - * *
    * 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
@@ -95,19 +72,14 @@ public boolean hasChecksummedData() {
    * generate more data.
    * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; - * + * .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
@@ -115,20 +87,16 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() {
    * generate more data.
    * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; + * .google.storage.v2.ChecksummedData checksummed_data = 1; */ @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. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -136,7 +104,6 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return Whether the objectChecksums field is set. */ @java.lang.Override @@ -144,8 +111,6 @@ public boolean hasObjectChecksums() { return objectChecksums_ != null; } /** - * - * *
    * The checksums of the complete object. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -153,18 +118,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. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -175,16 +135,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
@@ -192,7 +148,6 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
    * 
* * .google.storage.v2.ContentRange content_range = 3; - * * @return Whether the contentRange field is set. */ @java.lang.Override @@ -200,8 +155,6 @@ public boolean hasContentRange() { return contentRange_ != null; } /** - * - * *
    * If read_offset and or read_limit was specified on the
    * ReadObjectRequest, ContentRange will be populated on the first
@@ -209,18 +162,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
@@ -231,23 +179,18 @@ 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 @@ -255,15 +198,12 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * 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 @@ -271,8 +211,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.
@@ -286,7 +224,6 @@ public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -298,7 +235,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 (checksummedData_ != null) {
       output.writeMessage(1, getChecksummedData());
     }
@@ -321,16 +259,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (checksummedData_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getChecksummedData());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getChecksummedData());
     }
     if (objectChecksums_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjectChecksums());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getObjectChecksums());
     }
     if (contentRange_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getContentRange());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getContentRange());
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -340,7 +282,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);
@@ -349,19 +291,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;
@@ -395,136 +341,130 @@ 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() { - 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(); @@ -553,9 +493,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 @@ -574,11 +514,8 @@ 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; } @@ -586,19 +523,24 @@ public com.google.storage.v2.ReadObjectResponse buildPartial() { private void buildPartial0(com.google.storage.v2.ReadObjectResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.checksummedData_ = - checksummedDataBuilder_ == null ? checksummedData_ : checksummedDataBuilder_.build(); + result.checksummedData_ = checksummedDataBuilder_ == null + ? checksummedData_ + : checksummedDataBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.contentRange_ = - contentRangeBuilder_ == null ? contentRange_ : contentRangeBuilder_.build(); + result.contentRange_ = contentRangeBuilder_ == null + ? contentRange_ + : contentRangeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); } } @@ -606,39 +548,38 @@ private void buildPartial0(com.google.storage.v2.ReadObjectResponse 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.ReadObjectResponse) { - return mergeFrom((com.google.storage.v2.ReadObjectResponse) other); + return mergeFrom((com.google.storage.v2.ReadObjectResponse)other); } else { super.mergeFrom(other); return this; @@ -685,37 +626,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) { @@ -725,18 +669,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
@@ -744,16 +682,13 @@ public Builder mergeFrom(
      * generate more data.
      * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; - * + * .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
@@ -761,22 +696,17 @@ public boolean hasChecksummedData() {
      * generate more data.
      * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; - * + * .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
@@ -784,7 +714,7 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() {
      * generate more data.
      * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; + * .google.storage.v2.ChecksummedData checksummed_data = 1; */ public Builder setChecksummedData(com.google.storage.v2.ChecksummedData value) { if (checksummedDataBuilder_ == null) { @@ -800,8 +730,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
@@ -809,7 +737,7 @@ public Builder setChecksummedData(com.google.storage.v2.ChecksummedData value) {
      * generate more data.
      * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; + * .google.storage.v2.ChecksummedData checksummed_data = 1; */ public Builder setChecksummedData( com.google.storage.v2.ChecksummedData.Builder builderForValue) { @@ -823,8 +751,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
@@ -832,13 +758,13 @@ public Builder setChecksummedData(
      * generate more data.
      * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; + * .google.storage.v2.ChecksummedData checksummed_data = 1; */ 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; @@ -851,8 +777,6 @@ public Builder mergeChecksummedData(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
@@ -860,7 +784,7 @@ public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value)
      * generate more data.
      * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; + * .google.storage.v2.ChecksummedData checksummed_data = 1; */ public Builder clearChecksummedData() { bitField0_ = (bitField0_ & ~0x00000001); @@ -873,8 +797,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
@@ -882,7 +804,7 @@ public Builder clearChecksummedData() {
      * generate more data.
      * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; + * .google.storage.v2.ChecksummedData checksummed_data = 1; */ public com.google.storage.v2.ChecksummedData.Builder getChecksummedDataBuilder() { bitField0_ |= 0x00000001; @@ -890,8 +812,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
@@ -899,20 +819,17 @@ public com.google.storage.v2.ChecksummedData.Builder getChecksummedDataBuilder()
      * generate more data.
      * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; + * .google.storage.v2.ChecksummedData checksummed_data = 1; */ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder() { 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
@@ -920,20 +837,17 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
      * generate more data.
      * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; + * .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_; @@ -941,13 +855,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. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -955,15 +864,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. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -971,21 +877,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. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -1008,8 +909,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -1030,8 +929,6 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -1042,9 +939,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;
@@ -1057,8 +954,6 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -1078,8 +973,6 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -1094,8 +987,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
       return getObjectChecksumsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -1108,14 +999,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. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -1125,17 +1013,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_;
@@ -1143,13 +1028,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
@@ -1157,15 +1037,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
@@ -1173,21 +1050,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
@@ -1210,8 +1082,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
@@ -1220,7 +1090,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 {
@@ -1231,8 +1102,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
@@ -1243,9 +1112,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;
@@ -1258,8 +1127,6 @@ public Builder mergeContentRange(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
@@ -1279,8 +1146,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
@@ -1295,8 +1160,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
@@ -1309,14 +1172,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
@@ -1326,17 +1186,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_;
@@ -1344,35 +1201,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() { @@ -1383,8 +1231,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.
@@ -1406,8 +1252,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.
@@ -1415,7 +1259,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 {
@@ -1426,8 +1271,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.
@@ -1437,9 +1280,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;
@@ -1452,8 +1295,6 @@ public Builder mergeMetadata(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.
@@ -1472,8 +1313,6 @@ public Builder clearMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
@@ -1487,8 +1326,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.
@@ -1500,12 +1337,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.
@@ -1514,24 +1350,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);
     }
 
@@ -1541,12 +1374,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();
   }
@@ -1555,27 +1388,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;
@@ -1590,4 +1423,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 84%
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 f660a6e3a7..7a20c3d418 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,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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
@@ -33,14 +15,11 @@ public interface ReadObjectResponseOrBuilder
    * generate more data.
    * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; - * + * .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
@@ -48,14 +27,11 @@ public interface ReadObjectResponseOrBuilder
    * generate more data.
    * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; - * + * .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
@@ -63,13 +39,11 @@ public interface ReadObjectResponseOrBuilder
    * generate more data.
    * 
* - * .google.storage.v2.ChecksummedData checksummed_data = 1 [ctype = CORD]; + * .google.storage.v2.ChecksummedData checksummed_data = 1; */ com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder(); /** - * - * *
    * The checksums of the complete object. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -77,13 +51,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. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -91,13 +62,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. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -109,8 +77,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 +84,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 +95,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 +110,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/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 243137217a..f493a6c89f 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,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 package com.google.storage.v2;
 
 /**
- *
- *
  * 
  * Request message for RewriteObject.
  * If the source object is encrypted using a Customer-Supplied Encryption Key
@@ -34,16 +17,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,38 +41,34 @@ private RewriteObjectRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RewriteObjectRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.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
@@ -101,10 +79,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 @@ -113,15 +88,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
@@ -132,18 +106,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 { @@ -152,21 +125,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 @@ -175,32 +142,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 { @@ -209,12 +174,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.
@@ -224,7 +186,6 @@ public com.google.protobuf.ByteString getDestinationBucketBytes() {
    * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The destinationKmsKey. */ @java.lang.Override @@ -233,15 +194,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.
@@ -251,15 +211,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 { @@ -270,8 +231,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
@@ -283,7 +242,6 @@ public com.google.protobuf.ByteString getDestinationKmsKeyBytes() {
    * 
* * .google.storage.v2.Object destination = 1; - * * @return Whether the destination field is set. */ @java.lang.Override @@ -291,8 +249,6 @@ public boolean hasDestination() { return destination_ != null; } /** - * - * *
    * Properties of the destination, post-rewrite object.
    * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -304,7 +260,6 @@ public boolean hasDestination() {
    * 
* * .google.storage.v2.Object destination = 1; - * * @return The destination. */ @java.lang.Override @@ -312,8 +267,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
@@ -332,20 +285,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 @@ -354,31 +301,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 { @@ -387,18 +332,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 @@ -407,29 +348,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 { @@ -440,15 +381,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 @@ -457,12 +395,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
@@ -472,7 +407,6 @@ public long getSourceGeneration() {
    * 
* * string rewrite_token = 5; - * * @return The rewriteToken. */ @java.lang.Override @@ -481,15 +415,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
@@ -499,15 +432,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 { @@ -516,12 +450,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",
@@ -529,7 +460,6 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() {
    * 
* * string destination_predefined_acl = 28; - * * @return The destinationPredefinedAcl. */ @java.lang.Override @@ -538,15 +468,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",
@@ -554,15 +483,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 { @@ -573,8 +503,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
@@ -582,7 +510,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() {
    * 
* * optional int64 if_generation_match = 7; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -590,8 +517,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
@@ -599,7 +524,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 7; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -610,8 +534,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
@@ -620,7 +542,6 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 8; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -628,8 +549,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
@@ -638,7 +557,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 8; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -649,15 +567,12 @@ 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 @@ -665,15 +580,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 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 @@ -684,15 +596,12 @@ 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 @@ -700,15 +609,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 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 @@ -719,15 +625,12 @@ 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 @@ -735,15 +638,12 @@ public boolean hasIfSourceGenerationMatch() { return ((bitField0_ & 0x00000010) != 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 @@ -754,15 +654,12 @@ 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 @@ -770,15 +667,12 @@ public boolean hasIfSourceGenerationNotMatch() { return ((bitField0_ & 0x00000020) != 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 @@ -789,15 +683,12 @@ 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 @@ -805,15 +696,12 @@ public boolean hasIfSourceMetagenerationMatch() { return ((bitField0_ & 0x00000040) != 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 @@ -824,15 +712,12 @@ 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 @@ -840,15 +725,12 @@ public boolean hasIfSourceMetagenerationNotMatch() { return ((bitField0_ & 0x00000080) != 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 @@ -859,8 +741,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
@@ -873,7 +753,6 @@ public long getIfSourceMetagenerationNotMatch() {
    * 
* * int64 max_bytes_rewritten_per_call = 15; - * * @return The maxBytesRewrittenPerCall. */ @java.lang.Override @@ -882,19 +761,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 @@ -903,30 +778,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 { @@ -935,11 +810,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
@@ -947,7 +819,6 @@ public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes() {
    * 
* * bytes copy_source_encryption_key_bytes = 21; - * * @return The copySourceEncryptionKeyBytes. */ @java.lang.Override @@ -956,11 +827,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
@@ -968,7 +836,6 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes() {
    * 
* * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @return The copySourceEncryptionKeySha256Bytes. */ @java.lang.Override @@ -979,14 +846,11 @@ 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 @@ -994,25 +858,18 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** - * - * *
    * 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.
    * 
@@ -1020,25 +877,19 @@ 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 @@ -1046,26 +897,19 @@ public boolean hasObjectChecksums() { return objectChecksums_ != null; } /** - * - * *
    * 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.
@@ -1075,13 +919,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;
@@ -1093,7 +934,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 (destination_ != null) {
       output.writeMessage(1, getDestination());
     }
@@ -1137,8 +979,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
       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) {
       output.writeMessage(19, getCommonObjectRequestParams());
@@ -1174,7 +1015,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (destination_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDestination());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getDestination());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBucket_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceBucket_);
@@ -1183,60 +1025,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_);
+      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(8, ifGenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, ifMetagenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(9, ifMetagenerationMatch_);
     }
     if (((bitField0_ & 0x00000008) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, ifMetagenerationNotMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(10, ifMetagenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, ifSourceGenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(11, ifSourceGenerationMatch_);
     }
     if (((bitField0_ & 0x00000020) != 0)) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeInt64Size(12, ifSourceGenerationNotMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(12, ifSourceGenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000040) != 0)) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeInt64Size(13, ifSourceMetagenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(13, ifSourceMetagenerationMatch_);
     }
     if (((bitField0_ & 0x00000080) != 0)) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeInt64Size(
-              14, ifSourceMetagenerationNotMatch_);
+      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());
+      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_);
@@ -1248,11 +1092,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());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(29, getObjectChecksums());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1262,75 +1106,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;
@@ -1358,46 +1218,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;
@@ -1417,104 +1286,97 @@ 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
@@ -1528,32 +1390,33 @@ 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() {
 
-    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();
@@ -1597,9 +1460,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
@@ -1618,11 +1481,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;
     }
@@ -1639,8 +1499,9 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
         result.destinationKmsKey_ = destinationKmsKey_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.destination_ =
-            destinationBuilder_ == null ? destination_ : destinationBuilder_.build();
+        result.destination_ = destinationBuilder_ == null
+            ? destination_
+            : destinationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.sourceBucket_ = sourceBucket_;
@@ -1703,14 +1564,14 @@ 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();
       }
       if (((from_bitField0_ & 0x00400000) != 0)) {
-        result.objectChecksums_ =
-            objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build();
+        result.objectChecksums_ = objectChecksumsBuilder_ == null
+            ? objectChecksums_
+            : objectChecksumsBuilder_.build();
       }
       result.bitField0_ |= to_bitField0_;
     }
@@ -1719,39 +1580,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;
@@ -1871,152 +1731,133 @@ 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:
+            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) {
@@ -2026,13 +1867,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object destinationName_ = "";
     /**
-     *
-     *
      * 
      * Required. Immutable. The name of the destination object.
      * See the
@@ -2043,16 +1881,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; @@ -2061,8 +1897,6 @@ public java.lang.String getDestinationName() { } } /** - * - * *
      * Required. Immutable. The name of the destination object.
      * See the
@@ -2073,17 +1907,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 { @@ -2091,8 +1924,6 @@ public com.google.protobuf.ByteString getDestinationNameBytes() { } } /** - * - * *
      * Required. Immutable. The name of the destination object.
      * See the
@@ -2103,25 +1934,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
@@ -2132,10 +1957,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() { @@ -2145,8 +1967,6 @@ public Builder clearDestinationName() { return this; } /** - * - * *
      * Required. Immutable. The name of the destination object.
      * See the
@@ -2157,17 +1977,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; @@ -2177,23 +1993,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; @@ -2202,24 +2014,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 { @@ -2227,41 +2036,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() { @@ -2271,24 +2069,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; @@ -2298,8 +2090,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.
@@ -2309,13 +2099,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; @@ -2324,8 +2114,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.
@@ -2335,14 +2123,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 { @@ -2350,8 +2139,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.
@@ -2361,22 +2148,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.
@@ -2386,7 +2169,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() { @@ -2396,8 +2178,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.
@@ -2407,14 +2187,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; @@ -2424,13 +2202,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
@@ -2442,15 +2215,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
@@ -2462,21 +2232,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
@@ -2503,8 +2268,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
@@ -2517,7 +2280,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 {
@@ -2528,8 +2292,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
@@ -2544,9 +2306,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;
@@ -2559,8 +2321,6 @@ public Builder mergeDestination(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
@@ -2584,8 +2344,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
@@ -2604,8 +2362,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
@@ -2622,14 +2378,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
@@ -2643,17 +2396,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_;
@@ -2661,22 +2411,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; @@ -2685,23 +2431,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 { @@ -2709,39 +2452,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() { @@ -2751,23 +2483,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; @@ -2777,20 +2503,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; @@ -2799,21 +2523,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 { @@ -2821,35 +2544,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() { @@ -2859,21 +2575,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; @@ -2881,17 +2593,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 @@ -2899,35 +2608,29 @@ 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. */ public Builder setSourceGeneration(long value) { - + sourceGeneration_ = value; bitField0_ |= 0x00000040; onChanged(); 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() { @@ -2939,8 +2642,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
@@ -2950,13 +2651,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; @@ -2965,8 +2666,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
@@ -2976,14 +2675,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 { @@ -2991,8 +2691,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
@@ -3002,22 +2700,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
@@ -3027,7 +2721,6 @@ public Builder setRewriteToken(java.lang.String value) {
      * 
* * string rewrite_token = 5; - * * @return This builder for chaining. */ public Builder clearRewriteToken() { @@ -3037,8 +2730,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
@@ -3048,14 +2739,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; @@ -3065,8 +2754,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",
@@ -3074,13 +2761,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; @@ -3089,8 +2776,6 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3098,14 +2783,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 { @@ -3113,8 +2799,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3122,22 +2806,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",
@@ -3145,7 +2825,6 @@ public Builder setDestinationPredefinedAcl(java.lang.String value) {
      * 
* * string destination_predefined_acl = 28; - * * @return This builder for chaining. */ public Builder clearDestinationPredefinedAcl() { @@ -3155,8 +2834,6 @@ public Builder clearDestinationPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3164,14 +2841,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; @@ -3179,10 +2854,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
@@ -3190,7 +2863,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 @@ -3198,8 +2870,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
@@ -3207,7 +2877,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 7; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -3215,8 +2884,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
@@ -3224,20 +2891,17 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 7; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000200; onChanged(); 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
@@ -3245,7 +2909,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 7; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -3255,10 +2918,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
@@ -3267,7 +2928,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 8; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -3275,8 +2935,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
@@ -3285,7 +2943,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 8; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -3293,8 +2950,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
@@ -3303,20 +2958,17 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 8; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000400; onChanged(); 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
@@ -3325,7 +2977,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 8; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -3335,17 +2986,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 @@ -3353,15 +3001,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 @@ -3369,35 +3014,29 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000800; onChanged(); 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() { @@ -3407,17 +3046,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 @@ -3425,15 +3061,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 @@ -3441,35 +3074,29 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00001000; onChanged(); 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() { @@ -3479,17 +3106,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 @@ -3497,15 +3121,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 @@ -3513,35 +3134,29 @@ 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. */ public Builder setIfSourceGenerationMatch(long value) { - + ifSourceGenerationMatch_ = value; bitField0_ |= 0x00002000; onChanged(); 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() { @@ -3551,17 +3166,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 @@ -3569,15 +3181,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 @@ -3585,35 +3194,29 @@ 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. */ public Builder setIfSourceGenerationNotMatch(long value) { - + ifSourceGenerationNotMatch_ = value; bitField0_ |= 0x00004000; onChanged(); 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() { @@ -3623,17 +3226,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 @@ -3641,15 +3241,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 @@ -3657,35 +3254,29 @@ 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. */ public Builder setIfSourceMetagenerationMatch(long value) { - + ifSourceMetagenerationMatch_ = value; bitField0_ |= 0x00008000; onChanged(); 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() { @@ -3695,17 +3286,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 @@ -3713,15 +3301,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 @@ -3729,35 +3314,29 @@ 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. */ public Builder setIfSourceMetagenerationNotMatch(long value) { - + ifSourceMetagenerationNotMatch_ = value; bitField0_ |= 0x00010000; onChanged(); 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() { @@ -3767,10 +3346,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
@@ -3783,7 +3360,6 @@ public Builder clearIfSourceMetagenerationNotMatch() {
      * 
* * int64 max_bytes_rewritten_per_call = 15; - * * @return The maxBytesRewrittenPerCall. */ @java.lang.Override @@ -3791,8 +3367,6 @@ public long getMaxBytesRewrittenPerCall() { return maxBytesRewrittenPerCall_; } /** - * - * *
      * The maximum number of bytes that will be rewritten per rewrite request.
      * Most callers
@@ -3805,20 +3379,17 @@ public long getMaxBytesRewrittenPerCall() {
      * 
* * int64 max_bytes_rewritten_per_call = 15; - * * @param value The maxBytesRewrittenPerCall to set. * @return This builder for chaining. */ public Builder setMaxBytesRewrittenPerCall(long value) { - + maxBytesRewrittenPerCall_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** - * - * *
      * The maximum number of bytes that will be rewritten per rewrite request.
      * Most callers
@@ -3831,7 +3402,6 @@ public Builder setMaxBytesRewrittenPerCall(long value) {
      * 
* * int64 max_bytes_rewritten_per_call = 15; - * * @return This builder for chaining. */ public Builder clearMaxBytesRewrittenPerCall() { @@ -3843,21 +3413,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; @@ -3866,22 +3434,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 { @@ -3889,37 +3456,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() { @@ -3929,22 +3489,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; @@ -3952,11 +3508,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
@@ -3964,7 +3517,6 @@ public Builder setCopySourceEncryptionAlgorithmBytes(com.google.protobuf.ByteStr
      * 
* * bytes copy_source_encryption_key_bytes = 21; - * * @return The copySourceEncryptionKeyBytes. */ @java.lang.Override @@ -3972,8 +3524,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
@@ -3981,22 +3531,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
@@ -4004,7 +3549,6 @@ public Builder setCopySourceEncryptionKeyBytes(com.google.protobuf.ByteString va
      * 
* * bytes copy_source_encryption_key_bytes = 21; - * * @return This builder for chaining. */ public Builder clearCopySourceEncryptionKeyBytes() { @@ -4014,11 +3558,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
@@ -4026,7 +3567,6 @@ public Builder clearCopySourceEncryptionKeyBytes() {
      * 
* * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @return The copySourceEncryptionKeySha256Bytes. */ @java.lang.Override @@ -4034,8 +3574,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
@@ -4043,22 +3581,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
@@ -4066,68 +3599,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(); @@ -4141,8 +3658,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -4161,21 +3676,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; @@ -4188,8 +3699,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -4207,42 +3716,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.
      * 
@@ -4250,17 +3750,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_; @@ -4268,49 +3765,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.
@@ -4332,8 +3816,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.
@@ -4353,8 +3835,6 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
@@ -4364,9 +3844,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;
@@ -4379,8 +3859,6 @@ public Builder mergeObjectChecksums(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.
@@ -4399,8 +3877,6 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
@@ -4414,8 +3890,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.
@@ -4427,14 +3901,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.
@@ -4443,24 +3914,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);
     }
 
@@ -4470,12 +3938,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();
   }
@@ -4484,27 +3952,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;
@@ -4519,4 +3987,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 808c42ad55..06fb82121e 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,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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 +18,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 +33,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 +71,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 +84,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 +101,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 +116,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 +135,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 +195,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 +208,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 +221,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 +232,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 +245,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 +256,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 +269,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 +281,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 +424,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 +458,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 +470,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 +502,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 eadfc372f2..68d8dde5ea 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,84 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } 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 @@ -89,15 +67,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 @@ -108,15 +83,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 @@ -125,19 +97,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 @@ -146,30 +114,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 { @@ -180,15 +148,12 @@ 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 @@ -196,15 +161,12 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * 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 @@ -212,8 +174,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.
@@ -227,7 +187,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -239,7 +198,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_);
     }
@@ -265,19 +225,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());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getResource());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -287,20 +251,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;
@@ -314,11 +283,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()) {
@@ -330,135 +302,130 @@ 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() { - 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(); @@ -476,9 +443,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 @@ -497,11 +464,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; } @@ -521,7 +485,9 @@ private void buildPartial0(com.google.storage.v2.RewriteResponse result) { result.rewriteToken_ = rewriteToken_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null + ? resource_ + : resourceBuilder_.build(); } } @@ -529,39 +495,38 @@ private void buildPartial0(com.google.storage.v2.RewriteResponse 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.RewriteResponse) { - return mergeFrom((com.google.storage.v2.RewriteResponse) other); + return mergeFrom((com.google.storage.v2.RewriteResponse)other); } else { super.mergeFrom(other); return this; @@ -613,43 +578,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) { @@ -659,20 +620,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 @@ -680,35 +637,29 @@ 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. */ public Builder setTotalBytesRewritten(long value) { - + totalBytesRewritten_ = value; bitField0_ |= 0x00000001; onChanged(); 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() { @@ -718,17 +669,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 @@ -736,35 +684,29 @@ 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. */ public Builder setObjectSize(long value) { - + objectSize_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { @@ -774,17 +716,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 @@ -792,35 +731,29 @@ 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. */ public Builder setDone(boolean value) { - + done_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -832,21 +765,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; @@ -855,22 +786,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 { @@ -878,37 +808,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() { @@ -918,22 +841,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; @@ -943,35 +862,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() { @@ -982,8 +892,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.
@@ -1005,8 +913,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.
@@ -1014,7 +920,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 {
@@ -1025,8 +932,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.
@@ -1036,9 +941,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;
@@ -1051,8 +956,6 @@ public Builder mergeResource(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.
@@ -1071,8 +974,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.
@@ -1086,8 +987,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.
@@ -1099,12 +998,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.
@@ -1113,24 +1011,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);
     }
 
@@ -1140,12 +1035,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();
   }
@@ -1154,27 +1049,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;
@@ -1189,4 +1084,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 3e38750e35..479ae23c80 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,88 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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 65%
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 46f5c03ffe..7998ecc4c6 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,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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,59 +12,53 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.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 @@ -90,29 +67,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 { @@ -121,7 +98,6 @@ public com.google.protobuf.ByteString getEmailAddressBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, emailAddress_); } @@ -157,14 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -183,103 +161,97 @@ 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
@@ -288,32 +260,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();
@@ -323,9 +296,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
@@ -345,9 +318,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;
     }
@@ -363,39 +334,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;
@@ -435,19 +405,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) {
@@ -457,25 +425,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; @@ -484,21 +449,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 { @@ -506,35 +470,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() { @@ -544,30 +501,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); } @@ -577,12 +530,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(); } @@ -591,27 +544,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; @@ -626,4 +579,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..731dee3983 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java @@ -0,0 +1,29 @@ +// 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/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 94fe31fa2e..59fb0870b6 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,83 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.
      * 
@@ -86,8 +65,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.
@@ -98,8 +75,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.
@@ -110,8 +85,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.
@@ -122,8 +95,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.
@@ -134,8 +105,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.
@@ -146,8 +115,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.
@@ -158,8 +125,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.
@@ -169,8 +134,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAX_NOTIFICATION_CONFIGS_PER_BUCKET(8, 100),
     /**
-     *
-     *
      * 
      * The maximum number of custom attributes per NotificationConfigs.
      * 
@@ -179,8 +142,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.
@@ -190,8 +151,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.
      * 
@@ -200,8 +159,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.
@@ -211,8 +168,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.
@@ -222,8 +177,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.
@@ -233,8 +186,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.
@@ -247,8 +198,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The maximum size chunk that can be sent in a single WriteObjectRequest.
      * 2 MiB.
@@ -258,8 +207,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.
@@ -269,8 +216,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.
@@ -278,11 +223,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.
      * 
@@ -291,8 +233,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.
@@ -303,8 +243,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.
@@ -314,8 +252,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.
@@ -326,8 +262,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.
@@ -338,8 +272,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.
@@ -350,8 +282,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.
@@ -362,8 +292,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.
@@ -374,8 +302,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.
@@ -385,8 +311,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.
@@ -396,8 +320,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.
      * 
@@ -406,8 +328,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.
@@ -417,8 +337,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.
@@ -428,8 +346,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.
      * 
@@ -438,8 +354,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.
@@ -449,8 +363,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.
@@ -460,8 +372,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.
@@ -471,8 +381,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.
@@ -482,6 +390,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(
@@ -506,96 +415,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;
@@ -615,7 +493,6 @@ private Values(int index, int value) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -627,7 +504,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);
   }
 
@@ -645,7 +523,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);
@@ -668,136 +546,130 @@ 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(); @@ -805,9 +677,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 @@ -826,8 +698,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; } @@ -836,39 +707,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; @@ -903,13 +773,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) { @@ -919,9 +788,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); } @@ -931,12 +800,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(); } @@ -945,27 +814,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; @@ -980,4 +849,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..f31d3698f7 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java @@ -0,0 +1,9 @@ +// 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/StartResumableWriteRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java similarity index 67% 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 91fb45e200..255fb87cb7 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,84 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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); } 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 @@ -86,55 +63,39 @@ public boolean hasWriteObjectSpec() { return writeObjectSpec_ != null; } /** - * - * *
    * 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 @@ -142,25 +103,18 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** - * - * *
    * 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.
    * 
@@ -168,18 +122,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
@@ -188,7 +137,6 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return Whether the objectChecksums field is set. */ @java.lang.Override @@ -196,8 +144,6 @@ public boolean hasObjectChecksums() { return objectChecksums_ != null; } /** - * - * *
    * The checksums of the complete object. This will be used to validate the
    * uploaded object. For each upload, object_checksums can be provided with
@@ -206,18 +152,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
@@ -229,13 +170,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;
@@ -247,7 +185,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (writeObjectSpec_ != null) {
       output.writeMessage(1, getWriteObjectSpec());
     }
@@ -267,15 +206,16 @@ public int getSerializedSize() {
 
     size = 0;
     if (writeObjectSpec_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWriteObjectSpec());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getWriteObjectSpec());
     }
     if (commonObjectRequestParams_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, getCommonObjectRequestParams());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getCommonObjectRequestParams());
     }
     if (objectChecksums_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getObjectChecksums());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getObjectChecksums());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -285,26 +225,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;
@@ -334,136 +275,130 @@ 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() { - 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,9 +422,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 @@ -508,11 +443,8 @@ 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; } @@ -520,18 +452,19 @@ public com.google.storage.v2.StartResumableWriteRequest buildPartial() { private void buildPartial0(com.google.storage.v2.StartResumableWriteRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.writeObjectSpec_ = - writeObjectSpecBuilder_ == null ? writeObjectSpec_ : writeObjectSpecBuilder_.build(); + result.writeObjectSpec_ = writeObjectSpecBuilder_ == null + ? writeObjectSpec_ + : writeObjectSpecBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); } } @@ -539,39 +472,38 @@ private void buildPartial0(com.google.storage.v2.StartResumableWriteRequest 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.v2.StartResumableWriteRequest) { - return mergeFrom((com.google.storage.v2.StartResumableWriteRequest) other); + return mergeFrom((com.google.storage.v2.StartResumableWriteRequest)other); } else { super.mergeFrom(other); return this; @@ -579,8 +511,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()); } @@ -616,32 +547,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) { @@ -651,66 +583,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) { @@ -726,16 +638,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) { @@ -749,22 +657,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; @@ -777,16 +681,12 @@ public Builder mergeWriteObjectSpec(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 clearWriteObjectSpec() { bitField0_ = (bitField0_ & ~0x00000001); @@ -799,16 +699,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; @@ -816,50 +712,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_; @@ -867,55 +751,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(); @@ -929,8 +799,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -949,21 +817,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; @@ -976,8 +840,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -995,42 +857,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.
      * 
@@ -1038,17 +891,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_; @@ -1056,13 +906,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
@@ -1071,15 +916,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
@@ -1088,21 +930,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
@@ -1126,8 +963,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
@@ -1149,8 +984,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
@@ -1162,9 +995,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;
@@ -1177,8 +1010,6 @@ public Builder mergeObjectChecksums(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
@@ -1199,8 +1030,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
@@ -1216,8 +1045,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
@@ -1231,14 +1058,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
@@ -1249,24 +1073,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);
     }
 
@@ -1276,12 +1097,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();
   }
@@ -1290,27 +1111,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;
@@ -1325,4 +1146,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 fb2c88680d..040be6937c 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,61 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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 +65,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 +73,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 +85,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 641eb718f6..7e7d2ac849 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,86 +1,63 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -89,30 +66,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 { @@ -121,7 +98,6 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } @@ -157,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -185,135 +162,129 @@ 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(); @@ -323,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_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 @@ -344,11 +315,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; } @@ -364,39 +332,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; @@ -404,8 +371,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; @@ -437,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) { @@ -459,26 +423,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; @@ -487,22 +448,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 { @@ -510,37 +470,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() { @@ -550,31 +503,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); } @@ -584,12 +533,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(); } @@ -598,27 +547,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; @@ -633,4 +582,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 4936df9ca2..56551004a1 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,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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..4bacb64f9e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java @@ -0,0 +1,1426 @@ +// 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_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_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_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\"5\n\033CancelResumable" + + "WriteRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002\"\036\n\034" + + "CancelResumableWriteResponse\"\272\004\n\021ReadObj" + + "ectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035stor" + + "age.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_offse" + + "t\030\004 \001(\003\022\022\n\nread_limit\030\005 \001(\003\022 \n\023if_genera" + + "tion_match\030\006 \001(\003H\000\210\001\001\022$\n\027if_generation_n" + + "ot_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_n" + + "ot_match\030\t \001(\003H\003\210\001\001\022R\n\034common_object_req" + + "uest_params\030\n \001(\0132,.google.storage.v2.Co" + + "mmonObjectRequestParams\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_generation_no" + + "t_matchB\032\n\030_if_metageneration_matchB\036\n\034_" + + "if_metageneration_not_matchB\014\n\n_read_mas" + + "k\"\220\004\n\020GetObjectRequest\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\340A\002\022\022\n\ngeneration\030\003 \001(\003\022 " + + "\n\023if_generation_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_g" + + "eneration_not_match\030\005 \001(\003H\001\210\001\001\022$\n\027if_met" + + "ageneration_match\030\006 \001(\003H\002\210\001\001\022(\n\033if_metag" + + "eneration_not_match\030\007 \001(\003H\003\210\001\001\022R\n\034common" + + "_object_request_params\030\010 \001(\0132,.google.st" + + "orage.v2.CommonObjectRequestParams\0222\n\tre" + + "ad_mask\030\n \001(\0132\032.google.protobuf.FieldMas" + + "kH\004\210\001\001B\026\n\024_if_generation_matchB\032\n\030_if_ge" + + "neration_not_matchB\032\n\030_if_metageneration" + + "_matchB\036\n\034_if_metageneration_not_matchB\014" + + "\n\n_read_mask\"\365\001\n\022ReadObjectResponse\022<\n\020c" + + "hecksummed_data\030\001 \001(\0132\".google.storage.v" + + "2.ChecksummedData\022<\n\020object_checksums\030\002 " + + "\001(\0132\".google.storage.v2.ObjectChecksums\022" + + "6\n\rcontent_range\030\003 \001(\0132\037.google.storage." + + "v2.ContentRange\022+\n\010metadata\030\004 \001(\0132\031.goog" + + "le.storage.v2.Object\"\215\003\n\017WriteObjectSpec" + + "\0220\n\010resource\030\001 \001(\0132\031.google.storage.v2.O" + + "bjectB\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\027if_gener" + + "ation_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_metagen" + + "eration_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_metagener" + + "ation_not_match\030\006 \001(\003H\003\210\001\001\022\030\n\013object_siz" + + "e\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_metagene" + + "ration_matchB\036\n\034_if_metageneration_not_m" + + "atchB\016\n\014_object_size\"\206\003\n\022WriteObjectRequ" + + "est\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_object" + + "_spec\030\002 \001(\0132\".google.storage.v2.WriteObj" + + "ectSpecH\000\022\031\n\014write_offset\030\003 \001(\003B\003\340A\002\022>\n\020" + + "checksummed_data\030\004 \001(\0132\".google.storage." + + "v2.ChecksummedDataH\001\022<\n\020object_checksums" + + "\030\006 \001(\0132\".google.storage.v2.ObjectChecksu" + + "ms\022\024\n\014finish_write\030\007 \001(\010\022R\n\034common_objec" + + "t_request_params\030\010 \001(\0132,.google.storage." + + "v2.CommonObjectRequestParamsB\017\n\rfirst_me" + + "ssageB\006\n\004data\"n\n\023WriteObjectResponse\022\030\n\016" + + "persisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\013" + + "2\031.google.storage.v2.ObjectH\000B\016\n\014write_s" + + "tatus\"\317\002\n\022ListObjectsRequest\0225\n\006parent\030\001" + + " \001(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Buc" + + "ket\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_trailin" + + "g_delimiter\030\005 \001(\010\022\016\n\006prefix\030\006 \001(\t\022\020\n\010ver" + + "sions\030\007 \001(\010\0222\n\tread_mask\030\010 \001(\0132\032.google." + + "protobuf.FieldMaskH\000\210\001\001\022 \n\023lexicographic" + + "_start\030\n \001(\tB\003\340A\001\022\036\n\021lexicographic_end\030\013" + + " \001(\tB\003\340A\001B\014\n\n_read_mask\"\205\001\n\027QueryWriteSt" + + "atusRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002\022R\n\034c" + + "ommon_object_request_params\030\002 \001(\0132,.goog" + + "le.storage.v2.CommonObjectRequestParams\"" + + "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\020destination_nam" + + "e\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.googleapis.com/B" + + "ucket\022C\n\023destination_kms_key\030\033 \001(\tB&\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022.\n\013de" + + "stination\030\001 \001(\0132\031.google.storage.v2.Obje" + + "ct\022<\n\rsource_bucket\030\002 \001(\tB%\340A\002\372A\037\n\035stora" + + "ge.googleapis.com/Bucket\022\032\n\rsource_objec" + + "t\030\003 \001(\tB\003\340A\002\022\031\n\021source_generation\030\004 \001(\003\022" + + "\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032destination_pr" + + "edefined_acl\030\034 \001(\t\022 \n\023if_generation_matc" + + "h\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_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_generation_match" + + "\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_generation_not_" + + "match\030\014 \001(\003H\005\210\001\001\022+\n\036if_source_metagenera" + + "tion_match\030\r \001(\003H\006\210\001\001\022/\n\"if_source_metag" + + "eneration_not_match\030\016 \001(\003H\007\210\001\001\022$\n\034max_by" + + "tes_rewritten_per_call\030\017 \001(\003\022(\n copy_sou" + + "rce_encryption_algorithm\030\020 \001(\t\022(\n copy_s" + + "ource_encryption_key_bytes\030\025 \001(\014\022/\n\'copy" + + "_source_encryption_key_sha256_bytes\030\026 \001(" + + "\014\022R\n\034common_object_request_params\030\023 \001(\0132" + + ",.google.storage.v2.CommonObjectRequestP" + + "arams\022<\n\020object_checksums\030\035 \001(\0132\".google" + + ".storage.v2.ObjectChecksumsB\026\n\024_if_gener" + + "ation_matchB\032\n\030_if_generation_not_matchB" + + "\032\n\030_if_metageneration_matchB\036\n\034_if_metag" + + "eneration_not_matchB\035\n\033_if_source_genera" + + "tion_matchB!\n\037_if_source_generation_not_" + + "matchB!\n\037_if_source_metageneration_match" + + "B%\n#_if_source_metageneration_not_match\"" + + "\227\001\n\017RewriteResponse\022\035\n\025total_bytes_rewri" + + "tten\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.Object\"\362\001\n\032St" + + "artResumableWriteRequest\022B\n\021write_object" + + "_spec\030\001 \001(\0132\".google.storage.v2.WriteObj" + + "ectSpecB\003\340A\002\022R\n\034common_object_request_pa" + + "rams\030\003 \001(\0132,.google.storage.v2.CommonObj" + + "ectRequestParams\022<\n\020object_checksums\030\005 \001" + + "(\0132\".google.storage.v2.ObjectChecksums\"0" + + "\n\033StartResumableWriteResponse\022\021\n\tupload_" + + "id\030\001 \001(\t\"\357\003\n\023UpdateObjectRequest\022.\n\006obje" + + "ct\030\001 \001(\0132\031.google.storage.v2.ObjectB\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_m" + + "etageneration_match\030\004 \001(\003H\002\210\001\001\022(\n\033if_met" + + "ageneration_not_match\030\005 \001(\003H\003\210\001\001\022\026\n\016pred" + + "efined_acl\030\n \001(\t\0224\n\013update_mask\030\007 \001(\0132\032." + + "google.protobuf.FieldMaskB\003\340A\002\022R\n\034common" + + "_object_request_params\030\010 \001(\0132,.google.st" + + "orage.v2.CommonObjectRequestParamsB\026\n\024_i" + + "f_generation_matchB\032\n\030_if_generation_not" + + "_matchB\032\n\030_if_metageneration_matchB\036\n\034_i" + + "f_metageneration_not_match\"`\n\030GetService" + + "AccountRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Pro" + + "ject\"\200\001\n\024CreateHmacKeyRequest\022D\n\007project" + + "\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goo" + + "gleapis.com/Project\022\"\n\025service_account_e" + + "mail\030\002 \001(\tB\003\340A\002\"g\n\025CreateHmacKeyResponse" + + "\0224\n\010metadata\030\001 \001(\0132\".google.storage.v2.H" + + "macKeyMetadata\022\030\n\020secret_key_bytes\030\003 \001(\014" + + "\"t\n\024DeleteHmacKeyRequest\022\026\n\taccess_id\030\001 " + + "\001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-\n+cloud" + + "resourcemanager.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+cloudresou" + + "rcemanager.googleapis.com/Project\"\274\001\n\023Li" + + "stHmacKeysRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372" + + "A-\n+cloudresourcemanager.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_account_email\030\004 \001(\t\022\031\n" + + "\021show_deleted_keys\030\005 \001(\010\"f\n\024ListHmacKeys" + + "Response\0225\n\thmac_keys\030\001 \003(\0132\".google.sto" + + "rage.v2.HmacKeyMetadata\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\202\001\n\024UpdateHmacKeyRequest\0229\n\010hma" + + "c_key\030\001 \001(\0132\".google.storage.v2.HmacKeyM" + + "etadataB\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.goog" + + "le.protobuf.FieldMask\"|\n\031CommonObjectReq" + + "uestParams\022\034\n\024encryption_algorithm\030\001 \001(\t" + + "\022\034\n\024encryption_key_bytes\030\004 \001(\014\022#\n\033encryp" + + "tion_key_sha256_bytes\030\005 \001(\014\"\312\005\n\020ServiceC" + + "onstants\"\265\005\n\006Values\022\026\n\022VALUES_UNSPECIFIE" + + "D\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_SIZ" + + "E_MB\020\200\200\300\002\022)\n$MAX_CUSTOM_METADATA_FIELD_N" + + "AME_BYTES\020\200\010\022*\n%MAX_CUSTOM_METADATA_FIEL" + + "D_VALUE_BYTES\020\200 \022)\n$MAX_CUSTOM_METADATA_" + + "TOTAL_SIZE_BYTES\020\200@\022*\n$MAX_BUCKET_METADA" + + "TA_TOTAL_SIZE_BYTES\020\200\240\001\022\'\n#MAX_NOTIFICAT" + + "ION_CONFIGS_PER_BUCKET\020d\022\"\n\036MAX_LIFECYCL" + + "E_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_N" + + "OTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGT" + + "H\020\200\010\022\034\n\030MAX_LABELS_ENTRIES_COUNT\020@\022\037\n\033MA" + + "X_LABELS_KEY_VALUE_LENGTH\020?\022\037\n\032MAX_LABEL" + + "S_KEY_VALUE_BYTES\020\200\001\022.\n)MAX_OBJECT_IDS_P" + + "ER_DELETE_OBJECTS_REQUEST\020\350\007\022\036\n\032SPLIT_TO" + + "KEN_MAX_VALID_DAYS\020\016\032\002\020\001\"\322\027\n\006Bucket\022\021\n\004n" + + "ame\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(\tB3\340A\005\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\033\n\016metageneration\030\004 \001(\003B\003\340A\003\022\025\n\010locat" + + "ion\030\005 \001(\tB\003\340A\005\022\032\n\rlocation_type\030\006 \001(\tB\003\340" + + "A\003\022\025\n\rstorage_class\030\007 \001(\t\022\013\n\003rpo\030\033 \001(\t\0223" + + "\n\003acl\030\010 \003(\0132&.google.storage.v2.BucketAc" + + "cessControl\022B\n\022default_object_acl\030\t \003(\0132" + + "&.google.storage.v2.ObjectAccessControl\022" + + "6\n\tlifecycle\030\n \001(\0132#.google.storage.v2.B" + + "ucket.Lifecycle\0224\n\013create_time\030\013 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022,\n\004cors\030\014 " + + "\003(\0132\036.google.storage.v2.Bucket.Cors\0224\n\013u" + + "pdate_time\030\r \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022 \n\030default_event_based_hold\030\016 " + + "\001(\010\0225\n\006labels\030\017 \003(\0132%.google.storage.v2." + + "Bucket.LabelsEntry\0222\n\007website\030\020 \001(\0132!.go" + + "ogle.storage.v2.Bucket.Website\0228\n\nversio" + + "ning\030\021 \001(\0132$.google.storage.v2.Bucket.Ve" + + "rsioning\0222\n\007logging\030\022 \001(\0132!.google.stora" + + "ge.v2.Bucket.Logging\022,\n\005owner\030\023 \001(\0132\030.go" + + "ogle.storage.v2.OwnerB\003\340A\003\0228\n\nencryption" + + "\030\024 \001(\0132$.google.storage.v2.Bucket.Encryp" + + "tion\0222\n\007billing\030\025 \001(\0132!.google.storage.v" + + "2.Bucket.Billing\022C\n\020retention_policy\030\026 \001" + + "(\0132).google.storage.v2.Bucket.RetentionP" + + "olicy\0227\n\niam_config\030\027 \001(\0132#.google.stora" + + "ge.v2.Bucket.IamConfig\022\025\n\rsatisfies_pzs\030" + + "\031 \001(\010\022P\n\027custom_placement_config\030\032 \001(\0132/" + + ".google.storage.v2.Bucket.CustomPlacemen" + + "tConfig\0226\n\tautoclass\030\034 \001(\0132#.google.stor" + + "age.v2.Bucket.Autoclass\032!\n\007Billing\022\026\n\016re" + + "quester_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\nEncrypti" + + "on\022?\n\017default_kms_key\030\001 \001(\tB&\372A#\n!cloudk" + + "ms.googleapis.com/CryptoKey\032\354\001\n\tIamConfi" + + "g\022a\n\033uniform_bucket_level_access\030\001 \001(\0132<" + + ".google.storage.v2.Bucket.IamConfig.Unif" + + "ormBucketLevelAccess\022 \n\030public_access_pr" + + "evention\030\003 \001(\t\032Z\n\030UniformBucketLevelAcce" + + "ss\022\017\n\007enabled\030\001 \001(\010\022-\n\tlock_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\032\363\005\n\tLifecycle" + + "\0226\n\004rule\030\001 \003(\0132(.google.storage.v2.Bucke" + + "t.Lifecycle.Rule\032\255\005\n\004Rule\022?\n\006action\030\001 \001(" + + "\0132/.google.storage.v2.Bucket.Lifecycle.R" + + "ule.Action\022E\n\tcondition\030\002 \001(\01322.google.s" + + "torage.v2.Bucket.Lifecycle.Rule.Conditio" + + "n\032-\n\006Action\022\014\n\004type\030\001 \001(\t\022\025\n\rstorage_cla" + + "ss\030\002 \001(\t\032\355\003\n\tCondition\022\025\n\010age_days\030\001 \001(\005" + + "H\000\210\001\001\022)\n\016created_before\030\002 \001(\0132\021.google.t" + + "ype.Date\022\024\n\007is_live\030\003 \001(\010H\001\210\001\001\022\037\n\022num_ne" + + "wer_versions\030\004 \001(\005H\002\210\001\001\022\035\n\025matches_stora" + + "ge_class\030\005 \003(\t\022#\n\026days_since_custom_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_noncurr" + + "ent_time\030\t \001(\005H\004\210\001\001\0221\n\026noncurrent_time_b" + + "efore\030\n \001(\0132\021.google.type.Date\022\026\n\016matche" + + "s_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_ve" + + "rsionsB\031\n\027_days_since_custom_timeB\035\n\033_da" + + "ys_since_noncurrent_time\0328\n\007Logging\022\022\n\nl" + + "og_bucket\030\001 \001(\t\022\031\n\021log_object_prefix\030\002 \001" + + "(\t\032\217\001\n\017RetentionPolicy\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.protobuf.Duration\032\035\n\nVersioni" + + "ng\022\017\n\007enabled\030\001 \001(\010\032;\n\007Website\022\030\n\020main_p" + + "age_suffix\030\001 \001(\t\022\026\n\016not_found_page\030\002 \001(\t" + + "\032/\n\025CustomPlacementConfig\022\026\n\016data_locati" + + "ons\030\001 \003(\t\032R\n\tAutoclass\022\017\n\007enabled\030\001 \001(\010\022" + + "4\n\013toggle_time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001:G\352AD\n\035storage.googl" + + "eapis.com/Bucket\022#projects/{project}/buc" + + "kets/{bucket}\"\316\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" + + "\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\006doma" + + "in\030\006 \001(\t\0224\n\014project_team\030\007 \001(\0132\036.google." + + "storage.v2.ProjectTeam\"F\n\017ChecksummedDat" + + "a\022\023\n\007content\030\001 \001(\014B\002\010\001\022\023\n\006crc32c\030\002 \001(\007H\000" + + "\210\001\001B\t\n\007_crc32c\"C\n\017ObjectChecksums\022\023\n\006crc" + + "32c\030\001 \001(\007H\000\210\001\001\022\020\n\010md5_hash\030\002 \001(\014B\t\n\007_crc" + + "32c\"\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+cloudresourcemanager.googleap" + + "is.com/Project\022\"\n\025service_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\022" + + "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\014\n\004etag\030\010 \001(\t\"\247\003\n\022Notifica" + + "tionConfig\022\021\n\004name\030\001 \001(\tB\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_attributes\030\004 \003(\0132;.google" + + ".storage.v2.NotificationConfig.CustomAtt" + + "ributesEntry\022\032\n\022object_name_prefix\030\005 \001(\t" + + "\022\033\n\016payload_format\030\006 \001(\tB\003\340A\002\0327\n\025CustomA" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001:}\352Az\n)storage.googleapis.com/Noti" + + "ficationConfig\022Mprojects/{project}/bucke" + + "ts/{bucket}/notificationConfigs/{notific" + + "ation_config}\"L\n\022CustomerEncryption\022\034\n\024e" + + "ncryption_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.googl" + + "eapis.com/Bucket\022\014\n\004etag\030\033 \001(\t\022\027\n\ngenera" + + "tion\030\003 \001(\003B\003\340A\005\022\033\n\016metageneration\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_encoding\030\007 \001(\t\022\033\n\023cont" + + "ent_disposition\030\010 \001(\t\022\025\n\rcache_control\030\t" + + " \001(\t\0223\n\003acl\030\n \003(\0132&.google.storage.v2.Ob" + + "jectAccessControl\022\030\n\020content_language\030\013 " + + "\001(\t\0224\n\013delete_time\030\014 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022\024\n\014content_type\030\r \001(\t\022" + + "4\n\013create_time\030\016 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\034\n\017component_count\030\017 \001(\005B\003" + + "\340A\003\022:\n\tchecksums\030\020 \001(\0132\".google.storage." + + "v2.ObjectChecksumsB\003\340A\003\0224\n\013update_time\030\021" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0227\n" + + "\007kms_key\030\022 \001(\tB&\372A#\n!cloudkms.googleapis" + + ".com/CryptoKey\022B\n\031update_storage_class_t" + + "ime\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\026\n\016temporary_hold\030\024 \001(\010\0229\n\025retention_" + + "expire_time\030\025 \001(\0132\032.google.protobuf.Time" + + "stamp\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_encryp" + + "tion\030\031 \001(\0132%.google.storage.v2.CustomerE" + + "ncryption\022/\n\013custom_time\030\032 \001(\0132\032.google.", + "protobuf.Timestamp\032/\n\rMetadataEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\023\n\021_event_ba" + + "sed_hold\"\316\001\n\023ObjectAccessControl\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\027\n\nen" + + "tity_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.stora" + + "ge.v2.ProjectTeam\"l\n\023ListObjectsResponse" + + "\022*\n\007objects\030\001 \003(\0132\031.google.storage.v2.Ob" + + "ject\022\020\n\010prefixes\030\002 \003(\t\022\027\n\017next_page_toke" + + "n\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\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\014ContentRang" + + "e\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\022\027\n\017complet" + + "e_length\030\003 \001(\0032\230&\n\007Storage\022r\n\014DeleteBuck" + + "et\022&.google.storage.v2.DeleteBucketReque" + + "st\032\026.google.protobuf.Empty\"\"\212\323\344\223\002\025\022\023\n\004na" + + "me\022\013{bucket=**}\332A\004name\022o\n\tGetBucket\022#.go" + + "ogle.storage.v2.GetBucketRequest\032\031.googl" + + "e.storage.v2.Bucket\"\"\212\323\344\223\002\025\022\023\n\004name\022\013{bu" + + "cket=**}\332A\004name\022\253\001\n\014CreateBucket\022&.googl" + + "e.storage.v2.CreateBucketRequest\032\031.googl" + + "e.storage.v2.Bucket\"X\212\323\344\223\0028\022\026\n\006parent\022\014{" + + "project=**}\022\036\n\016bucket.project\022\014{project=" + + "**}\332A\027parent,bucket,bucket_id\022\205\001\n\013ListBu" + + "ckets\022%.google.storage.v2.ListBucketsReq" + + "uest\032&.google.storage.v2.ListBucketsResp" + + "onse\"\'\212\323\344\223\002\030\022\026\n\006parent\022\014{project=**}\332A\006p" + + "arent\022\223\001\n\031LockBucketRetentionPolicy\0223.go" + + "ogle.storage.v2.LockBucketRetentionPolic" + + "yRequest\032\031.google.storage.v2.Bucket\"&\212\323\344" + + "\223\002\027\022\025\n\006bucket\022\013{bucket=**}\332A\006bucket\022\253\001\n\014" + + "GetIamPolicy\022\".google.iam.v1.GetIamPolic" + + "yRequest\032\025.google.iam.v1.Policy\"`\212\323\344\223\002O\022" + + "\027\n\010resource\022\013{bucket=**}\0224\n\010resource\022({b" + + "ucket=projects/*/buckets/*}/objects/**\332A" + + "\010resource\022\262\001\n\014SetIamPolicy\022\".google.iam." + + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\"g\212\323\344\223\002O\022\027\n\010resource\022\013{bucket=**}\0224" + + "\n\010resource\022({bucket=projects/*/buckets/*" + + "}/objects/**\332A\017resource,policy\022\327\001\n\022TestI" + + "amPermissions\022(.google.iam.v1.TestIamPer" + + "missionsRequest\032).google.iam.v1.TestIamP" + + "ermissionsResponse\"l\212\323\344\223\002O\022\027\n\010resource\022\013" + + "{bucket=**}\0224\n\010resource\022({bucket=project" + + "s/*/buckets/*}/objects/**\332A\024resource,per" + + "missions\022\212\001\n\014UpdateBucket\022&.google.stora" + + "ge.v2.UpdateBucketRequest\032\031.google.stora" + + "ge.v2.Bucket\"7\212\323\344\223\002\034\022\032\n\013bucket.name\022\013{bu" + + "cket=**}\332A\022bucket,update_mask\022\237\001\n\030Delete" + + "NotificationConfig\0222.google.storage.v2.D" + + "eleteNotificationConfigRequest\032\026.google." + + "protobuf.Empty\"7\212\323\344\223\002*\022(\n\004name\022 {bucket=" + + "projects/*/buckets/*}/**\332A\004name\022\250\001\n\025GetN" + + "otificationConfig\022/.google.storage.v2.Ge" + + "tNotificationConfigRequest\032%.google.stor" + + "age.v2.NotificationConfig\"7\212\323\344\223\002*\022(\n\004nam" + + "e\022 {bucket=projects/*/buckets/*}/**\332A\004na" + + "me\022\261\001\n\030CreateNotificationConfig\0222.google" + + ".storage.v2.CreateNotificationConfigRequ" + + "est\032%.google.storage.v2.NotificationConf" + + "ig\":\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\332A\032pare" + + "nt,notification_config\022\250\001\n\027ListNotificat" + + "ionConfigs\0221.google.storage.v2.ListNotif" + + "icationConfigsRequest\0322.google.storage.v" + + "2.ListNotificationConfigsResponse\"&\212\323\344\223\002" + + "\027\022\025\n\006parent\022\013{bucket=**}\332A\006parent\022~\n\rCom" + + "poseObject\022\'.google.storage.v2.ComposeOb" + + "jectRequest\032\031.google.storage.v2.Object\")" + + "\212\323\344\223\002#\022!\n\022destination.bucket\022\013{bucket=**" + + "}\022\230\001\n\014DeleteObject\022&.google.storage.v2.D" + + "eleteObjectRequest\032\026.google.protobuf.Emp" + + "ty\"H\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\332A\rbuck" + + "et,object\332A\030bucket,object,generation\022\272\001\n" + + "\024CancelResumableWrite\022..google.storage.v" + + "2.CancelResumableWriteRequest\032/.google.s" + + "torage.v2.CancelResumableWriteResponse\"A" + + "\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=projects/*/" + + "buckets/*}/**\332A\tupload_id\022\225\001\n\tGetObject\022" + + "#.google.storage.v2.GetObjectRequest\032\031.g" + + "oogle.storage.v2.Object\"H\212\323\344\223\002\027\022\025\n\006bucke" + + "t\022\013{bucket=**}\332A\rbucket,object\332A\030bucket," + + "object,generation\022\245\001\n\nReadObject\022$.googl" + + "e.storage.v2.ReadObjectRequest\032%.google." + + "storage.v2.ReadObjectResponse\"H\212\323\344\223\002\027\022\025\n" + + "\006bucket\022\013{bucket=**}\332A\rbucket,object\332A\030b" + + "ucket,object,generation0\001\022\214\001\n\014UpdateObje" + + "ct\022&.google.storage.v2.UpdateObjectReque" + + "st\032\031.google.storage.v2.Object\"9\212\323\344\223\002\036\022\034\n" + + "\robject.bucket\022\013{bucket=**}\332A\022object,upd" + + "ate_mask\022`\n\013WriteObject\022%.google.storage" + + ".v2.WriteObjectRequest\032&.google.storage." + + "v2.WriteObjectResponse\"\000(\001\022\204\001\n\013ListObjec" + + "ts\022%.google.storage.v2.ListObjectsReques" + + "t\032&.google.storage.v2.ListObjectsRespons" + + "e\"&\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\332A\006paren" + + "t\022\230\001\n\rRewriteObject\022\'.google.storage.v2." + + "RewriteObjectRequest\032\".google.storage.v2" + + ".RewriteResponse\":\212\323\344\223\0024\022\017\n\rsource_bucke" + + "t\022!\n\022destination_bucket\022\013{bucket=**}\022\256\001\n" + + "\023StartResumableWrite\022-.google.storage.v2" + + ".StartResumableWriteRequest\032..google.sto" + + "rage.v2.StartResumableWriteResponse\"8\212\323\344" + + "\223\0022\0220\n!write_object_spec.resource.bucket" + + "\022\013{bucket=**}\022\256\001\n\020QueryWriteStatus\022*.goo" + + "gle.storage.v2.QueryWriteStatusRequest\032+" + + ".google.storage.v2.QueryWriteStatusRespo" + + "nse\"A\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=projec" + + "ts/*/buckets/*}/**\332A\tupload_id\022\200\001\n\021GetSe" + + "rviceAccount\022+.google.storage.v2.GetServ" + + "iceAccountRequest\032!.google.storage.v2.Se" + + "rviceAccount\"\033\212\323\344\223\002\013\022\t\n\007project\332A\007projec" + + "t\022\225\001\n\rCreateHmacKey\022\'.google.storage.v2." + + "CreateHmacKeyRequest\032(.google.storage.v2" + + ".CreateHmacKeyResponse\"1\212\323\344\223\002\013\022\t\n\007projec" + + "t\332A\035project,service_account_email\022w\n\rDel" + + "eteHmacKey\022\'.google.storage.v2.DeleteHma" + + "cKeyRequest\032\026.google.protobuf.Empty\"%\212\323\344" + + "\223\002\013\022\t\n\007project\332A\021access_id,project\022}\n\nGe" + + "tHmacKey\022$.google.storage.v2.GetHmacKeyR" + + "equest\032\".google.storage.v2.HmacKeyMetada" + + "ta\"%\212\323\344\223\002\013\022\t\n\007project\332A\021access_id,projec" + + "t\022|\n\014ListHmacKeys\022&.google.storage.v2.Li" + + "stHmacKeysRequest\032\'.google.storage.v2.Li" + + "stHmacKeysResponse\"\033\212\323\344\223\002\013\022\t\n\007project\332A\007" + + "project\022\235\001\n\rUpdateHmacKey\022\'.google.stora" + + "ge.v2.UpdateHmacKeyRequest\032\".google.stor" + + "age.v2.HmacKeyMetadata\"?\212\323\344\223\002\"\022 \n\020hmac_k" + + "ey.project\022\014{project=**}\332A\024hmac_key,upda" + + "te_mask\032\247\002\312A\026storage.googleapis.com\322A\212\002h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform,https://www.googleapis.com/auth/cl" + + "oud-platform.read-only,https://www.googl" + + "eapis.com/auth/devstorage.full_control,h" + + "ttps://www.googleapis.com/auth/devstorag" + + "e.read_only,https://www.googleapis.com/a" + + "uth/devstorage.read_writeB\334\001\n\025com.google" + + ".storage.v2B\014StorageProtoP\001Z8google.gola" + + "ng.org/genproto/googleapis/storage/v2;st" + + "orage\352Ax\n!cloudkms.googleapis.com/Crypto" + + "Key\022Sprojects/{project}/locations/{locat" + + "ion}/keyRings/{key_ring}/cryptoKeys/{cry" + + "pto_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_CancelResumableWriteRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + 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(15); + 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(16); + 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(17); + 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", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CommonObjectRequestParams", "ReadMask", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "ReadMask", }); + internal_static_google_storage_v2_ReadObjectResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + 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(19); + 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(20); + 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(21); + 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_ListObjectsRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + 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", "ReadMask", }); + internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + 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(24); + 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(25); + 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(26); + 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(27); + 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(28); + 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(29); + 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(30); + 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(31); + 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(32); + 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(33); + 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(34); + 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(35); + 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(36); + 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(37); + 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(38); + 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(39); + 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(40); + 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", }); + 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_Versioning_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(7); + 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(8); + 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(9); + 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(10); + 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", }); + internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(11); + 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(41); + 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(42); + 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(43); + 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(44); + 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(45); + 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(46); + 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(47); + 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(48); + 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(49); + 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(50); + 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(51); + 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(52); + 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(53); + 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 13b7dd08f4..5cb6c235f7 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,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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,43 +26,39 @@ private UpdateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBucketRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -88,15 +66,12 @@ public boolean hasBucket() { return bucket_ != null; } /** - * - * *
    * 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 @@ -104,8 +79,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.
@@ -121,15 +94,12 @@ 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 @@ -137,15 +107,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 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 @@ -156,15 +123,12 @@ 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 @@ -172,15 +136,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 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 @@ -189,12 +150,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",
@@ -202,7 +160,6 @@ public long getIfMetagenerationNotMatch() {
    * 
* * string predefined_acl = 8; - * * @return The predefinedAcl. */ @java.lang.Override @@ -211,15 +168,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",
@@ -227,15 +183,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 { @@ -244,12 +201,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",
@@ -257,7 +211,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
    * 
* * string predefined_default_object_acl = 9; - * * @return The predefinedDefaultObjectAcl. */ @java.lang.Override @@ -266,15 +219,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",
@@ -282,15 +234,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 { @@ -301,8 +254,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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -312,9 +263,7 @@ 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 @@ -322,8 +271,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -333,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 @@ -343,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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -354,8 +297,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() { @@ -363,7 +305,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -375,7 +316,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 (bucket_ != null) { output.writeMessage(1, getBucket()); } @@ -404,23 +346,26 @@ public int getSerializedSize() { size = 0; if (bucket_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBucket()); + 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 + .computeInt64Size(2, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifMetagenerationNotMatch_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateMask()); + 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; @@ -430,32 +375,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; @@ -474,11 +423,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(); @@ -493,136 +444,130 @@ 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() { - 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(); @@ -645,9 +590,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 @@ -666,11 +611,8 @@ 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; } @@ -678,7 +620,9 @@ public com.google.storage.v2.UpdateBucketRequest buildPartial() { private void buildPartial0(com.google.storage.v2.UpdateBucketRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null + ? bucket_ + : bucketBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -696,7 +640,9 @@ 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(); } result.bitField0_ |= to_bitField0_; } @@ -705,39 +651,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; @@ -794,49 +739,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) { @@ -846,40 +788,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() { @@ -890,8 +822,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.
@@ -913,8 +843,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.
@@ -922,7 +850,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 {
@@ -933,8 +862,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.
@@ -944,9 +871,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;
@@ -959,8 +886,6 @@ public Builder mergeBucket(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.
@@ -979,8 +904,6 @@ public Builder clearBucket() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
@@ -994,8 +917,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.
@@ -1007,12 +928,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.
@@ -1021,33 +941,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 @@ -1055,15 +969,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 @@ -1071,35 +982,29 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { @@ -1109,17 +1014,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 @@ -1127,15 +1029,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 @@ -1143,35 +1042,29 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -1183,8 +1076,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",
@@ -1192,13 +1083,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; @@ -1207,8 +1098,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1216,14 +1105,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 { @@ -1231,8 +1121,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1240,22 +1128,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",
@@ -1263,7 +1147,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
      * 
* * string predefined_acl = 8; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1273,8 +1156,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1282,14 +1163,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; @@ -1299,8 +1178,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",
@@ -1308,13 +1185,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; @@ -1323,8 +1200,6 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1332,14 +1207,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 { @@ -1347,8 +1223,6 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { } } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1356,22 +1230,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",
@@ -1379,7 +1249,6 @@ public Builder setPredefinedDefaultObjectAcl(java.lang.String value) {
      * 
* * string predefined_default_object_acl = 9; - * * @return This builder for chaining. */ public Builder clearPredefinedDefaultObjectAcl() { @@ -1389,8 +1258,6 @@ public Builder clearPredefinedDefaultObjectAcl() { return this; } /** - * - * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1398,14 +1265,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; @@ -1415,13 +1280,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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1431,17 +1291,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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1451,23 +1307,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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1477,8 +1327,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) { @@ -1494,8 +1343,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1505,10 +1352,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 { @@ -1519,8 +1366,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1530,14 +1375,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; @@ -1550,8 +1394,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1561,8 +1403,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); @@ -1575,8 +1416,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1586,8 +1425,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; @@ -1595,8 +1433,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1606,21 +1442,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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1630,28 +1462,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); } @@ -1661,12 +1489,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(); } @@ -1675,27 +1503,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; @@ -1710,4 +1538,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 7962303a98..f5d5abaed5 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,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +38,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 +87,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 +98,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 +111,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 +122,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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -185,15 +137,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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -203,15 +151,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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -221,8 +165,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 68% 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 694745176f..997f95bd04 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,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto package com.google.storage.v2; /** - * - * *
  * Request object to update an HMAC key state.
  * HmacKeyMetadata.state is required and the only writable field in
@@ -30,49 +13,46 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.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);
   }
 
   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.
@@ -80,10 +60,7 @@ 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 @@ -91,8 +68,6 @@ public boolean hasHmacKey() { return hmacKey_ != null; } /** - * - * *
    * Required. The HMAC key to update.
    * If present, the hmac_key's `id` field will be used to identify the key.
@@ -100,10 +75,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 @@ -111,8 +83,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.
@@ -120,9 +90,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() { @@ -132,8 +100,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
@@ -141,7 +107,6 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -149,8 +114,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Update mask for hmac_key.
    * Not specifying any fields will mean only the `state` field is updated to
@@ -158,7 +121,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ @java.lang.Override @@ -166,8 +128,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
@@ -182,7 +142,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -194,7 +153,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 (hmacKey_ != null) {
       output.writeMessage(1, getHmacKey());
     }
@@ -211,10 +171,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (hmacKey_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHmacKey());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getHmacKey());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -224,21 +186,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;
@@ -264,104 +227,97 @@ 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
@@ -371,32 +327,33 @@ 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() {
 
-    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();
@@ -415,9 +372,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
@@ -436,11 +393,8 @@ 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;
     }
@@ -448,10 +402,14 @@ public com.google.storage.v2.UpdateHmacKeyRequest buildPartial() {
     private void buildPartial0(com.google.storage.v2.UpdateHmacKeyRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.hmacKey_ = hmacKeyBuilder_ == null ? hmacKey_ : hmacKeyBuilder_.build();
+        result.hmacKey_ = hmacKeyBuilder_ == null
+            ? hmacKey_
+            : hmacKeyBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
     }
 
@@ -459,39 +417,38 @@ private void buildPartial0(com.google.storage.v2.UpdateHmacKeyRequest 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.UpdateHmacKeyRequest) {
-        return mergeFrom((com.google.storage.v2.UpdateHmacKeyRequest) other);
+        return mergeFrom((com.google.storage.v2.UpdateHmacKeyRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -532,25 +489,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) {
@@ -560,18 +518,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.
@@ -579,18 +531,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.
@@ -598,24 +545,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.
@@ -623,9 +563,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) { @@ -641,8 +579,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.
@@ -650,11 +586,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 { @@ -665,8 +600,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.
@@ -674,15 +607,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; @@ -695,8 +626,6 @@ public Builder mergeHmacKey(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.
@@ -704,9 +633,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); @@ -719,8 +646,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.
@@ -728,9 +653,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; @@ -738,8 +661,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.
@@ -747,22 +668,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.
@@ -770,22 +686,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_; @@ -793,13 +704,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
@@ -807,15 +713,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
@@ -823,21 +726,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
@@ -860,8 +758,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
@@ -870,7 +766,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 {
@@ -881,8 +778,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
@@ -893,9 +788,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;
@@ -908,8 +803,6 @@ public Builder mergeUpdateMask(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
@@ -929,8 +822,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -945,8 +836,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
@@ -959,14 +848,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
@@ -976,24 +862,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);
     }
 
@@ -1003,12 +886,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();
   }
@@ -1017,27 +900,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;
@@ -1052,4 +935,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 6dddfc06ed..e2cfa7151b 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,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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 +15,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 +27,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 +39,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 +51,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 +62,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 77%
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 627697ea3e..8a1840e4d4 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,78 +1,57 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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
@@ -82,7 +61,6 @@ 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 @@ -90,8 +68,6 @@ public boolean hasObject() { return object_ != null; } /** - * - * *
    * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
@@ -101,7 +77,6 @@ public boolean hasObject() {
    * 
* * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -109,8 +84,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
@@ -129,8 +102,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
@@ -138,7 +109,6 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
    * 
* * optional int64 if_generation_match = 2; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -146,8 +116,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
@@ -155,7 +123,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 2; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -166,8 +133,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
@@ -176,7 +141,6 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 3; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -184,8 +148,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
@@ -194,7 +156,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 3; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -205,15 +166,12 @@ 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 @@ -221,15 +179,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 = 4; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -240,15 +195,12 @@ 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 @@ -256,15 +208,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 = 5; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -273,12 +222,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",
@@ -286,7 +232,6 @@ public long getIfMetagenerationNotMatch() {
    * 
* * string predefined_acl = 10; - * * @return The predefinedAcl. */ @java.lang.Override @@ -295,15 +240,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",
@@ -311,15 +255,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 { @@ -330,8 +275,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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -341,9 +284,7 @@ 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 @@ -351,8 +292,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -362,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 @@ -372,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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -383,8 +318,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() { @@ -394,14 +328,11 @@ 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 @@ -409,25 +340,18 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** - * - * *
    * 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.
    * 
@@ -435,15 +359,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; @@ -455,7 +375,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 (object_ != null) { output.writeMessage(1, getObject()); } @@ -490,27 +411,32 @@ public int getSerializedSize() { size = 0; if (object_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObject()); + 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 + .computeInt64Size(2, ifGenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifMetagenerationNotMatch_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateMask()); } if (commonObjectRequestParams_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getCommonObjectRequestParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCommonObjectRequestParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, predefinedAcl_); @@ -523,43 +449,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; @@ -578,19 +510,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(); @@ -607,136 +543,130 @@ 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() { - 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(); @@ -765,9 +695,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 @@ -786,11 +716,8 @@ 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; } @@ -798,7 +725,9 @@ public com.google.storage.v2.UpdateObjectRequest buildPartial() { private void buildPartial0(com.google.storage.v2.UpdateObjectRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null ? object_ : objectBuilder_.build(); + result.object_ = objectBuilder_ == null + ? object_ + : objectBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -821,13 +750,14 @@ private void buildPartial0(com.google.storage.v2.UpdateObjectRequest result) { result.predefinedAcl_ = predefinedAcl_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -836,39 +766,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; @@ -929,62 +858,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) { @@ -994,18 +919,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
@@ -1015,15 +934,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
@@ -1033,7 +949,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() { @@ -1044,8 +959,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
@@ -1070,8 +983,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
@@ -1082,7 +993,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 {
@@ -1093,8 +1005,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
@@ -1107,9 +1017,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;
@@ -1122,8 +1032,6 @@ public Builder mergeObject(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
@@ -1145,8 +1053,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
@@ -1163,8 +1069,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
@@ -1179,12 +1083,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
@@ -1196,26 +1099,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
@@ -1223,7 +1121,6 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
      * 
* * optional int64 if_generation_match = 2; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1231,8 +1128,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
@@ -1240,7 +1135,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 2; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1248,8 +1142,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
@@ -1257,20 +1149,17 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 2; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000002; onChanged(); 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
@@ -1278,7 +1167,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 2; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1288,10 +1176,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
@@ -1300,7 +1186,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 3; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1308,8 +1193,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
@@ -1318,7 +1201,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 3; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1326,8 +1208,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
@@ -1336,20 +1216,17 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 3; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000004; onChanged(); 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
@@ -1358,7 +1235,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 3; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1368,17 +1244,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 @@ -1386,15 +1259,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 @@ -1402,35 +1272,29 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000008; onChanged(); 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() { @@ -1440,17 +1304,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 @@ -1458,15 +1319,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 @@ -1474,35 +1332,29 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000010; onChanged(); 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() { @@ -1514,8 +1366,6 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object predefinedAcl_ = ""; /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1523,13 +1373,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; @@ -1538,8 +1388,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1547,14 +1395,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 { @@ -1562,8 +1411,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1571,22 +1418,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",
@@ -1594,7 +1437,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
      * 
* * string predefined_acl = 10; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1604,8 +1446,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1613,14 +1453,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; @@ -1630,13 +1468,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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1646,17 +1479,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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1666,23 +1495,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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1692,8 +1515,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) { @@ -1709,8 +1531,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1720,10 +1540,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 { @@ -1734,8 +1554,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1745,14 +1563,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; @@ -1765,8 +1582,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1776,8 +1591,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); @@ -1790,8 +1604,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1801,8 +1613,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; @@ -1810,8 +1621,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1821,21 +1630,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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1845,21 +1650,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_; @@ -1867,55 +1668,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(); @@ -1929,8 +1716,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1949,21 +1734,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; @@ -1976,8 +1757,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1995,42 +1774,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.
      * 
@@ -2038,24 +1808,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); } @@ -2065,12 +1832,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(); } @@ -2079,27 +1846,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; @@ -2114,4 +1881,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 1e2ec6c8df..1c3a39d2bf 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,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +17,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 +30,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 +47,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 +54,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 +65,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 +78,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 +90,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 +144,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 +155,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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -225,15 +170,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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -243,15 +184,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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -261,38 +198,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 75% 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 a51af321d6..13aa2ba06b 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,82 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 firstMessageCase_ = 0; 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; } @@ -92,37 +71,31 @@ 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; 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; } @@ -138,50 +111,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() { @@ -192,7 +157,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; @@ -201,25 +167,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; } @@ -231,15 +196,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 @@ -247,27 +209,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.
@@ -278,7 +235,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();
   }
@@ -286,8 +243,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.
@@ -302,7 +257,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
    * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ @java.lang.Override @@ -312,15 +266,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 @@ -328,27 +279,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.
@@ -359,7 +305,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();
   }
@@ -367,8 +313,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 specifified checksums the call will fail. May only be
@@ -377,7 +321,6 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return Whether the objectChecksums field is set. */ @java.lang.Override @@ -385,8 +328,6 @@ public boolean hasObjectChecksums() { return objectChecksums_ != null; } /** - * - * *
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specifified checksums the call will fail. May only be
@@ -395,18 +336,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 specifified checksums the call will fail. May only be
@@ -418,16 +354,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`
@@ -438,7 +370,6 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
    * 
* * bool finish_write = 7; - * * @return The finishWrite. */ @java.lang.Override @@ -449,14 +380,11 @@ 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 @@ -464,25 +392,18 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** - * - * *
    * 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.
    * 
@@ -490,15 +411,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; @@ -510,7 +427,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_); } @@ -545,28 +463,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()); + 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()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -576,31 +494,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: @@ -608,7 +531,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: @@ -625,13 +549,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(); @@ -661,136 +587,130 @@ 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() { - 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(); @@ -821,9 +741,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 @@ -842,11 +762,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; @@ -858,29 +775,31 @@ private void buildPartial0(com.google.storage.v2.WriteObjectRequest result) { result.writeOffset_ = writeOffset_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); } 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(); } } 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(); } } @@ -889,39 +808,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; @@ -943,33 +861,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(); @@ -997,57 +910,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) { @@ -1057,12 +969,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() { @@ -1074,9 +986,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() { @@ -1089,15 +1002,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 @@ -1105,15 +1015,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 @@ -1123,7 +1030,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; @@ -1134,26 +1042,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; } @@ -1163,37 +1070,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() { @@ -1205,22 +1105,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; @@ -1229,20 +1125,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 @@ -1250,15 +1140,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 @@ -1276,8 +1163,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.
@@ -1299,8 +1184,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.
@@ -1320,8 +1203,6 @@ public Builder setWriteObjectSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1331,13 +1212,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;
         }
@@ -1353,8 +1231,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.
@@ -1379,8 +1255,6 @@ public Builder clearWriteObjectSpec() {
       return this;
     }
     /**
-     *
-     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1392,8 +1266,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.
@@ -1413,8 +1285,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.
@@ -1423,19 +1293,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());
@@ -1446,10 +1311,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.
@@ -1464,7 +1327,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ @java.lang.Override @@ -1472,8 +1334,6 @@ public long getWriteOffset() { return writeOffset_; } /** - * - * *
      * Required. The offset from the beginning of the object at which the data
      * should be written.
@@ -1488,20 +1348,17 @@ public long getWriteOffset() {
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The writeOffset to set. * @return This builder for chaining. */ public Builder setWriteOffset(long value) { - + writeOffset_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The offset from the beginning of the object at which the data
      * should be written.
@@ -1516,7 +1373,6 @@ public Builder setWriteOffset(long value) {
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWriteOffset() { @@ -1527,20 +1383,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 @@ -1548,15 +1398,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 @@ -1574,8 +1421,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.
@@ -1597,8 +1442,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.
@@ -1618,8 +1461,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.
@@ -1629,12 +1470,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;
         }
@@ -1650,8 +1489,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.
@@ -1676,8 +1513,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.
@@ -1689,8 +1524,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.
@@ -1710,8 +1543,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.
@@ -1720,20 +1551,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;
@@ -1743,13 +1571,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 specifified checksums the call will fail. May only be
@@ -1758,15 +1581,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 specifified checksums the call will fail. May only be
@@ -1775,21 +1595,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 specifified checksums the call will fail. May only be
@@ -1813,8 +1628,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 specifified checksums the call will fail. May only be
@@ -1836,8 +1649,6 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specifified checksums the call will fail. May only be
@@ -1849,9 +1660,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;
@@ -1864,8 +1675,6 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specifified checksums the call will fail. May only be
@@ -1886,8 +1695,6 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specifified checksums the call will fail. May only be
@@ -1903,8 +1710,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 specifified checksums the call will fail. May only be
@@ -1918,14 +1723,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 specifified checksums the call will fail. May only be
@@ -1936,26 +1738,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`
@@ -1966,7 +1763,6 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
      * 
* * bool finish_write = 7; - * * @return The finishWrite. */ @java.lang.Override @@ -1974,8 +1770,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`
@@ -1986,20 +1780,17 @@ public boolean getFinishWrite() {
      * 
* * bool finish_write = 7; - * * @param value The finishWrite to set. * @return This builder for chaining. */ public Builder setFinishWrite(boolean value) { - + finishWrite_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * If `true`, this indicates that the write is complete. Sending any
      * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -2010,7 +1801,6 @@ public Builder setFinishWrite(boolean value) {
      * 
* * bool finish_write = 7; - * * @return This builder for chaining. */ public Builder clearFinishWrite() { @@ -2022,55 +1812,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(); @@ -2084,8 +1860,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -2104,21 +1878,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; @@ -2131,8 +1901,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -2150,42 +1918,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.
      * 
@@ -2193,24 +1952,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); } @@ -2220,12 +1976,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(); } @@ -2234,27 +1990,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; @@ -2269,4 +2025,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 799717bb15..a77e3f1b76 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,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 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 +70,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.
@@ -118,40 +84,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.
@@ -162,8 +119,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 specifified checksums the call will fail. May only be
@@ -172,13 +127,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 specifified checksums the call will fail. May only be
@@ -187,13 +139,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 specifified checksums the call will fail. May only be
@@ -206,8 +155,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`
@@ -218,38 +165,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 bb9b386132..080f4bd7bf 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,82 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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; 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; } @@ -92,37 +71,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 @@ -130,15 +103,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 @@ -151,15 +121,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 @@ -167,27 +134,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.
@@ -198,13 +160,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;
@@ -216,9 +177,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_);
@@ -233,14 +196,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;
@@ -250,21 +212,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:
@@ -283,7 +246,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;
@@ -297,136 +261,130 @@ 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(); @@ -440,9 +398,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 @@ -461,11 +419,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; @@ -478,7 +433,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(); } } @@ -487,39 +443,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; @@ -529,20 +484,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(); @@ -570,25 +522,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) { @@ -598,12 +549,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() { @@ -616,30 +567,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() { @@ -649,35 +594,29 @@ 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. */ public Builder setPersistedSize(long value) { - + writeStatusCase_ = 1; writeStatus_ = value; onChanged(); 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() { @@ -690,20 +629,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 @@ -711,15 +644,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 @@ -737,8 +667,6 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -760,8 +688,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.
@@ -769,7 +695,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();
@@ -780,8 +707,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.
@@ -791,12 +716,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;
         }
@@ -812,8 +735,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.
@@ -838,8 +759,6 @@ public Builder clearResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -851,8 +770,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.
@@ -872,8 +789,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -882,29 +797,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);
     }
 
@@ -914,12 +826,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();
   }
@@ -928,27 +840,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;
@@ -963,4 +875,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 fe718a7761..3eca514b01 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,54 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See 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 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 2532f47a84..bb3407b46b 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,84 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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 @@ -86,14 +64,11 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * 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 @@ -101,8 +76,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.
    * 
@@ -115,12 +88,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",
@@ -128,7 +98,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
    * 
* * string predefined_acl = 7; - * * @return The predefinedAcl. */ @java.lang.Override @@ -137,15 +106,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",
@@ -153,15 +121,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 { @@ -172,8 +141,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
@@ -181,7 +148,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
    * 
* * optional int64 if_generation_match = 3; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -189,8 +155,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
@@ -198,7 +162,6 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 3; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -209,8 +172,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
@@ -219,7 +180,6 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 4; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -227,8 +187,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
@@ -237,7 +195,6 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 4; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -248,15 +205,12 @@ 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 @@ -264,15 +218,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 = 5; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -283,15 +234,12 @@ 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 @@ -299,15 +247,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 = 6; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -318,8 +263,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
@@ -331,7 +274,6 @@ public long getIfMetagenerationNotMatch() {
    * 
* * optional int64 object_size = 8; - * * @return Whether the objectSize field is set. */ @java.lang.Override @@ -339,8 +281,6 @@ public boolean hasObjectSize() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * The expected final object size being uploaded.
    * If this value is set, closing the stream after writing fewer or more than
@@ -352,7 +292,6 @@ public boolean hasObjectSize() {
    * 
* * optional int64 object_size = 8; - * * @return The objectSize. */ @java.lang.Override @@ -361,7 +300,6 @@ public long getObjectSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,7 +311,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 (resource_ != null) { output.writeMessage(1, getResource()); } @@ -405,25 +344,31 @@ public int getSerializedSize() { size = 0; if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResource()); + 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 + .computeInt64Size(3, ifGenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifMetagenerationNotMatch_); + 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_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, objectSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -433,7 +378,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); @@ -442,28 +387,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; @@ -484,158 +436,158 @@ 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() { - 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(); @@ -655,9 +607,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 @@ -676,11 +628,8 @@ 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; } @@ -688,7 +637,9 @@ public com.google.storage.v2.WriteObjectSpec buildPartial() { private void buildPartial0(com.google.storage.v2.WriteObjectSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null + ? resource_ + : resourceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.predefinedAcl_ = predefinedAcl_; @@ -721,39 +672,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; @@ -811,55 +761,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) { @@ -869,40 +813,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() { @@ -913,14 +845,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) { @@ -936,16 +865,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 { @@ -956,20 +883,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; @@ -982,14 +906,11 @@ public Builder mergeResource(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 clearResource() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1002,14 +923,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; @@ -1017,44 +935,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_; @@ -1062,8 +972,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",
@@ -1071,13 +979,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; @@ -1086,8 +994,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1095,14 +1001,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 { @@ -1110,8 +1017,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1119,22 +1024,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",
@@ -1142,7 +1043,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
      * 
* * string predefined_acl = 7; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1152,8 +1052,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1161,14 +1059,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; @@ -1176,10 +1072,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
@@ -1187,7 +1081,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 @@ -1195,8 +1088,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
@@ -1204,7 +1095,6 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 3; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1212,8 +1102,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
@@ -1221,20 +1109,17 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 3; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Makes the operation conditional on whether the object's current
      * generation matches the given value. Setting to 0 makes the operation
@@ -1242,7 +1127,6 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 3; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1252,10 +1136,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
@@ -1264,7 +1146,6 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 4; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1272,8 +1153,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
@@ -1282,7 +1161,6 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 4; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1290,8 +1168,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
@@ -1300,20 +1176,17 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 4; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000008; onChanged(); 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
@@ -1322,7 +1195,6 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 4; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1332,17 +1204,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 @@ -1350,15 +1219,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 @@ -1366,35 +1232,29 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000010; onChanged(); 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() { @@ -1404,17 +1264,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 @@ -1422,15 +1279,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 @@ -1438,35 +1292,29 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000020; onChanged(); 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() { @@ -1476,10 +1324,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
@@ -1491,7 +1337,6 @@ public Builder clearIfMetagenerationNotMatch() {
      * 
* * optional int64 object_size = 8; - * * @return Whether the objectSize field is set. */ @java.lang.Override @@ -1499,8 +1344,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
@@ -1512,7 +1355,6 @@ public boolean hasObjectSize() {
      * 
* * optional int64 object_size = 8; - * * @return The objectSize. */ @java.lang.Override @@ -1520,8 +1362,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
@@ -1533,20 +1373,17 @@ public long getObjectSize() {
      * 
* * optional int64 object_size = 8; - * * @param value The objectSize to set. * @return This builder for chaining. */ public Builder setObjectSize(long value) { - + objectSize_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * The expected final object size being uploaded.
      * If this value is set, closing the stream after writing fewer or more than
@@ -1558,7 +1395,6 @@ public Builder setObjectSize(long value) {
      * 
* * optional int64 object_size = 8; - * * @return This builder for chaining. */ public Builder clearObjectSize() { @@ -1567,9 +1403,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); } @@ -1579,12 +1415,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(); } @@ -1593,27 +1429,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; @@ -1628,4 +1464,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 63ddc9749d..d063457a8f 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,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 +35,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 +42,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 +53,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 +66,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 +77,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 +90,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 +102,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 +160,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 +175,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 7409668307..fcfa400157 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 @@ -240,6 +240,13 @@ service Storage { } // 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. rpc CancelResumableWrite(CancelResumableWriteRequest) returns (CancelResumableWriteResponse) { option (google.api.routing) = { @@ -903,7 +910,7 @@ message ReadObjectResponse { // empty for any given `ReadResponse`. This enables the service to inform the // client that the request is still live while it is running an operation to // generate more data. - ChecksummedData checksummed_data = 1 [ctype = CORD]; + ChecksummedData checksummed_data = 1; // The checksums of the complete object. The client should compute one of // these checksums over the downloaded object and compare it against the value @@ -2008,7 +2015,7 @@ message BucketAccessControl { // checksum. message ChecksummedData { // The data. - bytes content = 1; + bytes content = 1 [ctype = CORD]; // If set, the CRC32C digest of the content field. optional fixed32 crc32c = 2; 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 f192ac86a8..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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/CreateNotificationConfigRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java deleted file mode 100644 index 73344ab699..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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 6098d96ff3..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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 9a2f81896b..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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 74f04937a8..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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 7a5eae42f8..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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 d6637ee207..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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 9722940ed4..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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 066d21305b..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java +++ /dev/null @@ -1,1742 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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_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_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_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\"5\n\033CancelResumable" - + "WriteRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002\"\036\n\034" - + "CancelResumableWriteResponse\"\272\004\n\021ReadObj" - + "ectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035stor" - + "age.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_offse" - + "t\030\004 \001(\003\022\022\n\nread_limit\030\005 \001(\003\022 \n\023if_genera" - + "tion_match\030\006 \001(\003H\000\210\001\001\022$\n\027if_generation_n" - + "ot_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_n" - + "ot_match\030\t \001(\003H\003\210\001\001\022R\n\034common_object_req" - + "uest_params\030\n \001(\0132,.google.storage.v2.Co" - + "mmonObjectRequestParams\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_generation_no" - + "t_matchB\032\n\030_if_metageneration_matchB\036\n\034_" - + "if_metageneration_not_matchB\014\n\n_read_mas" - + "k\"\220\004\n\020GetObjectRequest\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\340A\002\022\022\n\ngeneration\030\003 \001(\003\022 " - + "\n\023if_generation_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_g" - + "eneration_not_match\030\005 \001(\003H\001\210\001\001\022$\n\027if_met" - + "ageneration_match\030\006 \001(\003H\002\210\001\001\022(\n\033if_metag" - + "eneration_not_match\030\007 \001(\003H\003\210\001\001\022R\n\034common" - + "_object_request_params\030\010 \001(\0132,.google.st" - + "orage.v2.CommonObjectRequestParams\0222\n\tre" - + "ad_mask\030\n \001(\0132\032.google.protobuf.FieldMas" - + "kH\004\210\001\001B\026\n\024_if_generation_matchB\032\n\030_if_ge" - + "neration_not_matchB\032\n\030_if_metageneration" - + "_matchB\036\n\034_if_metageneration_not_matchB\014" - + "\n\n_read_mask\"\371\001\n\022ReadObjectResponse\022@\n\020c" - + "hecksummed_data\030\001 \001(\0132\".google.storage.v" - + "2.ChecksummedDataB\002\010\001\022<\n\020object_checksum" - + "s\030\002 \001(\0132\".google.storage.v2.ObjectChecks" - + "ums\0226\n\rcontent_range\030\003 \001(\0132\037.google.stor" - + "age.v2.ContentRange\022+\n\010metadata\030\004 \001(\0132\031." - + "google.storage.v2.Object\"\215\003\n\017WriteObject" - + "Spec\0220\n\010resource\030\001 \001(\0132\031.google.storage." - + "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\027if_g" - + "eneration_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_met" - + "ageneration_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_metag" - + "eneration_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_match" - + "B\032\n\030_if_generation_not_matchB\032\n\030_if_meta" - + "generation_matchB\036\n\034_if_metageneration_n" - + "ot_matchB\016\n\014_object_size\"\206\003\n\022WriteObject" - + "Request\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_ob" - + "ject_spec\030\002 \001(\0132\".google.storage.v2.Writ" - + "eObjectSpecH\000\022\031\n\014write_offset\030\003 \001(\003B\003\340A\002" - + "\022>\n\020checksummed_data\030\004 \001(\0132\".google.stor" - + "age.v2.ChecksummedDataH\001\022<\n\020object_check" - + "sums\030\006 \001(\0132\".google.storage.v2.ObjectChe" - + "cksums\022\024\n\014finish_write\030\007 \001(\010\022R\n\034common_o" - + "bject_request_params\030\010 \001(\0132,.google.stor" - + "age.v2.CommonObjectRequestParamsB\017\n\rfirs" - + "t_messageB\006\n\004data\"n\n\023WriteObjectResponse" - + "\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\014wri" - + "te_status\"\317\002\n\022ListObjectsRequest\0225\n\006pare" - + "nt\030\001 \001(\tB%\340A\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\tdelimiter\030\004 \001(\t\022\"\n\032include_tra" - + "iling_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.goo" - + "gle.protobuf.FieldMaskH\000\210\001\001\022 \n\023lexicogra" - + "phic_start\030\n \001(\tB\003\340A\001\022\036\n\021lexicographic_e" - + "nd\030\013 \001(\tB\003\340A\001B\014\n\n_read_mask\"\205\001\n\027QueryWri" - + "teStatusRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002\022" - + "R\n\034common_object_request_params\030\002 \001(\0132,." - + "google.storage.v2.CommonObjectRequestPar" - + "ams\"s\n\030QueryWriteStatusResponse\022\030\n\016persi" - + "sted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031.go" - + "ogle.storage.v2.ObjectH\000B\016\n\014write_status" - + "\"\250\n\n\024RewriteObjectRequest\022 \n\020destination" - + "_name\030\030 \001(\tB\006\340A\002\340A\005\022D\n\022destination_bucke" - + "t\030\031 \001(\tB(\340A\002\340A\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%\340A\002\372A\037\n\035s" - + "torage.googleapis.com/Bucket\022\032\n\rsource_o" - + "bject\030\003 \001(\tB\003\340A\002\022\031\n\021source_generation\030\004 " - + "\001(\003\022\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032destinatio" - + "n_predefined_acl\030\034 \001(\t\022 \n\023if_generation_" - + "match\030\007 \001(\003H\000\210\001\001\022$\n\027if_generation_not_ma" - + "tch\030\010 \001(\003H\001\210\001\001\022$\n\027if_metageneration_matc" - + "h\030\t \001(\003H\002\210\001\001\022(\n\033if_metageneration_not_ma" - + "tch\030\n \001(\003H\003\210\001\001\022\'\n\032if_source_generation_m" - + "atch\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_generation_" - + "not_match\030\014 \001(\003H\005\210\001\001\022+\n\036if_source_metage" - + "neration_match\030\r \001(\003H\006\210\001\001\022/\n\"if_source_m" - + "etageneration_not_match\030\016 \001(\003H\007\210\001\001\022$\n\034ma" - + "x_bytes_rewritten_per_call\030\017 \001(\003\022(\n copy" - + "_source_encryption_algorithm\030\020 \001(\t\022(\n co" - + "py_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_params\030\023 " - + "\001(\0132,.google.storage.v2.CommonObjectRequ" - + "estParams\022<\n\020object_checksums\030\035 \001(\0132\".go" - + "ogle.storage.v2.ObjectChecksumsB\026\n\024_if_g" - + "eneration_matchB\032\n\030_if_generation_not_ma" - + "tchB\032\n\030_if_metageneration_matchB\036\n\034_if_m" - + "etageneration_not_matchB\035\n\033_if_source_ge" - + "neration_matchB!\n\037_if_source_generation_" - + "not_matchB!\n\037_if_source_metageneration_m" - + "atchB%\n#_if_source_metageneration_not_ma" - + "tch\"\227\001\n\017RewriteResponse\022\035\n\025total_bytes_r" - + "ewritten\030\001 \001(\003\022\023\n\013object_size\030\002 \001(\003\022\014\n\004d" - + "one\030\003 \001(\010\022\025\n\rrewrite_token\030\004 \001(\t\022+\n\010reso" - + "urce\030\005 \001(\0132\031.google.storage.v2.Object\"\362\001" - + "\n\032StartResumableWriteRequest\022B\n\021write_ob" - + "ject_spec\030\001 \001(\0132\".google.storage.v2.Writ" - + "eObjectSpecB\003\340A\002\022R\n\034common_object_reques" - + "t_params\030\003 \001(\0132,.google.storage.v2.Commo" - + "nObjectRequestParams\022<\n\020object_checksums" - + "\030\005 \001(\0132\".google.storage.v2.ObjectChecksu" - + "ms\"0\n\033StartResumableWriteResponse\022\021\n\tupl" - + "oad_id\030\001 \001(\t\"\357\003\n\023UpdateObjectRequest\022.\n\006" - + "object\030\001 \001(\0132\031.google.storage.v2.ObjectB" - + "\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\027" - + "if_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\016" - + "predefined_acl\030\n \001(\t\0224\n\013update_mask\030\007 \001(" - + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\022R\n\034co" - + "mmon_object_request_params\030\010 \001(\0132,.googl" - + "e.storage.v2.CommonObjectRequestParamsB\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_match\"`\n\030GetSer" - + "viceAccountRequest\022D\n\007project\030\001 \001(\tB3\340A\002" - + "\372A-\n+cloudresourcemanager.googleapis.com" - + "/Project\"\200\001\n\024CreateHmacKeyRequest\022D\n\007pro" - + "ject\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager" - + ".googleapis.com/Project\022\"\n\025service_accou" - + "nt_email\030\002 \001(\tB\003\340A\002\"g\n\025CreateHmacKeyResp" - + "onse\0224\n\010metadata\030\001 \001(\0132\".google.storage." - + "v2.HmacKeyMetadata\022\030\n\020secret_key_bytes\030\003" - + " \001(\014\"t\n\024DeleteHmacKeyRequest\022\026\n\taccess_i" - + "d\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-\n+c" - + "loudresourcemanager.googleapis.com/Proje" - + "ct\"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+cloudr" - + "esourcemanager.googleapis.com/Project\"\274\001" - + "\n\023ListHmacKeysRequest\022D\n\007project\030\001 \001(\tB3" - + "\340A\002\372A-\n+cloudresourcemanager.googleapis." - + "com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\022\035\n\025service_account_email\030\004 \001(" - + "\t\022\031\n\021show_deleted_keys\030\005 \001(\010\"f\n\024ListHmac" - + "KeysResponse\0225\n\thmac_keys\030\001 \003(\0132\".google" - + ".storage.v2.HmacKeyMetadata\022\027\n\017next_page" - + "_token\030\002 \001(\t\"\202\001\n\024UpdateHmacKeyRequest\0229\n" - + "\010hmac_key\030\001 \001(\0132\".google.storage.v2.Hmac" - + "KeyMetadataB\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032." - + "google.protobuf.FieldMask\"|\n\031CommonObjec" - + "tRequestParams\022\034\n\024encryption_algorithm\030\001" - + " \001(\t\022\034\n\024encryption_key_bytes\030\004 \001(\014\022#\n\033en" - + "cryption_key_sha256_bytes\030\005 \001(\014\"\312\005\n\020Serv" - + "iceConstants\"\265\005\n\006Values\022\026\n\022VALUES_UNSPEC" - + "IFIED\020\000\022\033\n\024MAX_READ_CHUNK_BYTES\020\200\200\200\001\022\034\n\025" - + "MAX_WRITE_CHUNK_BYTES\020\200\200\200\001\022\031\n\022MAX_OBJECT" - + "_SIZE_MB\020\200\200\300\002\022)\n$MAX_CUSTOM_METADATA_FIE" - + "LD_NAME_BYTES\020\200\010\022*\n%MAX_CUSTOM_METADATA_" - + "FIELD_VALUE_BYTES\020\200 \022)\n$MAX_CUSTOM_METAD" - + "ATA_TOTAL_SIZE_BYTES\020\200@\022*\n$MAX_BUCKET_ME" - + "TADATA_TOTAL_SIZE_BYTES\020\200\240\001\022\'\n#MAX_NOTIF" - + "ICATION_CONFIGS_PER_BUCKET\020d\022\"\n\036MAX_LIFE" - + "CYCLE_RULES_PER_BUCKET\020d\022&\n\"MAX_NOTIFICA" - + "TION_CUSTOM_ATTRIBUTES\020\005\0221\n,MAX_NOTIFICA" - + "TION_CUSTOM_ATTRIBUTE_KEY_LENGTH\020\200\002\0223\n.M" - + "AX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_L" - + "ENGTH\020\200\010\022\034\n\030MAX_LABELS_ENTRIES_COUNT\020@\022\037" - + "\n\033MAX_LABELS_KEY_VALUE_LENGTH\020?\022\037\n\032MAX_L" - + "ABELS_KEY_VALUE_BYTES\020\200\001\022.\n)MAX_OBJECT_I" - + "DS_PER_DELETE_OBJECTS_REQUEST\020\350\007\022\036\n\032SPLI" - + "T_TOKEN_MAX_VALID_DAYS\020\016\032\002\020\001\"\322\027\n\006Bucket\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\005\022\026\n\tbucket_id\030\002 \001(\tB\003\340" - + "A\003\022\014\n\004etag\030\035 \001(\t\022D\n\007project\030\003 \001(\tB3\340A\005\372A" - + "-\n+cloudresourcemanager.googleapis.com/P" - + "roject\022\033\n\016metageneration\030\004 \001(\003B\003\340A\003\022\025\n\010l" - + "ocation\030\005 \001(\tB\003\340A\005\022\032\n\rlocation_type\030\006 \001(" - + "\tB\003\340A\003\022\025\n\rstorage_class\030\007 \001(\t\022\013\n\003rpo\030\033 \001" - + "(\t\0223\n\003acl\030\010 \003(\0132&.google.storage.v2.Buck" - + "etAccessControl\022B\n\022default_object_acl\030\t " - + "\003(\0132&.google.storage.v2.ObjectAccessCont" - + "rol\0226\n\tlifecycle\030\n \001(\0132#.google.storage." - + "v2.Bucket.Lifecycle\0224\n\013create_time\030\013 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022,\n\004cor" - + "s\030\014 \003(\0132\036.google.storage.v2.Bucket.Cors\022" - + "4\n\013update_time\030\r \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022 \n\030default_event_based_hol" - + "d\030\016 \001(\010\0225\n\006labels\030\017 \003(\0132%.google.storage" - + ".v2.Bucket.LabelsEntry\0222\n\007website\030\020 \001(\0132" - + "!.google.storage.v2.Bucket.Website\0228\n\nve" - + "rsioning\030\021 \001(\0132$.google.storage.v2.Bucke" - + "t.Versioning\0222\n\007logging\030\022 \001(\0132!.google.s" - + "torage.v2.Bucket.Logging\022,\n\005owner\030\023 \001(\0132" - + "\030.google.storage.v2.OwnerB\003\340A\003\0228\n\nencryp" - + "tion\030\024 \001(\0132$.google.storage.v2.Bucket.En" - + "cryption\0222\n\007billing\030\025 \001(\0132!.google.stora" - + "ge.v2.Bucket.Billing\022C\n\020retention_policy" - + "\030\026 \001(\0132).google.storage.v2.Bucket.Retent" - + "ionPolicy\0227\n\niam_config\030\027 \001(\0132#.google.s" - + "torage.v2.Bucket.IamConfig\022\025\n\rsatisfies_" - + "pzs\030\031 \001(\010\022P\n\027custom_placement_config\030\032 \001" - + "(\0132/.google.storage.v2.Bucket.CustomPlac" - + "ementConfig\0226\n\tautoclass\030\034 \001(\0132#.google." - + "storage.v2.Bucket.Autoclass\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_heade" - + "r\030\003 \003(\t\022\027\n\017max_age_seconds\030\004 \001(\005\032M\n\nEncr" - + "yption\022?\n\017default_kms_key\030\001 \001(\tB&\372A#\n!cl" - + "oudkms.googleapis.com/CryptoKey\032\354\001\n\tIamC" - + "onfig\022a\n\033uniform_bucket_level_access\030\001 \001" - + "(\0132<.google.storage.v2.Bucket.IamConfig." - + "UniformBucketLevelAccess\022 \n\030public_acces" - + "s_prevention\030\003 \001(\t\032Z\n\030UniformBucketLevel" - + "Access\022\017\n\007enabled\030\001 \001(\010\022-\n\tlock_time\030\002 \001" - + "(\0132\032.google.protobuf.Timestamp\032\363\005\n\tLifec" - + "ycle\0226\n\004rule\030\001 \003(\0132(.google.storage.v2.B" - + "ucket.Lifecycle.Rule\032\255\005\n\004Rule\022?\n\006action\030" - + "\001 \001(\0132/.google.storage.v2.Bucket.Lifecyc" - + "le.Rule.Action\022E\n\tcondition\030\002 \001(\01322.goog" - + "le.storage.v2.Bucket.Lifecycle.Rule.Cond" - + "ition\032-\n\006Action\022\014\n\004type\030\001 \001(\t\022\025\n\rstorage" - + "_class\030\002 \001(\t\032\355\003\n\tCondition\022\025\n\010age_days\030\001" - + " \001(\005H\000\210\001\001\022)\n\016created_before\030\002 \001(\0132\021.goog" - + "le.type.Date\022\024\n\007is_live\030\003 \001(\010H\001\210\001\001\022\037\n\022nu" - + "m_newer_versions\030\004 \001(\005H\002\210\001\001\022\035\n\025matches_s" - + "torage_class\030\005 \003(\t\022#\n\026days_since_custom_" - + "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_non" - + "current_time\030\t \001(\005H\004\210\001\001\0221\n\026noncurrent_ti" - + "me_before\030\n \001(\0132\021.google.type.Date\022\026\n\016ma" - + "tches_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_newe" - + "r_versionsB\031\n\027_days_since_custom_timeB\035\n" - + "\033_days_since_noncurrent_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\017RetentionPolicy\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.protobuf.Duration\032\035\n\nVers" - + "ioning\022\017\n\007enabled\030\001 \001(\010\032;\n\007Website\022\030\n\020ma" - + "in_page_suffix\030\001 \001(\t\022\026\n\016not_found_page\030\002" - + " \001(\t\032/\n\025CustomPlacementConfig\022\026\n\016data_lo" - + "cations\030\001 \003(\t\032R\n\tAutoclass\022\017\n\007enabled\030\001 " - + "\001(\010\0224\n\013toggle_time\030\002 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:G\352AD\n\035storage.g" - + "oogleapis.com/Bucket\022#projects/{project}" - + "/buckets/{bucket}\"\316\001\n\023BucketAccessContro" - + "l\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\027\n\nentity_alt\030\t \001(\tB\003\340A\003\022\021\n\tentity_i" - + "d\030\004 \001(\t\022\014\n\004etag\030\010 \001(\t\022\r\n\005email\030\005 \001(\t\022\016\n\006" - + "domain\030\006 \001(\t\0224\n\014project_team\030\007 \001(\0132\036.goo" - + "gle.storage.v2.ProjectTeam\"B\n\017Checksumme" - + "dData\022\017\n\007content\030\001 \001(\014\022\023\n\006crc32c\030\002 \001(\007H\000" - + "\210\001\001B\t\n\007_crc32c\"C\n\017ObjectChecksums\022\023\n\006crc" - + "32c\030\001 \001(\007H\000\210\001\001\022\020\n\010md5_hash\030\002 \001(\014B\t\n\007_crc" - + "32c\"\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+cloudresourcemanager.googleap" - + "is.com/Project\022\"\n\025service_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\022" - + "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022\014\n\004etag\030\010 \001(\t\"\247\003\n\022Notifica" - + "tionConfig\022\021\n\004name\030\001 \001(\tB\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_attributes\030\004 \003(\0132;.google" - + ".storage.v2.NotificationConfig.CustomAtt" - + "ributesEntry\022\032\n\022object_name_prefix\030\005 \001(\t" - + "\022\033\n\016payload_format\030\006 \001(\tB\003\340A\002\0327\n\025CustomA" - + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001:}\352Az\n)storage.googleapis.com/Noti" - + "ficationConfig\022Mprojects/{project}/bucke" - + "ts/{bucket}/notificationConfigs/{notific" - + "ation_config}\"L\n\022CustomerEncryption\022\034\n\024e" - + "ncryption_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.googl" - + "eapis.com/Bucket\022\014\n\004etag\030\033 \001(\t\022\027\n\ngenera" - + "tion\030\003 \001(\003B\003\340A\005\022\033\n\016metageneration\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_encoding\030\007 \001(\t\022\033\n\023cont" - + "ent_disposition\030\010 \001(\t\022\025\n\rcache_control\030\t" - + " \001(\t\0223\n\003acl\030\n \003(\0132&.google.storage.v2.Ob" - + "jectAccessControl\022\030\n\020content_language\030\013 " - + "\001(\t\0224\n\013delete_time\030\014 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022\024\n\014content_type\030\r \001(\t\022" - + "4\n\013create_time\030\016 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022\034\n\017component_count\030\017 \001(\005B\003" - + "\340A\003\022:\n\tchecksums\030\020 \001(\0132\".google.storage." - + "v2.ObjectChecksumsB\003\340A\003\0224\n\013update_time\030\021" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0227\n" - + "\007kms_key\030\022 \001(\tB&\372A#\n!cloudkms.googleapis" - + ".com/CryptoKey\022B\n\031update_storage_class_t" - + "ime\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022\026\n\016temporary_hold\030\024 \001(\010\0229\n\025retention_" - + "expire_time\030\025 \001(\0132\032.google.protobuf.Time" - + "stamp\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_encryp" - + "tion\030\031 \001(\0132%.google.storage.v2.CustomerE" - + "ncryption\022/\n\013custom_time\030\032 \001(\0132\032.google.", - "protobuf.Timestamp\032/\n\rMetadataEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\023\n\021_event_ba" - + "sed_hold\"\316\001\n\023ObjectAccessControl\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\027\n\nen" - + "tity_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.stora" - + "ge.v2.ProjectTeam\"l\n\023ListObjectsResponse" - + "\022*\n\007objects\030\001 \003(\0132\031.google.storage.v2.Ob" - + "ject\022\020\n\010prefixes\030\002 \003(\t\022\027\n\017next_page_toke" - + "n\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\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\014ContentRang" - + "e\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\022\027\n\017complet" - + "e_length\030\003 \001(\0032\230&\n\007Storage\022r\n\014DeleteBuck" - + "et\022&.google.storage.v2.DeleteBucketReque" - + "st\032\026.google.protobuf.Empty\"\"\212\323\344\223\002\025\022\023\n\004na" - + "me\022\013{bucket=**}\332A\004name\022o\n\tGetBucket\022#.go" - + "ogle.storage.v2.GetBucketRequest\032\031.googl" - + "e.storage.v2.Bucket\"\"\212\323\344\223\002\025\022\023\n\004name\022\013{bu" - + "cket=**}\332A\004name\022\253\001\n\014CreateBucket\022&.googl" - + "e.storage.v2.CreateBucketRequest\032\031.googl" - + "e.storage.v2.Bucket\"X\212\323\344\223\0028\022\026\n\006parent\022\014{" - + "project=**}\022\036\n\016bucket.project\022\014{project=" - + "**}\332A\027parent,bucket,bucket_id\022\205\001\n\013ListBu" - + "ckets\022%.google.storage.v2.ListBucketsReq" - + "uest\032&.google.storage.v2.ListBucketsResp" - + "onse\"\'\212\323\344\223\002\030\022\026\n\006parent\022\014{project=**}\332A\006p" - + "arent\022\223\001\n\031LockBucketRetentionPolicy\0223.go" - + "ogle.storage.v2.LockBucketRetentionPolic" - + "yRequest\032\031.google.storage.v2.Bucket\"&\212\323\344" - + "\223\002\027\022\025\n\006bucket\022\013{bucket=**}\332A\006bucket\022\253\001\n\014" - + "GetIamPolicy\022\".google.iam.v1.GetIamPolic" - + "yRequest\032\025.google.iam.v1.Policy\"`\212\323\344\223\002O\022" - + "\027\n\010resource\022\013{bucket=**}\0224\n\010resource\022({b" - + "ucket=projects/*/buckets/*}/objects/**\332A" - + "\010resource\022\262\001\n\014SetIamPolicy\022\".google.iam." - + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" - + "olicy\"g\212\323\344\223\002O\022\027\n\010resource\022\013{bucket=**}\0224" - + "\n\010resource\022({bucket=projects/*/buckets/*" - + "}/objects/**\332A\017resource,policy\022\327\001\n\022TestI" - + "amPermissions\022(.google.iam.v1.TestIamPer" - + "missionsRequest\032).google.iam.v1.TestIamP" - + "ermissionsResponse\"l\212\323\344\223\002O\022\027\n\010resource\022\013" - + "{bucket=**}\0224\n\010resource\022({bucket=project" - + "s/*/buckets/*}/objects/**\332A\024resource,per" - + "missions\022\212\001\n\014UpdateBucket\022&.google.stora" - + "ge.v2.UpdateBucketRequest\032\031.google.stora" - + "ge.v2.Bucket\"7\212\323\344\223\002\034\022\032\n\013bucket.name\022\013{bu" - + "cket=**}\332A\022bucket,update_mask\022\237\001\n\030Delete" - + "NotificationConfig\0222.google.storage.v2.D" - + "eleteNotificationConfigRequest\032\026.google." - + "protobuf.Empty\"7\212\323\344\223\002*\022(\n\004name\022 {bucket=" - + "projects/*/buckets/*}/**\332A\004name\022\250\001\n\025GetN" - + "otificationConfig\022/.google.storage.v2.Ge" - + "tNotificationConfigRequest\032%.google.stor" - + "age.v2.NotificationConfig\"7\212\323\344\223\002*\022(\n\004nam" - + "e\022 {bucket=projects/*/buckets/*}/**\332A\004na" - + "me\022\261\001\n\030CreateNotificationConfig\0222.google" - + ".storage.v2.CreateNotificationConfigRequ" - + "est\032%.google.storage.v2.NotificationConf" - + "ig\":\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\332A\032pare" - + "nt,notification_config\022\250\001\n\027ListNotificat" - + "ionConfigs\0221.google.storage.v2.ListNotif" - + "icationConfigsRequest\0322.google.storage.v" - + "2.ListNotificationConfigsResponse\"&\212\323\344\223\002" - + "\027\022\025\n\006parent\022\013{bucket=**}\332A\006parent\022~\n\rCom" - + "poseObject\022\'.google.storage.v2.ComposeOb" - + "jectRequest\032\031.google.storage.v2.Object\")" - + "\212\323\344\223\002#\022!\n\022destination.bucket\022\013{bucket=**" - + "}\022\230\001\n\014DeleteObject\022&.google.storage.v2.D" - + "eleteObjectRequest\032\026.google.protobuf.Emp" - + "ty\"H\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\332A\rbuck" - + "et,object\332A\030bucket,object,generation\022\272\001\n" - + "\024CancelResumableWrite\022..google.storage.v" - + "2.CancelResumableWriteRequest\032/.google.s" - + "torage.v2.CancelResumableWriteResponse\"A" - + "\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=projects/*/" - + "buckets/*}/**\332A\tupload_id\022\225\001\n\tGetObject\022" - + "#.google.storage.v2.GetObjectRequest\032\031.g" - + "oogle.storage.v2.Object\"H\212\323\344\223\002\027\022\025\n\006bucke" - + "t\022\013{bucket=**}\332A\rbucket,object\332A\030bucket," - + "object,generation\022\245\001\n\nReadObject\022$.googl" - + "e.storage.v2.ReadObjectRequest\032%.google." - + "storage.v2.ReadObjectResponse\"H\212\323\344\223\002\027\022\025\n" - + "\006bucket\022\013{bucket=**}\332A\rbucket,object\332A\030b" - + "ucket,object,generation0\001\022\214\001\n\014UpdateObje" - + "ct\022&.google.storage.v2.UpdateObjectReque" - + "st\032\031.google.storage.v2.Object\"9\212\323\344\223\002\036\022\034\n" - + "\robject.bucket\022\013{bucket=**}\332A\022object,upd" - + "ate_mask\022`\n\013WriteObject\022%.google.storage" - + ".v2.WriteObjectRequest\032&.google.storage." - + "v2.WriteObjectResponse\"\000(\001\022\204\001\n\013ListObjec" - + "ts\022%.google.storage.v2.ListObjectsReques" - + "t\032&.google.storage.v2.ListObjectsRespons" - + "e\"&\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\332A\006paren" - + "t\022\230\001\n\rRewriteObject\022\'.google.storage.v2." - + "RewriteObjectRequest\032\".google.storage.v2" - + ".RewriteResponse\":\212\323\344\223\0024\022\017\n\rsource_bucke" - + "t\022!\n\022destination_bucket\022\013{bucket=**}\022\256\001\n" - + "\023StartResumableWrite\022-.google.storage.v2" - + ".StartResumableWriteRequest\032..google.sto" - + "rage.v2.StartResumableWriteResponse\"8\212\323\344" - + "\223\0022\0220\n!write_object_spec.resource.bucket" - + "\022\013{bucket=**}\022\256\001\n\020QueryWriteStatus\022*.goo" - + "gle.storage.v2.QueryWriteStatusRequest\032+" - + ".google.storage.v2.QueryWriteStatusRespo" - + "nse\"A\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=projec" - + "ts/*/buckets/*}/**\332A\tupload_id\022\200\001\n\021GetSe" - + "rviceAccount\022+.google.storage.v2.GetServ" - + "iceAccountRequest\032!.google.storage.v2.Se" - + "rviceAccount\"\033\212\323\344\223\002\013\022\t\n\007project\332A\007projec" - + "t\022\225\001\n\rCreateHmacKey\022\'.google.storage.v2." - + "CreateHmacKeyRequest\032(.google.storage.v2" - + ".CreateHmacKeyResponse\"1\212\323\344\223\002\013\022\t\n\007projec" - + "t\332A\035project,service_account_email\022w\n\rDel" - + "eteHmacKey\022\'.google.storage.v2.DeleteHma" - + "cKeyRequest\032\026.google.protobuf.Empty\"%\212\323\344" - + "\223\002\013\022\t\n\007project\332A\021access_id,project\022}\n\nGe" - + "tHmacKey\022$.google.storage.v2.GetHmacKeyR" - + "equest\032\".google.storage.v2.HmacKeyMetada" - + "ta\"%\212\323\344\223\002\013\022\t\n\007project\332A\021access_id,projec" - + "t\022|\n\014ListHmacKeys\022&.google.storage.v2.Li" - + "stHmacKeysRequest\032\'.google.storage.v2.Li" - + "stHmacKeysResponse\"\033\212\323\344\223\002\013\022\t\n\007project\332A\007" - + "project\022\235\001\n\rUpdateHmacKey\022\'.google.stora" - + "ge.v2.UpdateHmacKeyRequest\032\".google.stor" - + "age.v2.HmacKeyMetadata\"?\212\323\344\223\002\"\022 \n\020hmac_k" - + "ey.project\022\014{project=**}\332A\024hmac_key,upda" - + "te_mask\032\247\002\312A\026storage.googleapis.com\322A\212\002h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform,https://www.googleapis.com/auth/cl" - + "oud-platform.read-only,https://www.googl" - + "eapis.com/auth/devstorage.full_control,h" - + "ttps://www.googleapis.com/auth/devstorag" - + "e.read_only,https://www.googleapis.com/a" - + "uth/devstorage.read_writeB\334\001\n\025com.google" - + ".storage.v2B\014StorageProtoP\001Z8google.gola" - + "ng.org/genproto/googleapis/storage/v2;st" - + "orage\352Ax\n!cloudkms.googleapis.com/Crypto" - + "Key\022Sprojects/{project}/locations/{locat" - + "ion}/keyRings/{key_ring}/cryptoKeys/{cry" - + "pto_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_CancelResumableWriteRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - 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(15); - 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(16); - 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(17); - 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", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "CommonObjectRequestParams", - "ReadMask", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "ReadMask", - }); - internal_static_google_storage_v2_ReadObjectResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - 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(19); - 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(20); - 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(21); - 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_ListObjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - 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", - "ReadMask", - }); - internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - 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(24); - 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(25); - 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(26); - 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(27); - 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(28); - 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(29); - 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(30); - 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(31); - 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(32); - 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(33); - 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(34); - 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(35); - 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(36); - 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(37); - 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(38); - 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(39); - 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(40); - 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", - }); - 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_Versioning_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(7); - 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(8); - 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(9); - 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(10); - 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", - }); - internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(11); - 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(41); - 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(42); - 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(43); - 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(44); - 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(45); - 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(46); - 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(47); - 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(48); - 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(49); - 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(50); - 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(51); - 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(52); - 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(53); - 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) -} From ea21b84c01609a17069476a8ca9ffa38bd328616 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 30 Mar 2023 01:18:23 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../com/google/storage/v2/StorageClient.java | 0 .../google/storage/v2/StorageSettings.java | 1 - .../com/google/storage/v2/package-info.java | 0 .../v2/stub/GrpcStorageCallableFactory.java | 0 .../storage/v2/stub/GrpcStorageStub.java | 1 - .../google/storage/v2/stub/StorageStub.java | 0 .../storage/v2/stub/StorageStubSettings.java | 0 .../com/google/storage/v2/gapic_metadata.json | 0 .../com/google/storage/v2/MockStorage.java | 0 .../google/storage/v2/MockStorageImpl.java | 0 .../google/storage/v2/StorageClientTest.java | 0 .../com/google/storage/v2/StorageGrpc.java | 2781 +++-- .../com/google/storage/v2/gapic_metadata.json | 108 - ...CancelResumableWriteResponseOrBuilder.java | 9 - ...ateNotificationConfigRequestOrBuilder.java | 56 - ...eteNotificationConfigRequestOrBuilder.java | 29 - ...GetNotificationConfigRequestOrBuilder.java | 33 - .../v2/GetServiceAccountRequestOrBuilder.java | 31 - ...BucketRetentionPolicyRequestOrBuilder.java | 40 - .../storage/v2/ServiceAccountOrBuilder.java | 29 - .../storage/v2/ServiceConstantsOrBuilder.java | 9 - .../com/google/storage/v2/StorageProto.java | 1426 --- .../java/com/google/storage/v2/Bucket.java | 9850 +++++++++++------ .../storage/v2/BucketAccessControl.java | 922 +- .../v2/BucketAccessControlOrBuilder.java | 98 +- .../com/google/storage/v2/BucketName.java | 0 .../google/storage/v2/BucketOrBuilder.java | 314 +- .../v2/CancelResumableWriteRequest.java | 325 +- .../CancelResumableWriteRequestOrBuilder.java | 27 +- .../v2/CancelResumableWriteResponse.java | 251 +- ...CancelResumableWriteResponseOrBuilder.java | 24 + .../google/storage/v2/ChecksummedData.java | 314 +- .../storage/v2/ChecksummedDataOrBuilder.java | 27 +- .../storage/v2/CommonObjectRequestParams.java | 396 +- .../CommonObjectRequestParamsOrBuilder.java | 33 +- .../storage/v2/ComposeObjectRequest.java | 1994 ++-- .../v2/ComposeObjectRequestOrBuilder.java | 96 +- .../com/google/storage/v2/ContentRange.java | 350 +- .../storage/v2/ContentRangeOrBuilder.java | 27 +- .../storage/v2/CreateBucketRequest.java | 651 +- .../v2/CreateBucketRequestOrBuilder.java | 70 +- .../storage/v2/CreateHmacKeyRequest.java | 418 +- .../v2/CreateHmacKeyRequestOrBuilder.java | 44 +- .../storage/v2/CreateHmacKeyResponse.java | 376 +- .../v2/CreateHmacKeyResponseOrBuilder.java | 29 +- .../v2/CreateNotificationConfigRequest.java | 506 +- ...ateNotificationConfigRequestOrBuilder.java | 95 + .../com/google/storage/v2/CryptoKeyName.java | 0 .../google/storage/v2/CustomerEncryption.java | 348 +- .../v2/CustomerEncryptionOrBuilder.java | 30 +- .../storage/v2/DeleteBucketRequest.java | 430 +- .../v2/DeleteBucketRequestOrBuilder.java | 47 +- .../storage/v2/DeleteHmacKeyRequest.java | 418 +- .../v2/DeleteHmacKeyRequestOrBuilder.java | 44 +- .../v2/DeleteNotificationConfigRequest.java | 359 +- ...eteNotificationConfigRequestOrBuilder.java | 54 + .../storage/v2/DeleteObjectRequest.java | 739 +- .../v2/DeleteObjectRequestOrBuilder.java | 79 +- .../google/storage/v2/GetBucketRequest.java | 505 +- .../storage/v2/GetBucketRequestOrBuilder.java | 55 +- .../google/storage/v2/GetHmacKeyRequest.java | 415 +- .../v2/GetHmacKeyRequestOrBuilder.java | 44 +- .../v2/GetNotificationConfigRequest.java | 353 +- ...GetNotificationConfigRequestOrBuilder.java | 58 + .../google/storage/v2/GetObjectRequest.java | 814 +- .../storage/v2/GetObjectRequestOrBuilder.java | 87 +- .../storage/v2/GetServiceAccountRequest.java | 346 +- .../v2/GetServiceAccountRequestOrBuilder.java | 56 + .../google/storage/v2/HmacKeyMetadata.java | 970 +- .../storage/v2/HmacKeyMetadataOrBuilder.java | 114 +- .../google/storage/v2/ListBucketsRequest.java | 602 +- .../v2/ListBucketsRequestOrBuilder.java | 64 +- .../storage/v2/ListBucketsResponse.java | 480 +- .../v2/ListBucketsResponseOrBuilder.java | 46 +- .../storage/v2/ListHmacKeysRequest.java | 561 +- .../v2/ListHmacKeysRequestOrBuilder.java | 59 +- .../storage/v2/ListHmacKeysResponse.java | 475 +- .../v2/ListHmacKeysResponseOrBuilder.java | 45 +- .../v2/ListNotificationConfigsRequest.java | 461 +- ...stNotificationConfigsRequestOrBuilder.java | 47 +- .../v2/ListNotificationConfigsResponse.java | 470 +- ...tNotificationConfigsResponseOrBuilder.java | 45 +- .../google/storage/v2/ListObjectsRequest.java | 890 +- .../v2/ListObjectsRequestOrBuilder.java | 97 +- .../storage/v2/ListObjectsResponse.java | 581 +- .../v2/ListObjectsResponseOrBuilder.java | 64 +- .../v2/LockBucketRetentionPolicyRequest.java | 395 +- ...BucketRetentionPolicyRequestOrBuilder.java | 68 + .../google/storage/v2/NotificationConfig.java | 937 +- .../storage/v2/NotificationConfigName.java | 0 .../v2/NotificationConfigOrBuilder.java | 111 +- .../java/com/google/storage/v2/Object.java | 2694 +++-- .../storage/v2/ObjectAccessControl.java | 922 +- .../v2/ObjectAccessControlOrBuilder.java | 98 +- .../google/storage/v2/ObjectChecksums.java | 314 +- .../storage/v2/ObjectChecksumsOrBuilder.java | 27 +- .../google/storage/v2/ObjectOrBuilder.java | 308 +- .../java/com/google/storage/v2/Owner.java | 368 +- .../com/google/storage/v2/OwnerOrBuilder.java | 36 +- .../com/google/storage/v2/ProjectName.java | 0 .../com/google/storage/v2/ProjectTeam.java | 383 +- .../storage/v2/ProjectTeamOrBuilder.java | 36 +- .../storage/v2/QueryWriteStatusRequest.java | 435 +- .../v2/QueryWriteStatusRequestOrBuilder.java | 35 +- .../storage/v2/QueryWriteStatusResponse.java | 440 +- .../v2/QueryWriteStatusResponseOrBuilder.java | 32 +- .../google/storage/v2/ReadObjectRequest.java | 890 +- .../v2/ReadObjectRequestOrBuilder.java | 93 +- .../google/storage/v2/ReadObjectResponse.java | 617 +- .../v2/ReadObjectResponseOrBuilder.java | 50 +- .../storage/v2/RewriteObjectRequest.java | 1722 ++- .../v2/RewriteObjectRequestOrBuilder.java | 198 +- .../google/storage/v2/RewriteResponse.java | 505 +- .../storage/v2/RewriteResponseOrBuilder.java | 44 +- .../com/google/storage/v2/ServiceAccount.java | 311 +- .../storage/v2/ServiceAccountOrBuilder.java | 50 + .../google/storage/v2/ServiceConstants.java | 421 +- .../storage/v2/ServiceConstantsOrBuilder.java | 24 + .../v2/StartResumableWriteRequest.java | 611 +- .../StartResumableWriteRequestOrBuilder.java | 54 +- .../v2/StartResumableWriteResponse.java | 325 +- .../StartResumableWriteResponseOrBuilder.java | 27 +- .../com/google/storage/v2/StorageProto.java | 1742 +++ .../storage/v2/UpdateBucketRequest.java | 686 +- .../v2/UpdateBucketRequestOrBuilder.java | 73 +- .../storage/v2/UpdateHmacKeyRequest.java | 475 +- .../v2/UpdateHmacKeyRequestOrBuilder.java | 46 +- .../storage/v2/UpdateObjectRequest.java | 811 +- .../v2/UpdateObjectRequestOrBuilder.java | 84 +- .../google/storage/v2/WriteObjectRequest.java | 882 +- .../v2/WriteObjectRequestOrBuilder.java | 68 +- .../storage/v2/WriteObjectResponse.java | 440 +- .../v2/WriteObjectResponseOrBuilder.java | 32 +- .../google/storage/v2/WriteObjectSpec.java | 634 +- .../storage/v2/WriteObjectSpecOrBuilder.java | 65 +- .../proto/google/storage/v2/storage.proto | 0 136 files changed, 33316 insertions(+), 19445 deletions(-) rename {owl-bot-staging/v2/gapic-google-cloud-storage-v2 => gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StorageClient.java (100%) rename {owl-bot-staging/v2/gapic-google-cloud-storage-v2 => gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StorageSettings.java (99%) rename {owl-bot-staging/v2/gapic-google-cloud-storage-v2 => gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/package-info.java (100%) rename {owl-bot-staging/v2/gapic-google-cloud-storage-v2 => gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java (100%) rename {owl-bot-staging/v2/gapic-google-cloud-storage-v2 => gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java (99%) rename {owl-bot-staging/v2/gapic-google-cloud-storage-v2 => gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/stub/StorageStub.java (100%) rename {owl-bot-staging/v2/gapic-google-cloud-storage-v2 => gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java (100%) rename {owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java => gapic-google-cloud-storage-v2/src/main/resources}/com/google/storage/v2/gapic_metadata.json (100%) rename {owl-bot-staging/v2/gapic-google-cloud-storage-v2 => gapic-google-cloud-storage-v2}/src/test/java/com/google/storage/v2/MockStorage.java (100%) rename {owl-bot-staging/v2/gapic-google-cloud-storage-v2 => gapic-google-cloud-storage-v2}/src/test/java/com/google/storage/v2/MockStorageImpl.java (100%) rename {owl-bot-staging/v2/gapic-google-cloud-storage-v2 => gapic-google-cloud-storage-v2}/src/test/java/com/google/storage/v2/StorageClientTest.java (100%) rename {owl-bot-staging/v2/grpc-google-cloud-storage-v2 => grpc-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StorageGrpc.java (50%) delete mode 100644 owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json delete mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/Bucket.java (76%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketAccessControl.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java (81%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketOrBuilder.java (88%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java (55%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java (62%) create mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ChecksummedData.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java (54%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ComposeObjectRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java (85%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ContentRange.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java (52%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateBucketRequest.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java (55%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java (61%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java (60%) create mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CryptoKeyName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CustomerEncryption.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java (54%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteBucketRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java (60%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java (53%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java (61%) create mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteObjectRequest.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java (81%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetBucketRequest.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java (53%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java (63%) create mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetObjectRequest.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java (82%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java (63%) create mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/HmacKeyMetadata.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListBucketsRequest.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListBucketsResponse.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java (60%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsRequest.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java (80%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java (63%) create mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/NotificationConfig.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/NotificationConfigName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/Object.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectAccessControl.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java (81%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectChecksums.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectOrBuilder.java (85%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/Owner.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/OwnerOrBuilder.java (53%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ProjectName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ProjectTeam.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java (51%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ReadObjectRequest.java (76%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java (85%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ReadObjectResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java (85%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteObjectRequest.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java (86%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteResponse.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java (76%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ServiceAccount.java (65%) create mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ServiceConstants.java (71%) create mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java (52%) create mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateBucketRequest.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java (82%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateObjectRequest.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java (87%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectRequest.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java (87%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectResponse.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectSpec.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java (86%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/proto/google/storage/v2/storage.proto (100%) diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java similarity index 99% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java index ab1fe71faa..74ff9b61d3 100644 --- a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java +++ b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java @@ -32,7 +32,6 @@ 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/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java similarity index 99% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java index ba739d354b..bf3d106405 100644 --- a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java +++ b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java @@ -84,7 +84,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java rename to gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/gapic_metadata.json b/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/gapic_metadata.json rename to gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java b/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java rename to gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java b/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java rename to gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java b/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java rename to gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java diff --git a/owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java b/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java similarity index 50% rename from owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java rename to grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java index 1acc947b81..a0bf535756 100644 --- a/owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java +++ b/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.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
@@ -35,981 +52,1310 @@ private StorageGrpc() {}
   public static final String SERVICE_NAME = "google.storage.v2.Storage";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getDeleteBucketMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty>
+      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 getDeleteBucketMethod() {
-    io.grpc.MethodDescriptor getDeleteBucketMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty>
+      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 getGetBucketMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.GetBucketRequest, com.google.storage.v2.Bucket>
+      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 getGetBucketMethod() {
-    io.grpc.MethodDescriptor getGetBucketMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.storage.v2.GetBucketRequest, com.google.storage.v2.Bucket>
+      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 getCreateBucketMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>
+      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 getCreateBucketMethod() {
-    io.grpc.MethodDescriptor getCreateBucketMethod;
+  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;
     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 getListBucketsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.ListBucketsRequest, com.google.storage.v2.ListBucketsResponse>
+      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 getListBucketsMethod() {
-    io.grpc.MethodDescriptor getListBucketsMethod;
+  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;
     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 getLockBucketRetentionPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.LockBucketRetentionPolicyRequest, com.google.storage.v2.Bucket>
+      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 getLockBucketRetentionPolicyMethod() {
-    io.grpc.MethodDescriptor getLockBucketRetentionPolicyMethod;
-    if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod) == null) {
+  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) {
       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 getGetIamPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
+      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 getGetIamPolicyMethod() {
-    io.grpc.MethodDescriptor getGetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
+      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 getSetIamPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
+      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 getSetIamPolicyMethod() {
-    io.grpc.MethodDescriptor getSetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
+      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 getTestIamPermissionsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
+      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 getTestIamPermissionsMethod() {
-    io.grpc.MethodDescriptor getTestIamPermissionsMethod;
+  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;
     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 getUpdateBucketMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>
+      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 getUpdateBucketMethod() {
-    io.grpc.MethodDescriptor getUpdateBucketMethod;
+  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;
     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 getDeleteNotificationConfigMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.DeleteNotificationConfigRequest, com.google.protobuf.Empty>
+      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 getDeleteNotificationConfigMethod() {
-    io.grpc.MethodDescriptor getDeleteNotificationConfigMethod;
-    if ((getDeleteNotificationConfigMethod = StorageGrpc.getDeleteNotificationConfigMethod) == null) {
+  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) {
       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 getGetNotificationConfigMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.GetNotificationConfigRequest,
+          com.google.storage.v2.NotificationConfig>
+      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 getGetNotificationConfigMethod() {
-    io.grpc.MethodDescriptor getGetNotificationConfigMethod;
+  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;
     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 getCreateNotificationConfigMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.CreateNotificationConfigRequest,
+          com.google.storage.v2.NotificationConfig>
+      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 getCreateNotificationConfigMethod() {
-    io.grpc.MethodDescriptor getCreateNotificationConfigMethod;
-    if ((getCreateNotificationConfigMethod = StorageGrpc.getCreateNotificationConfigMethod) == null) {
+  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) {
       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 getListNotificationConfigsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.ListNotificationConfigsRequest,
+          com.google.storage.v2.ListNotificationConfigsResponse>
+      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 getListNotificationConfigsMethod() {
-    io.grpc.MethodDescriptor getListNotificationConfigsMethod;
+  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;
     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 getComposeObjectMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>
+      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 getComposeObjectMethod() {
-    io.grpc.MethodDescriptor getComposeObjectMethod;
+  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;
     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 getDeleteObjectMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.DeleteObjectRequest, com.google.protobuf.Empty>
+      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 getDeleteObjectMethod() {
-    io.grpc.MethodDescriptor getDeleteObjectMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.storage.v2.DeleteObjectRequest, com.google.protobuf.Empty>
+      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 getCancelResumableWriteMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.CancelResumableWriteRequest,
+          com.google.storage.v2.CancelResumableWriteResponse>
+      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 getCancelResumableWriteMethod() {
-    io.grpc.MethodDescriptor getCancelResumableWriteMethod;
+  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;
     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 getGetObjectMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>
+      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 getGetObjectMethod() {
-    io.grpc.MethodDescriptor getGetObjectMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>
+      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 getReadObjectMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.ReadObjectRequest, com.google.storage.v2.ReadObjectResponse>
+      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 getReadObjectMethod() {
-    io.grpc.MethodDescriptor getReadObjectMethod;
+  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;
     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 getUpdateObjectMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>
+      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 getUpdateObjectMethod() {
-    io.grpc.MethodDescriptor getUpdateObjectMethod;
+  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;
     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 getWriteObjectMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.WriteObjectRequest, com.google.storage.v2.WriteObjectResponse>
+      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 getWriteObjectMethod() {
-    io.grpc.MethodDescriptor getWriteObjectMethod;
+  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;
     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 getListObjectsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.ListObjectsRequest, com.google.storage.v2.ListObjectsResponse>
+      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 getListObjectsMethod() {
-    io.grpc.MethodDescriptor getListObjectsMethod;
+  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;
     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 getRewriteObjectMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.RewriteObjectRequest, com.google.storage.v2.RewriteResponse>
+      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 getRewriteObjectMethod() {
-    io.grpc.MethodDescriptor getRewriteObjectMethod;
+  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;
     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 getStartResumableWriteMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.StartResumableWriteRequest,
+          com.google.storage.v2.StartResumableWriteResponse>
+      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 getStartResumableWriteMethod() {
-    io.grpc.MethodDescriptor getStartResumableWriteMethod;
+  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;
     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 getQueryWriteStatusMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.QueryWriteStatusRequest,
+          com.google.storage.v2.QueryWriteStatusResponse>
+      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 getQueryWriteStatusMethod() {
-    io.grpc.MethodDescriptor getQueryWriteStatusMethod;
+  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;
     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 getGetServiceAccountMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.GetServiceAccountRequest, com.google.storage.v2.ServiceAccount>
+      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 getGetServiceAccountMethod() {
-    io.grpc.MethodDescriptor getGetServiceAccountMethod;
+  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;
     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 getCreateHmacKeyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.CreateHmacKeyRequest, com.google.storage.v2.CreateHmacKeyResponse>
+      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 getCreateHmacKeyMethod() {
-    io.grpc.MethodDescriptor getCreateHmacKeyMethod;
+  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;
     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 getDeleteHmacKeyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>
+      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 getDeleteHmacKeyMethod() {
-    io.grpc.MethodDescriptor getDeleteHmacKeyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>
+      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 getGetHmacKeyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
+      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 getGetHmacKeyMethod() {
-    io.grpc.MethodDescriptor getGetHmacKeyMethod;
+  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;
     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 getListHmacKeysMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.ListHmacKeysRequest, com.google.storage.v2.ListHmacKeysResponse>
+      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 getListHmacKeysMethod() {
-    io.grpc.MethodDescriptor getListHmacKeysMethod;
+  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;
     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 getUpdateHmacKeyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.storage.v2.UpdateHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
+      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 getUpdateHmacKeyMethod() {
-    io.grpc.MethodDescriptor getUpdateHmacKeyMethod;
+  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;
     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
@@ -1034,56 +1380,77 @@ public StorageFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions ca
   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.
      * The `resource` field in the request should be
@@ -1091,12 +1458,16 @@ default void lockBucketRetentionPolicy(com.google.storage.v2.LockBucketRetention
      * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
      * 
*/ - 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.
      * The `resource` field in the request should be
@@ -1104,12 +1475,16 @@ default void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
      * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
      * 
*/ - 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.
@@ -1118,42 +1493,59 @@ default void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request,
      * projects/_/buckets/<bucket_name>/objects/<object_name> 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
@@ -1161,33 +1553,46 @@ default void getNotificationConfig(com.google.storage.v2.GetNotificationConfigRe
      * 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
@@ -1196,12 +1601,16 @@ default void composeObject(com.google.storage.v2.ComposeObjectRequest request,
      * 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); } /** + * + * *
      * Cancels an in-progress resumable upload.
      * Any attempts to write to the resumable upload after cancelling the upload
@@ -1211,43 +1620,58 @@ default void deleteObject(com.google.storage.v2.DeleteObjectRequest request,
      * 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
@@ -1302,43 +1726,59 @@ default void updateObject(com.google.storage.v2.UpdateObjectRequest request,
      */
     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);
     }
 
     /**
+     *
+     *
      * 
      * 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.
@@ -1353,74 +1793,101 @@ default void startResumableWrite(com.google.storage.v2.StartResumableWriteReques
      * 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
@@ -1442,16 +1909,17 @@ default void updateHmacKey(com.google.storage.v2.UpdateHmacKeyRequest request,
    *     any other character (no special directory semantics).
    * 
*/ - public static abstract class StorageImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static 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
@@ -1473,75 +1941,97 @@ public static abstract class StorageImplBase
    *     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.
      * The `resource` field in the request should be
@@ -1549,13 +2039,18 @@ public void lockBucketRetentionPolicy(com.google.storage.v2.LockBucketRetentionP
      * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
      * 
*/ - 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.
      * The `resource` field in the request should be
@@ -1563,13 +2058,18 @@ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
      * projects/_/buckets/<bucket_name>/objects/<object_name> for an object.
      * 
*/ - 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.
@@ -1578,46 +2078,67 @@ public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request,
      * projects/_/buckets/<bucket_name>/objects/<object_name> 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
@@ -1625,36 +2146,52 @@ public void getNotificationConfig(com.google.storage.v2.GetNotificationConfigReq
      * 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
@@ -1663,13 +2200,18 @@ public void composeObject(com.google.storage.v2.ComposeObjectRequest request,
      * 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); } /** + * + * *
      * Cancels an in-progress resumable upload.
      * Any attempts to write to the resumable upload after cancelling the upload
@@ -1679,47 +2221,64 @@ public void deleteObject(com.google.storage.v2.DeleteObjectRequest request,
      * 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
@@ -1779,42 +2338,60 @@ public io.grpc.stub.StreamObserver wri
     }
 
     /**
+     *
+     *
      * 
      * 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.
@@ -1829,81 +2406,114 @@ public void startResumableWrite(com.google.storage.v2.StartResumableWriteRequest
      * 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
@@ -1927,28 +2537,31 @@ public void updateHmacKey(com.google.storage.v2.UpdateHmacKeyRequest request,
    */
   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.
      * 
@@ -1959,36 +2572,47 @@ 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.
      * The `resource` field in the request should be
@@ -2002,6 +2626,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
     }
 
     /**
+     *
+     *
      * 
      * Updates an IAM policy for the specified bucket or object.
      * The `resource` field in the request should be
@@ -2015,6 +2641,8 @@ 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.
@@ -2023,42 +2651,54 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
      * projects/_/buckets/<bucket_name>/objects/<object_name> 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
@@ -2066,33 +2706,42 @@ public com.google.storage.v2.NotificationConfig getNotificationConfig(com.google
      * 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
@@ -2101,12 +2750,15 @@ public com.google.storage.v2.Object composeObject(com.google.storage.v2.ComposeO
      * 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); } /** + * + * *
      * Cancels an in-progress resumable upload.
      * Any attempts to write to the resumable upload after cancelling the upload
@@ -2116,12 +2768,15 @@ public com.google.protobuf.Empty deleteObject(com.google.storage.v2.DeleteObject
      * 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.
      * 
@@ -2132,6 +2787,8 @@ public com.google.storage.v2.Object getObject(com.google.storage.v2.GetObjectReq } /** + * + * *
      * Reads an object's data.
      * 
@@ -2143,50 +2800,64 @@ 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.
@@ -2201,67 +2872,86 @@ public com.google.storage.v2.StartResumableWriteResponse startResumableWrite(com
      * 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); } @@ -2269,6 +2959,7 @@ public com.google.storage.v2.HmacKeyMetadata updateHmacKey(com.google.storage.v2 /** * 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
@@ -2292,73 +2983,84 @@ public com.google.storage.v2.HmacKeyMetadata updateHmacKey(com.google.storage.v2
    */
   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 listBuckets( - com.google.storage.v2.ListBucketsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.ListBucketsResponse> + 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.
      * The `resource` field in the request should be
@@ -2366,13 +3068,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    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.
      * The `resource` field in the request should be
@@ -2380,13 +3084,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    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.
@@ -2395,46 +3101,56 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture testIamPermissions(
-        com.google.iam.v1.TestIamPermissionsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.iam.v1.TestIamPermissionsResponse>
+        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 getNotificationConfig( - com.google.storage.v2.GetNotificationConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.NotificationConfig> + 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
@@ -2442,36 +3158,44 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createNotificationConfig(
-        com.google.storage.v2.CreateNotificationConfigRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.storage.v2.NotificationConfig>
+        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 listNotificationConfigs( - com.google.storage.v2.ListNotificationConfigsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.ListNotificationConfigsResponse> + 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
@@ -2480,13 +3204,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    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);
     }
 
     /**
+     *
+     *
      * 
      * Cancels an in-progress resumable upload.
      * Any attempts to write to the resumable upload after cancelling the upload
@@ -2496,72 +3222,87 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture cancelResumableWrite(
-        com.google.storage.v2.CancelResumableWriteRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.storage.v2.CancelResumableWriteResponse>
+        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 listObjects( - com.google.storage.v2.ListObjectsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.ListObjectsResponse> + 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 startResumableWrite( - com.google.storage.v2.StartResumableWriteRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.StartResumableWriteResponse> + 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.
@@ -2576,74 +3317,89 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture queryWriteStatus(
-        com.google.storage.v2.QueryWriteStatusRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.storage.v2.QueryWriteStatusResponse>
+        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 createHmacKey( - com.google.storage.v2.CreateHmacKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.CreateHmacKeyResponse> + 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 listHmacKeys( - com.google.storage.v2.ListHmacKeysRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.v2.ListHmacKeysResponse> + 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); } @@ -2680,11 +3436,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -2698,120 +3454,164 @@ private static final class MethodHandlers implements 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_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(); @@ -2824,8 +3624,10 @@ 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); default: throw new AssertionError(); } @@ -2835,220 +3637,197 @@ 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< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - service, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_GET_IAM_POLICY))) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - service, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + 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( - 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( - 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 static abstract class StorageBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class StorageBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { StorageBaseDescriptorSupplier() {} @java.lang.Override @@ -3062,13 +3841,11 @@ 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 String methodName; @@ -3090,39 +3867,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(getCancelResumableWriteMethod()) - .addMethod(getGetObjectMethod()) - .addMethod(getReadObjectMethod()) - .addMethod(getUpdateObjectMethod()) - .addMethod(getWriteObjectMethod()) - .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(getCancelResumableWriteMethod()) + .addMethod(getGetObjectMethod()) + .addMethod(getReadObjectMethod()) + .addMethod(getUpdateObjectMethod()) + .addMethod(getWriteObjectMethod()) + .addMethod(getListObjectsMethod()) + .addMethod(getRewriteObjectMethod()) + .addMethod(getStartResumableWriteMethod()) + .addMethod(getQueryWriteStatusMethod()) + .addMethod(getGetServiceAccountMethod()) + .addMethod(getCreateHmacKeyMethod()) + .addMethod(getDeleteHmacKeyMethod()) + .addMethod(getGetHmacKeyMethod()) + .addMethod(getListHmacKeysMethod()) + .addMethod(getUpdateHmacKeyMethod()) + .build(); } } } 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 deleted file mode 100644 index 830838b068..0000000000 --- a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "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": { - "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"] - }, - "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/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 deleted file mode 100644 index 628c157424..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// 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/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 deleted file mode 100644 index 2fd4aa2bf8..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// 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/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 deleted file mode 100644 index 89261935e5..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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/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 deleted file mode 100644 index 9f675dd1b4..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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/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 deleted file mode 100644 index 443452a5ec..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/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 deleted file mode 100644 index a8d33e2468..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// 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/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 deleted file mode 100644 index 731dee3983..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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/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 deleted file mode 100644 index f31d3698f7..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// 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/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 deleted file mode 100644 index 4bacb64f9e..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java +++ /dev/null @@ -1,1426 +0,0 @@ -// 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_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_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_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\"5\n\033CancelResumable" + - "WriteRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002\"\036\n\034" + - "CancelResumableWriteResponse\"\272\004\n\021ReadObj" + - "ectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035stor" + - "age.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_offse" + - "t\030\004 \001(\003\022\022\n\nread_limit\030\005 \001(\003\022 \n\023if_genera" + - "tion_match\030\006 \001(\003H\000\210\001\001\022$\n\027if_generation_n" + - "ot_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_n" + - "ot_match\030\t \001(\003H\003\210\001\001\022R\n\034common_object_req" + - "uest_params\030\n \001(\0132,.google.storage.v2.Co" + - "mmonObjectRequestParams\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_generation_no" + - "t_matchB\032\n\030_if_metageneration_matchB\036\n\034_" + - "if_metageneration_not_matchB\014\n\n_read_mas" + - "k\"\220\004\n\020GetObjectRequest\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\340A\002\022\022\n\ngeneration\030\003 \001(\003\022 " + - "\n\023if_generation_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_g" + - "eneration_not_match\030\005 \001(\003H\001\210\001\001\022$\n\027if_met" + - "ageneration_match\030\006 \001(\003H\002\210\001\001\022(\n\033if_metag" + - "eneration_not_match\030\007 \001(\003H\003\210\001\001\022R\n\034common" + - "_object_request_params\030\010 \001(\0132,.google.st" + - "orage.v2.CommonObjectRequestParams\0222\n\tre" + - "ad_mask\030\n \001(\0132\032.google.protobuf.FieldMas" + - "kH\004\210\001\001B\026\n\024_if_generation_matchB\032\n\030_if_ge" + - "neration_not_matchB\032\n\030_if_metageneration" + - "_matchB\036\n\034_if_metageneration_not_matchB\014" + - "\n\n_read_mask\"\365\001\n\022ReadObjectResponse\022<\n\020c" + - "hecksummed_data\030\001 \001(\0132\".google.storage.v" + - "2.ChecksummedData\022<\n\020object_checksums\030\002 " + - "\001(\0132\".google.storage.v2.ObjectChecksums\022" + - "6\n\rcontent_range\030\003 \001(\0132\037.google.storage." + - "v2.ContentRange\022+\n\010metadata\030\004 \001(\0132\031.goog" + - "le.storage.v2.Object\"\215\003\n\017WriteObjectSpec" + - "\0220\n\010resource\030\001 \001(\0132\031.google.storage.v2.O" + - "bjectB\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\027if_gener" + - "ation_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_metagen" + - "eration_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_metagener" + - "ation_not_match\030\006 \001(\003H\003\210\001\001\022\030\n\013object_siz" + - "e\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_metagene" + - "ration_matchB\036\n\034_if_metageneration_not_m" + - "atchB\016\n\014_object_size\"\206\003\n\022WriteObjectRequ" + - "est\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_object" + - "_spec\030\002 \001(\0132\".google.storage.v2.WriteObj" + - "ectSpecH\000\022\031\n\014write_offset\030\003 \001(\003B\003\340A\002\022>\n\020" + - "checksummed_data\030\004 \001(\0132\".google.storage." + - "v2.ChecksummedDataH\001\022<\n\020object_checksums" + - "\030\006 \001(\0132\".google.storage.v2.ObjectChecksu" + - "ms\022\024\n\014finish_write\030\007 \001(\010\022R\n\034common_objec" + - "t_request_params\030\010 \001(\0132,.google.storage." + - "v2.CommonObjectRequestParamsB\017\n\rfirst_me" + - "ssageB\006\n\004data\"n\n\023WriteObjectResponse\022\030\n\016" + - "persisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\013" + - "2\031.google.storage.v2.ObjectH\000B\016\n\014write_s" + - "tatus\"\317\002\n\022ListObjectsRequest\0225\n\006parent\030\001" + - " \001(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Buc" + - "ket\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_trailin" + - "g_delimiter\030\005 \001(\010\022\016\n\006prefix\030\006 \001(\t\022\020\n\010ver" + - "sions\030\007 \001(\010\0222\n\tread_mask\030\010 \001(\0132\032.google." + - "protobuf.FieldMaskH\000\210\001\001\022 \n\023lexicographic" + - "_start\030\n \001(\tB\003\340A\001\022\036\n\021lexicographic_end\030\013" + - " \001(\tB\003\340A\001B\014\n\n_read_mask\"\205\001\n\027QueryWriteSt" + - "atusRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002\022R\n\034c" + - "ommon_object_request_params\030\002 \001(\0132,.goog" + - "le.storage.v2.CommonObjectRequestParams\"" + - "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\020destination_nam" + - "e\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.googleapis.com/B" + - "ucket\022C\n\023destination_kms_key\030\033 \001(\tB&\372A#\n" + - "!cloudkms.googleapis.com/CryptoKey\022.\n\013de" + - "stination\030\001 \001(\0132\031.google.storage.v2.Obje" + - "ct\022<\n\rsource_bucket\030\002 \001(\tB%\340A\002\372A\037\n\035stora" + - "ge.googleapis.com/Bucket\022\032\n\rsource_objec" + - "t\030\003 \001(\tB\003\340A\002\022\031\n\021source_generation\030\004 \001(\003\022" + - "\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032destination_pr" + - "edefined_acl\030\034 \001(\t\022 \n\023if_generation_matc" + - "h\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_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_generation_match" + - "\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_generation_not_" + - "match\030\014 \001(\003H\005\210\001\001\022+\n\036if_source_metagenera" + - "tion_match\030\r \001(\003H\006\210\001\001\022/\n\"if_source_metag" + - "eneration_not_match\030\016 \001(\003H\007\210\001\001\022$\n\034max_by" + - "tes_rewritten_per_call\030\017 \001(\003\022(\n copy_sou" + - "rce_encryption_algorithm\030\020 \001(\t\022(\n copy_s" + - "ource_encryption_key_bytes\030\025 \001(\014\022/\n\'copy" + - "_source_encryption_key_sha256_bytes\030\026 \001(" + - "\014\022R\n\034common_object_request_params\030\023 \001(\0132" + - ",.google.storage.v2.CommonObjectRequestP" + - "arams\022<\n\020object_checksums\030\035 \001(\0132\".google" + - ".storage.v2.ObjectChecksumsB\026\n\024_if_gener" + - "ation_matchB\032\n\030_if_generation_not_matchB" + - "\032\n\030_if_metageneration_matchB\036\n\034_if_metag" + - "eneration_not_matchB\035\n\033_if_source_genera" + - "tion_matchB!\n\037_if_source_generation_not_" + - "matchB!\n\037_if_source_metageneration_match" + - "B%\n#_if_source_metageneration_not_match\"" + - "\227\001\n\017RewriteResponse\022\035\n\025total_bytes_rewri" + - "tten\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.Object\"\362\001\n\032St" + - "artResumableWriteRequest\022B\n\021write_object" + - "_spec\030\001 \001(\0132\".google.storage.v2.WriteObj" + - "ectSpecB\003\340A\002\022R\n\034common_object_request_pa" + - "rams\030\003 \001(\0132,.google.storage.v2.CommonObj" + - "ectRequestParams\022<\n\020object_checksums\030\005 \001" + - "(\0132\".google.storage.v2.ObjectChecksums\"0" + - "\n\033StartResumableWriteResponse\022\021\n\tupload_" + - "id\030\001 \001(\t\"\357\003\n\023UpdateObjectRequest\022.\n\006obje" + - "ct\030\001 \001(\0132\031.google.storage.v2.ObjectB\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_m" + - "etageneration_match\030\004 \001(\003H\002\210\001\001\022(\n\033if_met" + - "ageneration_not_match\030\005 \001(\003H\003\210\001\001\022\026\n\016pred" + - "efined_acl\030\n \001(\t\0224\n\013update_mask\030\007 \001(\0132\032." + - "google.protobuf.FieldMaskB\003\340A\002\022R\n\034common" + - "_object_request_params\030\010 \001(\0132,.google.st" + - "orage.v2.CommonObjectRequestParamsB\026\n\024_i" + - "f_generation_matchB\032\n\030_if_generation_not" + - "_matchB\032\n\030_if_metageneration_matchB\036\n\034_i" + - "f_metageneration_not_match\"`\n\030GetService" + - "AccountRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" + - "+cloudresourcemanager.googleapis.com/Pro" + - "ject\"\200\001\n\024CreateHmacKeyRequest\022D\n\007project" + - "\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goo" + - "gleapis.com/Project\022\"\n\025service_account_e" + - "mail\030\002 \001(\tB\003\340A\002\"g\n\025CreateHmacKeyResponse" + - "\0224\n\010metadata\030\001 \001(\0132\".google.storage.v2.H" + - "macKeyMetadata\022\030\n\020secret_key_bytes\030\003 \001(\014" + - "\"t\n\024DeleteHmacKeyRequest\022\026\n\taccess_id\030\001 " + - "\001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-\n+cloud" + - "resourcemanager.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+cloudresou" + - "rcemanager.googleapis.com/Project\"\274\001\n\023Li" + - "stHmacKeysRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372" + - "A-\n+cloudresourcemanager.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_account_email\030\004 \001(\t\022\031\n" + - "\021show_deleted_keys\030\005 \001(\010\"f\n\024ListHmacKeys" + - "Response\0225\n\thmac_keys\030\001 \003(\0132\".google.sto" + - "rage.v2.HmacKeyMetadata\022\027\n\017next_page_tok" + - "en\030\002 \001(\t\"\202\001\n\024UpdateHmacKeyRequest\0229\n\010hma" + - "c_key\030\001 \001(\0132\".google.storage.v2.HmacKeyM" + - "etadataB\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.goog" + - "le.protobuf.FieldMask\"|\n\031CommonObjectReq" + - "uestParams\022\034\n\024encryption_algorithm\030\001 \001(\t" + - "\022\034\n\024encryption_key_bytes\030\004 \001(\014\022#\n\033encryp" + - "tion_key_sha256_bytes\030\005 \001(\014\"\312\005\n\020ServiceC" + - "onstants\"\265\005\n\006Values\022\026\n\022VALUES_UNSPECIFIE" + - "D\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_SIZ" + - "E_MB\020\200\200\300\002\022)\n$MAX_CUSTOM_METADATA_FIELD_N" + - "AME_BYTES\020\200\010\022*\n%MAX_CUSTOM_METADATA_FIEL" + - "D_VALUE_BYTES\020\200 \022)\n$MAX_CUSTOM_METADATA_" + - "TOTAL_SIZE_BYTES\020\200@\022*\n$MAX_BUCKET_METADA" + - "TA_TOTAL_SIZE_BYTES\020\200\240\001\022\'\n#MAX_NOTIFICAT" + - "ION_CONFIGS_PER_BUCKET\020d\022\"\n\036MAX_LIFECYCL" + - "E_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_N" + - "OTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGT" + - "H\020\200\010\022\034\n\030MAX_LABELS_ENTRIES_COUNT\020@\022\037\n\033MA" + - "X_LABELS_KEY_VALUE_LENGTH\020?\022\037\n\032MAX_LABEL" + - "S_KEY_VALUE_BYTES\020\200\001\022.\n)MAX_OBJECT_IDS_P" + - "ER_DELETE_OBJECTS_REQUEST\020\350\007\022\036\n\032SPLIT_TO" + - "KEN_MAX_VALID_DAYS\020\016\032\002\020\001\"\322\027\n\006Bucket\022\021\n\004n" + - "ame\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(\tB3\340A\005\372A-\n+c" + - "loudresourcemanager.googleapis.com/Proje" + - "ct\022\033\n\016metageneration\030\004 \001(\003B\003\340A\003\022\025\n\010locat" + - "ion\030\005 \001(\tB\003\340A\005\022\032\n\rlocation_type\030\006 \001(\tB\003\340" + - "A\003\022\025\n\rstorage_class\030\007 \001(\t\022\013\n\003rpo\030\033 \001(\t\0223" + - "\n\003acl\030\010 \003(\0132&.google.storage.v2.BucketAc" + - "cessControl\022B\n\022default_object_acl\030\t \003(\0132" + - "&.google.storage.v2.ObjectAccessControl\022" + - "6\n\tlifecycle\030\n \001(\0132#.google.storage.v2.B" + - "ucket.Lifecycle\0224\n\013create_time\030\013 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\022,\n\004cors\030\014 " + - "\003(\0132\036.google.storage.v2.Bucket.Cors\0224\n\013u" + - "pdate_time\030\r \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\022 \n\030default_event_based_hold\030\016 " + - "\001(\010\0225\n\006labels\030\017 \003(\0132%.google.storage.v2." + - "Bucket.LabelsEntry\0222\n\007website\030\020 \001(\0132!.go" + - "ogle.storage.v2.Bucket.Website\0228\n\nversio" + - "ning\030\021 \001(\0132$.google.storage.v2.Bucket.Ve" + - "rsioning\0222\n\007logging\030\022 \001(\0132!.google.stora" + - "ge.v2.Bucket.Logging\022,\n\005owner\030\023 \001(\0132\030.go" + - "ogle.storage.v2.OwnerB\003\340A\003\0228\n\nencryption" + - "\030\024 \001(\0132$.google.storage.v2.Bucket.Encryp" + - "tion\0222\n\007billing\030\025 \001(\0132!.google.storage.v" + - "2.Bucket.Billing\022C\n\020retention_policy\030\026 \001" + - "(\0132).google.storage.v2.Bucket.RetentionP" + - "olicy\0227\n\niam_config\030\027 \001(\0132#.google.stora" + - "ge.v2.Bucket.IamConfig\022\025\n\rsatisfies_pzs\030" + - "\031 \001(\010\022P\n\027custom_placement_config\030\032 \001(\0132/" + - ".google.storage.v2.Bucket.CustomPlacemen" + - "tConfig\0226\n\tautoclass\030\034 \001(\0132#.google.stor" + - "age.v2.Bucket.Autoclass\032!\n\007Billing\022\026\n\016re" + - "quester_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\nEncrypti" + - "on\022?\n\017default_kms_key\030\001 \001(\tB&\372A#\n!cloudk" + - "ms.googleapis.com/CryptoKey\032\354\001\n\tIamConfi" + - "g\022a\n\033uniform_bucket_level_access\030\001 \001(\0132<" + - ".google.storage.v2.Bucket.IamConfig.Unif" + - "ormBucketLevelAccess\022 \n\030public_access_pr" + - "evention\030\003 \001(\t\032Z\n\030UniformBucketLevelAcce" + - "ss\022\017\n\007enabled\030\001 \001(\010\022-\n\tlock_time\030\002 \001(\0132\032" + - ".google.protobuf.Timestamp\032\363\005\n\tLifecycle" + - "\0226\n\004rule\030\001 \003(\0132(.google.storage.v2.Bucke" + - "t.Lifecycle.Rule\032\255\005\n\004Rule\022?\n\006action\030\001 \001(" + - "\0132/.google.storage.v2.Bucket.Lifecycle.R" + - "ule.Action\022E\n\tcondition\030\002 \001(\01322.google.s" + - "torage.v2.Bucket.Lifecycle.Rule.Conditio" + - "n\032-\n\006Action\022\014\n\004type\030\001 \001(\t\022\025\n\rstorage_cla" + - "ss\030\002 \001(\t\032\355\003\n\tCondition\022\025\n\010age_days\030\001 \001(\005" + - "H\000\210\001\001\022)\n\016created_before\030\002 \001(\0132\021.google.t" + - "ype.Date\022\024\n\007is_live\030\003 \001(\010H\001\210\001\001\022\037\n\022num_ne" + - "wer_versions\030\004 \001(\005H\002\210\001\001\022\035\n\025matches_stora" + - "ge_class\030\005 \003(\t\022#\n\026days_since_custom_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_noncurr" + - "ent_time\030\t \001(\005H\004\210\001\001\0221\n\026noncurrent_time_b" + - "efore\030\n \001(\0132\021.google.type.Date\022\026\n\016matche" + - "s_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_ve" + - "rsionsB\031\n\027_days_since_custom_timeB\035\n\033_da" + - "ys_since_noncurrent_time\0328\n\007Logging\022\022\n\nl" + - "og_bucket\030\001 \001(\t\022\031\n\021log_object_prefix\030\002 \001" + - "(\t\032\217\001\n\017RetentionPolicy\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.protobuf.Duration\032\035\n\nVersioni" + - "ng\022\017\n\007enabled\030\001 \001(\010\032;\n\007Website\022\030\n\020main_p" + - "age_suffix\030\001 \001(\t\022\026\n\016not_found_page\030\002 \001(\t" + - "\032/\n\025CustomPlacementConfig\022\026\n\016data_locati" + - "ons\030\001 \003(\t\032R\n\tAutoclass\022\017\n\007enabled\030\001 \001(\010\022" + - "4\n\013toggle_time\030\002 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001:G\352AD\n\035storage.googl" + - "eapis.com/Bucket\022#projects/{project}/buc" + - "kets/{bucket}\"\316\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" + - "\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\006doma" + - "in\030\006 \001(\t\0224\n\014project_team\030\007 \001(\0132\036.google." + - "storage.v2.ProjectTeam\"F\n\017ChecksummedDat" + - "a\022\023\n\007content\030\001 \001(\014B\002\010\001\022\023\n\006crc32c\030\002 \001(\007H\000" + - "\210\001\001B\t\n\007_crc32c\"C\n\017ObjectChecksums\022\023\n\006crc" + - "32c\030\001 \001(\007H\000\210\001\001\022\020\n\010md5_hash\030\002 \001(\014B\t\n\007_crc" + - "32c\"\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+cloudresourcemanager.googleap" + - "is.com/Project\022\"\n\025service_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\022" + - "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\022\014\n\004etag\030\010 \001(\t\"\247\003\n\022Notifica" + - "tionConfig\022\021\n\004name\030\001 \001(\tB\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_attributes\030\004 \003(\0132;.google" + - ".storage.v2.NotificationConfig.CustomAtt" + - "ributesEntry\022\032\n\022object_name_prefix\030\005 \001(\t" + - "\022\033\n\016payload_format\030\006 \001(\tB\003\340A\002\0327\n\025CustomA" + - "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001:}\352Az\n)storage.googleapis.com/Noti" + - "ficationConfig\022Mprojects/{project}/bucke" + - "ts/{bucket}/notificationConfigs/{notific" + - "ation_config}\"L\n\022CustomerEncryption\022\034\n\024e" + - "ncryption_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.googl" + - "eapis.com/Bucket\022\014\n\004etag\030\033 \001(\t\022\027\n\ngenera" + - "tion\030\003 \001(\003B\003\340A\005\022\033\n\016metageneration\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_encoding\030\007 \001(\t\022\033\n\023cont" + - "ent_disposition\030\010 \001(\t\022\025\n\rcache_control\030\t" + - " \001(\t\0223\n\003acl\030\n \003(\0132&.google.storage.v2.Ob" + - "jectAccessControl\022\030\n\020content_language\030\013 " + - "\001(\t\0224\n\013delete_time\030\014 \001(\0132\032.google.protob" + - "uf.TimestampB\003\340A\003\022\024\n\014content_type\030\r \001(\t\022" + - "4\n\013create_time\030\016 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\022\034\n\017component_count\030\017 \001(\005B\003" + - "\340A\003\022:\n\tchecksums\030\020 \001(\0132\".google.storage." + - "v2.ObjectChecksumsB\003\340A\003\0224\n\013update_time\030\021" + - " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0227\n" + - "\007kms_key\030\022 \001(\tB&\372A#\n!cloudkms.googleapis" + - ".com/CryptoKey\022B\n\031update_storage_class_t" + - "ime\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340" + - "A\003\022\026\n\016temporary_hold\030\024 \001(\010\0229\n\025retention_" + - "expire_time\030\025 \001(\0132\032.google.protobuf.Time" + - "stamp\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_encryp" + - "tion\030\031 \001(\0132%.google.storage.v2.CustomerE" + - "ncryption\022/\n\013custom_time\030\032 \001(\0132\032.google.", - "protobuf.Timestamp\032/\n\rMetadataEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\023\n\021_event_ba" + - "sed_hold\"\316\001\n\023ObjectAccessControl\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\027\n\nen" + - "tity_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.stora" + - "ge.v2.ProjectTeam\"l\n\023ListObjectsResponse" + - "\022*\n\007objects\030\001 \003(\0132\031.google.storage.v2.Ob" + - "ject\022\020\n\010prefixes\030\002 \003(\t\022\027\n\017next_page_toke" + - "n\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\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\014ContentRang" + - "e\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\022\027\n\017complet" + - "e_length\030\003 \001(\0032\230&\n\007Storage\022r\n\014DeleteBuck" + - "et\022&.google.storage.v2.DeleteBucketReque" + - "st\032\026.google.protobuf.Empty\"\"\212\323\344\223\002\025\022\023\n\004na" + - "me\022\013{bucket=**}\332A\004name\022o\n\tGetBucket\022#.go" + - "ogle.storage.v2.GetBucketRequest\032\031.googl" + - "e.storage.v2.Bucket\"\"\212\323\344\223\002\025\022\023\n\004name\022\013{bu" + - "cket=**}\332A\004name\022\253\001\n\014CreateBucket\022&.googl" + - "e.storage.v2.CreateBucketRequest\032\031.googl" + - "e.storage.v2.Bucket\"X\212\323\344\223\0028\022\026\n\006parent\022\014{" + - "project=**}\022\036\n\016bucket.project\022\014{project=" + - "**}\332A\027parent,bucket,bucket_id\022\205\001\n\013ListBu" + - "ckets\022%.google.storage.v2.ListBucketsReq" + - "uest\032&.google.storage.v2.ListBucketsResp" + - "onse\"\'\212\323\344\223\002\030\022\026\n\006parent\022\014{project=**}\332A\006p" + - "arent\022\223\001\n\031LockBucketRetentionPolicy\0223.go" + - "ogle.storage.v2.LockBucketRetentionPolic" + - "yRequest\032\031.google.storage.v2.Bucket\"&\212\323\344" + - "\223\002\027\022\025\n\006bucket\022\013{bucket=**}\332A\006bucket\022\253\001\n\014" + - "GetIamPolicy\022\".google.iam.v1.GetIamPolic" + - "yRequest\032\025.google.iam.v1.Policy\"`\212\323\344\223\002O\022" + - "\027\n\010resource\022\013{bucket=**}\0224\n\010resource\022({b" + - "ucket=projects/*/buckets/*}/objects/**\332A" + - "\010resource\022\262\001\n\014SetIamPolicy\022\".google.iam." + - "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + - "olicy\"g\212\323\344\223\002O\022\027\n\010resource\022\013{bucket=**}\0224" + - "\n\010resource\022({bucket=projects/*/buckets/*" + - "}/objects/**\332A\017resource,policy\022\327\001\n\022TestI" + - "amPermissions\022(.google.iam.v1.TestIamPer" + - "missionsRequest\032).google.iam.v1.TestIamP" + - "ermissionsResponse\"l\212\323\344\223\002O\022\027\n\010resource\022\013" + - "{bucket=**}\0224\n\010resource\022({bucket=project" + - "s/*/buckets/*}/objects/**\332A\024resource,per" + - "missions\022\212\001\n\014UpdateBucket\022&.google.stora" + - "ge.v2.UpdateBucketRequest\032\031.google.stora" + - "ge.v2.Bucket\"7\212\323\344\223\002\034\022\032\n\013bucket.name\022\013{bu" + - "cket=**}\332A\022bucket,update_mask\022\237\001\n\030Delete" + - "NotificationConfig\0222.google.storage.v2.D" + - "eleteNotificationConfigRequest\032\026.google." + - "protobuf.Empty\"7\212\323\344\223\002*\022(\n\004name\022 {bucket=" + - "projects/*/buckets/*}/**\332A\004name\022\250\001\n\025GetN" + - "otificationConfig\022/.google.storage.v2.Ge" + - "tNotificationConfigRequest\032%.google.stor" + - "age.v2.NotificationConfig\"7\212\323\344\223\002*\022(\n\004nam" + - "e\022 {bucket=projects/*/buckets/*}/**\332A\004na" + - "me\022\261\001\n\030CreateNotificationConfig\0222.google" + - ".storage.v2.CreateNotificationConfigRequ" + - "est\032%.google.storage.v2.NotificationConf" + - "ig\":\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\332A\032pare" + - "nt,notification_config\022\250\001\n\027ListNotificat" + - "ionConfigs\0221.google.storage.v2.ListNotif" + - "icationConfigsRequest\0322.google.storage.v" + - "2.ListNotificationConfigsResponse\"&\212\323\344\223\002" + - "\027\022\025\n\006parent\022\013{bucket=**}\332A\006parent\022~\n\rCom" + - "poseObject\022\'.google.storage.v2.ComposeOb" + - "jectRequest\032\031.google.storage.v2.Object\")" + - "\212\323\344\223\002#\022!\n\022destination.bucket\022\013{bucket=**" + - "}\022\230\001\n\014DeleteObject\022&.google.storage.v2.D" + - "eleteObjectRequest\032\026.google.protobuf.Emp" + - "ty\"H\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\332A\rbuck" + - "et,object\332A\030bucket,object,generation\022\272\001\n" + - "\024CancelResumableWrite\022..google.storage.v" + - "2.CancelResumableWriteRequest\032/.google.s" + - "torage.v2.CancelResumableWriteResponse\"A" + - "\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=projects/*/" + - "buckets/*}/**\332A\tupload_id\022\225\001\n\tGetObject\022" + - "#.google.storage.v2.GetObjectRequest\032\031.g" + - "oogle.storage.v2.Object\"H\212\323\344\223\002\027\022\025\n\006bucke" + - "t\022\013{bucket=**}\332A\rbucket,object\332A\030bucket," + - "object,generation\022\245\001\n\nReadObject\022$.googl" + - "e.storage.v2.ReadObjectRequest\032%.google." + - "storage.v2.ReadObjectResponse\"H\212\323\344\223\002\027\022\025\n" + - "\006bucket\022\013{bucket=**}\332A\rbucket,object\332A\030b" + - "ucket,object,generation0\001\022\214\001\n\014UpdateObje" + - "ct\022&.google.storage.v2.UpdateObjectReque" + - "st\032\031.google.storage.v2.Object\"9\212\323\344\223\002\036\022\034\n" + - "\robject.bucket\022\013{bucket=**}\332A\022object,upd" + - "ate_mask\022`\n\013WriteObject\022%.google.storage" + - ".v2.WriteObjectRequest\032&.google.storage." + - "v2.WriteObjectResponse\"\000(\001\022\204\001\n\013ListObjec" + - "ts\022%.google.storage.v2.ListObjectsReques" + - "t\032&.google.storage.v2.ListObjectsRespons" + - "e\"&\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\332A\006paren" + - "t\022\230\001\n\rRewriteObject\022\'.google.storage.v2." + - "RewriteObjectRequest\032\".google.storage.v2" + - ".RewriteResponse\":\212\323\344\223\0024\022\017\n\rsource_bucke" + - "t\022!\n\022destination_bucket\022\013{bucket=**}\022\256\001\n" + - "\023StartResumableWrite\022-.google.storage.v2" + - ".StartResumableWriteRequest\032..google.sto" + - "rage.v2.StartResumableWriteResponse\"8\212\323\344" + - "\223\0022\0220\n!write_object_spec.resource.bucket" + - "\022\013{bucket=**}\022\256\001\n\020QueryWriteStatus\022*.goo" + - "gle.storage.v2.QueryWriteStatusRequest\032+" + - ".google.storage.v2.QueryWriteStatusRespo" + - "nse\"A\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=projec" + - "ts/*/buckets/*}/**\332A\tupload_id\022\200\001\n\021GetSe" + - "rviceAccount\022+.google.storage.v2.GetServ" + - "iceAccountRequest\032!.google.storage.v2.Se" + - "rviceAccount\"\033\212\323\344\223\002\013\022\t\n\007project\332A\007projec" + - "t\022\225\001\n\rCreateHmacKey\022\'.google.storage.v2." + - "CreateHmacKeyRequest\032(.google.storage.v2" + - ".CreateHmacKeyResponse\"1\212\323\344\223\002\013\022\t\n\007projec" + - "t\332A\035project,service_account_email\022w\n\rDel" + - "eteHmacKey\022\'.google.storage.v2.DeleteHma" + - "cKeyRequest\032\026.google.protobuf.Empty\"%\212\323\344" + - "\223\002\013\022\t\n\007project\332A\021access_id,project\022}\n\nGe" + - "tHmacKey\022$.google.storage.v2.GetHmacKeyR" + - "equest\032\".google.storage.v2.HmacKeyMetada" + - "ta\"%\212\323\344\223\002\013\022\t\n\007project\332A\021access_id,projec" + - "t\022|\n\014ListHmacKeys\022&.google.storage.v2.Li" + - "stHmacKeysRequest\032\'.google.storage.v2.Li" + - "stHmacKeysResponse\"\033\212\323\344\223\002\013\022\t\n\007project\332A\007" + - "project\022\235\001\n\rUpdateHmacKey\022\'.google.stora" + - "ge.v2.UpdateHmacKeyRequest\032\".google.stor" + - "age.v2.HmacKeyMetadata\"?\212\323\344\223\002\"\022 \n\020hmac_k" + - "ey.project\022\014{project=**}\332A\024hmac_key,upda" + - "te_mask\032\247\002\312A\026storage.googleapis.com\322A\212\002h" + - "ttps://www.googleapis.com/auth/cloud-pla" + - "tform,https://www.googleapis.com/auth/cl" + - "oud-platform.read-only,https://www.googl" + - "eapis.com/auth/devstorage.full_control,h" + - "ttps://www.googleapis.com/auth/devstorag" + - "e.read_only,https://www.googleapis.com/a" + - "uth/devstorage.read_writeB\334\001\n\025com.google" + - ".storage.v2B\014StorageProtoP\001Z8google.gola" + - "ng.org/genproto/googleapis/storage/v2;st" + - "orage\352Ax\n!cloudkms.googleapis.com/Crypto" + - "Key\022Sprojects/{project}/locations/{locat" + - "ion}/keyRings/{key_ring}/cryptoKeys/{cry" + - "pto_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_CancelResumableWriteRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - 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(15); - 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(16); - 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(17); - 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", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CommonObjectRequestParams", "ReadMask", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "ReadMask", }); - internal_static_google_storage_v2_ReadObjectResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - 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(19); - 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(20); - 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(21); - 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_ListObjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - 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", "ReadMask", }); - internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - 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(24); - 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(25); - 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(26); - 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(27); - 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(28); - 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(29); - 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(30); - 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(31); - 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(32); - 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(33); - 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(34); - 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(35); - 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(36); - 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(37); - 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(38); - 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(39); - 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(40); - 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", }); - 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_Versioning_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(7); - 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(8); - 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(9); - 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(10); - 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", }); - internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(11); - 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(41); - 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(42); - 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(43); - 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(44); - 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(45); - 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(46); - 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(47); - 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(48); - 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(49); - 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(50); - 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(51); - 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(52); - 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(53); - 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java similarity index 76% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java index 2b18b8e326..5af764aade 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -35,107 +53,115 @@ private Bucket() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Bucket(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + 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.MapField internalGetMapField(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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -144,6 +170,7 @@ public boolean getRequesterPays() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (requesterPays_ != false) { output.writeBool(1, requesterPays_); } @@ -170,8 +196,7 @@ 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; @@ -181,15 +206,14 @@ public int 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; } @@ -202,95 +226,100 @@ 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 @@ -300,39 +329,41 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -342,9 +373,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 @@ -363,8 +394,11 @@ 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; } @@ -380,38 +414,41 @@ 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; @@ -449,17 +486,19 @@ 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) { @@ -469,15 +508,19 @@ 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 @@ -485,27 +528,33 @@ 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. */ public Builder setRequesterPays(boolean value) { - + requesterPays_ = value; bitField0_ |= 0x00000001; onChanged(); 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() { @@ -514,6 +563,7 @@ public Builder clearRequesterPays() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -526,12 +576,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(); } @@ -540,27 +590,28 @@ 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; @@ -575,14 +626,16 @@ 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.
@@ -590,11 +643,13 @@ public interface CorsOrBuilder extends
      * 
* * 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.
@@ -602,10 +657,13 @@ public interface CorsOrBuilder extends
      * 
* * 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.
@@ -613,11 +671,14 @@ public interface CorsOrBuilder extends
      * 
* * 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.
@@ -625,13 +686,15 @@ public interface CorsOrBuilder extends
      * 
* * 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
@@ -639,11 +702,13 @@ public interface CorsOrBuilder extends
      * 
* * 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
@@ -651,10 +716,13 @@ public interface CorsOrBuilder extends
      * 
* * 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
@@ -662,11 +730,14 @@ public interface CorsOrBuilder extends
      * 
* * 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
@@ -674,13 +745,15 @@ public interface CorsOrBuilder extends
      * 
* * 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
@@ -688,11 +761,13 @@ public interface CorsOrBuilder extends
      * 
* * 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
@@ -700,10 +775,13 @@ public interface CorsOrBuilder extends
      * 
* * 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
@@ -711,11 +789,14 @@ public interface CorsOrBuilder extends
      * 
* * 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
@@ -723,13 +804,15 @@ public interface CorsOrBuilder extends
      * 
* * 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
@@ -737,11 +820,14 @@ public interface CorsOrBuilder extends
      * 
* * 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
@@ -751,15 +837,16 @@ public interface CorsOrBuilder extends
    *
    * 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.EMPTY;
       method_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -768,33 +855,37 @@ private Cors() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Cors();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.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.LazyStringList origin_;
     /**
+     *
+     *
      * 
      * The list of Origins eligible to receive CORS response headers. See
      * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -802,13 +893,15 @@ protected java.lang.Object newInstance(
      * 
* * 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.
@@ -816,12 +909,15 @@ protected java.lang.Object newInstance(
      * 
* * 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.
@@ -829,6 +925,7 @@ public int getOriginCount() {
      * 
* * repeated string origin = 1; + * * @param index The index of the element to return. * @return The origin at the given index. */ @@ -836,6 +933,8 @@ 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.
@@ -843,18 +942,21 @@ 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.LazyStringList method_; /** + * + * *
      * The list of HTTP methods on which to include CORS response headers,
      * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -862,13 +964,15 @@ public java.lang.String getOrigin(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
@@ -876,12 +980,15 @@ public java.lang.String getOrigin(int index) {
      * 
* * 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
@@ -889,6 +996,7 @@ public int getMethodCount() {
      * 
* * repeated string method = 2; + * * @param index The index of the element to return. * @return The method at the given index. */ @@ -896,6 +1004,8 @@ 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
@@ -903,18 +1013,21 @@ 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.LazyStringList responseHeader_; /** + * + * *
      * The list of HTTP headers other than the
      * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -922,13 +1035,15 @@ public java.lang.String getMethod(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
@@ -936,12 +1051,15 @@ public java.lang.String getMethod(int index) {
      * 
* * 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
@@ -949,6 +1067,7 @@ public int getResponseHeaderCount() {
      * 
* * repeated string response_header = 3; + * * @param index The index of the element to return. * @return The responseHeader at the given index. */ @@ -956,6 +1075,8 @@ 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
@@ -963,17 +1084,19 @@ 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
@@ -981,6 +1104,7 @@ public java.lang.String getResponseHeader(int index) {
      * 
* * int32 max_age_seconds = 4; + * * @return The maxAgeSeconds. */ @java.lang.Override @@ -989,6 +1113,7 @@ public int getMaxAgeSeconds() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1000,8 +1125,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < origin_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, origin_.getRaw(i)); } @@ -1048,8 +1172,7 @@ 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; @@ -1059,21 +1182,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.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; } @@ -1104,88 +1223,93 @@ 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 @@ -1195,6 +1319,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Cross-Origin Response sharing (CORS) properties for a bucket.
      * For more on Cloud Storage and CORS, see
@@ -1204,33 +1330,33 @@ 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) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1246,9 +1372,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_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
@@ -1269,7 +1395,9 @@ public com.google.storage.v2.Bucket.Cors build() {
       public com.google.storage.v2.Bucket.Cors buildPartial() {
         com.google.storage.v2.Bucket.Cors result = new com.google.storage.v2.Bucket.Cors(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -1303,38 +1431,41 @@ 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;
@@ -1402,35 +1533,40 @@ 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) {
@@ -1440,16 +1576,21 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList origin_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      private com.google.protobuf.LazyStringList origin_ =
+          com.google.protobuf.LazyStringArrayList.EMPTY;
+
       private void ensureOriginIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           origin_ = new com.google.protobuf.LazyStringArrayList(origin_);
           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.
@@ -1457,13 +1598,15 @@ 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() { return origin_.getUnmodifiableView(); } /** + * + * *
        * The list of Origins eligible to receive CORS response headers. See
        * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
@@ -1471,12 +1614,15 @@ private void ensureOriginIsMutable() {
        * 
* * 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.
@@ -1484,6 +1630,7 @@ public int getOriginCount() {
        * 
* * repeated string origin = 1; + * * @param index The index of the element to return. * @return The origin at the given index. */ @@ -1491,6 +1638,8 @@ 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.
@@ -1498,14 +1647,16 @@ 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.
@@ -1513,19 +1664,23 @@ public java.lang.String getOrigin(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); 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.
@@ -1533,18 +1688,22 @@ public Builder setOrigin(
        * 
* * 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); 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.
@@ -1552,18 +1711,19 @@ public Builder addOrigin(
        * 
* * 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_); 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.
@@ -1571,6 +1731,7 @@ public Builder addAllOrigin(
        * 
* * repeated string origin = 1; + * * @return This builder for chaining. */ public Builder clearOrigin() { @@ -1580,6 +1741,8 @@ public Builder clearOrigin() { 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.
@@ -1587,12 +1750,14 @@ 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); @@ -1600,14 +1765,18 @@ public Builder addOriginBytes( return this; } - private com.google.protobuf.LazyStringList method_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList method_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMethodIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { method_ = new com.google.protobuf.LazyStringArrayList(method_); 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
@@ -1615,13 +1784,15 @@ 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() { return method_.getUnmodifiableView(); } /** + * + * *
        * The list of HTTP methods on which to include CORS response headers,
        * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
@@ -1629,12 +1800,15 @@ private void ensureMethodIsMutable() {
        * 
* * 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
@@ -1642,6 +1816,7 @@ public int getMethodCount() {
        * 
* * repeated string method = 2; + * * @param index The index of the element to return. * @return The method at the given index. */ @@ -1649,6 +1824,8 @@ 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
@@ -1656,14 +1833,16 @@ 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
@@ -1671,19 +1850,23 @@ public java.lang.String getMethod(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); 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
@@ -1691,18 +1874,22 @@ public Builder setMethod(
        * 
* * 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); 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
@@ -1710,18 +1897,19 @@ public Builder addMethod(
        * 
* * 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_); 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
@@ -1729,6 +1917,7 @@ public Builder addAllMethod(
        * 
* * repeated string method = 2; + * * @return This builder for chaining. */ public Builder clearMethod() { @@ -1738,6 +1927,8 @@ public Builder clearMethod() { 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
@@ -1745,12 +1936,14 @@ 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); @@ -1758,14 +1951,18 @@ public Builder addMethodBytes( return this; } - private com.google.protobuf.LazyStringList responseHeader_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList responseHeader_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureResponseHeaderIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { responseHeader_ = new com.google.protobuf.LazyStringArrayList(responseHeader_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1773,13 +1970,15 @@ 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() { return responseHeader_.getUnmodifiableView(); } /** + * + * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1787,12 +1986,15 @@ private void ensureResponseHeaderIsMutable() {
        * 
* * 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
@@ -1800,6 +2002,7 @@ public int getResponseHeaderCount() {
        * 
* * repeated string response_header = 3; + * * @param index The index of the element to return. * @return The responseHeader at the given index. */ @@ -1807,6 +2010,8 @@ 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
@@ -1814,14 +2019,16 @@ 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
@@ -1829,19 +2036,23 @@ public java.lang.String getResponseHeader(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); onChanged(); return this; } /** + * + * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1849,18 +2060,22 @@ public Builder setResponseHeader(
        * 
* * 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); onChanged(); return this; } /** + * + * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1868,18 +2083,19 @@ public Builder addResponseHeader(
        * 
* * 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_); onChanged(); return this; } /** + * + * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1887,6 +2103,7 @@ public Builder addAllResponseHeader(
        * 
* * repeated string response_header = 3; + * * @return This builder for chaining. */ public Builder clearResponseHeader() { @@ -1896,6 +2113,8 @@ public Builder clearResponseHeader() { return this; } /** + * + * *
        * The list of HTTP headers other than the
        * [https://www.w3.org/TR/cors/#simple-response-header][simple response
@@ -1903,12 +2122,14 @@ 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); @@ -1916,8 +2137,10 @@ public Builder addResponseHeaderBytes( 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
@@ -1925,6 +2148,7 @@ public Builder addResponseHeaderBytes(
        * 
* * int32 max_age_seconds = 4; + * * @return The maxAgeSeconds. */ @java.lang.Override @@ -1932,6 +2156,8 @@ 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
@@ -1939,17 +2165,20 @@ public int getMaxAgeSeconds() {
        * 
* * int32 max_age_seconds = 4; + * * @param value The maxAgeSeconds to set. * @return This builder for chaining. */ public Builder setMaxAgeSeconds(int value) { - + maxAgeSeconds_ = value; bitField0_ |= 0x00000008; onChanged(); 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
@@ -1957,6 +2186,7 @@ public Builder setMaxAgeSeconds(int value) {
        * 
* * int32 max_age_seconds = 4; + * * @return This builder for chaining. */ public Builder clearMaxAgeSeconds() { @@ -1965,6 +2195,7 @@ public Builder clearMaxAgeSeconds() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1977,12 +2208,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(); } @@ -1991,27 +2222,28 @@ 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; @@ -2026,90 +2258,103 @@ 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -2118,30 +2363,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 { @@ -2150,6 +2395,7 @@ public java.lang.String getDefaultKmsKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2161,8 +2407,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultKmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultKmsKey_); } @@ -2186,15 +2431,14 @@ public int 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; } @@ -2213,88 +2457,94 @@ 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 @@ -2304,39 +2554,41 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2346,9 +2598,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 @@ -2367,8 +2619,11 @@ 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; } @@ -2384,38 +2639,41 @@ 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; @@ -2455,17 +2713,19 @@ 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) { @@ -2475,23 +2735,26 @@ 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; @@ -2500,21 +2763,22 @@ 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 { @@ -2522,30 +2786,37 @@ 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) = { ... } + * * @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() { @@ -2555,24 +2826,29 @@ 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) { @@ -2585,12 +2861,12 @@ 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(); } @@ -2599,27 +2875,28 @@ 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(); - } - }; + 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; @@ -2634,122 +2911,152 @@ 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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
@@ -2758,10 +3065,13 @@ public interface UniformBucketLevelAccessOrBuilder extends
        * 
* * .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
@@ -2770,10 +3080,13 @@ public interface UniformBucketLevelAccessOrBuilder extends
        * 
* * .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
@@ -2786,6 +3099,8 @@ public interface UniformBucketLevelAccessOrBuilder extends
       com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder();
     }
     /**
+     *
+     *
      * 
      * Settings for Uniform Bucket level access.
      * See https://cloud.google.com/storage/docs/uniform-bucket-level-access.
@@ -2793,51 +3108,56 @@ public interface UniformBucketLevelAccessOrBuilder extends
      *
      * 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();
       }
 
       @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet
-      getUnknownFields() {
+      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.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);
       }
 
       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 @@ -2848,6 +3168,8 @@ 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
@@ -2856,6 +3178,7 @@ public boolean getEnabled() {
        * 
* * .google.protobuf.Timestamp lock_time = 2; + * * @return Whether the lockTime field is set. */ @java.lang.Override @@ -2863,6 +3186,8 @@ public boolean hasLockTime() { return lockTime_ != null; } /** + * + * *
        * The deadline time for changing
        * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -2871,6 +3196,7 @@ public boolean hasLockTime() {
        * 
* * .google.protobuf.Timestamp lock_time = 2; + * * @return The lockTime. */ @java.lang.Override @@ -2878,6 +3204,8 @@ 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
@@ -2893,6 +3221,7 @@ public com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder() {
       }
 
       private byte memoizedIsInitialized = -1;
+
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
@@ -2904,8 +3233,7 @@ public final boolean isInitialized() {
       }
 
       @java.lang.Override
-      public void writeTo(com.google.protobuf.CodedOutputStream output)
-                          throws java.io.IOException {
+      public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (enabled_ != false) {
           output.writeBool(1, enabled_);
         }
@@ -2922,12 +3250,10 @@ 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());
+          size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLockTime());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
@@ -2937,19 +3263,18 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
-         return true;
+          return true;
         }
         if (!(obj instanceof com.google.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;
@@ -2963,8 +3288,7 @@ 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();
@@ -2975,87 +3299,96 @@ 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
@@ -3065,6 +3398,8 @@ protected Builder newBuilderForType(
         return builder;
       }
       /**
+       *
+       *
        * 
        * Settings for Uniform Bucket level access.
        * See https://cloud.google.com/storage/docs/uniform-bucket-level-access.
@@ -3072,33 +3407,34 @@ 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() {}
 
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
-
         }
+
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -3113,14 +3449,16 @@ 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
@@ -3134,21 +3472,23 @@ 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_;
           }
           if (((from_bitField0_ & 0x00000002) != 0)) {
-            result.lockTime_ = lockTimeBuilder_ == null
-                ? lockTime_
-                : lockTimeBuilder_.build();
+            result.lockTime_ = lockTimeBuilder_ == null ? lockTime_ : lockTimeBuilder_.build();
           }
         }
 
@@ -3156,46 +3496,53 @@ private void buildPartial0(com.google.storage.v2.Bucket.IamConfig.UniformBucketL
         public Builder clone() {
           return super.clone();
         }
+
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
+
         @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
+
         @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(com.google.protobuf.Descriptors.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());
           }
@@ -3228,24 +3575,25 @@ 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) {
@@ -3255,15 +3603,19 @@ 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 @@ -3271,27 +3623,33 @@ 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. */ public Builder setEnabled(boolean value) { - + enabled_ = value; bitField0_ |= 0x00000001; onChanged(); 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() { @@ -3303,8 +3661,13 @@ 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
@@ -3313,12 +3676,15 @@ 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
@@ -3327,16 +3693,21 @@ 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
@@ -3360,6 +3731,8 @@ 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
@@ -3369,8 +3742,7 @@ 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 {
@@ -3381,6 +3753,8 @@ public Builder setLockTime(
           return this;
         }
         /**
+         *
+         *
          * 
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3392,9 +3766,9 @@ public Builder setLockTime(
          */
         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;
@@ -3407,6 +3781,8 @@ public Builder mergeLockTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3427,6 +3803,8 @@ public Builder clearLockTime() {
           return this;
         }
         /**
+         *
+         *
          * 
          * The deadline time for changing
          * `iam_config.uniform_bucket_level_access.enabled` from `true` to
@@ -3442,6 +3820,8 @@ 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
@@ -3455,11 +3835,14 @@ 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
@@ -3470,18 +3853,22 @@ 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) {
@@ -3494,41 +3881,44 @@ 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;
@@ -3540,20 +3930,26 @@ 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;
       }
-
     }
 
     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 @@ -3561,39 +3957,58 @@ public boolean hasUniformBucketLevelAccess() { return uniformBucketLevelAccess_ != null; } /** + * + * *
      * 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 @@ -3602,30 +4017,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 { @@ -3634,6 +4049,7 @@ public java.lang.String getPublicAccessPrevention() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3645,8 +4061,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (uniformBucketLevelAccess_ != null) { output.writeMessage(1, getUniformBucketLevelAccess()); } @@ -3663,11 +4078,13 @@ public int getSerializedSize() { size = 0; if (uniformBucketLevelAccess_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUniformBucketLevelAccess()); + 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; @@ -3677,7 +4094,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); @@ -3686,11 +4103,10 @@ 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; } @@ -3713,88 +4129,94 @@ 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 @@ -3804,39 +4226,41 @@ 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() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3851,9 +4275,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 @@ -3872,8 +4296,11 @@ 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; } @@ -3881,9 +4308,10 @@ public com.google.storage.v2.Bucket.IamConfig buildPartial() { private void buildPartial0(com.google.storage.v2.Bucket.IamConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.uniformBucketLevelAccess_ = uniformBucketLevelAccessBuilder_ == null - ? uniformBucketLevelAccess_ - : uniformBucketLevelAccessBuilder_.build(); + result.uniformBucketLevelAccess_ = + uniformBucketLevelAccessBuilder_ == null + ? uniformBucketLevelAccess_ + : uniformBucketLevelAccessBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.publicAccessPrevention_ = publicAccessPrevention_; @@ -3894,38 +4322,41 @@ private void buildPartial0(com.google.storage.v2.Bucket.IamConfig 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.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; @@ -3968,24 +4399,26 @@ 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) { @@ -3995,45 +4428,68 @@ 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(); @@ -4047,11 +4503,15 @@ public Builder setUniformBucketLevelAccess(com.google.storage.v2.Bucket.IamConfi 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) { @@ -4065,17 +4525,24 @@ 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; @@ -4088,11 +4555,15 @@ public Builder mergeUniformBucketLevelAccess(com.google.storage.v2.Bucket.IamCon 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); @@ -4105,48 +4576,66 @@ 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_; @@ -4154,19 +4643,21 @@ public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder 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; @@ -4175,21 +4666,22 @@ 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 { @@ -4197,30 +4689,37 @@ public java.lang.String getPublicAccessPrevention() { } } /** + * + * *
        * 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() { @@ -4230,24 +4729,29 @@ 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) { @@ -4260,12 +4764,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(); } @@ -4274,27 +4778,28 @@ 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; @@ -4309,14 +4814,16 @@ 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.
@@ -4324,9 +4831,10 @@ public interface LifecycleOrBuilder extends
      *
      * 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.
@@ -4336,6 +4844,8 @@ public interface LifecycleOrBuilder extends
      */
     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.
@@ -4345,6 +4855,8 @@ public interface LifecycleOrBuilder extends
      */
     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.
@@ -4352,9 +4864,11 @@ public interface LifecycleOrBuilder extends
      *
      * 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.
@@ -4362,10 +4876,11 @@ public interface LifecycleOrBuilder extends
      *
      * 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.
@@ -4373,67 +4888,78 @@ com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(
    *
    * 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();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.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.
        * 
@@ -4443,24 +4969,32 @@ public interface RuleOrBuilder extends 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.
        * 
@@ -4470,6 +5004,8 @@ public interface RuleOrBuilder extends 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.
@@ -4477,107 +5013,122 @@ public interface RuleOrBuilder extends
      *
      * 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();
       }
 
       @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet
-      getUnknownFields() {
+      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.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_ = ""; @@ -4585,39 +5136,44 @@ private Action() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Action(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -4626,30 +5182,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 { @@ -4658,15 +5214,19 @@ public java.lang.String getType() { } 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 @@ -4675,30 +5235,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 { @@ -4707,6 +5267,7 @@ public java.lang.String getStorageClass() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4719,7 +5280,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_); } @@ -4749,17 +5310,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -4781,87 +5341,95 @@ 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 @@ -4871,39 +5439,41 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -4914,9 +5484,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 @@ -4935,8 +5505,11 @@ 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; } @@ -4955,38 +5528,41 @@ 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; @@ -4994,7 +5570,8 @@ 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; @@ -5031,22 +5608,25 @@ 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) { @@ -5056,23 +5636,26 @@ 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; @@ -5081,21 +5664,22 @@ 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 { @@ -5103,30 +5687,37 @@ public java.lang.String getType() { } } /** + * + * *
            * 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(); } + 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() { @@ -5136,18 +5727,22 @@ 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; @@ -5157,19 +5752,21 @@ public Builder setTypeBytes( 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; @@ -5178,21 +5775,22 @@ 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 { @@ -5200,30 +5798,37 @@ public java.lang.String getStorageClass() { } } /** + * + * *
            * 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() { @@ -5233,24 +5838,29 @@ 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) { @@ -5263,12 +5873,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(); } @@ -5277,27 +5887,28 @@ 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; @@ -5312,14 +5923,16 @@ 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.
@@ -5328,10 +5941,13 @@ public interface ConditionOrBuilder extends
          * 
* * 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.
@@ -5340,31 +5956,40 @@ public interface ConditionOrBuilder extends
          * 
* * 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.
@@ -5375,6 +6000,8 @@ public interface ConditionOrBuilder extends
         com.google.type.DateOrBuilder getCreatedBeforeOrBuilder();
 
         /**
+         *
+         *
          * 
          * Relevant only for versioned objects. If the value is
          * `true`, this condition matches live objects; if the value
@@ -5382,10 +6009,13 @@ public interface ConditionOrBuilder extends
          * 
* * 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
@@ -5393,11 +6023,14 @@ public interface ConditionOrBuilder extends
          * 
* * 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
@@ -5405,10 +6038,13 @@ public interface ConditionOrBuilder extends
          * 
* * 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
@@ -5416,11 +6052,14 @@ public interface ConditionOrBuilder extends
          * 
* * 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`,
@@ -5429,11 +6068,13 @@ public interface ConditionOrBuilder extends
          * 
* * 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`,
@@ -5442,10 +6083,13 @@ public interface ConditionOrBuilder extends
          * 
* * 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`,
@@ -5454,11 +6098,14 @@ public interface ConditionOrBuilder extends
          * 
* * 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`,
@@ -5467,13 +6114,15 @@ public interface ConditionOrBuilder extends
          * 
* * 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.
@@ -5481,10 +6130,13 @@ public interface ConditionOrBuilder extends
          * 
* * 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.
@@ -5492,31 +6144,40 @@ public interface ConditionOrBuilder extends
          * 
* * 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.
@@ -5527,6 +6188,8 @@ public interface ConditionOrBuilder extends
         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
@@ -5536,10 +6199,13 @@ public interface ConditionOrBuilder extends
          * 
* * 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
@@ -5549,11 +6215,14 @@ public interface ConditionOrBuilder extends
          * 
* * 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
@@ -5561,10 +6230,13 @@ public interface ConditionOrBuilder extends
          * 
* * .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
@@ -5572,10 +6244,13 @@ public interface ConditionOrBuilder extends
          * 
* * .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
@@ -5587,111 +6262,134 @@ public interface ConditionOrBuilder extends
         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.EMPTY; matchesPrefix_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -5700,33 +6398,36 @@ private Condition() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Condition(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.
@@ -5735,6 +6436,7 @@ protected java.lang.Object newInstance(
          * 
* * optional int32 age_days = 1; + * * @return Whether the ageDays field is set. */ @java.lang.Override @@ -5742,6 +6444,8 @@ public boolean hasAgeDays() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
          * Age of an object (in days). This condition is satisfied when an
          * object reaches the specified age.
@@ -5750,6 +6454,7 @@ public boolean hasAgeDays() {
          * 
* * optional int32 age_days = 1; + * * @return The ageDays. */ @java.lang.Override @@ -5760,12 +6465,15 @@ 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 @@ -5773,19 +6481,26 @@ public boolean hasCreatedBefore() { return createdBefore_ != null; } /** + * + * *
          * 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.
@@ -5795,12 +6510,16 @@ 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
@@ -5808,6 +6527,7 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
          * 
* * optional bool is_live = 3; + * * @return Whether the isLive field is set. */ @java.lang.Override @@ -5815,6 +6535,8 @@ public boolean hasIsLive() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
          * Relevant only for versioned objects. If the value is
          * `true`, this condition matches live objects; if the value
@@ -5822,6 +6544,7 @@ public boolean hasIsLive() {
          * 
* * optional bool is_live = 3; + * * @return The isLive. */ @java.lang.Override @@ -5832,6 +6555,8 @@ 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
@@ -5839,6 +6564,7 @@ public boolean getIsLive() {
          * 
* * optional int32 num_newer_versions = 4; + * * @return Whether the numNewerVersions field is set. */ @java.lang.Override @@ -5846,6 +6572,8 @@ public boolean hasNumNewerVersions() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
          * Relevant only for versioned objects. If the value is N, this
          * condition is satisfied when there are at least N versions (including
@@ -5853,6 +6581,7 @@ public boolean hasNumNewerVersions() {
          * 
* * optional int32 num_newer_versions = 4; + * * @return The numNewerVersions. */ @java.lang.Override @@ -5861,9 +6590,12 @@ public int getNumNewerVersions() { } public static final int MATCHES_STORAGE_CLASS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList matchesStorageClass_; /** + * + * *
          * Objects having any of the storage classes specified by this condition
          * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -5872,13 +6604,15 @@ 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`,
@@ -5887,12 +6621,15 @@ public int getNumNewerVersions() {
          * 
* * 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`,
@@ -5901,6 +6638,7 @@ 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. */ @@ -5908,6 +6646,8 @@ 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`,
@@ -5916,17 +6656,19 @@ 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.
@@ -5934,6 +6676,7 @@ public java.lang.String getMatchesStorageClass(int index) {
          * 
* * optional int32 days_since_custom_time = 7; + * * @return Whether the daysSinceCustomTime field is set. */ @java.lang.Override @@ -5941,6 +6684,8 @@ public boolean hasDaysSinceCustomTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
          * Number of days that have elapsed since the custom timestamp set on an
          * object.
@@ -5948,6 +6693,7 @@ public boolean hasDaysSinceCustomTime() {
          * 
* * optional int32 days_since_custom_time = 7; + * * @return The daysSinceCustomTime. */ @java.lang.Override @@ -5958,12 +6704,15 @@ 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 @@ -5971,19 +6720,26 @@ public boolean hasCustomTimeBefore() { return customTimeBefore_ != null; } /** + * + * *
          * 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.
@@ -5993,12 +6749,16 @@ 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
@@ -6008,6 +6768,7 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
          * 
* * optional int32 days_since_noncurrent_time = 9; + * * @return Whether the daysSinceNoncurrentTime field is set. */ @java.lang.Override @@ -6015,6 +6776,8 @@ public boolean hasDaysSinceNoncurrentTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if these many days have been
@@ -6024,6 +6787,7 @@ public boolean hasDaysSinceNoncurrentTime() {
          * 
* * optional int32 days_since_noncurrent_time = 9; + * * @return The daysSinceNoncurrentTime. */ @java.lang.Override @@ -6034,6 +6798,8 @@ 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
@@ -6041,6 +6807,7 @@ public int getDaysSinceNoncurrentTime() {
          * 
* * .google.type.Date noncurrent_time_before = 10; + * * @return Whether the noncurrentTimeBefore field is set. */ @java.lang.Override @@ -6048,6 +6815,8 @@ public boolean hasNoncurrentTimeBefore() { return noncurrentTimeBefore_ != null; } /** + * + * *
          * This condition is relevant only for versioned objects. An object
          * version satisfies this condition only if it became noncurrent before
@@ -6055,13 +6824,18 @@ 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
@@ -6072,44 +6846,55 @@ 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.LazyStringList 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 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. */ @@ -6117,55 +6902,66 @@ 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.LazyStringList 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 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. */ @@ -6173,21 +6969,24 @@ 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; @@ -6200,7 +6999,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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, ageDays_); } @@ -6214,7 +7013,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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)) { output.writeInt32(7, daysSinceCustomTime_); @@ -6229,10 +7029,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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); } @@ -6244,20 +7046,16 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, ageDays_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, ageDays_); } if (createdBefore_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreatedBefore()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreatedBefore()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isLive_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isLive_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, numNewerVersions_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, numNewerVersions_); } { int dataSize = 0; @@ -6268,20 +7066,20 @@ public int getSerializedSize() { size += 1 * getMatchesStorageClassList().size(); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, daysSinceCustomTime_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, daysSinceCustomTime_); } if (customTimeBefore_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCustomTimeBefore()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCustomTimeBefore()); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, daysSinceNoncurrentTime_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(9, daysSinceNoncurrentTime_); } if (noncurrentTimeBefore_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getNoncurrentTimeBefore()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getNoncurrentTimeBefore()); } { int dataSize = 0; @@ -6307,59 +7105,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -6381,8 +7170,7 @@ 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; @@ -6422,87 +7210,95 @@ 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 @@ -6512,39 +7308,41 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -6579,9 +7377,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_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 @@ -6600,14 +7398,18 @@ 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); + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result = + new com.google.storage.v2.Bucket.Lifecycle.Rule.Condition(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result) { + private void buildPartialRepeatedFields( + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result) { if (((bitField0_ & 0x00000010) != 0)) { matchesStorageClass_ = matchesStorageClass_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); @@ -6633,9 +7435,8 @@ 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(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.isLive_ = isLive_; @@ -6650,18 +7451,20 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.customTimeBefore_ = customTimeBeforeBuilder_ == null - ? customTimeBefore_ - : customTimeBeforeBuilder_.build(); + result.customTimeBefore_ = + customTimeBeforeBuilder_ == null + ? customTimeBefore_ + : customTimeBeforeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.daysSinceNoncurrentTime_ = daysSinceNoncurrentTime_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.noncurrentTimeBefore_ = noncurrentTimeBeforeBuilder_ == null - ? noncurrentTimeBefore_ - : noncurrentTimeBeforeBuilder_.build(); + result.noncurrentTimeBefore_ = + noncurrentTimeBeforeBuilder_ == null + ? noncurrentTimeBefore_ + : noncurrentTimeBeforeBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -6670,38 +7473,41 @@ 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; @@ -6709,7 +7515,8 @@ 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()); } @@ -6790,76 +7597,85 @@ 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) { @@ -6869,10 +7685,13 @@ 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.
@@ -6881,6 +7700,7 @@ public Builder mergeFrom(
            * 
* * optional int32 age_days = 1; + * * @return Whether the ageDays field is set. */ @java.lang.Override @@ -6888,6 +7708,8 @@ public boolean hasAgeDays() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
            * Age of an object (in days). This condition is satisfied when an
            * object reaches the specified age.
@@ -6896,6 +7718,7 @@ public boolean hasAgeDays() {
            * 
* * optional int32 age_days = 1; + * * @return The ageDays. */ @java.lang.Override @@ -6903,6 +7726,8 @@ public int getAgeDays() { return ageDays_; } /** + * + * *
            * Age of an object (in days). This condition is satisfied when an
            * object reaches the specified age.
@@ -6911,17 +7736,20 @@ public int getAgeDays() {
            * 
* * optional int32 age_days = 1; + * * @param value The ageDays to set. * @return This builder for chaining. */ public Builder setAgeDays(int value) { - + ageDays_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
            * Age of an object (in days). This condition is satisfied when an
            * object reaches the specified age.
@@ -6930,6 +7758,7 @@ public Builder setAgeDays(int value) {
            * 
* * optional int32 age_days = 1; + * * @return This builder for chaining. */ public Builder clearAgeDays() { @@ -6941,36 +7770,47 @@ 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.
@@ -6992,6 +7832,8 @@ 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.
@@ -6999,8 +7841,7 @@ 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 {
@@ -7011,6 +7852,8 @@ public Builder setCreatedBefore(
             return this;
           }
           /**
+           *
+           *
            * 
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7020,9 +7863,9 @@ public Builder setCreatedBefore(
            */
           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;
@@ -7035,6 +7878,8 @@ public Builder mergeCreatedBefore(com.google.type.Date value) {
             return this;
           }
           /**
+           *
+           *
            * 
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7053,6 +7898,8 @@ public Builder clearCreatedBefore() {
             return this;
           }
           /**
+           *
+           *
            * 
            * This condition is satisfied when an object is created before midnight
            * of the specified date in UTC.
@@ -7066,6 +7913,8 @@ 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.
@@ -7077,11 +7926,14 @@ 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.
@@ -7090,21 +7942,24 @@ 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
@@ -7112,6 +7967,7 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
            * 
* * optional bool is_live = 3; + * * @return Whether the isLive field is set. */ @java.lang.Override @@ -7119,6 +7975,8 @@ 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
@@ -7126,6 +7984,7 @@ public boolean hasIsLive() {
            * 
* * optional bool is_live = 3; + * * @return The isLive. */ @java.lang.Override @@ -7133,6 +7992,8 @@ public boolean getIsLive() { return isLive_; } /** + * + * *
            * Relevant only for versioned objects. If the value is
            * `true`, this condition matches live objects; if the value
@@ -7140,17 +8001,20 @@ public boolean getIsLive() {
            * 
* * optional bool is_live = 3; + * * @param value The isLive to set. * @return This builder for chaining. */ public Builder setIsLive(boolean value) { - + isLive_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
            * Relevant only for versioned objects. If the value is
            * `true`, this condition matches live objects; if the value
@@ -7158,6 +8022,7 @@ public Builder setIsLive(boolean value) {
            * 
* * optional bool is_live = 3; + * * @return This builder for chaining. */ public Builder clearIsLive() { @@ -7167,8 +8032,10 @@ 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
@@ -7176,6 +8043,7 @@ public Builder clearIsLive() {
            * 
* * optional int32 num_newer_versions = 4; + * * @return Whether the numNewerVersions field is set. */ @java.lang.Override @@ -7183,6 +8051,8 @@ 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
@@ -7190,6 +8060,7 @@ public boolean hasNumNewerVersions() {
            * 
* * optional int32 num_newer_versions = 4; + * * @return The numNewerVersions. */ @java.lang.Override @@ -7197,6 +8068,8 @@ 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
@@ -7204,17 +8077,20 @@ public int getNumNewerVersions() {
            * 
* * optional int32 num_newer_versions = 4; + * * @param value The numNewerVersions to set. * @return This builder for chaining. */ public Builder setNumNewerVersions(int value) { - + numNewerVersions_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
            * Relevant only for versioned objects. If the value is N, this
            * condition is satisfied when there are at least N versions (including
@@ -7222,6 +8098,7 @@ public Builder setNumNewerVersions(int value) {
            * 
* * optional int32 num_newer_versions = 4; + * * @return This builder for chaining. */ public Builder clearNumNewerVersions() { @@ -7231,14 +8108,19 @@ public Builder clearNumNewerVersions() { return this; } - private com.google.protobuf.LazyStringList matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList matchesStorageClass_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMatchesStorageClassIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - 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`,
@@ -7247,13 +8129,15 @@ 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() { return matchesStorageClass_.getUnmodifiableView(); } /** + * + * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -7262,12 +8146,15 @@ private void ensureMatchesStorageClassIsMutable() {
            * 
* * 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`,
@@ -7276,6 +8163,7 @@ 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. */ @@ -7283,6 +8171,8 @@ 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`,
@@ -7291,14 +8181,16 @@ 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`,
@@ -7307,19 +8199,23 @@ public java.lang.String getMatchesStorageClass(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); onChanged(); return this; } /** + * + * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -7328,18 +8224,22 @@ public Builder setMatchesStorageClass(
            * 
* * 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); onChanged(); return this; } /** + * + * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -7348,18 +8248,19 @@ public Builder addMatchesStorageClass(
            * 
* * 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_); onChanged(); return this; } /** + * + * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -7368,6 +8269,7 @@ public Builder addAllMatchesStorageClass(
            * 
* * repeated string matches_storage_class = 5; + * * @return This builder for chaining. */ public Builder clearMatchesStorageClass() { @@ -7377,6 +8279,8 @@ public Builder clearMatchesStorageClass() { return this; } /** + * + * *
            * Objects having any of the storage classes specified by this condition
            * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
@@ -7385,12 +8289,14 @@ 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); @@ -7398,8 +8304,10 @@ public Builder addMatchesStorageClassBytes( return this; } - private int daysSinceCustomTime_ ; + private int daysSinceCustomTime_; /** + * + * *
            * Number of days that have elapsed since the custom timestamp set on an
            * object.
@@ -7407,6 +8315,7 @@ public Builder addMatchesStorageClassBytes(
            * 
* * optional int32 days_since_custom_time = 7; + * * @return Whether the daysSinceCustomTime field is set. */ @java.lang.Override @@ -7414,6 +8323,8 @@ public boolean hasDaysSinceCustomTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
            * Number of days that have elapsed since the custom timestamp set on an
            * object.
@@ -7421,6 +8332,7 @@ public boolean hasDaysSinceCustomTime() {
            * 
* * optional int32 days_since_custom_time = 7; + * * @return The daysSinceCustomTime. */ @java.lang.Override @@ -7428,6 +8340,8 @@ public int getDaysSinceCustomTime() { return daysSinceCustomTime_; } /** + * + * *
            * Number of days that have elapsed since the custom timestamp set on an
            * object.
@@ -7435,17 +8349,20 @@ public int getDaysSinceCustomTime() {
            * 
* * optional int32 days_since_custom_time = 7; + * * @param value The daysSinceCustomTime to set. * @return This builder for chaining. */ public Builder setDaysSinceCustomTime(int value) { - + daysSinceCustomTime_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
            * Number of days that have elapsed since the custom timestamp set on an
            * object.
@@ -7453,6 +8370,7 @@ public Builder setDaysSinceCustomTime(int value) {
            * 
* * optional int32 days_since_custom_time = 7; + * * @return This builder for chaining. */ public Builder clearDaysSinceCustomTime() { @@ -7464,36 +8382,47 @@ 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.
@@ -7515,6 +8444,8 @@ 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.
@@ -7522,8 +8453,7 @@ 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 {
@@ -7534,6 +8464,8 @@ public Builder setCustomTimeBefore(
             return this;
           }
           /**
+           *
+           *
            * 
            * An object matches this condition if the custom timestamp set on the
            * object is before the specified date in UTC.
@@ -7543,9 +8475,9 @@ public Builder setCustomTimeBefore(
            */
           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;
@@ -7558,6 +8490,8 @@ public Builder mergeCustomTimeBefore(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.
@@ -7576,6 +8510,8 @@ 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.
@@ -7589,6 +8525,8 @@ 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.
@@ -7600,11 +8538,14 @@ 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.
@@ -7613,21 +8554,24 @@ 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
@@ -7637,6 +8581,7 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
            * 
* * optional int32 days_since_noncurrent_time = 9; + * * @return Whether the daysSinceNoncurrentTime field is set. */ @java.lang.Override @@ -7644,6 +8589,8 @@ 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
@@ -7653,6 +8600,7 @@ public boolean hasDaysSinceNoncurrentTime() {
            * 
* * optional int32 days_since_noncurrent_time = 9; + * * @return The daysSinceNoncurrentTime. */ @java.lang.Override @@ -7660,6 +8608,8 @@ 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
@@ -7669,17 +8619,20 @@ public int getDaysSinceNoncurrentTime() {
            * 
* * optional int32 days_since_noncurrent_time = 9; + * * @param value The daysSinceNoncurrentTime to set. * @return This builder for chaining. */ public Builder setDaysSinceNoncurrentTime(int value) { - + daysSinceNoncurrentTime_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if these many days have been
@@ -7689,6 +8642,7 @@ public Builder setDaysSinceNoncurrentTime(int value) {
            * 
* * optional int32 days_since_noncurrent_time = 9; + * * @return This builder for chaining. */ public Builder clearDaysSinceNoncurrentTime() { @@ -7700,8 +8654,11 @@ 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
@@ -7709,12 +8666,15 @@ 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
@@ -7722,16 +8682,21 @@ 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
@@ -7754,6 +8719,8 @@ 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
@@ -7762,8 +8729,7 @@ 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 {
@@ -7774,6 +8740,8 @@ public Builder setNoncurrentTimeBefore(
             return this;
           }
           /**
+           *
+           *
            * 
            * This condition is relevant only for versioned objects. An object
            * version satisfies this condition only if it became noncurrent before
@@ -7784,9 +8752,9 @@ public Builder setNoncurrentTimeBefore(
            */
           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;
@@ -7799,6 +8767,8 @@ public Builder mergeNoncurrentTimeBefore(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
@@ -7818,6 +8788,8 @@ 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
@@ -7832,6 +8804,8 @@ 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
@@ -7844,11 +8818,14 @@ 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
@@ -7858,58 +8835,69 @@ 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_;
           }
 
-          private com.google.protobuf.LazyStringList matchesPrefix_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+          private com.google.protobuf.LazyStringList matchesPrefix_ =
+              com.google.protobuf.LazyStringArrayList.EMPTY;
+
           private void ensureMatchesPrefixIsMutable() {
             if (!((bitField0_ & 0x00000200) != 0)) {
               matchesPrefix_ = new com.google.protobuf.LazyStringArrayList(matchesPrefix_);
               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() { return matchesPrefix_.getUnmodifiableView(); } /** + * + * *
            * 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. */ @@ -7917,81 +8905,95 @@ 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); 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 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); 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 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_); 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() { @@ -8001,18 +9003,22 @@ public Builder clearMatchesPrefix() { 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); @@ -8020,45 +9026,55 @@ public Builder addMatchesPrefixBytes( return this; } - private com.google.protobuf.LazyStringList matchesSuffix_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList matchesSuffix_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMatchesSuffixIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { matchesSuffix_ = new com.google.protobuf.LazyStringArrayList(matchesSuffix_); 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() { return matchesSuffix_.getUnmodifiableView(); } /** + * + * *
            * 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. */ @@ -8066,81 +9082,95 @@ 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); 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 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); 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 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_); 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() { @@ -8150,24 +9180,29 @@ public Builder clearMatchesSuffix() { 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); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8180,41 +9215,42 @@ 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(); - } - - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultInstance() { - 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(); - } - }; + // @@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(); + } + + public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultInstance() { + 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(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8229,17 +9265,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } 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 @@ -8247,18 +9285,25 @@ public boolean hasAction() { return action_ != null; } /** + * + * *
        * 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.
        * 
@@ -8267,17 +9312,22 @@ 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 @@ -8285,18 +9335,25 @@ public boolean hasCondition() { return condition_ != null; } /** + * + * *
        * 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.
        * 
@@ -8304,11 +9361,15 @@ 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; @@ -8320,8 +9381,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (action_ != null) { output.writeMessage(1, getAction()); } @@ -8338,12 +9398,10 @@ public int getSerializedSize() { size = 0; if (action_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAction()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAction()); } if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCondition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCondition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8353,22 +9411,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.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; @@ -8394,88 +9451,94 @@ 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 @@ -8485,6 +9548,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A lifecycle Rule, combining an action to take on an object and a
        * condition which will trigger that action.
@@ -8492,33 +9557,33 @@ 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() {}
 
-        }
-
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
-
         }
+
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -8537,9 +9602,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
@@ -8558,8 +9623,11 @@ 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;
         }
@@ -8567,14 +9635,10 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule buildPartial() {
         private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
-            result.action_ = actionBuilder_ == null
-                ? action_
-                : actionBuilder_.build();
+            result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build();
           }
           if (((from_bitField0_ & 0x00000002) != 0)) {
-            result.condition_ = conditionBuilder_ == null
-                ? condition_
-                : conditionBuilder_.build();
+            result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build();
           }
         }
 
@@ -8582,38 +9646,41 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule 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.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;
@@ -8621,7 +9688,8 @@ 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());
           }
@@ -8654,26 +9722,25 @@ 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) {
@@ -8683,38 +9750,52 @@ 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.
          * 
@@ -8735,6 +9816,8 @@ public Builder setAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action valu return this; } /** + * + * *
          * The action to take.
          * 
@@ -8753,6 +9836,8 @@ public Builder setAction( return this; } /** + * + * *
          * The action to take.
          * 
@@ -8761,9 +9846,10 @@ 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; @@ -8776,6 +9862,8 @@ public Builder mergeAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action va return this; } /** + * + * *
          * The action to take.
          * 
@@ -8793,6 +9881,8 @@ public Builder clearAction() { return this; } /** + * + * *
          * The action to take.
          * 
@@ -8805,6 +9895,8 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder getActionBuild return getActionFieldBuilder().getBuilder(); } /** + * + * *
          * The action to take.
          * 
@@ -8815,11 +9907,14 @@ 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.
          * 
@@ -8827,14 +9922,17 @@ 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_; @@ -8842,34 +9940,47 @@ 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.
          * 
@@ -8890,6 +10001,8 @@ public Builder setCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Conditio return this; } /** + * + * *
          * The condition(s) under which the action will be taken.
          * 
@@ -8908,6 +10021,8 @@ public Builder setCondition( return this; } /** + * + * *
          * The condition(s) under which the action will be taken.
          * 
@@ -8916,9 +10031,10 @@ 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; @@ -8931,6 +10047,8 @@ public Builder mergeCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Condit return this; } /** + * + * *
          * The condition(s) under which the action will be taken.
          * 
@@ -8948,6 +10066,8 @@ public Builder clearCondition() { return this; } /** + * + * *
          * The condition(s) under which the action will be taken.
          * 
@@ -8960,21 +10080,27 @@ 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.
          * 
@@ -8982,18 +10108,22 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder getConditi * .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) { @@ -9006,12 +10136,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(); } @@ -9020,27 +10150,28 @@ 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; @@ -9055,13 +10186,15 @@ 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.
@@ -9074,6 +10207,8 @@ 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.
@@ -9082,11 +10217,13 @@ 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.
@@ -9099,6 +10236,8 @@ 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.
@@ -9111,6 +10250,8 @@ 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.
@@ -9119,12 +10260,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;
@@ -9136,8 +10277,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       for (int i = 0; i < rule_.size(); i++) {
         output.writeMessage(1, rule_.get(i));
       }
@@ -9151,8 +10291,7 @@ 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;
@@ -9162,15 +10301,14 @@ public int 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;
     }
@@ -9191,88 +10329,94 @@ 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
@@ -9282,6 +10426,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Lifecycle properties of a bucket.
      * For more information, see https://cloud.google.com/storage/docs/lifecycle.
@@ -9289,33 +10435,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) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -9331,9 +10477,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
@@ -9352,9 +10498,12 @@ 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;
       }
@@ -9379,38 +10528,41 @@ 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;
@@ -9437,9 +10589,10 @@ 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_);
             }
@@ -9471,25 +10624,26 @@ 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) {
@@ -9499,21 +10653,28 @@ 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.
@@ -9529,6 +10690,8 @@ 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.
@@ -9544,6 +10707,8 @@ 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.
@@ -9559,6 +10724,8 @@ 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.
@@ -9566,8 +10733,7 @@ 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();
@@ -9581,6 +10747,8 @@ 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.
@@ -9600,6 +10768,8 @@ 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.
@@ -9621,6 +10791,8 @@ 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.
@@ -9628,8 +10800,7 @@ 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();
@@ -9643,6 +10814,8 @@ 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.
@@ -9650,8 +10823,7 @@ public Builder addRule(
        *
        * 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());
@@ -9662,6 +10834,8 @@ 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.
@@ -9681,6 +10855,8 @@ 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.
@@ -9692,8 +10868,7 @@ 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);
@@ -9701,6 +10876,8 @@ 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.
@@ -9719,6 +10896,8 @@ 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.
@@ -9737,6 +10916,8 @@ 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.
@@ -9744,11 +10925,12 @@ 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.
@@ -9756,14 +10938,16 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder getRuleBuilder(
        *
        * 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.
@@ -9771,8 +10955,8 @@ public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(
        *
        * 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 {
@@ -9780,6 +10964,8 @@ public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(
         }
       }
       /**
+       *
+       *
        * 
        * A lifecycle management rule, which is made of an action to take and the
        * condition(s) under which the action will be taken.
@@ -9788,10 +10974,12 @@ public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(
        * 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.
@@ -9799,12 +10987,13 @@ 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.
@@ -9812,24 +11001,28 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder addRuleBuilder(
        *
        * 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) {
@@ -9842,12 +11035,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();
     }
@@ -9856,27 +11049,28 @@ 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;
@@ -9891,71 +11085,84 @@ 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_ = ""; @@ -9963,39 +11170,44 @@ private Logging() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Logging(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -10004,30 +11216,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 { @@ -10036,14 +11248,18 @@ public java.lang.String getLogBucket() { } 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 @@ -10052,29 +11268,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 { @@ -10083,6 +11299,7 @@ public java.lang.String getLogObjectPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10094,8 +11311,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logBucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logBucket_); } @@ -10125,17 +11341,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.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; } @@ -10156,88 +11370,94 @@ 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 @@ -10247,39 +11467,41 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -10290,9 +11512,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 @@ -10311,8 +11533,11 @@ 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; } @@ -10331,38 +11556,41 @@ 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; @@ -10407,22 +11635,25 @@ 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) { @@ -10432,23 +11663,26 @@ 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; @@ -10457,21 +11691,22 @@ 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 { @@ -10479,30 +11714,37 @@ 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; + * * @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() { @@ -10512,18 +11754,22 @@ 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; @@ -10533,18 +11779,20 @@ public Builder setLogBucketBytes( 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; @@ -10553,20 +11801,21 @@ 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 { @@ -10574,28 +11823,35 @@ public java.lang.String getLogObjectPrefix() { } } /** + * + * *
        * 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() { @@ -10605,23 +11861,28 @@ 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) { @@ -10634,12 +11895,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(); } @@ -10648,27 +11909,28 @@ 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; @@ -10683,34 +11945,42 @@ 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.
@@ -10721,16 +11991,21 @@ public interface RetentionPolicyOrBuilder extends
     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
@@ -10740,10 +12015,13 @@ public interface RetentionPolicyOrBuilder extends
      * 
* * .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
@@ -10753,10 +12031,13 @@ public interface RetentionPolicyOrBuilder extends
      * 
* * .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
@@ -10770,58 +12051,64 @@ public interface RetentionPolicyOrBuilder extends
     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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } 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 @@ -10829,19 +12116,26 @@ public boolean hasEffectiveTime() { return effectiveTime_ != null; } /** + * + * *
      * 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.
@@ -10851,17 +12145,22 @@ 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 @@ -10872,6 +12171,8 @@ 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
@@ -10881,6 +12182,7 @@ public boolean getIsLocked() {
      * 
* * .google.protobuf.Duration retention_duration = 4; + * * @return Whether the retentionDuration field is set. */ @java.lang.Override @@ -10888,6 +12190,8 @@ public boolean hasRetentionDuration() { return retentionDuration_ != null; } /** + * + * *
      * The duration that objects need to be retained. Retention duration must be
      * greater than zero and less than 100 years. Note that enforcement of
@@ -10897,13 +12201,18 @@ 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
@@ -10916,10 +12225,13 @@ 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;
@@ -10931,8 +12243,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (effectiveTime_ != null) {
         output.writeMessage(1, getEffectiveTime());
       }
@@ -10952,16 +12263,13 @@ public int getSerializedSize() {
 
       size = 0;
       if (effectiveTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getEffectiveTime());
+        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());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRetentionDuration());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -10971,24 +12279,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.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;
@@ -11006,8 +12312,7 @@ 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();
@@ -11017,88 +12322,94 @@ 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
@@ -11108,39 +12419,41 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -11160,9 +12473,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 @@ -11181,8 +12494,11 @@ 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; } @@ -11190,17 +12506,17 @@ public com.google.storage.v2.Bucket.RetentionPolicy buildPartial() { private void buildPartial0(com.google.storage.v2.Bucket.RetentionPolicy result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.effectiveTime_ = effectiveTimeBuilder_ == null - ? effectiveTime_ - : effectiveTimeBuilder_.build(); + result.effectiveTime_ = + effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build(); } 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(); } } @@ -11208,38 +12524,41 @@ private void buildPartial0(com.google.storage.v2.Bucket.RetentionPolicy 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.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; @@ -11283,31 +12602,32 @@ 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) { @@ -11317,40 +12637,54 @@ 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.
@@ -11372,6 +12706,8 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -11379,8 +12715,7 @@ 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 {
@@ -11391,6 +12726,8 @@ public Builder setEffectiveTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -11400,9 +12737,9 @@ public Builder setEffectiveTime(
        */
       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;
@@ -11415,6 +12752,8 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -11433,6 +12772,8 @@ public Builder clearEffectiveTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -11446,6 +12787,8 @@ public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() {
         return getEffectiveTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Server-determined value that indicates the time from which policy was
        * enforced and effective.
@@ -11457,11 +12800,14 @@ 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.
@@ -11470,26 +12816,32 @@ 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 @@ -11497,27 +12849,33 @@ 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. */ public Builder setIsLocked(boolean value) { - + isLocked_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Once locked, an object retention policy cannot be modified.
        * 
* * bool is_locked = 2; + * * @return This builder for chaining. */ public Builder clearIsLocked() { @@ -11529,8 +12887,13 @@ 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
@@ -11540,12 +12903,15 @@ 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
@@ -11555,16 +12921,21 @@ 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
@@ -11589,6 +12960,8 @@ 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
@@ -11599,8 +12972,7 @@ 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 {
@@ -11611,6 +12983,8 @@ public Builder setRetentionDuration(
         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
@@ -11623,9 +12997,9 @@ public Builder setRetentionDuration(
        */
       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;
@@ -11638,6 +13012,8 @@ public Builder mergeRetentionDuration(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
@@ -11659,6 +13035,8 @@ 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
@@ -11675,6 +13053,8 @@ 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
@@ -11689,11 +13069,14 @@ 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
@@ -11705,18 +13088,22 @@ 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) {
@@ -11729,12 +13116,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();
     }
@@ -11743,27 +13130,28 @@ 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;
@@ -11778,24 +13166,29 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.storage.v2.Bucket.RetentionPolicy 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
@@ -11804,51 +13197,55 @@ public interface VersioningOrBuilder extends
    *
    * 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();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.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 @@ -11857,6 +13254,7 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11868,8 +13266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -11883,8 +13280,7 @@ 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; @@ -11894,15 +13290,14 @@ public int 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; } @@ -11915,95 +13310,100 @@ 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 @@ -12013,6 +13413,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Properties of a bucket related to versioning.
      * For more on Cloud Storage versioning, see
@@ -12021,33 +13423,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) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -12057,9 +13459,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
@@ -12078,8 +13480,11 @@ 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;
       }
@@ -12095,38 +13500,41 @@ 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;
@@ -12164,17 +13572,19 @@ 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) {
@@ -12184,15 +13594,19 @@ 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 @@ -12200,27 +13614,33 @@ 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. */ public Builder setEnabled(boolean value) { - + enabled_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * While set to true, versioning is fully enabled for this bucket.
        * 
* * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -12229,6 +13649,7 @@ public Builder clearEnabled() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12241,12 +13662,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(); } @@ -12255,27 +13676,28 @@ 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; @@ -12290,14 +13712,16 @@ 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
@@ -12306,10 +13730,13 @@ public interface WebsiteOrBuilder extends
      * 
* * 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
@@ -12318,12 +13745,14 @@ public interface WebsiteOrBuilder extends
      * 
* * 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
@@ -12333,10 +13762,13 @@ public interface WebsiteOrBuilder extends
      * 
* * 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
@@ -12346,12 +13778,14 @@ public interface WebsiteOrBuilder extends
      * 
* * 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
@@ -12360,15 +13794,16 @@ public interface WebsiteOrBuilder extends
    *
    * 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_ = "";
@@ -12376,33 +13811,37 @@ private Website() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Website();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.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
@@ -12411,6 +13850,7 @@ protected java.lang.Object newInstance(
      * 
* * string main_page_suffix = 1; + * * @return The mainPageSuffix. */ @java.lang.Override @@ -12419,14 +13859,15 @@ 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
@@ -12435,16 +13876,15 @@ 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 { @@ -12453,9 +13893,12 @@ public java.lang.String getMainPageSuffix() { } 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
@@ -12465,6 +13908,7 @@ public java.lang.String getMainPageSuffix() {
      * 
* * string not_found_page = 2; + * * @return The notFoundPage. */ @java.lang.Override @@ -12473,14 +13917,15 @@ 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
@@ -12490,16 +13935,15 @@ 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 { @@ -12508,6 +13952,7 @@ public java.lang.String getNotFoundPage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12519,8 +13964,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPageSuffix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPageSuffix_); } @@ -12550,17 +13994,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.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; } @@ -12581,88 +14023,94 @@ 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 @@ -12672,6 +14120,8 @@ 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
@@ -12680,33 +14130,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) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -12717,9 +14167,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
@@ -12738,8 +14188,11 @@ 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;
       }
@@ -12758,38 +14211,41 @@ 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;
@@ -12834,22 +14290,25 @@ 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) {
@@ -12859,10 +14318,13 @@ 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
@@ -12871,13 +14333,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; @@ -12886,6 +14348,8 @@ 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
@@ -12894,15 +14358,14 @@ 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 { @@ -12910,6 +14373,8 @@ 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
@@ -12918,18 +14383,22 @@ public java.lang.String getMainPageSuffix() {
        * 
* * 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
@@ -12938,6 +14407,7 @@ public Builder setMainPageSuffix(
        * 
* * string main_page_suffix = 1; + * * @return This builder for chaining. */ public Builder clearMainPageSuffix() { @@ -12947,6 +14417,8 @@ 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
@@ -12955,12 +14427,14 @@ 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; @@ -12970,6 +14444,8 @@ public Builder setMainPageSuffixBytes( private java.lang.Object notFoundPage_ = ""; /** + * + * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -12979,13 +14455,13 @@ public Builder setMainPageSuffixBytes(
        * 
* * 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; @@ -12994,6 +14470,8 @@ public java.lang.String getNotFoundPage() { } } /** + * + * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -13003,15 +14481,14 @@ 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 { @@ -13019,6 +14496,8 @@ public java.lang.String getNotFoundPage() { } } /** + * + * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -13028,18 +14507,22 @@ public java.lang.String getNotFoundPage() {
        * 
* * 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
@@ -13049,6 +14532,7 @@ public Builder setNotFoundPage(
        * 
* * string not_found_page = 2; + * * @return This builder for chaining. */ public Builder clearNotFoundPage() { @@ -13058,6 +14542,8 @@ public Builder clearNotFoundPage() { return this; } /** + * + * *
        * If the requested object path is missing, and any
        * `mainPageSuffix` object is missing, if applicable, the service
@@ -13067,18 +14553,21 @@ 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) { @@ -13091,12 +14580,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(); } @@ -13105,27 +14594,28 @@ 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; @@ -13140,55 +14630,67 @@ 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
@@ -13197,76 +14699,87 @@ public interface CustomPlacementConfigOrBuilder extends
    *
    * 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.EMPTY;
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new CustomPlacementConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.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.LazyStringList dataLocations_;
     /**
+     *
+     *
      * 
      * 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. */ @@ -13274,20 +14787,23 @@ 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; @@ -13299,8 +14815,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < dataLocations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataLocations_.getRaw(i)); } @@ -13329,15 +14844,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; } @@ -13359,87 +14874,93 @@ 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 @@ -13449,6 +14970,8 @@ 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
@@ -13457,33 +14980,33 @@ 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) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -13494,9 +15017,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_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
@@ -13515,14 +15038,18 @@ 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);
+        com.google.storage.v2.Bucket.CustomPlacementConfig result =
+            new com.google.storage.v2.Bucket.CustomPlacementConfig(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.storage.v2.Bucket.CustomPlacementConfig result) {
+      private void buildPartialRepeatedFields(
+          com.google.storage.v2.Bucket.CustomPlacementConfig result) {
         if (((bitField0_ & 0x00000001) != 0)) {
           dataLocations_ = dataLocations_.getUnmodifiableView();
           bitField0_ = (bitField0_ & ~0x00000001);
@@ -13538,38 +15065,41 @@ 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;
@@ -13577,7 +15107,8 @@ 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_;
@@ -13614,18 +15145,20 @@ 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) {
@@ -13635,44 +15168,55 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList dataLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      private com.google.protobuf.LazyStringList dataLocations_ =
+          com.google.protobuf.LazyStringArrayList.EMPTY;
+
       private void ensureDataLocationsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           dataLocations_ = new com.google.protobuf.LazyStringArrayList(dataLocations_);
           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() { return dataLocations_.getUnmodifiableView(); } /** + * + * *
        * 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. */ @@ -13680,76 +15224,90 @@ 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); onChanged(); 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); onChanged(); 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_); onChanged(); return this; } /** + * + * *
        * List of locations to use for data placement.
        * 
* * repeated string data_locations = 1; + * * @return This builder for chaining. */ public Builder clearDataLocations() { @@ -13759,23 +15317,28 @@ public Builder clearDataLocations() { 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); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13788,12 +15351,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(); } @@ -13802,27 +15365,28 @@ 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; @@ -13837,24 +15401,29 @@ 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
@@ -13862,11 +15431,16 @@ public interface AutoclassOrBuilder extends
      * 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
@@ -13874,11 +15448,16 @@ public interface AutoclassOrBuilder extends
      * 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
@@ -13886,62 +15465,70 @@ public interface AutoclassOrBuilder extends
      * 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(); } /** + * + * *
    * 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() { - } + + private Autoclass() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Autoclass(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** + * + * *
      * Enables Autoclass.
      * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -13952,6 +15539,8 @@ 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
@@ -13959,7 +15548,10 @@ 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 @@ -13967,6 +15559,8 @@ public boolean hasToggleTime() { return toggleTime_ != null; } /** + * + * *
      * 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
@@ -13974,7 +15568,10 @@ 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 @@ -13982,6 +15579,8 @@ 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
@@ -13989,7 +15588,9 @@ 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() { @@ -13997,6 +15598,7 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -14008,8 +15610,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -14026,12 +15627,10 @@ 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 (toggleTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getToggleTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToggleTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -14041,19 +15640,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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -14067,8 +15664,7 @@ 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(); @@ -14078,88 +15674,94 @@ 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 @@ -14169,39 +15771,41 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -14216,9 +15820,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 @@ -14237,8 +15841,11 @@ 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; } @@ -14249,9 +15856,8 @@ private void buildPartial0(com.google.storage.v2.Bucket.Autoclass result) { result.enabled_ = enabled_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.toggleTime_ = toggleTimeBuilder_ == null - ? toggleTime_ - : toggleTimeBuilder_.build(); + result.toggleTime_ = + toggleTimeBuilder_ == null ? toggleTime_ : toggleTimeBuilder_.build(); } } @@ -14259,38 +15865,41 @@ 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; @@ -14331,24 +15940,25 @@ 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 - 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -14358,15 +15968,19 @@ 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 @@ -14374,27 +15988,33 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
        * Enables Autoclass.
        * 
* * bool enabled = 1; + * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Enables Autoclass.
        * 
* * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -14406,8 +16026,13 @@ 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
@@ -14415,13 +16040,18 @@ 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
@@ -14429,17 +16059,24 @@ 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
@@ -14447,7 +16084,9 @@ 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) { @@ -14463,6 +16102,8 @@ 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
@@ -14470,10 +16111,11 @@ 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 { @@ -14484,6 +16126,8 @@ public Builder setToggleTime( 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
@@ -14491,13 +16135,15 @@ public Builder setToggleTime(
        * 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; @@ -14510,6 +16156,8 @@ public Builder mergeToggleTime(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
@@ -14517,7 +16165,9 @@ 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); @@ -14530,6 +16180,8 @@ 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
@@ -14537,7 +16189,9 @@ 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; @@ -14545,6 +16199,8 @@ 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
@@ -14552,17 +16208,22 @@ 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
@@ -14570,21 +16231,27 @@ 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_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14597,12 +16264,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(); } @@ -14611,27 +16278,28 @@ 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; @@ -14646,18 +16314,21 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Autoclass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Immutable. The name of the bucket.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -14666,29 +16337,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; } } /** + * + * *
    * Immutable. The name of the 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 { @@ -14697,9 +16368,12 @@ public java.lang.String getName() { } 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
@@ -14707,6 +16381,7 @@ public java.lang.String getName() {
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bucketId. */ @java.lang.Override @@ -14715,14 +16390,15 @@ 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
@@ -14730,16 +16406,15 @@ 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 { @@ -14748,9 +16423,12 @@ public java.lang.String getBucketId() { } 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
@@ -14758,6 +16436,7 @@ public java.lang.String getBucketId() {
    * 
* * string etag = 29; + * * @return The etag. */ @java.lang.Override @@ -14766,14 +16445,15 @@ 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
@@ -14781,16 +16461,15 @@ 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 { @@ -14799,16 +16478,22 @@ public java.lang.String getEtag() { } 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 @@ -14817,31 +16502,33 @@ 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 { @@ -14852,6 +16539,8 @@ public java.lang.String getProject() { public static final int METAGENERATION_FIELD_NUMBER = 4; private long metageneration_ = 0L; /** + * + * *
    * Output only. The metadata generation of this bucket.
    * Attempting to set or update this field will result in a
@@ -14859,6 +16548,7 @@ public java.lang.String getProject() {
    * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -14867,9 +16557,12 @@ 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`.
@@ -14880,6 +16573,7 @@ public long getMetageneration() {
    * 
* * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The location. */ @java.lang.Override @@ -14888,14 +16582,15 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
    * Immutable. The location of the bucket. Object data for objects in the
    * bucket resides in physical storage within this region.  Defaults to `US`.
@@ -14906,16 +16601,15 @@ 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 { @@ -14924,15 +16618,19 @@ public java.lang.String getLocation() { } 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 @@ -14941,30 +16639,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 { @@ -14973,9 +16671,12 @@ public java.lang.String getLocationType() { } 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
@@ -14986,6 +16687,7 @@ public java.lang.String getLocationType() {
    * 
* * string storage_class = 7; + * * @return The storageClass. */ @java.lang.Override @@ -14994,14 +16696,15 @@ 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
@@ -15012,16 +16715,15 @@ 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 { @@ -15030,9 +16732,12 @@ public java.lang.String getStorageClass() { } 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
@@ -15043,6 +16748,7 @@ public java.lang.String getStorageClass() {
    * 
* * string rpo = 27; + * * @return The rpo. */ @java.lang.Override @@ -15051,14 +16757,15 @@ 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
@@ -15069,16 +16776,15 @@ 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 { @@ -15087,9 +16793,12 @@ public java.lang.String getRpo() { } 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,
@@ -15103,6 +16812,8 @@ public java.util.List getAclList() {
     return acl_;
   }
   /**
+   *
+   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -15112,11 +16823,13 @@ 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,
@@ -15130,6 +16843,8 @@ public int getAclCount() {
     return acl_.size();
   }
   /**
+   *
+   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -15143,6 +16858,8 @@ 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,
@@ -15152,15 +16869,17 @@ 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,
@@ -15174,6 +16893,8 @@ 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,
@@ -15183,11 +16904,13 @@ 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,
@@ -15201,6 +16924,8 @@ 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,
@@ -15214,6 +16939,8 @@ 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,
@@ -15231,6 +16958,8 @@ 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]
@@ -15238,6 +16967,7 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrB
    * 
* * .google.storage.v2.Bucket.Lifecycle lifecycle = 10; + * * @return Whether the lifecycle field is set. */ @java.lang.Override @@ -15245,6 +16975,8 @@ public boolean hasLifecycle() { return lifecycle_ != null; } /** + * + * *
    * The bucket's lifecycle config. See
    * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -15252,13 +16984,18 @@ 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]
@@ -15269,19 +17006,25 @@ 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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -15289,13 +17032,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The creation time of the bucket.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -15303,13 +17050,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation time of the bucket.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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() { @@ -15317,9 +17067,12 @@ 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.
@@ -15332,6 +17085,8 @@ public java.util.List getCorsList() {
     return cors_;
   }
   /**
+   *
+   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -15340,11 +17095,13 @@ 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.
@@ -15357,6 +17114,8 @@ public int getCorsCount() {
     return cors_.size();
   }
   /**
+   *
+   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -15369,6 +17128,8 @@ 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.
@@ -15377,21 +17138,24 @@ 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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -15399,13 +17163,17 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The modification time of the bucket.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -15413,13 +17181,16 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The modification time of the bucket.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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() { @@ -15429,6 +17200,8 @@ 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
@@ -15446,6 +17219,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * bool default_event_based_hold = 14; + * * @return The defaultEventBasedHold. */ @java.lang.Override @@ -15454,32 +17228,34 @@ public boolean getDefaultEventBasedHold() { } public static final int LABELS_FIELD_NUMBER = 15; + private static final class LabelsDefaultEntryHolder { - 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, - ""); + 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, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField 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.
    * 
@@ -15487,20 +17263,21 @@ 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.
    * 
@@ -15512,6 +17289,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * User-provided labels, in key/value pairs.
    * 
@@ -15519,17 +17298,19 @@ 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.
    * 
@@ -15537,11 +17318,11 @@ java.lang.String getLabelsOrDefault( * 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(); } @@ -15551,6 +17332,8 @@ public java.lang.String getLabelsOrThrow( 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
@@ -15559,6 +17342,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * .google.storage.v2.Bucket.Website website = 16; + * * @return Whether the website field is set. */ @java.lang.Override @@ -15566,6 +17350,8 @@ public boolean hasWebsite() { return website_ != null; } /** + * + * *
    * The bucket's website config, controlling how the service behaves
    * when accessing bucket contents as a web site. See the
@@ -15574,6 +17360,7 @@ public boolean hasWebsite() {
    * 
* * .google.storage.v2.Bucket.Website website = 16; + * * @return The website. */ @java.lang.Override @@ -15581,6 +17368,8 @@ 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
@@ -15598,11 +17387,14 @@ 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 @@ -15610,18 +17402,25 @@ public boolean hasVersioning() { return versioning_ != null; } /** + * + * *
    * 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.
    * 
@@ -15630,18 +17429,23 @@ 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 @@ -15649,12 +17453,15 @@ public boolean hasLogging() { return logging_ != null; } /** + * + * *
    * 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 @@ -15662,6 +17469,8 @@ 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.
@@ -15677,12 +17486,15 @@ 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 @@ -15690,12 +17502,15 @@ public boolean hasOwner() { return owner_ != null; } /** + * + * *
    * 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 @@ -15703,6 +17518,8 @@ 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.
@@ -15718,11 +17535,14 @@ 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 @@ -15730,18 +17550,25 @@ public boolean hasEncryption() { return encryption_ != null; } /** + * + * *
    * 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.
    * 
@@ -15750,17 +17577,22 @@ 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 @@ -15768,11 +17600,14 @@ public boolean hasBilling() { return billing_ != null; } /** + * + * *
    * The bucket's billing config.
    * 
* * .google.storage.v2.Bucket.Billing billing = 21; + * * @return The billing. */ @java.lang.Override @@ -15780,6 +17615,8 @@ public com.google.storage.v2.Bucket.Billing getBilling() { return billing_ == null ? com.google.storage.v2.Bucket.Billing.getDefaultInstance() : billing_; } /** + * + * *
    * The bucket's billing config.
    * 
@@ -15794,6 +17631,8 @@ 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
@@ -15807,6 +17646,7 @@ 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 @@ -15814,6 +17654,8 @@ public boolean hasRetentionPolicy() { return retentionPolicy_ != null; } /** + * + * *
    * The bucket's retention policy. The retention policy enforces a minimum
    * retention time for all objects contained in the bucket, based on their
@@ -15827,13 +17669,18 @@ 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
@@ -15850,17 +17697,22 @@ 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 @@ -15868,18 +17720,25 @@ public boolean hasIamConfig() { return iamConfig_ != null; } /** + * + * *
    * 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.
    * 
@@ -15888,17 +17747,22 @@ 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 @@ -15909,12 +17773,15 @@ 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 @@ -15922,19 +17789,26 @@ public boolean hasCustomPlacementConfig() { return customPlacementConfig_ != null; } /** + * + * *
    * 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].
@@ -15943,19 +17817,25 @@ 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 @@ -15963,19 +17843,26 @@ public boolean hasAutoclass() { return autoclass_ != null; } /** + * + * *
    * 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.
@@ -15985,10 +17872,13 @@ 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_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -16000,8 +17890,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -16044,12 +17933,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (defaultEventBasedHold_ != false) {
       output.writeBool(14, defaultEventBasedHold_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        15);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15);
     if (website_ != null) {
       output.writeMessage(16, getWebsite());
     }
@@ -16108,8 +17993,7 @@ 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_);
@@ -16121,89 +18005,72 @@ 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());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLifecycle());
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, getCreateTime());
+      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());
+      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__);
+      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());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getWebsite());
     }
     if (versioning_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(17, getVersioning());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getVersioning());
     }
     if (logging_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(18, getLogging());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLogging());
     }
     if (owner_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(19, getOwner());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getOwner());
     }
     if (encryption_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(20, getEncryption());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getEncryption());
     }
     if (billing_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(21, getBilling());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getBilling());
     }
     if (retentionPolicy_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(22, getRetentionPolicy());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getRetentionPolicy());
     }
     if (iamConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(23, getIamConfig());
+      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());
+      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());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getAutoclass());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, etag_);
@@ -16216,107 +18083,79 @@ public int 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -16338,8 +18177,7 @@ 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;
@@ -16373,8 +18211,7 @@ 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();
@@ -16412,8 +18249,7 @@ 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();
@@ -16427,152 +18263,153 @@ 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.MapField internalGetMapField(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.MapField internalGetMutableMapField(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() { - - } + // Construct using com.google.storage.v2.Bucket.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -16679,8 +18516,7 @@ 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; } @@ -16702,7 +18538,9 @@ 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; } @@ -16767,19 +18605,13 @@ private void buildPartial0(com.google.storage.v2.Bucket result) { result.rpo_ = rpo_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.lifecycle_ = lifecycleBuilder_ == null - ? lifecycle_ - : lifecycleBuilder_.build(); + result.lifecycle_ = lifecycleBuilder_ == null ? lifecycle_ : lifecycleBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00004000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00008000) != 0)) { result.defaultEventBasedHold_ = defaultEventBasedHold_; @@ -16789,57 +18621,41 @@ 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(); } if (((from_bitField0_ & 0x00040000) != 0)) { - result.versioning_ = versioningBuilder_ == null - ? versioning_ - : versioningBuilder_.build(); + result.versioning_ = versioningBuilder_ == null ? versioning_ : versioningBuilder_.build(); } if (((from_bitField0_ & 0x00080000) != 0)) { - result.logging_ = loggingBuilder_ == null - ? logging_ - : loggingBuilder_.build(); + result.logging_ = loggingBuilder_ == null ? logging_ : loggingBuilder_.build(); } if (((from_bitField0_ & 0x00100000) != 0)) { - result.owner_ = ownerBuilder_ == null - ? owner_ - : ownerBuilder_.build(); + result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); } if (((from_bitField0_ & 0x00200000) != 0)) { - result.encryption_ = encryptionBuilder_ == null - ? encryption_ - : encryptionBuilder_.build(); + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); } if (((from_bitField0_ & 0x00400000) != 0)) { - result.billing_ = billingBuilder_ == null - ? billing_ - : billingBuilder_.build(); + result.billing_ = billingBuilder_ == null ? billing_ : billingBuilder_.build(); } if (((from_bitField0_ & 0x00800000) != 0)) { - result.retentionPolicy_ = retentionPolicyBuilder_ == null - ? retentionPolicy_ - : retentionPolicyBuilder_.build(); + result.retentionPolicy_ = + retentionPolicyBuilder_ == null ? retentionPolicy_ : retentionPolicyBuilder_.build(); } if (((from_bitField0_ & 0x01000000) != 0)) { - result.iamConfig_ = iamConfigBuilder_ == null - ? iamConfig_ - : iamConfigBuilder_.build(); + result.iamConfig_ = iamConfigBuilder_ == null ? iamConfig_ : iamConfigBuilder_.build(); } 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(); } if (((from_bitField0_ & 0x08000000) != 0)) { - result.autoclass_ = autoclassBuilder_ == null - ? autoclass_ - : autoclassBuilder_.build(); + result.autoclass_ = autoclassBuilder_ == null ? autoclass_ : autoclassBuilder_.build(); } } @@ -16847,38 +18663,39 @@ private void buildPartial0(com.google.storage.v2.Bucket 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.Bucket) { - return mergeFrom((com.google.storage.v2.Bucket)other); + return mergeFrom((com.google.storage.v2.Bucket) other); } else { super.mergeFrom(other); return this; @@ -16948,9 +18765,10 @@ 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_); } @@ -16974,9 +18792,10 @@ 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_); } @@ -17006,9 +18825,10 @@ 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_); } @@ -17020,8 +18840,7 @@ 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()); @@ -17082,206 +18901,209 @@ 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 - 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -17291,22 +19113,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Immutable. The name of the 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; @@ -17315,20 +19140,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the 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 { @@ -17336,28 +19162,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the 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.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -17367,17 +19200,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of the 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; @@ -17387,6 +19224,8 @@ public Builder setNameBytes( 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
@@ -17394,13 +19233,13 @@ public Builder setNameBytes(
      * 
* * 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; @@ -17409,6 +19248,8 @@ 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
@@ -17416,15 +19257,14 @@ 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 { @@ -17432,6 +19272,8 @@ 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
@@ -17439,18 +19281,22 @@ public java.lang.String getBucketId() {
      * 
* * 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
@@ -17458,6 +19304,7 @@ public Builder setBucketId(
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearBucketId() { @@ -17467,6 +19314,8 @@ 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
@@ -17474,12 +19323,14 @@ 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; @@ -17489,6 +19340,8 @@ public Builder setBucketIdBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -17496,13 +19349,13 @@ public Builder setBucketIdBytes(
      * 
* * 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; @@ -17511,6 +19364,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -17518,15 +19373,14 @@ 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 { @@ -17534,6 +19388,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -17541,18 +19397,22 @@ public java.lang.String getEtag() {
      * 
* * 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
@@ -17560,6 +19420,7 @@ public Builder setEtag(
      * 
* * string etag = 29; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -17569,6 +19430,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * The etag of the bucket.
      * If included in the metadata of an UpdateBucketRequest, the operation will
@@ -17576,12 +19439,14 @@ 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; @@ -17591,20 +19456,24 @@ public Builder setEtagBytes( 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; @@ -17613,22 +19482,25 @@ 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 { @@ -17636,32 +19508,43 @@ 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) = { ... } + * + * * @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() { @@ -17671,19 +19554,25 @@ 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; @@ -17691,8 +19580,10 @@ public Builder setProjectBytes( return this; } - private long metageneration_ ; + private long metageneration_; /** + * + * *
      * Output only. The metadata generation of this bucket.
      * Attempting to set or update this field will result in a
@@ -17700,6 +19591,7 @@ public Builder setProjectBytes(
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -17707,6 +19599,8 @@ public long getMetageneration() { return metageneration_; } /** + * + * *
      * Output only. The metadata generation of this bucket.
      * Attempting to set or update this field will result in a
@@ -17714,17 +19608,20 @@ public long getMetageneration() {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The metageneration to set. * @return This builder for chaining. */ public Builder setMetageneration(long value) { - + metageneration_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. The metadata generation of this bucket.
      * Attempting to set or update this field will result in a
@@ -17732,6 +19629,7 @@ public Builder setMetageneration(long value) {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -17743,6 +19641,8 @@ 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`.
@@ -17753,13 +19653,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; @@ -17768,6 +19668,8 @@ 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`.
@@ -17778,15 +19680,14 @@ 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 { @@ -17794,6 +19695,8 @@ 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`.
@@ -17804,18 +19707,22 @@ public java.lang.String getLocation() {
      * 
* * 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`.
@@ -17826,6 +19733,7 @@ public Builder setLocation(
      * 
* * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearLocation() { @@ -17835,6 +19743,8 @@ 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`.
@@ -17845,12 +19755,14 @@ 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; @@ -17860,19 +19772,21 @@ public Builder setLocationBytes( 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; @@ -17881,21 +19795,22 @@ 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 { @@ -17903,30 +19818,37 @@ 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]; + * * @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() { @@ -17936,18 +19858,22 @@ 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; @@ -17957,6 +19883,8 @@ public Builder setLocationTypeBytes( 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
@@ -17967,13 +19895,13 @@ public Builder setLocationTypeBytes(
      * 
* * 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; @@ -17982,6 +19910,8 @@ 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
@@ -17992,15 +19922,14 @@ 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 { @@ -18008,6 +19937,8 @@ 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
@@ -18018,18 +19949,22 @@ public java.lang.String getStorageClass() {
      * 
* * 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
@@ -18040,6 +19975,7 @@ public Builder setStorageClass(
      * 
* * string storage_class = 7; + * * @return This builder for chaining. */ public Builder clearStorageClass() { @@ -18049,6 +19985,8 @@ 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
@@ -18059,12 +19997,14 @@ 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; @@ -18074,6 +20014,8 @@ public Builder setStorageClassBytes( 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
@@ -18084,13 +20026,13 @@ public Builder setStorageClassBytes(
      * 
* * 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; @@ -18099,6 +20041,8 @@ 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
@@ -18109,15 +20053,14 @@ 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 { @@ -18125,6 +20068,8 @@ 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
@@ -18135,18 +20080,22 @@ public java.lang.String getRpo() {
      * 
* * 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
@@ -18157,6 +20106,7 @@ public Builder setRpo(
      * 
* * string rpo = 27; + * * @return This builder for chaining. */ public Builder clearRpo() { @@ -18166,6 +20116,8 @@ 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
@@ -18176,12 +20128,14 @@ 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; @@ -18189,19 +20143,25 @@ public Builder setRpoBytes( return this; } - private java.util.List acl_ = - java.util.Collections.emptyList(); + private java.util.List acl_ = + 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,
@@ -18218,6 +20178,8 @@ public java.util.List getAclList() {
       }
     }
     /**
+     *
+     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18234,6 +20196,8 @@ public int getAclCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18250,6 +20214,8 @@ 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,
@@ -18258,8 +20224,7 @@ 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();
@@ -18273,6 +20238,8 @@ public Builder setAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18293,6 +20260,8 @@ public Builder setAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18315,6 +20284,8 @@ 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,
@@ -18323,8 +20294,7 @@ 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();
@@ -18338,6 +20308,8 @@ public Builder addAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18346,8 +20318,7 @@ public Builder addAcl(
      *
      * 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());
@@ -18358,6 +20329,8 @@ public Builder addAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18378,6 +20351,8 @@ public Builder addAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18390,8 +20365,7 @@ 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);
@@ -18399,6 +20373,8 @@ public Builder addAllAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18418,6 +20394,8 @@ public Builder clearAcl() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18437,6 +20415,8 @@ public Builder removeAcl(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18445,11 +20425,12 @@ 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,
@@ -18458,14 +20439,16 @@ public com.google.storage.v2.BucketAccessControl.Builder getAclBuilder(
      *
      * 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,
@@ -18474,8 +20457,8 @@ public com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
      *
      * repeated .google.storage.v2.BucketAccessControl acl = 8;
      */
-    public java.util.List 
-         getAclOrBuilderList() {
+    public java.util.List
+        getAclOrBuilderList() {
       if (aclBuilder_ != null) {
         return aclBuilder_.getMessageOrBuilderList();
       } else {
@@ -18483,6 +20466,8 @@ public com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Access controls on the bucket.
      * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -18492,10 +20477,12 @@ public com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
      * 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,
@@ -18504,12 +20491,13 @@ 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,
@@ -18518,38 +20506,47 @@ public com.google.storage.v2.BucketAccessControl.Builder addAclBuilder(
      *
      * 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,
@@ -18566,6 +20563,8 @@ 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,
@@ -18582,6 +20581,8 @@ 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,
@@ -18598,6 +20599,8 @@ 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,
@@ -18606,8 +20609,7 @@ 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();
@@ -18621,6 +20623,8 @@ 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,
@@ -18641,6 +20645,8 @@ 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,
@@ -18663,6 +20669,8 @@ 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,
@@ -18671,8 +20679,7 @@ 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();
@@ -18686,6 +20693,8 @@ 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,
@@ -18706,6 +20715,8 @@ 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,
@@ -18726,6 +20737,8 @@ 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,
@@ -18738,8 +20751,7 @@ 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);
@@ -18747,6 +20759,8 @@ 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,
@@ -18766,6 +20780,8 @@ 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,
@@ -18785,6 +20801,8 @@ 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,
@@ -18793,11 +20811,12 @@ 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,
@@ -18809,11 +20828,14 @@ 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,
@@ -18822,8 +20844,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 {
@@ -18831,6 +20853,8 @@ 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,
@@ -18840,10 +20864,12 @@ 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,
@@ -18852,12 +20878,13 @@ 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,
@@ -18866,16 +20893,22 @@ 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(),
@@ -18887,8 +20920,13 @@ 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]
@@ -18896,12 +20934,15 @@ 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]
@@ -18909,16 +20950,21 @@ 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]
@@ -18941,6 +20987,8 @@ 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]
@@ -18949,8 +20997,7 @@ 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 {
@@ -18961,6 +21008,8 @@ public Builder setLifecycle(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -18971,9 +21020,9 @@ public Builder setLifecycle(
      */
     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;
@@ -18986,6 +21035,8 @@ public Builder mergeLifecycle(com.google.storage.v2.Bucket.Lifecycle value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -19005,6 +21056,8 @@ public Builder clearLifecycle() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's lifecycle config. See
      * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
@@ -19019,6 +21072,8 @@ 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]
@@ -19031,11 +21086,14 @@ 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]
@@ -19045,14 +21103,17 @@ 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_;
@@ -19060,45 +21121,64 @@ 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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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) { @@ -19114,16 +21194,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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 { @@ -19134,19 +21217,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -19159,13 +21246,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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); @@ -19178,13 +21269,17 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -19192,58 +21287,76 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
@@ -19259,6 +21372,8 @@ public java.util.List getCorsList() {
       }
     }
     /**
+     *
+     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -19274,6 +21389,8 @@ public int getCorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -19289,6 +21406,8 @@ 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.
@@ -19296,8 +21415,7 @@ 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();
@@ -19311,6 +21429,8 @@ public Builder setCors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -19318,8 +21438,7 @@ public Builder setCors(
      *
      * 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());
@@ -19330,6 +21449,8 @@ public Builder setCors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -19351,6 +21472,8 @@ 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.
@@ -19358,8 +21481,7 @@ 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();
@@ -19373,6 +21495,8 @@ public Builder addCors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -19380,8 +21504,7 @@ public Builder addCors(
      *
      * 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());
@@ -19392,6 +21515,8 @@ public Builder addCors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -19399,8 +21524,7 @@ public Builder addCors(
      *
      * 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());
@@ -19411,6 +21535,8 @@ public Builder addCors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -19422,8 +21548,7 @@ 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);
@@ -19431,6 +21556,8 @@ public Builder addAllCors(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -19449,6 +21576,8 @@ public Builder clearCors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -19467,6 +21596,8 @@ public Builder removeCors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -19474,11 +21605,12 @@ 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.
@@ -19486,14 +21618,16 @@ public com.google.storage.v2.Bucket.Cors.Builder getCorsBuilder(
      *
      * 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.
@@ -19501,8 +21635,8 @@ public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(
      *
      * 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 {
@@ -19510,6 +21644,8 @@ public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
      * (CORS) config.
@@ -19518,10 +21654,12 @@ public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(
      * 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.
@@ -19529,12 +21667,13 @@ 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.
@@ -19542,20 +21681,22 @@ public com.google.storage.v2.Bucket.Cors.Builder addCorsBuilder(
      *
      * 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_;
@@ -19563,45 +21704,64 @@ public com.google.storage.v2.Bucket.Cors.Builder addCorsBuilder(
 
     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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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) { @@ -19617,16 +21777,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The modification time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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 { @@ -19637,19 +21800,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The modification time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -19662,13 +21829,17 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The modification time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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); @@ -19681,13 +21852,17 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The modification time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -19695,47 +21870,61 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The modification time of the bucket.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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
@@ -19753,6 +21942,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * bool default_event_based_hold = 14; + * * @return The defaultEventBasedHold. */ @java.lang.Override @@ -19760,6 +21950,8 @@ 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
@@ -19777,17 +21969,20 @@ public boolean getDefaultEventBasedHold() {
      * 
* * bool default_event_based_hold = 14; + * * @param value The defaultEventBasedHold to set. * @return This builder for chaining. */ public Builder setDefaultEventBasedHold(boolean value) { - + defaultEventBasedHold_ = value; bitField0_ |= 0x00008000; onChanged(); 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
@@ -19805,6 +22000,7 @@ public Builder setDefaultEventBasedHold(boolean value) {
      * 
* * bool default_event_based_hold = 14; + * * @return This builder for chaining. */ public Builder clearDefaultEventBasedHold() { @@ -19814,21 +22010,19 @@ public Builder clearDefaultEventBasedHold() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField 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(); @@ -19837,10 +22031,13 @@ public Builder clearDefaultEventBasedHold() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * User-provided labels, in key/value pairs.
      * 
@@ -19848,20 +22045,21 @@ 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.
      * 
@@ -19873,6 +22071,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * User-provided labels, in key/value pairs.
      * 
@@ -19880,17 +22080,19 @@ 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.
      * 
@@ -19898,81 +22100,88 @@ java.lang.String getLabelsOrDefault( * 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
@@ -19981,12 +22190,15 @@ public Builder putAllLabels(
      * 
* * .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
@@ -19995,16 +22207,21 @@ 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
@@ -20028,6 +22245,8 @@ 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
@@ -20037,8 +22256,7 @@ 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 {
@@ -20049,6 +22267,8 @@ public Builder setWebsite(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's website config, controlling how the service behaves
      * when accessing bucket contents as a web site. See the
@@ -20060,9 +22280,9 @@ public Builder setWebsite(
      */
     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;
@@ -20075,6 +22295,8 @@ public Builder mergeWebsite(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
@@ -20095,6 +22317,8 @@ 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
@@ -20110,6 +22334,8 @@ 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
@@ -20123,11 +22349,14 @@ 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
@@ -20138,14 +22367,17 @@ 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_;
@@ -20153,34 +22385,47 @@ 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.
      * 
@@ -20201,14 +22446,15 @@ 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 { @@ -20219,6 +22465,8 @@ public Builder setVersioning( return this; } /** + * + * *
      * The bucket's versioning config.
      * 
@@ -20227,9 +22475,9 @@ public Builder setVersioning( */ 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; @@ -20242,6 +22490,8 @@ public Builder mergeVersioning(com.google.storage.v2.Bucket.Versioning value) { return this; } /** + * + * *
      * The bucket's versioning config.
      * 
@@ -20259,6 +22509,8 @@ public Builder clearVersioning() { return this; } /** + * + * *
      * The bucket's versioning config.
      * 
@@ -20271,6 +22523,8 @@ public com.google.storage.v2.Bucket.Versioning.Builder getVersioningBuilder() { return getVersioningFieldBuilder().getBuilder(); } /** + * + * *
      * The bucket's versioning config.
      * 
@@ -20281,11 +22535,14 @@ 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.
      * 
@@ -20293,14 +22550,17 @@ 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_; @@ -20308,36 +22568,49 @@ 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.
@@ -20359,6 +22632,8 @@ 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.
@@ -20366,8 +22641,7 @@ 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 {
@@ -20378,6 +22652,8 @@ public Builder setLogging(
       return this;
     }
     /**
+     *
+     *
      * 
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
@@ -20387,9 +22663,9 @@ public Builder setLogging(
      */
     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;
@@ -20402,6 +22678,8 @@ public Builder mergeLogging(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.
@@ -20420,6 +22698,8 @@ 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.
@@ -20433,6 +22713,8 @@ public com.google.storage.v2.Bucket.Logging.Builder getLoggingBuilder() {
       return getLoggingFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The bucket's logging config, which defines the destination bucket
      * and name prefix (if any) for the current bucket's logs.
@@ -20444,11 +22726,14 @@ 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.
@@ -20457,14 +22742,17 @@ 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_;
@@ -20472,26 +22760,37 @@ 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() { @@ -20502,12 +22801,15 @@ 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) { @@ -20523,15 +22825,17 @@ 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 { @@ -20542,18 +22846,21 @@ public Builder setOwner( 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; @@ -20566,12 +22873,15 @@ public Builder mergeOwner(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 clearOwner() { bitField0_ = (bitField0_ & ~0x00100000); @@ -20584,12 +22894,15 @@ 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; @@ -20597,38 +22910,46 @@ 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_; @@ -20636,34 +22957,47 @@ 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.
      * 
@@ -20684,14 +23018,15 @@ 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 { @@ -20702,6 +23037,8 @@ public Builder setEncryption( return this; } /** + * + * *
      * Encryption config for a bucket.
      * 
@@ -20710,9 +23047,9 @@ public Builder setEncryption( */ 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; @@ -20725,6 +23062,8 @@ public Builder mergeEncryption(com.google.storage.v2.Bucket.Encryption value) { return this; } /** + * + * *
      * Encryption config for a bucket.
      * 
@@ -20742,6 +23081,8 @@ public Builder clearEncryption() { return this; } /** + * + * *
      * Encryption config for a bucket.
      * 
@@ -20754,6 +23095,8 @@ public com.google.storage.v2.Bucket.Encryption.Builder getEncryptionBuilder() { return getEncryptionFieldBuilder().getBuilder(); } /** + * + * *
      * Encryption config for a bucket.
      * 
@@ -20764,11 +23107,14 @@ 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.
      * 
@@ -20776,14 +23122,17 @@ 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_; @@ -20791,34 +23140,47 @@ 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.
      * 
@@ -20839,14 +23201,15 @@ 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 { @@ -20857,6 +23220,8 @@ public Builder setBilling( return this; } /** + * + * *
      * The bucket's billing config.
      * 
@@ -20865,9 +23230,9 @@ public Builder setBilling( */ 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; @@ -20880,6 +23245,8 @@ public Builder mergeBilling(com.google.storage.v2.Bucket.Billing value) { return this; } /** + * + * *
      * The bucket's billing config.
      * 
@@ -20897,6 +23264,8 @@ public Builder clearBilling() { return this; } /** + * + * *
      * The bucket's billing config.
      * 
@@ -20909,6 +23278,8 @@ public com.google.storage.v2.Bucket.Billing.Builder getBillingBuilder() { return getBillingFieldBuilder().getBuilder(); } /** + * + * *
      * The bucket's billing config.
      * 
@@ -20919,11 +23290,14 @@ 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.
      * 
@@ -20931,14 +23305,17 @@ 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_; @@ -20946,8 +23323,13 @@ 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
@@ -20961,12 +23343,15 @@ 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
@@ -20980,16 +23365,21 @@ 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
@@ -21018,6 +23408,8 @@ 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
@@ -21044,6 +23436,8 @@ 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
@@ -21060,9 +23454,10 @@ 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;
@@ -21075,6 +23470,8 @@ public Builder mergeRetentionPolicy(com.google.storage.v2.Bucket.RetentionPolicy
       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
@@ -21100,6 +23497,8 @@ 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
@@ -21120,6 +23519,8 @@ 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
@@ -21138,11 +23539,14 @@ 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
@@ -21158,14 +23562,17 @@ 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_;
@@ -21173,34 +23580,47 @@ 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.
      * 
@@ -21221,14 +23641,15 @@ 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 { @@ -21239,6 +23660,8 @@ public Builder setIamConfig( return this; } /** + * + * *
      * The bucket's IAM config.
      * 
@@ -21247,9 +23670,9 @@ public Builder setIamConfig( */ 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; @@ -21262,6 +23685,8 @@ public Builder mergeIamConfig(com.google.storage.v2.Bucket.IamConfig value) { return this; } /** + * + * *
      * The bucket's IAM config.
      * 
@@ -21279,6 +23704,8 @@ public Builder clearIamConfig() { return this; } /** + * + * *
      * The bucket's IAM config.
      * 
@@ -21291,6 +23718,8 @@ public com.google.storage.v2.Bucket.IamConfig.Builder getIamConfigBuilder() { return getIamConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The bucket's IAM config.
      * 
@@ -21301,11 +23730,14 @@ 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.
      * 
@@ -21313,26 +23745,32 @@ 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 @@ -21340,27 +23778,33 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } /** + * + * *
      * Reserved for future use.
      * 
* * bool satisfies_pzs = 25; + * * @param value The satisfiesPzs to set. * @return This builder for chaining. */ public Builder setSatisfiesPzs(boolean value) { - + satisfiesPzs_ = value; bitField0_ |= 0x02000000; onChanged(); return this; } /** + * + * *
      * Reserved for future use.
      * 
* * bool satisfies_pzs = 25; + * * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { @@ -21372,36 +23816,49 @@ 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].
@@ -21409,7 +23866,8 @@ 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();
@@ -21423,6 +23881,8 @@ public Builder setCustomPlacementConfig(com.google.storage.v2.Bucket.CustomPlace
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -21442,6 +23902,8 @@ 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].
@@ -21449,11 +23911,13 @@ 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;
@@ -21466,6 +23930,8 @@ public Builder mergeCustomPlacementConfig(com.google.storage.v2.Bucket.CustomPla
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration that, if present, specifies the data placement for a
      * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
@@ -21484,6 +23950,8 @@ 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].
@@ -21491,12 +23959,15 @@ 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].
@@ -21504,15 +23975,19 @@ public com.google.storage.v2.Bucket.CustomPlacementConfig.Builder getCustomPlace
      *
      * .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].
@@ -21521,14 +23996,17 @@ public com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder getCustomPlac
      * .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_;
@@ -21536,36 +24014,49 @@ public com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder getCustomPlac
 
     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.
@@ -21587,6 +24078,8 @@ 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.
@@ -21594,8 +24087,7 @@ 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 {
@@ -21606,6 +24098,8 @@ public Builder setAutoclass(
       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.
@@ -21615,9 +24109,9 @@ public Builder setAutoclass(
      */
     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;
@@ -21630,6 +24124,8 @@ public Builder mergeAutoclass(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.
@@ -21648,6 +24144,8 @@ 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.
@@ -21661,6 +24159,8 @@ 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.
@@ -21672,11 +24172,14 @@ 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.
@@ -21685,21 +24188,24 @@ 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_;
     }
+
     @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);
     }
 
@@ -21709,12 +24215,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();
   }
@@ -21723,27 +24229,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;
@@ -21758,6 +24264,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.Bucket getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java
similarity index 74%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java
index 00380d5896..0a092cd308 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControl.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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_ = ""; @@ -32,38 +50,43 @@ private BucketAccessControl() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BucketAccessControl(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } 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 @@ -72,29 +95,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 { @@ -103,14 +126,18 @@ public java.lang.String getRole() { } 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 @@ -119,29 +146,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 { @@ -150,9 +177,12 @@ public java.lang.String getId() { } 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}`
@@ -175,6 +205,7 @@ public java.lang.String getId() {
    * 
* * string entity = 3; + * * @return The entity. */ @java.lang.Override @@ -183,14 +214,15 @@ 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}`
@@ -213,16 +245,15 @@ 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 { @@ -231,15 +262,19 @@ public java.lang.String getEntity() { } 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 @@ -248,30 +283,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 { @@ -280,14 +315,18 @@ public java.lang.String getEntityAlt() { } 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 @@ -296,29 +335,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 { @@ -327,9 +366,12 @@ public java.lang.String getEntityId() { } 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
@@ -338,6 +380,7 @@ public java.lang.String getEntityId() {
    * 
* * string etag = 8; + * * @return The etag. */ @java.lang.Override @@ -346,14 +389,15 @@ 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
@@ -362,16 +406,15 @@ 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 { @@ -380,14 +423,18 @@ public java.lang.String getEtag() { } 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 @@ -396,29 +443,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 { @@ -427,14 +474,18 @@ public java.lang.String getEmail() { } 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 @@ -443,29 +494,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 { @@ -476,11 +527,14 @@ public java.lang.String getDomain() { 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 @@ -488,18 +542,25 @@ public boolean hasProjectTeam() { return projectTeam_ != null; } /** + * + * *
    * 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.
    * 
@@ -508,10 +569,13 @@ 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; @@ -523,8 +587,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } @@ -580,8 +643,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_); } if (projectTeam_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getProjectTeam()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProjectTeam()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); @@ -597,33 +659,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.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; @@ -661,130 +715,136 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -806,9 +866,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 @@ -827,8 +887,11 @@ 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; } @@ -860,9 +923,8 @@ private void buildPartial0(com.google.storage.v2.BucketAccessControl result) { result.domain_ = domain_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.projectTeam_ = projectTeamBuilder_ == null - ? projectTeam_ - : projectTeamBuilder_.build(); + result.projectTeam_ = + projectTeamBuilder_ == null ? projectTeam_ : projectTeamBuilder_.build(); } } @@ -870,38 +932,39 @@ private void buildPartial0(com.google.storage.v2.BucketAccessControl 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.BucketAccessControl) { - return mergeFrom((com.google.storage.v2.BucketAccessControl)other); + return mergeFrom((com.google.storage.v2.BucketAccessControl) other); } else { super.mergeFrom(other); return this; @@ -979,59 +1042,67 @@ 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) { @@ -1041,22 +1112,25 @@ 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; @@ -1065,20 +1139,21 @@ 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 { @@ -1086,28 +1161,35 @@ public java.lang.String getRole() { } } /** + * + * *
      * 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() { @@ -1117,17 +1199,21 @@ 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; @@ -1137,18 +1223,20 @@ public Builder setRoleBytes( 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; @@ -1157,20 +1245,21 @@ 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 { @@ -1178,28 +1267,35 @@ public java.lang.String getId() { } } /** + * + * *
      * 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() { @@ -1209,17 +1305,21 @@ 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; @@ -1229,6 +1329,8 @@ public Builder setIdBytes( private java.lang.Object entity_ = ""; /** + * + * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1251,13 +1353,13 @@ public Builder setIdBytes(
      * 
* * 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; @@ -1266,6 +1368,8 @@ public java.lang.String getEntity() { } } /** + * + * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1288,15 +1392,14 @@ 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 { @@ -1304,6 +1407,8 @@ public java.lang.String getEntity() { } } /** + * + * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1326,18 +1431,22 @@ public java.lang.String getEntity() {
      * 
* * 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}`
@@ -1360,6 +1469,7 @@ public Builder setEntity(
      * 
* * string entity = 3; + * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1369,6 +1479,8 @@ public Builder clearEntity() { return this; } /** + * + * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1391,12 +1503,14 @@ 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; @@ -1406,19 +1520,21 @@ public Builder setEntityBytes( 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; @@ -1427,21 +1543,22 @@ 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 { @@ -1449,30 +1566,37 @@ 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]; + * * @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() { @@ -1482,18 +1606,22 @@ 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; @@ -1503,18 +1631,20 @@ public Builder setEntityAltBytes( 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; @@ -1523,20 +1653,21 @@ 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 { @@ -1544,28 +1675,35 @@ public java.lang.String getEntityId() { } } /** + * + * *
      * 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() { @@ -1575,17 +1713,21 @@ 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; @@ -1595,6 +1737,8 @@ public Builder setEntityIdBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * The etag of the BucketAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1603,13 +1747,13 @@ public Builder setEntityIdBytes(
      * 
* * 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; @@ -1618,6 +1762,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * The etag of the BucketAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1626,15 +1772,14 @@ 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 { @@ -1642,6 +1787,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * The etag of the BucketAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1650,18 +1797,22 @@ public java.lang.String getEtag() {
      * 
* * 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
@@ -1670,6 +1821,7 @@ public Builder setEtag(
      * 
* * string etag = 8; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1679,6 +1831,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * The etag of the BucketAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1687,12 +1841,14 @@ 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; @@ -1702,18 +1858,20 @@ public Builder setEtagBytes( 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; @@ -1722,20 +1880,21 @@ 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 { @@ -1743,28 +1902,35 @@ public java.lang.String getEmail() { } } /** + * + * *
      * 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() { @@ -1774,17 +1940,21 @@ 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; @@ -1794,18 +1964,20 @@ public Builder setEmailBytes( 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; @@ -1814,20 +1986,21 @@ 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 { @@ -1835,28 +2008,35 @@ public java.lang.String getDomain() { } } /** + * + * *
      * 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() { @@ -1866,17 +2046,21 @@ 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; @@ -1886,34 +2070,47 @@ public Builder setDomainBytes( 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.
      * 
@@ -1934,14 +2131,15 @@ 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 { @@ -1952,6 +2150,8 @@ public Builder setProjectTeam( return this; } /** + * + * *
      * The project team associated with the entity, if any.
      * 
@@ -1960,9 +2160,9 @@ public Builder setProjectTeam( */ 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; @@ -1975,6 +2175,8 @@ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** + * + * *
      * The project team associated with the entity, if any.
      * 
@@ -1992,6 +2194,8 @@ public Builder clearProjectTeam() { return this; } /** + * + * *
      * The project team associated with the entity, if any.
      * 
@@ -2004,6 +2208,8 @@ public com.google.storage.v2.ProjectTeam.Builder getProjectTeamBuilder() { return getProjectTeamFieldBuilder().getBuilder(); } /** + * + * *
      * The project team associated with the entity, if any.
      * 
@@ -2014,11 +2220,14 @@ 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.
      * 
@@ -2026,21 +2235,24 @@ 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); } @@ -2050,12 +2262,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(); } @@ -2064,27 +2276,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; @@ -2099,6 +2311,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.BucketAccessControl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java similarity index 81% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java index ca5422c37c..6b7573f3dc 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java @@ -1,53 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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}`
@@ -70,10 +98,13 @@ public interface BucketAccessControlOrBuilder extends
    * 
* * string entity = 3; + * * @return The entity. */ java.lang.String getEntity(); /** + * + * *
    * The entity holding the permission, in one of the following forms:
    * * `user-{userid}`
@@ -96,54 +127,66 @@ public interface BucketAccessControlOrBuilder extends
    * 
* * 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
@@ -152,10 +195,13 @@ public interface BucketAccessControlOrBuilder extends
    * 
* * 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
@@ -164,70 +210,88 @@ public interface BucketAccessControlOrBuilder extends
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java similarity index 88% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java index 66a37d90b0..ccb52fc319 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of the 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
@@ -35,10 +58,13 @@ public interface BucketOrBuilder extends
    * 
* * 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
@@ -46,12 +72,14 @@ public interface BucketOrBuilder extends
    * 
* * 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
@@ -59,10 +87,13 @@ public interface BucketOrBuilder extends
    * 
* * 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
@@ -70,36 +101,47 @@ public interface BucketOrBuilder extends
    * 
* * 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.
    * Attempting to set or update this field will result in a
@@ -107,11 +149,14 @@ public interface BucketOrBuilder extends
    * 
* * 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`.
@@ -122,10 +167,13 @@ public interface BucketOrBuilder extends
    * 
* * 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`.
@@ -136,34 +184,41 @@ public interface BucketOrBuilder extends
    * 
* * 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
@@ -174,10 +229,13 @@ public interface BucketOrBuilder extends
    * 
* * 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
@@ -188,12 +246,14 @@ public interface BucketOrBuilder extends
    * 
* * 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
@@ -204,10 +264,13 @@ public interface BucketOrBuilder extends
    * 
* * 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
@@ -218,12 +281,14 @@ public interface BucketOrBuilder extends
    * 
* * 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,
@@ -232,9 +297,10 @@ public interface BucketOrBuilder extends
    *
    * 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,
@@ -245,6 +311,8 @@ public interface BucketOrBuilder extends
    */
   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,
@@ -255,6 +323,8 @@ public interface BucketOrBuilder extends
    */
   int getAclCount();
   /**
+   *
+   *
    * 
    * Access controls on the bucket.
    * If iam_config.uniform_bucket_level_access is enabled on this bucket,
@@ -263,9 +333,11 @@ public interface BucketOrBuilder extends
    *
    * 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,
@@ -274,10 +346,11 @@ public interface BucketOrBuilder extends
    *
    * 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,
@@ -286,9 +359,10 @@ com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
    *
    * 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,
@@ -299,6 +373,8 @@ com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
    */
   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,
@@ -309,6 +385,8 @@ com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
    */
   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,
@@ -317,9 +395,11 @@ com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
    *
    * 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,
@@ -328,10 +408,11 @@ com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
    *
    * 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]
@@ -339,10 +420,13 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
    * 
* * .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]
@@ -350,10 +434,13 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
    * 
* * .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]
@@ -365,39 +452,52 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
   com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The creation time of the bucket.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
@@ -405,9 +505,10 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
    *
    * 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.
@@ -417,6 +518,8 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
    */
   com.google.storage.v2.Bucket.Cors getCors(int index);
   /**
+   *
+   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -426,6 +529,8 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
    */
   int getCorsCount();
   /**
+   *
+   *
    * 
    * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
    * (CORS) config.
@@ -433,9 +538,10 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
    *
    * 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.
@@ -443,43 +549,55 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
    *
    * 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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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
@@ -497,11 +615,14 @@ com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(
    * 
* * bool default_event_based_hold = 14; + * * @return The defaultEventBasedHold. */ boolean getDefaultEventBasedHold(); /** + * + * *
    * User-provided labels, in key/value pairs.
    * 
@@ -510,30 +631,31 @@ com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder( */ 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.
    * 
@@ -541,21 +663,24 @@ boolean containsLabels( * 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
@@ -564,10 +689,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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
@@ -576,10 +704,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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
@@ -592,24 +723,32 @@ java.lang.String getLabelsOrThrow(
   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.
    * 
@@ -619,26 +758,34 @@ java.lang.String getLabelsOrThrow( 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.
@@ -649,26 +796,34 @@ java.lang.String getLabelsOrThrow(
   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.
@@ -679,24 +834,32 @@ java.lang.String getLabelsOrThrow(
   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.
    * 
@@ -706,24 +869,32 @@ java.lang.String getLabelsOrThrow( 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.
    * 
@@ -733,6 +904,8 @@ java.lang.String getLabelsOrThrow( 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
@@ -746,10 +919,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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
@@ -763,10 +939,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .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
@@ -784,24 +963,32 @@ java.lang.String getLabelsOrThrow(
   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.
    * 
@@ -811,36 +998,47 @@ java.lang.String getLabelsOrThrow( 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].
@@ -851,26 +1049,34 @@ java.lang.String getLabelsOrThrow(
   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.
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java
similarity index 67%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java
index 03906ae864..c49b1cce31 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 package com.google.storage.v2;
 
 /**
+ *
+ *
  * 
  * Message for canceling an in-progress resumable upload.
  * `upload_id` **must** be set.
@@ -11,54 +28,60 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.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 @@ -67,30 +90,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 { @@ -99,6 +122,7 @@ public java.lang.String getUploadId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } @@ -135,15 +158,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; } @@ -163,96 +186,103 @@ 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.
@@ -260,33 +290,32 @@ protected Builder newBuilderForType(
    *
    * 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) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +325,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
@@ -317,8 +346,11 @@ 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;
     }
@@ -334,38 +366,39 @@ 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;
@@ -373,7 +406,8 @@ 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;
@@ -405,17 +439,19 @@ 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) {
@@ -425,23 +461,26 @@ 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; @@ -450,21 +489,22 @@ 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 { @@ -472,30 +512,37 @@ 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]; + * * @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() { @@ -505,27 +552,31 @@ 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); } @@ -535,12 +586,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(); } @@ -549,27 +600,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; @@ -584,6 +635,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.storage.v2.CancelResumableWriteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java index 74d15b5ffe..11d2a69182 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java similarity index 62% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java index d6e458cfef..c0067a3865 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto package com.google.storage.v2; /** + * + * *
  * Empty response message for canceling an in-progress resumable upload, will be
  * extended as needed.
@@ -11,44 +28,46 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.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;
@@ -60,8 +79,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getUnknownFields().writeTo(output);
   }
 
@@ -79,12 +97,13 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.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;
@@ -103,96 +122,103 @@ 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.
@@ -200,33 +226,32 @@ protected Builder newBuilderForType(
    *
    * 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) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -234,9 +259,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
@@ -255,7 +280,8 @@ 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;
     }
@@ -264,38 +290,39 @@ 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;
@@ -303,7 +330,8 @@ 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;
@@ -330,12 +358,13 @@ 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) {
@@ -345,9 +374,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);
     }
 
@@ -357,12 +386,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();
   }
@@ -371,27 +400,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;
@@ -406,6 +435,4 @@ public com.google.protobuf.Parser getParserForType
   public com.google.storage.v2.CancelResumableWriteResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
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
new file mode 100644
index 0000000000..f192ac86a8
--- /dev/null
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
similarity index 68%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
index a48be4851a..50a4c520e1 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 package com.google.storage.v2;
 
 /**
+ *
+ *
  * 
  * Message used to convey content being read or written, along with an optional
  * checksum.
@@ -11,53 +28,58 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.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;
   /**
+   *
+   *
    * 
    * The data.
    * 
* * bytes content = 1 [ctype = CORD]; + * * @return The content. */ @java.lang.Override @@ -68,11 +90,14 @@ 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 @@ -80,11 +105,14 @@ 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 @@ -93,6 +121,7 @@ public int getCrc32C() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!content_.isEmpty()) { output.writeBytes(1, content_); } @@ -122,12 +150,10 @@ 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; @@ -137,19 +163,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.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; @@ -173,97 +197,103 @@ 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.
@@ -271,33 +301,32 @@ protected Builder newBuilderForType(
    *
    * 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) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -308,9 +337,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
@@ -329,8 +358,11 @@ 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;
     }
@@ -352,38 +384,39 @@ 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;
@@ -424,22 +457,25 @@ 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) {
@@ -449,15 +485,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * The data.
      * 
* * bytes content = 1 [ctype = CORD]; + * * @return The content. */ @java.lang.Override @@ -465,27 +505,35 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** + * + * *
      * The data.
      * 
* * bytes content = 1 [ctype = CORD]; + * * @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; } /** + * + * *
      * The data.
      * 
* * bytes content = 1 [ctype = CORD]; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -495,13 +543,16 @@ 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 @@ -509,11 +560,14 @@ 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 @@ -521,27 +575,33 @@ 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. */ public Builder setCrc32C(int value) { - + crc32C_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, the CRC32C digest of the content field.
      * 
* * optional fixed32 crc32c = 2; + * * @return This builder for chaining. */ public Builder clearCrc32C() { @@ -550,9 +610,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); } @@ -562,12 +622,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(); } @@ -576,27 +636,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; @@ -611,6 +671,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ChecksummedData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java similarity index 54% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java index b95ef23363..9b8aa6001b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java @@ -1,37 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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 { /** + * + * *
    * The data.
    * 
* * bytes content = 1 [ctype = CORD]; + * * @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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java index d5a884febf..f307fee8c0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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; @@ -27,39 +45,44 @@ private CommonObjectRequestParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommonObjectRequestParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -68,30 +91,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 { @@ -102,12 +125,15 @@ public java.lang.String getEncryptionAlgorithm() { 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 @@ -116,14 +142,18 @@ 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 @@ -132,6 +162,7 @@ public com.google.protobuf.ByteString getEncryptionKeySha256Bytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,8 +174,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionAlgorithm_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encryptionAlgorithm_); } @@ -167,12 +197,10 @@ 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; @@ -182,19 +210,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.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; } @@ -217,130 +243,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +384,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 @@ -373,8 +405,11 @@ 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; } @@ -396,38 +431,39 @@ 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; @@ -435,7 +471,8 @@ 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; @@ -473,27 +510,31 @@ 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) { @@ -503,23 +544,26 @@ 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; @@ -528,21 +572,22 @@ 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 { @@ -550,30 +595,37 @@ public java.lang.String getEncryptionAlgorithm() { } } /** + * + * *
      * 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() { @@ -583,18 +635,22 @@ 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; @@ -602,14 +658,18 @@ public Builder setEncryptionAlgorithmBytes( 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 @@ -617,29 +677,37 @@ 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() { @@ -649,14 +717,18 @@ 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 @@ -664,29 +736,37 @@ 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() { @@ -695,9 +775,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); } @@ -707,12 +787,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(); } @@ -721,27 +801,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; @@ -756,6 +836,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.storage.v2.CommonObjectRequestParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java index ded10290cc..327ae41411 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java @@ -1,52 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java index 1630d1a947..ec952228f6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -27,142 +45,175 @@ private ComposeObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ComposeObjectRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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
@@ -170,10 +221,13 @@ public interface ObjectPreconditionsOrBuilder extends
        * 
* * 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
@@ -181,58 +235,65 @@ public interface ObjectPreconditionsOrBuilder extends
        * 
* * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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
@@ -240,6 +301,7 @@ protected java.lang.Object newInstance(
        * 
* * optional int64 if_generation_match = 1; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -247,6 +309,8 @@ 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
@@ -254,6 +318,7 @@ public boolean hasIfGenerationMatch() {
        * 
* * optional int64 if_generation_match = 1; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -262,6 +327,7 @@ public long getIfGenerationMatch() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +339,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, ifGenerationMatch_); } @@ -288,8 +353,7 @@ 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; @@ -299,17 +363,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.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; @@ -324,96 +390,110 @@ 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 @@ -423,39 +503,44 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -465,19 +550,22 @@ 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); } @@ -485,14 +573,19 @@ 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)) { @@ -506,46 +599,56 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest.SourceObje public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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()); } @@ -575,17 +678,19 @@ 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) { @@ -595,10 +700,13 @@ 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
@@ -606,6 +714,7 @@ public Builder mergeFrom(
          * 
* * optional int64 if_generation_match = 1; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -613,6 +722,8 @@ 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
@@ -620,6 +731,7 @@ public boolean hasIfGenerationMatch() {
          * 
* * optional int64 if_generation_match = 1; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -627,6 +739,8 @@ 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
@@ -634,17 +748,20 @@ public long getIfGenerationMatch() {
          * 
* * optional int64 if_generation_match = 1; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000001; onChanged(); 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
@@ -652,6 +769,7 @@ public Builder setIfGenerationMatch(long value) {
          * 
* * optional int64 if_generation_match = 1; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -660,6 +778,7 @@ public Builder clearIfGenerationMatch() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -672,41 +791,46 @@ 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; @@ -718,22 +842,26 @@ 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; } - } 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 @@ -742,30 +870,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 { @@ -776,11 +904,14 @@ public java.lang.String getName() { 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 @@ -789,13 +920,19 @@ 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 @@ -803,30 +940,48 @@ public boolean hasObjectPreconditions() { return objectPreconditions_ != null; } /** + * + * *
      * 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; @@ -838,8 +993,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -862,12 +1016,11 @@ 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()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getObjectPreconditions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -877,21 +1030,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.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; @@ -907,8 +1058,7 @@ 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(); @@ -919,87 +1069,94 @@ 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 @@ -1009,39 +1166,41 @@ 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() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1057,9 +1216,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 @@ -1078,8 +1237,11 @@ 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; } @@ -1093,9 +1255,10 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest.SourceObje result.generation_ = generation_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectPreconditions_ = objectPreconditionsBuilder_ == null - ? objectPreconditions_ - : objectPreconditionsBuilder_.build(); + result.objectPreconditions_ = + objectPreconditionsBuilder_ == null + ? objectPreconditions_ + : objectPreconditionsBuilder_.build(); } } @@ -1103,38 +1266,41 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest.SourceObje public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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; @@ -1142,7 +1308,8 @@ 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; @@ -1180,29 +1347,32 @@ 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) { @@ -1212,23 +1382,26 @@ 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; @@ -1237,21 +1410,22 @@ 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 { @@ -1259,30 +1433,37 @@ 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]; + * * @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() { @@ -1292,18 +1473,22 @@ 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; @@ -1311,13 +1496,16 @@ public Builder setNameBytes( 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 @@ -1325,27 +1513,33 @@ 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. */ public Builder setGeneration(long value) { - + generation_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The generation of this object to use as the source.
        * 
* * int64 generation = 2; + * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1355,43 +1549,66 @@ 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(); @@ -1405,14 +1622,19 @@ public Builder setObjectPreconditions(com.google.storage.v2.ComposeObjectRequest 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 { @@ -1423,17 +1645,24 @@ 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; @@ -1446,11 +1675,15 @@ public Builder mergeObjectPreconditions(com.google.storage.v2.ComposeObjectReque 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); @@ -1463,52 +1696,74 @@ 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) { @@ -1521,12 +1776,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(); } @@ -1535,27 +1790,28 @@ 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; @@ -1570,18 +1826,21 @@ 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 @@ -1589,11 +1848,15 @@ public boolean hasDestination() { return destination_ != null; } /** + * + * *
    * 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 @@ -1601,11 +1864,14 @@ 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() { @@ -1613,9 +1879,12 @@ 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.
    * 
@@ -1623,10 +1892,13 @@ 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.
    * 
@@ -1634,11 +1906,13 @@ public java.util.List g * 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.
    * 
@@ -1650,6 +1924,8 @@ public int getSourceObjectsCount() { return sourceObjects_.size(); } /** + * + * *
    * The list of source objects that will be concatenated into a single object.
    * 
@@ -1661,6 +1937,8 @@ 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.
    * 
@@ -1674,9 +1952,12 @@ 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",
@@ -1684,6 +1965,7 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourc
    * 
* * string destination_predefined_acl = 9; + * * @return The destinationPredefinedAcl. */ @java.lang.Override @@ -1692,14 +1974,15 @@ 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",
@@ -1707,16 +1990,15 @@ 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 { @@ -1727,6 +2009,8 @@ public java.lang.String getDestinationPredefinedAcl() { 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
@@ -1734,6 +2018,7 @@ public java.lang.String getDestinationPredefinedAcl() {
    * 
* * optional int64 if_generation_match = 4; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1741,6 +2026,8 @@ 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
@@ -1748,6 +2035,7 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 4; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1758,12 +2046,15 @@ 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 @@ -1771,12 +2062,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 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 @@ -1785,9 +2079,12 @@ 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`,
@@ -1796,6 +2093,7 @@ public long getIfMetagenerationMatch() {
    * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } + * * @return The kmsKey. */ @java.lang.Override @@ -1804,14 +2102,15 @@ 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`,
@@ -1820,16 +2119,15 @@ 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 { @@ -1840,11 +2138,14 @@ public java.lang.String getKmsKey() { 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 @@ -1852,18 +2153,25 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** + * + * *
    * 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.
    * 
@@ -1871,19 +2179,25 @@ 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 @@ -1891,19 +2205,26 @@ public boolean hasObjectChecksums() { return objectChecksums_ != null; } /** + * + * *
    * 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.
@@ -1913,10 +2234,13 @@ 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;
@@ -1928,8 +2252,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (destination_ != null) {
       output.writeMessage(1, getDestination());
     }
@@ -1964,34 +2287,31 @@ public int getSerializedSize() {
 
     size = 0;
     if (destination_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getDestination());
+      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));
+      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.computeInt64Size(4, ifGenerationMatch_);
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(5, ifMetagenerationMatch_);
+      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());
+      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());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getObjectChecksums());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -2001,43 +2321,37 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.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;
@@ -2062,13 +2376,11 @@ 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();
@@ -2085,130 +2397,136 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2243,9 +2561,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 @@ -2264,9 +2582,12 @@ 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; } @@ -2286,9 +2607,8 @@ private void buildPartialRepeatedFields(com.google.storage.v2.ComposeObjectReque private void buildPartial0(com.google.storage.v2.ComposeObjectRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.destination_ = destinationBuilder_ == null - ? destination_ - : destinationBuilder_.build(); + result.destination_ = + destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.destinationPredefinedAcl_ = destinationPredefinedAcl_; @@ -2306,14 +2626,14 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest result) { result.kmsKey_ = kmsKey_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = + commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.objectChecksums_ = objectChecksumsBuilder_ == null - ? objectChecksums_ - : objectChecksumsBuilder_.build(); + result.objectChecksums_ = + objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -2322,38 +2642,39 @@ 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; @@ -2383,9 +2704,10 @@ 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_); } @@ -2439,66 +2761,70 @@ 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) { @@ -2508,43 +2834,60 @@ 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) { @@ -2560,14 +2903,16 @@ 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 { @@ -2578,17 +2923,20 @@ public Builder setDestination( 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; @@ -2601,11 +2949,14 @@ public Builder mergeDestination(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 clearDestination() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2618,11 +2969,14 @@ 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; @@ -2630,61 +2984,81 @@ 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 { @@ -2692,11 +3066,14 @@ public java.util.List g } } /** + * + * *
      * 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) { @@ -2706,11 +3083,14 @@ 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) { @@ -2720,11 +3100,14 @@ 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) { @@ -2741,14 +3124,18 @@ 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()); @@ -2759,11 +3146,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 addSourceObjects(com.google.storage.v2.ComposeObjectRequest.SourceObject value) { if (sourceObjectsBuilder_ == null) { @@ -2779,11 +3169,14 @@ 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) { @@ -2800,11 +3193,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( com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder builderForValue) { @@ -2818,14 +3214,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 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()); @@ -2836,18 +3236,21 @@ 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); @@ -2855,11 +3258,14 @@ 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) { @@ -2872,11 +3278,14 @@ 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) { @@ -2889,39 +3298,50 @@ 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 - getSourceObjectsOrBuilderList() { + public java.util.List< + ? extends com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder> + getSourceObjectsOrBuilderList() { if (sourceObjectsBuilder_ != null) { return sourceObjectsBuilder_.getMessageOrBuilderList(); } else { @@ -2929,45 +3349,62 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourc } } /** + * + * *
      * 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(), @@ -2979,6 +3416,8 @@ 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",
@@ -2986,13 +3425,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; @@ -3001,6 +3440,8 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3008,15 +3449,14 @@ 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 { @@ -3024,6 +3464,8 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3031,18 +3473,22 @@ public java.lang.String getDestinationPredefinedAcl() {
      * 
* * 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",
@@ -3050,6 +3496,7 @@ public Builder setDestinationPredefinedAcl(
      * 
* * string destination_predefined_acl = 9; + * * @return This builder for chaining. */ public Builder clearDestinationPredefinedAcl() { @@ -3059,6 +3506,8 @@ public Builder clearDestinationPredefinedAcl() { return this; } /** + * + * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -3066,12 +3515,14 @@ 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; @@ -3079,8 +3530,10 @@ public Builder setDestinationPredefinedAclBytes( 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
@@ -3088,6 +3541,7 @@ public Builder setDestinationPredefinedAclBytes(
      * 
* * optional int64 if_generation_match = 4; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -3095,6 +3549,8 @@ 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
@@ -3102,6 +3558,7 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -3109,6 +3566,8 @@ 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
@@ -3116,17 +3575,20 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000008; onChanged(); 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
@@ -3134,6 +3596,7 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 4; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -3143,14 +3606,17 @@ 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 @@ -3158,12 +3624,15 @@ 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 @@ -3171,29 +3640,35 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000010; onChanged(); 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() { @@ -3205,6 +3680,8 @@ 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`,
@@ -3213,13 +3690,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; @@ -3228,6 +3705,8 @@ 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`,
@@ -3236,15 +3715,14 @@ 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 { @@ -3252,6 +3730,8 @@ 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`,
@@ -3260,18 +3740,22 @@ public java.lang.String getKmsKey() {
      * 
* * 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`,
@@ -3280,6 +3764,7 @@ public Builder setKmsKey(
      * 
* * string kms_key = 6 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -3289,6 +3774,8 @@ 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`,
@@ -3297,12 +3784,14 @@ 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; @@ -3312,41 +3801,55 @@ public Builder setKmsKeyBytes( 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(); @@ -3360,6 +3863,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -3378,17 +3883,21 @@ 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; @@ -3401,6 +3910,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -3418,33 +3929,42 @@ 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.
      * 
@@ -3452,14 +3972,17 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR * .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_; @@ -3467,36 +3990,49 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR 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.
@@ -3518,6 +4054,8 @@ 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.
@@ -3537,6 +4075,8 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
+     *
+     *
      * 
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
@@ -3546,9 +4086,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;
@@ -3561,6 +4101,8 @@ public Builder mergeObjectChecksums(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.
@@ -3579,6 +4121,8 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The checksums of the complete object. This will be validated against the
      * combined checksums of the component objects.
@@ -3592,6 +4136,8 @@ 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.
@@ -3603,11 +4149,14 @@ 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.
@@ -3616,21 +4165,24 @@ 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);
     }
 
@@ -3640,12 +4192,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();
   }
@@ -3654,27 +4206,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;
@@ -3689,6 +4241,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.ComposeObjectRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
similarity index 85%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
index d18597881e..9e95be1591 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
@@ -1,49 +1,79 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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.
    * 
@@ -52,6 +82,8 @@ public interface ComposeObjectRequestOrBuilder extends */ com.google.storage.v2.ComposeObjectRequest.SourceObject getSourceObjects(int index); /** + * + * *
    * The list of source objects that will be concatenated into a single object.
    * 
@@ -60,15 +92,19 @@ public interface ComposeObjectRequestOrBuilder extends */ 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.
    * 
@@ -79,6 +115,8 @@ 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",
@@ -86,10 +124,13 @@ 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",
@@ -97,12 +138,14 @@ 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
@@ -110,10 +153,13 @@ 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
@@ -121,32 +167,41 @@ 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`,
@@ -155,10 +210,13 @@ 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`,
@@ -167,30 +225,38 @@ 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.
    * 
@@ -200,26 +266,34 @@ 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java
similarity index 65%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java
index 201806221c..a60d9bae61 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java
@@ -1,60 +1,81 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.
    * 
* * int64 start = 1; + * * @return The start. */ @java.lang.Override @@ -65,11 +86,14 @@ public long getStart() { public static final int END_FIELD_NUMBER = 2; private long end_ = 0L; /** + * + * *
    * The ending offset of the object data.
    * 
* * int64 end = 2; + * * @return The end. */ @java.lang.Override @@ -80,11 +104,14 @@ 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 @@ -93,6 +120,7 @@ public long getCompleteLength() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (start_ != 0L) { output.writeInt64(1, start_); } @@ -125,16 +152,13 @@ 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; @@ -144,19 +168,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -169,143 +190,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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +340,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 @@ -339,7 +362,9 @@ 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; } @@ -361,38 +386,39 @@ 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; @@ -436,27 +462,31 @@ 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) { @@ -466,15 +496,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long start_ ; + private long start_; /** + * + * *
      * The starting offset of the object data.
      * 
* * int64 start = 1; + * * @return The start. */ @java.lang.Override @@ -482,27 +516,33 @@ public long getStart() { return start_; } /** + * + * *
      * The starting offset of the object data.
      * 
* * int64 start = 1; + * * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(long value) { - + start_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The starting offset of the object data.
      * 
* * int64 start = 1; + * * @return This builder for chaining. */ public Builder clearStart() { @@ -512,13 +552,16 @@ public Builder clearStart() { return this; } - private long end_ ; + private long end_; /** + * + * *
      * The ending offset of the object data.
      * 
* * int64 end = 2; + * * @return The end. */ @java.lang.Override @@ -526,27 +569,33 @@ public long getEnd() { return end_; } /** + * + * *
      * The ending offset of the object data.
      * 
* * int64 end = 2; + * * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(long value) { - + end_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The ending offset of the object data.
      * 
* * int64 end = 2; + * * @return This builder for chaining. */ public Builder clearEnd() { @@ -556,13 +605,16 @@ 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 @@ -570,27 +622,33 @@ 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. */ public Builder setCompleteLength(long value) { - + completeLength_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The complete length of the object data.
      * 
* * int64 complete_length = 3; + * * @return This builder for chaining. */ public Builder clearCompleteLength() { @@ -599,9 +657,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); } @@ -611,12 +669,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(); } @@ -625,27 +683,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; @@ -660,6 +718,4 @@ 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/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java similarity index 52% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java index 46bd0a2f70..969abe6d3b 100644 --- a/owl-bot-staging/v2/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 @@ -1,38 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto package com.google.storage.v2; -public interface ContentRangeOrBuilder extends +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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java index d56e7f20cd..0c1067d945 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -28,38 +46,45 @@ private CreateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBucketRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. 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 { @@ -101,6 +128,8 @@ public java.lang.String getParent() { 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
@@ -112,6 +141,7 @@ public java.lang.String getParent() {
    * 
* * .google.storage.v2.Bucket bucket = 2; + * * @return Whether the bucket field is set. */ @java.lang.Override @@ -119,6 +149,8 @@ public boolean hasBucket() { return bucket_ != null; } /** + * + * *
    * Properties of the new bucket being inserted.
    * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -130,6 +162,7 @@ public boolean hasBucket() {
    * 
* * .google.storage.v2.Bucket bucket = 2; + * * @return The bucket. */ @java.lang.Override @@ -137,6 +170,8 @@ 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
@@ -155,9 +190,12 @@ 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
@@ -165,6 +203,7 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
    * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucketId. */ @java.lang.Override @@ -173,14 +212,15 @@ 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
@@ -188,16 +228,15 @@ 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 { @@ -206,9 +245,12 @@ public java.lang.String getBucketId() { } 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",
@@ -216,6 +258,7 @@ public java.lang.String getBucketId() {
    * 
* * string predefined_acl = 6; + * * @return The predefinedAcl. */ @java.lang.Override @@ -224,14 +267,15 @@ 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",
@@ -239,16 +283,15 @@ 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 { @@ -257,9 +300,12 @@ public java.lang.String getPredefinedAcl() { } 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",
@@ -267,6 +313,7 @@ public java.lang.String getPredefinedAcl() {
    * 
* * string predefined_default_object_acl = 7; + * * @return The predefinedDefaultObjectAcl. */ @java.lang.Override @@ -275,14 +322,15 @@ 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",
@@ -290,16 +338,15 @@ 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 { @@ -308,6 +355,7 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -319,8 +367,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -349,8 +396,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (bucket_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBucket()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBucket()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bucketId_); @@ -359,7 +405,8 @@ 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; @@ -369,26 +416,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.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; } @@ -417,130 +461,136 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -558,9 +608,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 @@ -579,8 +629,11 @@ 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; } @@ -591,9 +644,7 @@ private void buildPartial0(com.google.storage.v2.CreateBucketRequest result) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.bucket_ = bucketBuilder_ == null - ? bucket_ - : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.bucketId_ = bucketId_; @@ -610,38 +661,39 @@ private void buildPartial0(com.google.storage.v2.CreateBucketRequest 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.CreateBucketRequest) { - return mergeFrom((com.google.storage.v2.CreateBucketRequest)other); + return mergeFrom((com.google.storage.v2.CreateBucketRequest) other); } else { super.mergeFrom(other); return this; @@ -699,39 +751,43 @@ 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) { @@ -741,22 +797,27 @@ 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; @@ -765,20 +826,23 @@ 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 { @@ -786,28 +850,39 @@ 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) = { ... } + * + * * @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() { @@ -817,17 +892,23 @@ 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; @@ -837,8 +918,13 @@ public Builder setParentBytes( 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
@@ -850,12 +936,15 @@ public Builder setParentBytes(
      * 
* * .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
@@ -867,6 +956,7 @@ public boolean hasBucket() {
      * 
* * .google.storage.v2.Bucket bucket = 2; + * * @return The bucket. */ public com.google.storage.v2.Bucket getBucket() { @@ -877,6 +967,8 @@ 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
@@ -903,6 +995,8 @@ 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
@@ -915,8 +1009,7 @@ 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 {
@@ -927,6 +1020,8 @@ public Builder setBucket(
       return this;
     }
     /**
+     *
+     *
      * 
      * Properties of the new bucket being inserted.
      * The name of the bucket is specified in the `bucket_id` field. Populating
@@ -941,9 +1036,9 @@ public Builder setBucket(
      */
     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;
@@ -956,6 +1051,8 @@ public Builder mergeBucket(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
@@ -979,6 +1076,8 @@ 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
@@ -997,6 +1096,8 @@ 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
@@ -1013,11 +1114,12 @@ 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
@@ -1031,14 +1133,17 @@ 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_;
@@ -1046,6 +1151,8 @@ 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
@@ -1053,13 +1160,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; @@ -1068,6 +1175,8 @@ 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
@@ -1075,15 +1184,14 @@ 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 { @@ -1091,6 +1199,8 @@ 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
@@ -1098,18 +1208,22 @@ public java.lang.String getBucketId() {
      * 
* * 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
@@ -1117,6 +1231,7 @@ public Builder setBucketId(
      * 
* * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBucketId() { @@ -1126,6 +1241,8 @@ 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
@@ -1133,12 +1250,14 @@ 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; @@ -1148,6 +1267,8 @@ public Builder setBucketIdBytes( private java.lang.Object predefinedAcl_ = ""; /** + * + * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1155,13 +1276,13 @@ public Builder setBucketIdBytes(
      * 
* * 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; @@ -1170,6 +1291,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1177,15 +1300,14 @@ 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 { @@ -1193,6 +1315,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1200,18 +1324,22 @@ public java.lang.String getPredefinedAcl() {
      * 
* * 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",
@@ -1219,6 +1347,7 @@ public Builder setPredefinedAcl(
      * 
* * string predefined_acl = 6; + * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1228,6 +1357,8 @@ public Builder clearPredefinedAcl() { return this; } /** + * + * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1235,12 +1366,14 @@ 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; @@ -1250,6 +1383,8 @@ public Builder setPredefinedAclBytes( private java.lang.Object predefinedDefaultObjectAcl_ = ""; /** + * + * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1257,13 +1392,13 @@ public Builder setPredefinedAclBytes(
      * 
* * 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; @@ -1272,6 +1407,8 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** + * + * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1279,15 +1416,14 @@ 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 { @@ -1295,6 +1431,8 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** + * + * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1302,18 +1440,22 @@ public java.lang.String getPredefinedDefaultObjectAcl() {
      * 
* * 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",
@@ -1321,6 +1463,7 @@ public Builder setPredefinedDefaultObjectAcl(
      * 
* * string predefined_default_object_acl = 7; + * * @return This builder for chaining. */ public Builder clearPredefinedDefaultObjectAcl() { @@ -1330,6 +1473,8 @@ public Builder clearPredefinedDefaultObjectAcl() { return this; } /** + * + * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1337,21 +1482,23 @@ 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); } @@ -1361,12 +1508,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(); } @@ -1375,27 +1522,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; @@ -1410,6 +1557,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CreateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java index ab5f01f023..7ef32cd3f7 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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
@@ -39,10 +66,13 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * .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
@@ -54,10 +84,13 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * .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
@@ -73,6 +106,8 @@ public interface CreateBucketRequestOrBuilder extends
   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
@@ -80,10 +115,13 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * 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
@@ -91,12 +129,14 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * 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",
@@ -104,10 +144,13 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * 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",
@@ -115,12 +158,14 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * 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",
@@ -128,10 +173,13 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * 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",
@@ -139,8 +187,8 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * string predefined_default_object_acl = 7; + * * @return The bytes for predefinedDefaultObjectAcl. */ - com.google.protobuf.ByteString - getPredefinedDefaultObjectAclBytes(); + com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java index 5838a94e7f..65e3c8277c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -26,40 +44,47 @@ private CreateHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateHmacKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -68,31 +93,33 @@ 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 { @@ -101,14 +128,18 @@ public java.lang.String getProject() { } 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 @@ -117,29 +148,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 { @@ -148,6 +179,7 @@ public java.lang.String getServiceAccountEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -190,17 +221,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -221,130 +251,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +391,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 @@ -376,8 +412,11 @@ 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; } @@ -396,38 +435,39 @@ 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; @@ -472,22 +512,25 @@ 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) { @@ -497,24 +540,29 @@ 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; @@ -523,22 +571,25 @@ 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 { @@ -546,32 +597,43 @@ 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) = { ... } + * + * * @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() { @@ -581,19 +643,25 @@ 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; @@ -603,18 +671,20 @@ public Builder setProjectBytes( 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; @@ -623,20 +693,21 @@ 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 { @@ -644,28 +715,35 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
      * 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() { @@ -675,26 +753,30 @@ 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); } @@ -704,12 +786,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(); } @@ -718,27 +800,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; @@ -753,6 +835,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CreateHmacKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java index ad03e2b07e..67b9cd539f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java index 4e0985cbea..78bd22f8de 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponse.java @@ -1,61 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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; /** + * + * *
  * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } 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 @@ -63,18 +85,25 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * 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.
    * 
@@ -83,18 +112,23 @@ 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 @@ -103,6 +137,7 @@ public com.google.protobuf.ByteString getSecretKeyBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -114,8 +149,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (metadata_ != null) { output.writeMessage(1, getMetadata()); } @@ -132,12 +166,10 @@ public int getSerializedSize() { size = 0; if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMetadata()); + 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; @@ -147,20 +179,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -183,130 +214,136 @@ 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() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -321,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_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 @@ -342,8 +379,11 @@ 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; } @@ -351,9 +391,7 @@ public com.google.storage.v2.CreateHmacKeyResponse buildPartial() { private void buildPartial0(com.google.storage.v2.CreateHmacKeyResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.secretKeyBytes_ = secretKeyBytes_; @@ -364,38 +402,39 @@ private void buildPartial0(com.google.storage.v2.CreateHmacKeyResponse 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.CreateHmacKeyResponse) { - return mergeFrom((com.google.storage.v2.CreateHmacKeyResponse)other); + return mergeFrom((com.google.storage.v2.CreateHmacKeyResponse) other); } else { super.mergeFrom(other); return this; @@ -436,24 +475,25 @@ 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) { @@ -463,38 +503,52 @@ 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.
      * 
@@ -515,14 +569,15 @@ 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 { @@ -533,6 +588,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Key metadata.
      * 
@@ -541,9 +598,9 @@ public Builder setMetadata( */ 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; @@ -556,6 +613,8 @@ public Builder mergeMetadata(com.google.storage.v2.HmacKeyMetadata value) { return this; } /** + * + * *
      * Key metadata.
      * 
@@ -573,6 +632,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Key metadata.
      * 
@@ -585,6 +646,8 @@ public com.google.storage.v2.HmacKeyMetadata.Builder getMetadataBuilder() { return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Key metadata.
      * 
@@ -595,11 +658,14 @@ 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.
      * 
@@ -607,14 +673,17 @@ 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_; @@ -622,12 +691,15 @@ 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 @@ -635,29 +707,37 @@ 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() { @@ -666,9 +746,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); } @@ -678,12 +758,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(); } @@ -692,27 +772,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; @@ -727,6 +807,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CreateHmacKeyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java similarity index 61% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java index aa04e1a343..0a77982ef8 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.
    * 
@@ -35,12 +59,15 @@ public interface CreateHmacKeyResponseOrBuilder extends 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java similarity index 60% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java index 0e8a3520cf..27c92fdb30 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java @@ -1,62 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } 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 @@ -65,29 +91,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. 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 { @@ -98,11 +126,16 @@ public java.lang.String getParent() { 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 @@ -110,30 +143,44 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** + * + * *
    * 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; @@ -145,8 +192,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -166,8 +212,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (notificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNotificationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotificationConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,19 +222,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -214,129 +258,136 @@ 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() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +402,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 @@ -372,8 +423,11 @@ 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; } @@ -384,9 +438,10 @@ private void buildPartial0(com.google.storage.v2.CreateNotificationConfigRequest result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.notificationConfig_ = notificationConfigBuilder_ == null - ? notificationConfig_ - : notificationConfigBuilder_.build(); + result.notificationConfig_ = + notificationConfigBuilder_ == null + ? notificationConfig_ + : notificationConfigBuilder_.build(); } } @@ -394,38 +449,39 @@ private void buildPartial0(com.google.storage.v2.CreateNotificationConfigRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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; @@ -433,7 +489,8 @@ 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; @@ -468,24 +525,26 @@ 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) { @@ -495,22 +554,27 @@ 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; @@ -519,20 +583,23 @@ 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 { @@ -540,28 +607,39 @@ 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) = { ... } + * + * * @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() { @@ -571,17 +649,23 @@ 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; @@ -591,39 +675,58 @@ public Builder setParentBytes( 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) { @@ -639,11 +742,15 @@ 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) { @@ -657,17 +764,22 @@ 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; @@ -680,11 +792,15 @@ public Builder mergeNotificationConfig(com.google.storage.v2.NotificationConfig 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); @@ -697,11 +813,15 @@ 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; @@ -709,43 +829,55 @@ 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); } @@ -755,12 +887,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(); } @@ -769,27 +901,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; @@ -804,6 +936,4 @@ public com.google.protobuf.Parser getParserForT public com.google.storage.v2.CreateNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 0000000000..73344ab699 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java index d07bd91093..675110b2da 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryption.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto package com.google.storage.v2; /** + * + * *
  * Describes the Customer-Supplied Encryption Key mechanism used to store an
  * Object's data at rest.
@@ -11,15 +28,16 @@
  *
  * 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;
@@ -27,38 +45,43 @@ private CustomerEncryption() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CustomerEncryption();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.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 @@ -67,29 +90,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 { @@ -100,12 +123,15 @@ public java.lang.String getEncryptionAlgorithm() { 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 @@ -114,6 +140,7 @@ public com.google.protobuf.ByteString getKeySha256Bytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,8 +152,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionAlgorithm_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encryptionAlgorithm_); } @@ -146,8 +172,7 @@ 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; @@ -157,17 +182,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.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; } @@ -188,97 +211,104 @@ 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.
@@ -286,33 +316,32 @@ protected Builder newBuilderForType(
    *
    * 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) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -323,9 +352,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
@@ -344,8 +373,11 @@ 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;
     }
@@ -364,38 +396,39 @@ 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;
@@ -438,22 +471,25 @@ 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) {
@@ -463,22 +499,25 @@ 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; @@ -487,20 +526,21 @@ 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 { @@ -508,28 +548,35 @@ public java.lang.String getEncryptionAlgorithm() { } } /** + * + * *
      * 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() { @@ -539,17 +586,21 @@ 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; @@ -559,12 +610,15 @@ public Builder setEncryptionAlgorithmBytes( 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 @@ -572,29 +626,37 @@ 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() { @@ -603,9 +665,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); } @@ -615,12 +677,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(); } @@ -629,27 +691,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; @@ -664,6 +726,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CustomerEncryption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java similarity index 54% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java index 842c428be0..42a2b1effc 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java @@ -1,39 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java index 5eb34ced38..dcf1a44f80 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of 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 { @@ -99,11 +126,14 @@ public java.lang.String getName() { 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 @@ -111,11 +141,14 @@ 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 @@ -126,12 +159,15 @@ 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 @@ -139,12 +175,15 @@ 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 @@ -153,6 +192,7 @@ public long getIfMetagenerationNotMatch() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -188,12 +227,10 @@ 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; @@ -203,24 +240,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.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; @@ -237,143 +272,147 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +424,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 @@ -406,8 +445,11 @@ 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; } @@ -433,38 +475,39 @@ 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; @@ -510,27 +553,31 @@ 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) { @@ -540,22 +587,27 @@ 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; @@ -564,20 +616,23 @@ 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 { @@ -585,28 +640,39 @@ 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) = { ... } + * + * * @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() { @@ -616,17 +682,23 @@ 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; @@ -634,13 +706,16 @@ public Builder setNameBytes( 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 @@ -648,11 +723,14 @@ 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 @@ -660,27 +738,33 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { @@ -690,14 +774,17 @@ 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 @@ -705,12 +792,15 @@ 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 @@ -718,29 +808,35 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -749,9 +845,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); } @@ -761,12 +857,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(); } @@ -775,27 +871,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; @@ -810,6 +906,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.DeleteBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java index cebfae1c2b..7c2e583d25 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java @@ -1,68 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java index b12e31dea6..7d7e4d4c57 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -26,38 +44,43 @@ private DeleteHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteHmacKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -66,29 +89,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 { @@ -97,16 +120,22 @@ public java.lang.String getAccessId() { } 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 @@ -115,31 +144,33 @@ 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 { @@ -148,6 +179,7 @@ public java.lang.String getProject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessId_); } @@ -190,17 +221,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -221,130 +251,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +391,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 @@ -376,8 +412,11 @@ 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; } @@ -396,38 +435,39 @@ 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; @@ -472,22 +512,25 @@ 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) { @@ -497,22 +540,25 @@ 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; @@ -521,20 +567,21 @@ 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 { @@ -542,28 +589,35 @@ public java.lang.String getAccessId() { } } /** + * + * *
      * 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() { @@ -573,17 +627,21 @@ 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; @@ -593,20 +651,24 @@ public Builder setAccessIdBytes( 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; @@ -615,22 +677,25 @@ 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 { @@ -638,32 +703,43 @@ 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) = { ... } + * + * * @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() { @@ -673,28 +749,34 @@ 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); } @@ -704,12 +786,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(); } @@ -718,27 +800,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; @@ -753,6 +835,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.DeleteHmacKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java index 5a76e5312b..7d11ae9286 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java similarity index 61% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java index 7b8db9eab0..4b5245c86e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequest.java @@ -1,62 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -65,29 +91,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.
    * 
* - * 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 { @@ -96,6 +124,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +136,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +160,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; } @@ -160,129 +188,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +327,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 @@ -313,8 +348,11 @@ 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; } @@ -330,38 +368,39 @@ 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; @@ -369,7 +408,8 @@ 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; @@ -401,17 +441,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +463,27 @@ 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; @@ -445,20 +492,23 @@ 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 { @@ -466,28 +516,39 @@ 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) = { ... } + * + * * @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() { @@ -497,26 +558,32 @@ 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); } @@ -526,12 +593,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(); } @@ -540,27 +607,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; @@ -575,6 +642,4 @@ public com.google.protobuf.Parser getParserForT public com.google.storage.v2.DeleteNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 0000000000..6098d96ff3 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java index f49219cd11..9b34b0481e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto package com.google.storage.v2; /** + * + * *
  * Message for deleting an object.
  * `bucket` and `object` **must** be set.
@@ -11,15 +28,16 @@
  *
  * 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_ = "";
@@ -27,39 +45,46 @@ private DeleteObjectRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteObjectRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.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 @@ -68,29 +93,31 @@ 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 { @@ -99,9 +126,12 @@ public java.lang.String getBucket() { } 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
@@ -109,6 +139,7 @@ public java.lang.String getBucket() {
    * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The object. */ @java.lang.Override @@ -117,14 +148,15 @@ 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
@@ -132,16 +164,15 @@ 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 { @@ -152,12 +183,15 @@ public java.lang.String getObject() { 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 @@ -168,6 +202,8 @@ 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
@@ -175,6 +211,7 @@ public long getGeneration() {
    * 
* * optional int64 if_generation_match = 5; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -182,6 +219,8 @@ 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
@@ -189,6 +228,7 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 5; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -199,6 +239,8 @@ 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
@@ -207,6 +249,7 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 6; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -214,6 +257,8 @@ 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
@@ -222,6 +267,7 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 6; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -232,12 +278,15 @@ 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 @@ -245,12 +294,15 @@ 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 @@ -261,12 +313,15 @@ 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 @@ -274,12 +329,15 @@ 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 @@ -290,11 +348,14 @@ 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 @@ -302,18 +363,25 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** + * + * *
    * 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.
    * 
@@ -321,11 +389,15 @@ 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; @@ -337,8 +409,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -379,28 +450,24 @@ 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()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -410,43 +477,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -464,27 +525,22 @@ 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; @@ -495,97 +551,104 @@ 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.
@@ -593,33 +656,32 @@ protected Builder newBuilderForType(
    *
    * 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() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -640,9 +702,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
@@ -661,8 +723,11 @@ 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;
     }
@@ -696,9 +761,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();
       }
       result.bitField0_ |= to_bitField0_;
     }
@@ -707,38 +773,39 @@ 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;
@@ -801,54 +868,62 @@ 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) {
@@ -858,22 +933,27 @@ 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; @@ -882,20 +962,23 @@ 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 { @@ -903,28 +986,39 @@ 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) = { ... } + * + * * @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() { @@ -934,17 +1028,23 @@ 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; @@ -954,6 +1054,8 @@ public Builder setBucketBytes( 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
@@ -961,13 +1063,13 @@ public Builder setBucketBytes(
      * 
* * 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; @@ -976,6 +1078,8 @@ 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
@@ -983,15 +1087,14 @@ 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 { @@ -999,6 +1102,8 @@ 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
@@ -1006,18 +1111,22 @@ public java.lang.String getObject() {
      * 
* * 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
@@ -1025,6 +1134,7 @@ public Builder setObject(
      * 
* * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearObject() { @@ -1034,6 +1144,8 @@ 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
@@ -1041,12 +1153,14 @@ 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; @@ -1054,14 +1168,17 @@ public Builder setObjectBytes( 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 @@ -1069,29 +1186,35 @@ 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. */ public Builder setGeneration(long value) { - + generation_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -1101,8 +1224,10 @@ 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
@@ -1110,6 +1235,7 @@ public Builder clearGeneration() {
      * 
* * optional int64 if_generation_match = 5; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1117,6 +1243,8 @@ 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
@@ -1124,6 +1252,7 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 5; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1131,6 +1260,8 @@ 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
@@ -1138,17 +1269,20 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 5; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000008; onChanged(); 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
@@ -1156,6 +1290,7 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 5; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1165,8 +1300,10 @@ 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
@@ -1175,6 +1312,7 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 6; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1182,6 +1320,8 @@ 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
@@ -1190,6 +1330,7 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 6; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1197,6 +1338,8 @@ 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
@@ -1205,17 +1348,20 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 6; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000010; onChanged(); 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
@@ -1224,6 +1370,7 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 6; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1233,14 +1380,17 @@ 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 @@ -1248,12 +1398,15 @@ 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 @@ -1261,29 +1414,35 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000020; onChanged(); 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() { @@ -1293,14 +1452,17 @@ 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 @@ -1308,12 +1470,15 @@ 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 @@ -1321,29 +1486,35 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000040; onChanged(); 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() { @@ -1355,41 +1526,55 @@ 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(); @@ -1403,6 +1588,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1421,17 +1608,21 @@ 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; @@ -1444,6 +1635,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1461,33 +1654,42 @@ 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.
      * 
@@ -1495,21 +1697,24 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR * .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); } @@ -1519,12 +1724,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(); } @@ -1533,27 +1738,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; @@ -1568,6 +1773,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.DeleteObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java similarity index 81% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java index 7b345aec70..c93ab4af16 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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
@@ -35,10 +62,13 @@ public interface DeleteObjectRequestOrBuilder extends
    * 
* * 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
@@ -46,23 +76,28 @@ public interface DeleteObjectRequestOrBuilder extends
    * 
* * 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
@@ -70,10 +105,13 @@ public interface DeleteObjectRequestOrBuilder extends
    * 
* * 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
@@ -81,11 +119,14 @@ public interface DeleteObjectRequestOrBuilder extends
    * 
* * 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
@@ -94,10 +135,13 @@ public interface DeleteObjectRequestOrBuilder extends
    * 
* * 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
@@ -106,71 +150,92 @@ public interface DeleteObjectRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java index 3543dbc443..2c23307bf2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of 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 { @@ -99,12 +126,15 @@ public java.lang.String getName() { 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 @@ -112,12 +142,15 @@ 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 @@ -128,12 +161,15 @@ 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 @@ -141,12 +177,15 @@ 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 @@ -157,6 +196,8 @@ 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.
@@ -164,6 +205,7 @@ public long getIfMetagenerationNotMatch() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -171,6 +213,8 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * Mask specifying which fields to read.
    * A "*" field may be used to indicate all fields.
@@ -178,6 +222,7 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; + * * @return The readMask. */ @java.lang.Override @@ -185,6 +230,8 @@ 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.
@@ -199,6 +246,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -210,8 +258,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -237,16 +284,13 @@ 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;
@@ -256,29 +300,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.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;
@@ -295,13 +335,11 @@ 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;
@@ -312,118 +350,127 @@ 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() @@ -431,17 +478,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(); @@ -458,9 +505,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 @@ -479,8 +526,11 @@ 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; } @@ -500,9 +550,7 @@ 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_; @@ -512,38 +560,39 @@ 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; @@ -592,34 +641,37 @@ 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) { @@ -629,22 +681,27 @@ 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; @@ -653,20 +710,23 @@ 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 { @@ -674,28 +734,39 @@ 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) = { ... } + * + * * @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() { @@ -705,17 +776,23 @@ 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; @@ -723,14 +800,17 @@ public Builder setNameBytes( 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 @@ -738,12 +818,15 @@ 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 @@ -751,29 +834,35 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { @@ -783,14 +872,17 @@ 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 @@ -798,12 +890,15 @@ 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 @@ -811,29 +906,35 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -845,8 +946,13 @@ 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.
@@ -854,12 +960,15 @@ 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.
@@ -867,6 +976,7 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 5; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -877,6 +987,8 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -899,6 +1011,8 @@ 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.
@@ -907,8 +1021,7 @@ 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 {
@@ -919,6 +1032,8 @@ public Builder setReadMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -929,9 +1044,9 @@ public Builder setReadMask(
      */
     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;
@@ -944,6 +1059,8 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -963,6 +1080,8 @@ public Builder clearReadMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask specifying which fields to read.
      * A "*" field may be used to indicate all fields.
@@ -977,6 +1096,8 @@ 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.
@@ -989,11 +1110,12 @@ 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.
@@ -1003,21 +1125,24 @@ 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);
     }
 
@@ -1027,12 +1152,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();
   }
@@ -1041,27 +1166,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;
@@ -1076,6 +1201,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.GetBucketRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
index 82d8ecdf33..3b0735f116 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java
@@ -1,75 +1,114 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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.
@@ -77,10 +116,13 @@ public interface GetBucketRequestOrBuilder extends
    * 
* * 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.
@@ -88,10 +130,13 @@ public interface GetBucketRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
similarity index 66%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
index ee8ef8a15e..86c2779249 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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_ = ""; @@ -26,38 +44,43 @@ private GetHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetHmacKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -66,29 +89,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 { @@ -97,16 +120,22 @@ public java.lang.String getAccessId() { } 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 @@ -115,31 +144,33 @@ 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 { @@ -148,6 +179,7 @@ public java.lang.String getProject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessId_); } @@ -190,17 +221,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.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; } @@ -221,130 +250,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +390,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 @@ -376,8 +411,11 @@ 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; } @@ -396,38 +434,39 @@ 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; @@ -472,22 +511,25 @@ 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) { @@ -497,22 +539,25 @@ 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; @@ -521,20 +566,21 @@ 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 { @@ -542,28 +588,35 @@ public java.lang.String getAccessId() { } } /** + * + * *
      * 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() { @@ -573,17 +626,21 @@ 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; @@ -593,20 +650,24 @@ public Builder setAccessIdBytes( 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; @@ -615,22 +676,25 @@ 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 { @@ -638,32 +702,43 @@ 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) = { ... } + * + * * @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() { @@ -673,28 +748,34 @@ 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); } @@ -704,12 +785,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(); } @@ -718,27 +799,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; @@ -753,6 +834,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.GetHmacKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java index 45a8b1b41b..e7ba7a09bc 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java index e5c94819a8..34b4b50272 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequest.java @@ -1,64 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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; /** + * + * *
  * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -67,31 +92,33 @@ 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 { @@ -100,6 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -136,15 +163,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; } @@ -164,129 +191,135 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -296,9 +329,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 @@ -317,8 +350,11 @@ 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; } @@ -334,38 +370,39 @@ 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; @@ -373,7 +410,8 @@ 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; @@ -405,17 +443,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -425,24 +465,29 @@ 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; @@ -451,22 +496,25 @@ 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 { @@ -474,32 +522,43 @@ 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) = { ... } + * + * * @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() { @@ -509,28 +568,34 @@ 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); } @@ -540,12 +605,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(); } @@ -554,27 +619,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; @@ -589,6 +654,4 @@ public com.google.protobuf.Parser getParserForType public com.google.storage.v2.GetNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 0000000000..9a2f81896b --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java index f87ed463f7..fca2598d39 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -26,39 +44,46 @@ private GetObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetObjectRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -67,29 +92,31 @@ 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 { @@ -98,14 +125,18 @@ public java.lang.String getBucket() { } 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 @@ -114,29 +145,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 { @@ -147,12 +178,15 @@ public java.lang.String getObject() { 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 @@ -163,6 +197,8 @@ 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
@@ -170,6 +206,7 @@ public long getGeneration() {
    * 
* * optional int64 if_generation_match = 4; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -177,6 +214,8 @@ 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
@@ -184,6 +223,7 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 4; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -194,6 +234,8 @@ 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
@@ -202,6 +244,7 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 5; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -209,6 +252,8 @@ 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
@@ -217,6 +262,7 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 5; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -227,12 +273,15 @@ 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 @@ -240,12 +289,15 @@ 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 @@ -256,12 +308,15 @@ 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 @@ -269,12 +324,15 @@ 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 @@ -285,11 +343,14 @@ 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 @@ -297,18 +358,25 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** + * + * *
    * 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.
    * 
@@ -316,13 +384,18 @@ 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
@@ -331,6 +404,7 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR
    * 
* * optional .google.protobuf.FieldMask read_mask = 10; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -338,6 +412,8 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
    * Mask specifying which fields to read.
    * If no mask is specified, will default to all fields except metadata.acl and
@@ -346,6 +422,7 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 10; + * * @return The readMask. */ @java.lang.Override @@ -353,6 +430,8 @@ 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
@@ -368,6 +447,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -379,8 +459,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_);
     }
@@ -424,32 +503,27 @@ 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());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, getCommonObjectRequestParams());
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, getReadMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getReadMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -459,48 +533,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.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 (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;
@@ -518,27 +584,22 @@ 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;
@@ -553,118 +614,127 @@ 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() @@ -672,18 +742,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(); @@ -709,9 +779,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 @@ -730,8 +800,11 @@ 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; } @@ -765,14 +838,13 @@ private void buildPartial0(com.google.storage.v2.GetObjectRequest result) { to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = + commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; @@ -782,38 +854,39 @@ 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; @@ -879,61 +952,68 @@ 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_ |= 0x00000080; - break; - } // case 66 - case 82: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - 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 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_ |= 0x00000080; + break; + } // case 66 + case 82: + { + input.readMessage(getReadMaskFieldBuilder().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) { @@ -943,22 +1023,27 @@ 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; @@ -967,20 +1052,23 @@ 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 { @@ -988,28 +1076,39 @@ 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) = { ... } + * + * * @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() { @@ -1019,17 +1118,23 @@ 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; @@ -1039,18 +1144,20 @@ public Builder setBucketBytes( 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; @@ -1059,20 +1166,21 @@ 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 { @@ -1080,28 +1188,35 @@ public java.lang.String getObject() { } } /** + * + * *
      * 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() { @@ -1111,17 +1226,21 @@ 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; @@ -1129,14 +1248,17 @@ public Builder setObjectBytes( 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 @@ -1144,29 +1266,35 @@ 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. */ public Builder setGeneration(long value) { - + generation_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -1176,8 +1304,10 @@ 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
@@ -1185,6 +1315,7 @@ public Builder clearGeneration() {
      * 
* * optional int64 if_generation_match = 4; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1192,6 +1323,8 @@ 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
@@ -1199,6 +1332,7 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1206,6 +1340,8 @@ 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
@@ -1213,17 +1349,20 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 4; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000008; onChanged(); 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
@@ -1231,6 +1370,7 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 4; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1240,8 +1380,10 @@ 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
@@ -1250,6 +1392,7 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 5; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1257,6 +1400,8 @@ 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
@@ -1265,6 +1410,7 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 5; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1272,6 +1418,8 @@ 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
@@ -1280,17 +1428,20 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 5; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000010; onChanged(); 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
@@ -1299,6 +1450,7 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 5; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1308,14 +1460,17 @@ 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 @@ -1323,12 +1478,15 @@ 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 @@ -1336,29 +1494,35 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000020; onChanged(); 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() { @@ -1368,14 +1532,17 @@ 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 @@ -1383,12 +1550,15 @@ 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 @@ -1396,29 +1566,35 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000040; onChanged(); 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() { @@ -1430,41 +1606,55 @@ 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_ & 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(); @@ -1478,6 +1668,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1496,17 +1688,21 @@ 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; @@ -1519,6 +1715,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1536,33 +1734,42 @@ 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.
      * 
@@ -1570,14 +1777,17 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR * .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_; @@ -1585,8 +1795,13 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR 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
@@ -1595,12 +1810,15 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR
      * 
* * optional .google.protobuf.FieldMask read_mask = 10; + * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -1609,6 +1827,7 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 10; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1619,6 +1838,8 @@ 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
@@ -1642,6 +1863,8 @@ 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
@@ -1651,8 +1874,7 @@ 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 {
@@ -1663,6 +1885,8 @@ public Builder setReadMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask specifying which fields to read.
      * If no mask is specified, will default to all fields except metadata.acl and
@@ -1674,9 +1898,9 @@ public Builder setReadMask(
      */
     public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       if (readMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0) &&
-          readMask_ != null &&
-          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0)
+            && readMask_ != null
+            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getReadMaskBuilder().mergeFrom(value);
         } else {
           readMask_ = value;
@@ -1689,6 +1913,8 @@ public Builder mergeReadMask(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
@@ -1709,6 +1935,8 @@ 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
@@ -1724,6 +1952,8 @@ 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
@@ -1737,11 +1967,12 @@ 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
@@ -1752,21 +1983,24 @@ 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);
     }
 
@@ -1776,12 +2010,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();
   }
@@ -1790,27 +2024,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;
@@ -1825,6 +2059,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.GetObjectRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
similarity index 82%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
index f12223c80b..fd35680f3a 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
@@ -1,64 +1,99 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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 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(); /** + * + * *
    * Makes the operation conditional on whether the object's current generation
    * matches the given value. Setting to 0 makes the operation succeed only if
@@ -66,10 +101,13 @@ public interface GetObjectRequestOrBuilder extends
    * 
* * 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
@@ -77,11 +115,14 @@ public interface GetObjectRequestOrBuilder extends
    * 
* * 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
@@ -90,10 +131,13 @@ public interface GetObjectRequestOrBuilder extends
    * 
* * 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
@@ -102,71 +146,92 @@ public interface GetObjectRequestOrBuilder extends
    * 
* * 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.
    * 
@@ -176,6 +241,8 @@ public interface GetObjectRequestOrBuilder extends 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
@@ -184,10 +251,13 @@ public interface GetObjectRequestOrBuilder extends
    * 
* * 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
@@ -196,10 +266,13 @@ public interface GetObjectRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
similarity index 63%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
index 60c2f85285..d8627107b6 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
@@ -1,63 +1,88 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -66,30 +91,32 @@ 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 { @@ -98,6 +125,7 @@ public java.lang.String getProject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -134,15 +161,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -161,130 +188,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +327,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 @@ -315,8 +348,11 @@ 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; } @@ -332,38 +368,39 @@ 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; @@ -403,17 +440,19 @@ 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) { @@ -423,23 +462,28 @@ 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; @@ -448,21 +492,24 @@ 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 { @@ -470,30 +517,41 @@ 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) = { ... } + * + * * @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() { @@ -503,27 +561,33 @@ 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); } @@ -533,12 +597,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(); } @@ -547,27 +611,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; @@ -582,6 +646,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.GetServiceAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 0000000000..74f04937a8 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java index 0f0816c945..44298f81a1 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -30,33 +48,37 @@ private HmacKeyMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HmacKeyMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } 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}.
@@ -64,6 +86,7 @@ protected java.lang.Object newInstance(
    * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The id. */ @java.lang.Override @@ -72,14 +95,15 @@ 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}.
@@ -87,16 +111,15 @@ 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 { @@ -105,14 +128,18 @@ public java.lang.String getId() { } 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 @@ -121,29 +148,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 { @@ -152,16 +179,22 @@ public java.lang.String getAccessId() { } 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 @@ -170,31 +203,33 @@ 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 { @@ -203,14 +238,18 @@ public java.lang.String getProject() { } 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 @@ -219,29 +258,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 { @@ -250,15 +289,19 @@ public java.lang.String getServiceAccountEmail() { } 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 @@ -267,30 +310,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 { @@ -301,11 +344,15 @@ public java.lang.String getState() { 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 @@ -313,11 +360,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * 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 @@ -325,11 +376,14 @@ 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() { @@ -339,11 +393,15 @@ 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 @@ -351,11 +409,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * 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 @@ -363,11 +425,14 @@ 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() { @@ -375,14 +440,18 @@ 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 @@ -391,29 +460,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 { @@ -422,6 +491,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,8 +503,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -484,12 +553,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); @@ -502,35 +569,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.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; } @@ -567,130 +626,135 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -715,9 +779,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 @@ -736,8 +800,11 @@ 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; } @@ -760,14 +827,10 @@ private void buildPartial0(com.google.storage.v2.HmacKeyMetadata result) { result.state_ = state_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.etag_ = etag_; @@ -778,38 +841,39 @@ private void buildPartial0(com.google.storage.v2.HmacKeyMetadata 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.HmacKeyMetadata) { - return mergeFrom((com.google.storage.v2.HmacKeyMetadata)other); + return mergeFrom((com.google.storage.v2.HmacKeyMetadata) other); } else { super.mergeFrom(other); return this; @@ -880,56 +944,61 @@ 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) { @@ -939,10 +1008,13 @@ 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}.
@@ -950,13 +1022,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; @@ -965,6 +1037,8 @@ public java.lang.String getId() { } } /** + * + * *
      * Immutable. Resource name ID of the key in the format
      * {projectIdentifier}/{accessId}.
@@ -972,15 +1046,14 @@ 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 { @@ -988,6 +1061,8 @@ public java.lang.String getId() { } } /** + * + * *
      * Immutable. Resource name ID of the key in the format
      * {projectIdentifier}/{accessId}.
@@ -995,18 +1070,22 @@ public java.lang.String getId() {
      * 
* * 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}.
@@ -1014,6 +1093,7 @@ public Builder setId(
      * 
* * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearId() { @@ -1023,6 +1103,8 @@ public Builder clearId() { return this; } /** + * + * *
      * Immutable. Resource name ID of the key in the format
      * {projectIdentifier}/{accessId}.
@@ -1030,12 +1112,14 @@ 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; @@ -1045,18 +1129,20 @@ public Builder setIdBytes( 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; @@ -1065,20 +1151,21 @@ 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 { @@ -1086,28 +1173,35 @@ public java.lang.String getAccessId() { } } /** + * + * *
      * 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() { @@ -1117,17 +1211,21 @@ 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; @@ -1137,20 +1235,24 @@ public Builder setAccessIdBytes( 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; @@ -1159,22 +1261,25 @@ 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 { @@ -1182,32 +1287,43 @@ 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) = { ... } + * + * * @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() { @@ -1217,19 +1333,25 @@ 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; @@ -1239,18 +1361,20 @@ public Builder setProjectBytes( 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; @@ -1259,20 +1383,21 @@ 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 { @@ -1280,28 +1405,35 @@ 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]; + * * @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() { @@ -1311,17 +1443,21 @@ 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; @@ -1331,19 +1467,21 @@ public Builder setServiceAccountEmailBytes( 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; @@ -1352,21 +1490,22 @@ 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 { @@ -1374,30 +1513,37 @@ 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; + * * @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() { @@ -1407,18 +1553,22 @@ 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; @@ -1428,39 +1578,58 @@ public Builder setStateBytes( 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) { @@ -1476,14 +1645,17 @@ 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 { @@ -1494,17 +1666,21 @@ public Builder setCreateTime( 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; @@ -1517,11 +1693,15 @@ public Builder mergeCreateTime(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 clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1534,11 +1714,15 @@ 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; @@ -1546,36 +1730,48 @@ 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_; @@ -1583,39 +1779,58 @@ 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) { @@ -1631,14 +1846,17 @@ 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 { @@ -1649,17 +1867,21 @@ public Builder setUpdateTime( 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; @@ -1672,11 +1894,15 @@ public Builder mergeUpdateTime(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 clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1689,11 +1915,15 @@ 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; @@ -1701,36 +1931,48 @@ 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_; @@ -1738,18 +1980,20 @@ 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; @@ -1758,20 +2002,21 @@ 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 { @@ -1779,28 +2024,35 @@ public java.lang.String getEtag() { } } /** + * + * *
      * 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() { @@ -1810,26 +2062,30 @@ 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); } @@ -1839,12 +2095,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(); } @@ -1853,27 +2109,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; @@ -1888,6 +2144,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.HmacKeyMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java index d2553f7039..8dfc5ee628 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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}.
@@ -15,10 +33,13 @@ public interface HmacKeyMetadataOrBuilder extends
    * 
* * 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}.
@@ -26,168 +47,219 @@ public interface HmacKeyMetadataOrBuilder extends
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java index d33419a8a6..fda4a2709f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -27,39 +45,46 @@ private ListBucketsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBucketsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. 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 { @@ -101,6 +128,8 @@ public java.lang.String getParent() { 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
@@ -109,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -117,15 +147,19 @@ 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 @@ -134,30 +168,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 { @@ -166,14 +200,18 @@ public java.lang.String getPageToken() { } 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 @@ -182,29 +220,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 { @@ -215,6 +253,8 @@ public java.lang.String getPrefix() { 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,
@@ -223,6 +263,7 @@ public java.lang.String getPrefix() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -230,6 +271,8 @@ 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,
@@ -238,6 +281,7 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 5; + * * @return The readMask. */ @java.lang.Override @@ -245,6 +289,8 @@ 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,
@@ -260,6 +306,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -271,8 +318,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -301,8 +347,7 @@ 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_);
@@ -311,8 +356,7 @@ 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;
@@ -322,25 +366,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.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;
@@ -370,118 +409,127 @@ 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() @@ -489,17 +537,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(); @@ -517,9 +565,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 @@ -538,8 +586,11 @@ 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; } @@ -560,9 +611,7 @@ 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_; @@ -572,38 +621,39 @@ 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; @@ -659,39 +709,43 @@ 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) { @@ -701,22 +755,27 @@ 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; @@ -725,20 +784,23 @@ 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 { @@ -746,28 +808,39 @@ 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) = { ... } + * + * * @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() { @@ -777,17 +850,23 @@ 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; @@ -795,8 +874,10 @@ public Builder setParentBytes( 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
@@ -805,6 +886,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -812,6 +894,8 @@ 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
@@ -820,17 +904,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); 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
@@ -839,6 +926,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -850,19 +938,21 @@ 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; @@ -871,21 +961,22 @@ 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 { @@ -893,30 +984,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * 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() { @@ -926,18 +1024,22 @@ 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; @@ -947,18 +1049,20 @@ public Builder setPageTokenBytes( 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; @@ -967,20 +1071,21 @@ 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 { @@ -988,28 +1093,35 @@ public java.lang.String getPrefix() { } } /** + * + * *
      * 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() { @@ -1019,17 +1131,21 @@ 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; @@ -1039,8 +1155,13 @@ public Builder setPrefixBytes( 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,
@@ -1049,12 +1170,15 @@ public Builder setPrefixBytes(
      * 
* * 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,
@@ -1063,6 +1187,7 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 5; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1073,6 +1198,8 @@ 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,
@@ -1096,6 +1223,8 @@ 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,
@@ -1105,8 +1234,7 @@ 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 {
@@ -1117,6 +1245,8 @@ public Builder setReadMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask specifying which fields to read from each result.
      * If no mask is specified, will default to all fields except items.owner,
@@ -1128,9 +1258,9 @@ public Builder setReadMask(
      */
     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;
@@ -1143,6 +1273,8 @@ public Builder mergeReadMask(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,
@@ -1163,6 +1295,8 @@ 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,
@@ -1178,6 +1312,8 @@ 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,
@@ -1191,11 +1327,12 @@ 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,
@@ -1206,21 +1343,24 @@ 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);
     }
 
@@ -1230,12 +1370,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();
   }
@@ -1244,27 +1384,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;
@@ -1279,6 +1419,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.ListBucketsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
index 070860d103..0afd2226ce 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequestOrBuilder.java
@@ -1,33 +1,60 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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
@@ -36,53 +63,66 @@ public interface ListBucketsRequestOrBuilder extends
    * 
* * 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,
@@ -91,10 +131,13 @@ public interface ListBucketsRequestOrBuilder extends
    * 
* * 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,
@@ -103,10 +146,13 @@ public interface ListBucketsRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
similarity index 71%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
index 4c8c22c54a..c069c61703 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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_ = ""; @@ -26,33 +44,37 @@ private ListBucketsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBucketsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.
    * 
@@ -64,6 +86,8 @@ public java.util.List getBucketsList() { return buckets_; } /** + * + * *
    * The list of items.
    * 
@@ -71,11 +95,12 @@ 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.
    * 
@@ -87,6 +112,8 @@ public int getBucketsCount() { return buckets_.size(); } /** + * + * *
    * The list of items.
    * 
@@ -98,6 +125,8 @@ public com.google.storage.v2.Bucket getBuckets(int index) { return buckets_.get(index); } /** + * + * *
    * The list of items.
    * 
@@ -105,21 +134,24 @@ 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 @@ -128,30 +160,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 { @@ -160,6 +192,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < buckets_.size(); i++) { output.writeMessage(1, buckets_.get(i)); } @@ -189,8 +221,7 @@ 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_); @@ -203,17 +234,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -236,130 +266,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +412,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 @@ -397,9 +433,12 @@ 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; } @@ -427,38 +466,39 @@ 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; @@ -485,9 +525,10 @@ 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_); } @@ -524,30 +565,31 @@ 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) { @@ -557,21 +599,28 @@ 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.
      * 
@@ -586,6 +635,8 @@ public java.util.List getBucketsList() { } } /** + * + * *
      * The list of items.
      * 
@@ -600,6 +651,8 @@ public int getBucketsCount() { } } /** + * + * *
      * The list of items.
      * 
@@ -614,14 +667,15 @@ 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(); @@ -635,14 +689,15 @@ public Builder setBuckets( 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()); @@ -653,6 +708,8 @@ public Builder setBuckets( return this; } /** + * + * *
      * The list of items.
      * 
@@ -673,14 +730,15 @@ 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(); @@ -694,14 +752,15 @@ public Builder addBuckets( 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()); @@ -712,14 +771,15 @@ public Builder addBuckets( 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()); @@ -730,6 +790,8 @@ public Builder addBuckets( return this; } /** + * + * *
      * The list of items.
      * 
@@ -740,8 +802,7 @@ 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); @@ -749,6 +810,8 @@ public Builder addAllBuckets( return this; } /** + * + * *
      * The list of items.
      * 
@@ -766,6 +829,8 @@ public Builder clearBuckets() { return this; } /** + * + * *
      * The list of items.
      * 
@@ -783,39 +848,44 @@ 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 { @@ -823,6 +893,8 @@ public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder( } } /** + * + * *
      * The list of items.
      * 
@@ -830,42 +902,46 @@ public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder( * 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_; @@ -873,19 +949,21 @@ public com.google.storage.v2.Bucket.Builder addBucketsBuilder( 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; @@ -894,21 +972,22 @@ 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 { @@ -916,30 +995,37 @@ 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; + * * @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() { @@ -949,27 +1035,31 @@ 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); } @@ -979,12 +1069,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(); } @@ -993,27 +1083,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; @@ -1028,6 +1118,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListBucketsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java index 2ba5c5a1e9..cdc9f1f78e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.
    * 
@@ -25,6 +44,8 @@ public interface ListBucketsResponseOrBuilder extends */ com.google.storage.v2.Bucket getBuckets(int index); /** + * + * *
    * The list of items.
    * 
@@ -33,43 +54,50 @@ public interface ListBucketsResponseOrBuilder extends */ 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java index bbb8cd6ffd..3acdb3d866 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -27,40 +45,47 @@ private ListHmacKeysRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHmacKeysRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -69,31 +94,33 @@ 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 { @@ -104,11 +131,14 @@ public java.lang.String getProject() { 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 @@ -117,14 +147,18 @@ 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 @@ -133,29 +167,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 { @@ -164,14 +198,18 @@ public java.lang.String getPageToken() { } 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 @@ -180,29 +218,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 { @@ -213,11 +251,14 @@ public java.lang.String getServiceAccountEmail() { 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 @@ -226,6 +267,7 @@ public boolean getShowDeletedKeys() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,8 +279,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -267,8 +308,7 @@ 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_); @@ -277,8 +317,7 @@ 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; @@ -288,23 +327,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.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; } @@ -325,137 +360,142 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +509,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 @@ -490,8 +530,11 @@ 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; } @@ -519,38 +562,39 @@ 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; @@ -606,37 +650,43 @@ 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) { @@ -646,24 +696,29 @@ 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; @@ -672,22 +727,25 @@ 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 { @@ -695,32 +753,43 @@ 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) = { ... } + * + * * @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() { @@ -730,19 +799,25 @@ 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; @@ -750,13 +825,16 @@ public Builder setProjectBytes( 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 @@ -764,27 +842,33 @@ 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. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of keys to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -796,18 +880,20 @@ 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; @@ -816,20 +902,21 @@ 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 { @@ -837,28 +924,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * 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() { @@ -868,17 +962,21 @@ 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; @@ -888,18 +986,20 @@ public Builder setPageTokenBytes( 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; @@ -908,20 +1008,21 @@ 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 { @@ -929,28 +1030,35 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
      * 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() { @@ -960,17 +1068,21 @@ 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; @@ -978,13 +1090,16 @@ public Builder setServiceAccountEmailBytes( 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 @@ -992,27 +1107,33 @@ 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. */ public Builder setShowDeletedKeys(boolean value) { - + showDeletedKeys_ = value; bitField0_ |= 0x00000010; onChanged(); 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() { @@ -1021,9 +1142,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); } @@ -1033,12 +1154,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(); } @@ -1047,27 +1168,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; @@ -1082,6 +1203,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListHmacKeysRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java index 8413fd5b1a..3dbfdaea55 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java @@ -1,92 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java index aee28fa858..11f9510a44 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -26,33 +44,37 @@ private ListHmacKeysResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHmacKeysResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.
    * 
@@ -64,6 +86,8 @@ public java.util.List getHmacKeysList() { return hmacKeys_; } /** + * + * *
    * The list of items.
    * 
@@ -71,11 +95,13 @@ 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.
    * 
@@ -87,6 +113,8 @@ public int getHmacKeysCount() { return hmacKeys_.size(); } /** + * + * *
    * The list of items.
    * 
@@ -98,6 +126,8 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index) { return hmacKeys_.get(index); } /** + * + * *
    * The list of items.
    * 
@@ -105,21 +135,24 @@ 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 @@ -128,30 +161,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 { @@ -160,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < hmacKeys_.size(); i++) { output.writeMessage(1, hmacKeys_.get(i)); } @@ -189,8 +222,7 @@ 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_); @@ -203,17 +235,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -236,130 +267,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +413,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 @@ -397,9 +434,12 @@ 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; } @@ -427,38 +467,39 @@ 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; @@ -485,9 +526,10 @@ 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_); } @@ -524,30 +566,32 @@ 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) { @@ -557,21 +601,28 @@ 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.
      * 
@@ -586,6 +637,8 @@ public java.util.List getHmacKeysList() { } } /** + * + * *
      * The list of items.
      * 
@@ -600,6 +653,8 @@ public int getHmacKeysCount() { } } /** + * + * *
      * The list of items.
      * 
@@ -614,14 +669,15 @@ 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(); @@ -635,6 +691,8 @@ public Builder setHmacKeys( return this; } /** + * + * *
      * The list of items.
      * 
@@ -653,6 +711,8 @@ public Builder setHmacKeys( return this; } /** + * + * *
      * The list of items.
      * 
@@ -673,14 +733,15 @@ 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(); @@ -694,14 +755,15 @@ public Builder addHmacKeys( 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()); @@ -712,6 +774,8 @@ public Builder addHmacKeys( return this; } /** + * + * *
      * The list of items.
      * 
@@ -730,6 +794,8 @@ public Builder addHmacKeys( return this; } /** + * + * *
      * The list of items.
      * 
@@ -740,8 +806,7 @@ 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); @@ -749,6 +814,8 @@ public Builder addAllHmacKeys( return this; } /** + * + * *
      * The list of items.
      * 
@@ -766,6 +833,8 @@ public Builder clearHmacKeys() { return this; } /** + * + * *
      * The list of items.
      * 
@@ -783,39 +852,44 @@ 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 { @@ -823,6 +897,8 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder( } } /** + * + * *
      * The list of items.
      * 
@@ -830,42 +906,47 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder( * 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_; @@ -873,19 +954,21 @@ public com.google.storage.v2.HmacKeyMetadata.Builder addHmacKeysBuilder( 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; @@ -894,21 +977,22 @@ 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 { @@ -916,30 +1000,37 @@ 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; + * * @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() { @@ -949,27 +1040,31 @@ 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); } @@ -979,12 +1074,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(); } @@ -993,27 +1088,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; @@ -1028,6 +1123,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListHmacKeysResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java index 948ccfa96c..fc777c3430 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.
    * 
@@ -25,6 +44,8 @@ public interface ListHmacKeysResponseOrBuilder extends */ com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index); /** + * + * *
    * The list of items.
    * 
@@ -33,43 +54,51 @@ public interface ListHmacKeysResponseOrBuilder extends */ 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java index 09b17b46d8..1b0faf28de 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -26,38 +45,45 @@ private ListNotificationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -66,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. 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 { @@ -99,6 +127,8 @@ public java.lang.String getParent() { 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
@@ -106,6 +136,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,9 +145,12 @@ 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.
@@ -125,6 +159,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -133,14 +168,15 @@ 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.
@@ -149,16 +185,15 @@ 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 { @@ -167,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +214,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -202,8 +237,7 @@ 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_); @@ -216,19 +250,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.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; } @@ -252,129 +284,135 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +424,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 @@ -407,8 +445,11 @@ 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; } @@ -430,38 +471,39 @@ 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; @@ -469,7 +511,8 @@ 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; @@ -509,27 +552,31 @@ 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) { @@ -539,22 +586,27 @@ 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; @@ -563,20 +615,23 @@ 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 { @@ -584,28 +639,39 @@ 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) = { ... } + * + * * @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() { @@ -615,17 +681,23 @@ 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; @@ -633,8 +705,10 @@ public Builder setParentBytes( 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
@@ -642,6 +716,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -649,6 +724,8 @@ 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
@@ -656,17 +733,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); 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
@@ -674,6 +754,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -685,6 +766,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListNotificationConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -693,13 +776,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; @@ -708,6 +791,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListNotificationConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -716,15 +801,14 @@ 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 { @@ -732,6 +816,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListNotificationConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -740,18 +826,22 @@ public java.lang.String getPageToken() {
      * 
* * 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.
@@ -760,6 +850,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -769,6 +860,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListNotificationConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -777,21 +870,23 @@ 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); } @@ -801,12 +896,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(); } @@ -815,27 +910,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; @@ -850,6 +945,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.storage.v2.ListNotificationConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java index a8dc37b17d..dff69f1092 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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
@@ -35,11 +62,14 @@ public interface ListNotificationConfigsRequestOrBuilder extends
    * 
* * 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.
@@ -48,10 +78,13 @@ public interface ListNotificationConfigsRequestOrBuilder extends
    * 
* * 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.
@@ -60,8 +93,8 @@ public interface ListNotificationConfigsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java index 87eee664a4..eeedd2a45f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -26,33 +45,37 @@ private ListNotificationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.
    * 
@@ -64,6 +87,8 @@ public java.util.List getNotificationC return notificationConfigs_; } /** + * + * *
    * The list of items.
    * 
@@ -71,11 +96,13 @@ 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.
    * 
@@ -87,6 +114,8 @@ public int getNotificationConfigsCount() { return notificationConfigs_.size(); } /** + * + * *
    * The list of items.
    * 
@@ -98,6 +127,8 @@ public com.google.storage.v2.NotificationConfig getNotificationConfigs(int index return notificationConfigs_.get(index); } /** + * + * *
    * The list of items.
    * 
@@ -111,15 +142,19 @@ 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 @@ -128,30 +163,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 { @@ -160,6 +195,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < notificationConfigs_.size(); i++) { output.writeMessage(1, notificationConfigs_.get(i)); } @@ -189,8 +224,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_); @@ -203,17 +238,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -237,129 +271,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +417,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 @@ -397,14 +438,18 @@ 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_); @@ -427,38 +472,39 @@ 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; @@ -466,7 +512,8 @@ 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()) { @@ -485,9 +532,10 @@ 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_); } @@ -524,30 +572,32 @@ 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) { @@ -557,21 +607,29 @@ 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.
      * 
@@ -586,6 +644,8 @@ public java.util.List getNotificationC } } /** + * + * *
      * The list of items.
      * 
@@ -600,6 +660,8 @@ public int getNotificationConfigsCount() { } } /** + * + * *
      * The list of items.
      * 
@@ -614,6 +676,8 @@ public com.google.storage.v2.NotificationConfig getNotificationConfigs(int index } } /** + * + * *
      * The list of items.
      * 
@@ -635,6 +699,8 @@ public Builder setNotificationConfigs( return this; } /** + * + * *
      * The list of items.
      * 
@@ -653,6 +719,8 @@ public Builder setNotificationConfigs( return this; } /** + * + * *
      * The list of items.
      * 
@@ -673,6 +741,8 @@ public Builder addNotificationConfigs(com.google.storage.v2.NotificationConfig v return this; } /** + * + * *
      * The list of items.
      * 
@@ -694,6 +764,8 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
      * The list of items.
      * 
@@ -712,6 +784,8 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
      * The list of items.
      * 
@@ -730,6 +804,8 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
      * The list of items.
      * 
@@ -740,8 +816,7 @@ 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); @@ -749,6 +824,8 @@ public Builder addAllNotificationConfigs( return this; } /** + * + * *
      * The list of items.
      * 
@@ -766,6 +843,8 @@ public Builder clearNotificationConfigs() { return this; } /** + * + * *
      * The list of items.
      * 
@@ -783,6 +862,8 @@ public Builder removeNotificationConfigs(int index) { return this; } /** + * + * *
      * The list of items.
      * 
@@ -794,6 +875,8 @@ public com.google.storage.v2.NotificationConfig.Builder getNotificationConfigsBu return getNotificationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of items.
      * 
@@ -803,19 +886,22 @@ 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 { @@ -823,6 +909,8 @@ public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsO } } /** + * + * *
      * The list of items.
      * 
@@ -830,10 +918,12 @@ 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.
      * 
@@ -842,26 +932,34 @@ 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(), @@ -873,19 +971,21 @@ 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; @@ -894,21 +994,22 @@ 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 { @@ -916,30 +1017,37 @@ 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; + * * @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() { @@ -949,27 +1057,31 @@ 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); } @@ -979,12 +1091,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(); } @@ -993,27 +1105,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; @@ -1028,6 +1140,4 @@ public com.google.protobuf.Parser getParserForT public com.google.storage.v2.ListNotificationConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java index 9aafab8159..f1fe02eeff 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.
    * 
@@ -25,6 +44,8 @@ public interface ListNotificationConfigsResponseOrBuilder extends */ com.google.storage.v2.NotificationConfig getNotificationConfigs(int index); /** + * + * *
    * The list of items.
    * 
@@ -33,43 +54,51 @@ public interface ListNotificationConfigsResponseOrBuilder extends */ 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java similarity index 75% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java index a97480fdc8..e90facb948 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -30,39 +48,46 @@ private ListObjectsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListObjectsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -71,29 +96,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. 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 { @@ -104,6 +131,8 @@ public java.lang.String getParent() { 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
@@ -112,6 +141,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -120,15 +150,19 @@ 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 @@ -137,30 +171,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 { @@ -169,9 +203,12 @@ public java.lang.String getPageToken() { } 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
@@ -182,6 +219,7 @@ public java.lang.String getPageToken() {
    * 
* * string delimiter = 4; + * * @return The delimiter. */ @java.lang.Override @@ -190,14 +228,15 @@ 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
@@ -208,16 +247,15 @@ 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 { @@ -228,6 +266,8 @@ public java.lang.String getDelimiter() { 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
@@ -235,6 +275,7 @@ public java.lang.String getDelimiter() {
    * 
* * bool include_trailing_delimiter = 5; + * * @return The includeTrailingDelimiter. */ @java.lang.Override @@ -243,14 +284,18 @@ 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 @@ -259,29 +304,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 { @@ -292,6 +337,8 @@ public java.lang.String getPrefix() { 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
@@ -300,6 +347,7 @@ public java.lang.String getPrefix() {
    * 
* * bool versions = 7; + * * @return The versions. */ @java.lang.Override @@ -310,6 +358,8 @@ 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
@@ -318,6 +368,7 @@ public boolean getVersions() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 8; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -325,6 +376,8 @@ 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
@@ -333,6 +386,7 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 8; + * * @return The readMask. */ @java.lang.Override @@ -340,6 +394,8 @@ 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
@@ -355,9 +411,12 @@ 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
@@ -366,6 +425,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
    * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lexicographicStart. */ @java.lang.Override @@ -374,14 +434,15 @@ 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
@@ -390,16 +451,15 @@ 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 { @@ -408,9 +468,12 @@ public java.lang.String getLexicographicStart() { } 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
@@ -419,6 +482,7 @@ public java.lang.String getLexicographicStart() {
    * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lexicographicEnd. */ @java.lang.Override @@ -427,14 +491,15 @@ 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
@@ -443,16 +508,15 @@ 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 { @@ -461,6 +525,7 @@ public java.lang.String getLexicographicEnd() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -472,8 +537,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -517,8 +581,7 @@ 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_); @@ -527,19 +590,16 @@ 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_); @@ -555,36 +615,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.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 (!getReadMask().equals(other.getReadMask())) return false; } - if (!getLexicographicStart() - .equals(other.getLexicographicStart())) return false; - if (!getLexicographicEnd() - .equals(other.getLexicographicEnd())) return false; + if (!getLexicographicStart().equals(other.getLexicographicStart())) return false; + if (!getLexicographicEnd().equals(other.getLexicographicEnd())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -605,13 +655,11 @@ 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(); @@ -625,118 +673,127 @@ 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() @@ -744,17 +801,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(); @@ -777,9 +834,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 @@ -798,8 +855,11 @@ 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; } @@ -829,9 +889,7 @@ 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)) { @@ -847,38 +905,39 @@ 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; @@ -955,64 +1014,73 @@ 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 - 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1022,22 +1090,27 @@ 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; @@ -1046,20 +1119,23 @@ 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 { @@ -1067,28 +1143,39 @@ 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) = { ... } + * + * * @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() { @@ -1098,17 +1185,23 @@ 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; @@ -1116,8 +1209,10 @@ public Builder setParentBytes( 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
@@ -1126,6 +1221,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -1133,6 +1229,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of `items` plus `prefixes` to return
      * in a single page of responses. As duplicate `prefixes` are
@@ -1141,17 +1239,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of `items` plus `prefixes` to return
      * in a single page of responses. As duplicate `prefixes` are
@@ -1160,6 +1261,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1171,19 +1273,21 @@ 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; @@ -1192,21 +1296,22 @@ 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 { @@ -1214,30 +1319,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * 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() { @@ -1247,18 +1359,22 @@ 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; @@ -1268,6 +1384,8 @@ public Builder setPageTokenBytes( 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
@@ -1278,13 +1396,13 @@ public Builder setPageTokenBytes(
      * 
* * 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; @@ -1293,6 +1411,8 @@ 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
@@ -1303,15 +1423,14 @@ 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 { @@ -1319,6 +1438,8 @@ 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
@@ -1329,18 +1450,22 @@ public java.lang.String getDelimiter() {
      * 
* * 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
@@ -1351,6 +1476,7 @@ public Builder setDelimiter(
      * 
* * string delimiter = 4; + * * @return This builder for chaining. */ public Builder clearDelimiter() { @@ -1360,6 +1486,8 @@ 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
@@ -1370,12 +1498,14 @@ 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; @@ -1383,8 +1513,10 @@ public Builder setDelimiterBytes( 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
@@ -1392,6 +1524,7 @@ public Builder setDelimiterBytes(
      * 
* * bool include_trailing_delimiter = 5; + * * @return The includeTrailingDelimiter. */ @java.lang.Override @@ -1399,6 +1532,8 @@ 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
@@ -1406,17 +1541,20 @@ public boolean getIncludeTrailingDelimiter() {
      * 
* * bool include_trailing_delimiter = 5; + * * @param value The includeTrailingDelimiter to set. * @return This builder for chaining. */ public Builder setIncludeTrailingDelimiter(boolean value) { - + includeTrailingDelimiter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * If true, objects that end in exactly one instance of `delimiter`
      * will have their metadata included in `items` in addition to
@@ -1424,6 +1562,7 @@ public Builder setIncludeTrailingDelimiter(boolean value) {
      * 
* * bool include_trailing_delimiter = 5; + * * @return This builder for chaining. */ public Builder clearIncludeTrailingDelimiter() { @@ -1435,18 +1574,20 @@ 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; @@ -1455,20 +1596,21 @@ 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 { @@ -1476,28 +1618,35 @@ public java.lang.String getPrefix() { } } /** + * + * *
      * 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() { @@ -1507,17 +1656,21 @@ 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; @@ -1525,8 +1678,10 @@ public Builder setPrefixBytes( return this; } - private boolean versions_ ; + private boolean versions_; /** + * + * *
      * If `true`, lists all versions of an object as distinct results.
      * For more information, see
@@ -1535,6 +1690,7 @@ public Builder setPrefixBytes(
      * 
* * bool versions = 7; + * * @return The versions. */ @java.lang.Override @@ -1542,6 +1698,8 @@ public boolean getVersions() { return versions_; } /** + * + * *
      * If `true`, lists all versions of an object as distinct results.
      * For more information, see
@@ -1550,17 +1708,20 @@ public boolean getVersions() {
      * 
* * bool versions = 7; + * * @param value The versions to set. * @return This builder for chaining. */ public Builder setVersions(boolean value) { - + versions_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * If `true`, lists all versions of an object as distinct results.
      * For more information, see
@@ -1569,6 +1730,7 @@ public Builder setVersions(boolean value) {
      * 
* * bool versions = 7; + * * @return This builder for chaining. */ public Builder clearVersions() { @@ -1580,8 +1742,13 @@ 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
@@ -1590,12 +1757,15 @@ 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
@@ -1604,6 +1774,7 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 8; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1614,6 +1785,8 @@ 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
@@ -1637,6 +1810,8 @@ 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
@@ -1646,8 +1821,7 @@ 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 {
@@ -1658,6 +1832,8 @@ public Builder setReadMask(
       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
@@ -1669,9 +1845,9 @@ public Builder setReadMask(
      */
     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;
@@ -1684,6 +1860,8 @@ public Builder mergeReadMask(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
@@ -1704,6 +1882,8 @@ 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
@@ -1719,6 +1899,8 @@ 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
@@ -1732,11 +1914,12 @@ 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
@@ -1747,14 +1930,17 @@ 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_;
@@ -1762,6 +1948,8 @@ 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
@@ -1770,13 +1958,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; @@ -1785,6 +1973,8 @@ 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
@@ -1793,15 +1983,14 @@ 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 { @@ -1809,6 +1998,8 @@ 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
@@ -1817,18 +2008,22 @@ public java.lang.String getLexicographicStart() {
      * 
* * 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
@@ -1837,6 +2032,7 @@ public Builder setLexicographicStart(
      * 
* * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLexicographicStart() { @@ -1846,6 +2042,8 @@ 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
@@ -1854,12 +2052,14 @@ 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; @@ -1869,6 +2069,8 @@ public Builder setLexicographicStartBytes( 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
@@ -1877,13 +2079,13 @@ public Builder setLexicographicStartBytes(
      * 
* * 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; @@ -1892,6 +2094,8 @@ 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
@@ -1900,15 +2104,14 @@ 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 { @@ -1916,6 +2119,8 @@ 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
@@ -1924,18 +2129,22 @@ public java.lang.String getLexicographicEnd() {
      * 
* * 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
@@ -1944,6 +2153,7 @@ public Builder setLexicographicEnd(
      * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLexicographicEnd() { @@ -1953,6 +2163,8 @@ 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
@@ -1961,21 +2173,23 @@ 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; 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); } @@ -1985,12 +2199,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(); } @@ -1999,27 +2213,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; @@ -2034,6 +2248,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListObjectsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java index 0dd58b215e..187cfa59cf 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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
@@ -36,33 +63,41 @@ public interface ListObjectsRequestOrBuilder extends
    * 
* * 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
@@ -73,10 +108,13 @@ public interface ListObjectsRequestOrBuilder extends
    * 
* * 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
@@ -87,12 +125,14 @@ public interface ListObjectsRequestOrBuilder extends
    * 
* * 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
@@ -100,31 +140,39 @@ public interface ListObjectsRequestOrBuilder extends
    * 
* * 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
@@ -133,11 +181,14 @@ public interface ListObjectsRequestOrBuilder extends
    * 
* * 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
@@ -146,10 +197,13 @@ public interface ListObjectsRequestOrBuilder extends
    * 
* * 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
@@ -158,10 +212,13 @@ public interface ListObjectsRequestOrBuilder extends
    * 
* * 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
@@ -174,6 +231,8 @@ public interface ListObjectsRequestOrBuilder extends
   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
@@ -182,10 +241,13 @@ public interface ListObjectsRequestOrBuilder extends
    * 
* * 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
@@ -194,12 +256,14 @@ public interface ListObjectsRequestOrBuilder extends
    * 
* * 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
@@ -208,10 +272,13 @@ public interface ListObjectsRequestOrBuilder extends
    * 
* * 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
@@ -220,8 +287,8 @@ public interface ListObjectsRequestOrBuilder extends
    * 
* * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for lexicographicEnd. */ - com.google.protobuf.ByteString - getLexicographicEndBytes(); + com.google.protobuf.ByteString getLexicographicEndBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java index 1d0164cdb5..a4b3acd2e9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.EMPTY; @@ -27,33 +45,37 @@ private ListObjectsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListObjectsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.
    * 
@@ -65,6 +87,8 @@ public java.util.List getObjectsList() { return objects_; } /** + * + * *
    * The list of items.
    * 
@@ -72,11 +96,12 @@ 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.
    * 
@@ -88,6 +113,8 @@ public int getObjectsCount() { return objects_.size(); } /** + * + * *
    * The list of items.
    * 
@@ -99,6 +126,8 @@ public com.google.storage.v2.Object getObjects(int index) { return objects_.get(index); } /** + * + * *
    * The list of items.
    * 
@@ -106,46 +135,54 @@ 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.LazyStringList prefixes_; /** + * + * *
    * 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. */ @@ -153,30 +190,36 @@ 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 @@ -185,30 +228,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 { @@ -217,6 +260,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < objects_.size(); i++) { output.writeMessage(1, objects_.get(i)); } @@ -249,8 +292,7 @@ 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; @@ -271,19 +313,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.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; } @@ -310,130 +350,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -452,9 +498,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_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 @@ -473,9 +519,12 @@ 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; } @@ -508,38 +557,39 @@ 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; @@ -566,9 +616,10 @@ 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_); } @@ -615,36 +666,38 @@ 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) { @@ -654,21 +707,28 @@ 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.
      * 
@@ -683,6 +743,8 @@ public java.util.List getObjectsList() { } } /** + * + * *
      * The list of items.
      * 
@@ -697,6 +759,8 @@ public int getObjectsCount() { } } /** + * + * *
      * The list of items.
      * 
@@ -711,14 +775,15 @@ 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(); @@ -732,14 +797,15 @@ public Builder setObjects( 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()); @@ -750,6 +816,8 @@ public Builder setObjects( return this; } /** + * + * *
      * The list of items.
      * 
@@ -770,14 +838,15 @@ 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(); @@ -791,14 +860,15 @@ public Builder addObjects( 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()); @@ -809,14 +879,15 @@ public Builder addObjects( 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()); @@ -827,6 +898,8 @@ public Builder addObjects( return this; } /** + * + * *
      * The list of items.
      * 
@@ -837,8 +910,7 @@ 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); @@ -846,6 +918,8 @@ public Builder addAllObjects( return this; } /** + * + * *
      * The list of items.
      * 
@@ -863,6 +937,8 @@ public Builder clearObjects() { return this; } /** + * + * *
      * The list of items.
      * 
@@ -880,39 +956,44 @@ 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 { @@ -920,6 +1001,8 @@ public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder( } } /** + * + * *
      * The list of items.
      * 
@@ -927,86 +1010,100 @@ public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder( * 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_; } - private com.google.protobuf.LazyStringList prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList prefixes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePrefixesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); 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() { return prefixes_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -1014,81 +1111,95 @@ 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); 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 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); 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 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_); 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() { @@ -1098,18 +1209,22 @@ public Builder clearPrefixes() { 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); @@ -1119,19 +1234,21 @@ public Builder addPrefixesBytes( 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; @@ -1140,21 +1257,22 @@ 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 { @@ -1162,30 +1280,37 @@ 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; + * * @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() { @@ -1195,27 +1320,31 @@ 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); } @@ -1225,12 +1354,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(); } @@ -1239,27 +1368,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; @@ -1274,6 +1403,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListObjectsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java index fcecca4ad3..6fa2582940 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.
    * 
@@ -25,6 +44,8 @@ public interface ListObjectsResponseOrBuilder extends */ com.google.storage.v2.Object getObjects(int index); /** + * + * *
    * The list of items.
    * 
@@ -33,88 +54,105 @@ public interface ListObjectsResponseOrBuilder extends */ 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java index 4cb607433f..87bc600d93 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java @@ -1,62 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -65,29 +91,31 @@ 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 { @@ -98,12 +126,15 @@ public java.lang.String getBucket() { 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 @@ -112,6 +143,7 @@ public long getIfMetagenerationMatch() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -123,8 +155,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -144,8 +175,7 @@ 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; @@ -155,17 +185,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -180,137 +209,143 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -321,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_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 @@ -342,8 +377,11 @@ 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; } @@ -362,38 +400,39 @@ 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; @@ -401,7 +440,8 @@ 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; @@ -436,22 +476,25 @@ 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) { @@ -461,22 +504,27 @@ 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; @@ -485,20 +533,23 @@ 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 { @@ -506,28 +557,39 @@ 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) = { ... } + * + * * @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() { @@ -537,17 +599,23 @@ 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; @@ -555,14 +623,17 @@ public Builder setBucketBytes( 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 @@ -570,29 +641,35 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { @@ -601,9 +678,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); } @@ -613,12 +690,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(); } @@ -627,27 +704,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; @@ -662,6 +739,4 @@ public com.google.protobuf.Parser getParserFor public com.google.storage.v2.LockBucketRetentionPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 0000000000..7a5eae42f8 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java index 7fc5f83cfe..5ca707b839 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -30,45 +48,48 @@ private NotificationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NotificationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.MapField internalGetMapField(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:
@@ -77,6 +98,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -85,14 +107,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of this NotificationConfig.
    * Format:
@@ -101,16 +124,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -119,9 +141,12 @@ public java.lang.String getName() { } 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:
@@ -129,6 +154,7 @@ public java.lang.String getName() {
    * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The topic. */ @java.lang.Override @@ -137,14 +163,15 @@ 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:
@@ -152,16 +179,15 @@ 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 { @@ -170,9 +196,12 @@ public java.lang.String getTopic() { } 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
@@ -180,6 +209,7 @@ public java.lang.String getTopic() {
    * 
* * string etag = 7; + * * @return The etag. */ @java.lang.Override @@ -188,14 +218,15 @@ 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
@@ -203,16 +234,15 @@ 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 { @@ -221,40 +251,49 @@ public java.lang.String getEtag() { } public static final int EVENT_TYPES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList eventTypes_; /** + * + * *
    * 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. */ @@ -262,47 +301,53 @@ 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< - 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, - ""); + 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, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> customAttributes_; + private com.google.protobuf.MapField 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.
@@ -311,20 +356,21 @@ 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.
@@ -337,6 +383,8 @@ public java.util.Map getCustomAttributesMap(
     return internalGetCustomAttributes().getMap();
   }
   /**
+   *
+   *
    * 
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -345,17 +393,19 @@ 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.
@@ -364,11 +414,11 @@ java.lang.String getCustomAttributesOrDefault(
    * 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();
     }
@@ -376,15 +426,19 @@ public java.lang.String getCustomAttributesOrThrow(
   }
 
   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 @@ -393,30 +447,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 { @@ -425,14 +479,18 @@ public java.lang.String getObjectNamePrefix() { } 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 @@ -441,29 +499,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 { @@ -472,6 +530,7 @@ public java.lang.String getPayloadFormat() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -483,8 +542,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -494,12 +552,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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_); } @@ -532,15 +586,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_); @@ -559,27 +613,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.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; } @@ -614,152 +661,156 @@ 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.MapField internalGetMapField(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.MapField internalGetMutableMapField(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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -776,9 +827,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 @@ -797,9 +848,12 @@ 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); + com.google.storage.v2.NotificationConfig result = + new com.google.storage.v2.NotificationConfig(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -839,38 +893,39 @@ 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; @@ -904,8 +959,7 @@ 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_; @@ -943,52 +997,63 @@ 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) { @@ -998,10 +1063,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1010,13 +1078,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; @@ -1025,6 +1093,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1033,15 +1103,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1049,6 +1118,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1057,18 +1128,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1077,6 +1152,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1086,6 +1162,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of this NotificationConfig.
      * Format:
@@ -1094,12 +1172,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1109,6 +1189,8 @@ public Builder setNameBytes( private java.lang.Object topic_ = ""; /** + * + * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1116,13 +1198,13 @@ public Builder setNameBytes(
      * 
* * 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; @@ -1131,6 +1213,8 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1138,15 +1222,14 @@ 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 { @@ -1154,6 +1237,8 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1161,18 +1246,22 @@ public java.lang.String getTopic() {
      * 
* * 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:
@@ -1180,6 +1269,7 @@ public Builder setTopic(
      * 
* * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -1189,6 +1279,8 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The Pub/Sub topic to which this subscription publishes. Formatted
      * as:
@@ -1196,12 +1288,14 @@ 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; @@ -1211,6 +1305,8 @@ public Builder setTopicBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1218,13 +1314,13 @@ public Builder setTopicBytes(
      * 
* * 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; @@ -1233,6 +1329,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1240,15 +1338,14 @@ 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 { @@ -1256,6 +1353,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1263,18 +1362,22 @@ public java.lang.String getEtag() {
      * 
* * 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
@@ -1282,6 +1385,7 @@ public Builder setEtag(
      * 
* * string etag = 7; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1291,6 +1395,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * The etag of the NotificationConfig.
      * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -1298,12 +1404,14 @@ 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; @@ -1311,45 +1419,55 @@ public Builder setEtagBytes( return this; } - private com.google.protobuf.LazyStringList eventTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList eventTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEventTypesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { eventTypes_ = new com.google.protobuf.LazyStringArrayList(eventTypes_); 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() { return eventTypes_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -1357,81 +1475,95 @@ 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); 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 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); 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 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_); 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() { @@ -1441,18 +1573,22 @@ public Builder clearEventTypes() { 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); @@ -1460,8 +1596,8 @@ public Builder addEventTypesBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> customAttributes_; + private com.google.protobuf.MapField customAttributes_; + private com.google.protobuf.MapField internalGetCustomAttributes() { if (customAttributes_ == null) { @@ -1470,11 +1606,13 @@ public Builder addEventTypesBytes( } 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(); @@ -1483,10 +1621,13 @@ public Builder addEventTypesBytes( 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.
@@ -1495,20 +1636,21 @@ 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.
@@ -1521,6 +1663,8 @@ public java.util.Map getCustomAttributesMap(
       return internalGetCustomAttributes().getMap();
     }
     /**
+     *
+     *
      * 
      * A list of additional attributes to attach to each Pub/Sub
      * message published for this NotificationConfig.
@@ -1529,17 +1673,20 @@ 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.
@@ -1548,9 +1695,10 @@ java.lang.String getCustomAttributesOrDefault(
      * 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)) {
@@ -1558,13 +1706,15 @@ public java.lang.String getCustomAttributesOrThrow(
       }
       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.
@@ -1572,23 +1722,22 @@ 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.
@@ -1596,17 +1745,20 @@ public Builder removeCustomAttributes(
      *
      * 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.
@@ -1616,27 +1768,28 @@ public Builder putCustomAttributes(
      */
     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; @@ -1645,21 +1798,22 @@ 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 { @@ -1667,30 +1821,37 @@ public java.lang.String getObjectNamePrefix() { } } /** + * + * *
      * 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() { @@ -1700,18 +1861,22 @@ 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; @@ -1721,18 +1886,20 @@ public Builder setObjectNamePrefixBytes( 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; @@ -1741,20 +1908,21 @@ 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 { @@ -1762,28 +1930,35 @@ public java.lang.String getPayloadFormat() { } } /** + * + * *
      * 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() { @@ -1793,26 +1968,30 @@ 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); } @@ -1822,12 +2001,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(); } @@ -1836,27 +2015,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; @@ -1871,6 +2050,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.NotificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java similarity index 77% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java index 444879afbd..8a65871053 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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:
@@ -16,10 +34,13 @@ public interface NotificationConfigOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of this NotificationConfig.
    * Format:
@@ -28,12 +49,14 @@ public interface NotificationConfigOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The Pub/Sub topic to which this subscription publishes. Formatted
    * as:
@@ -41,10 +64,13 @@ public interface NotificationConfigOrBuilder extends
    * 
* * 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:
@@ -52,12 +78,14 @@ public interface NotificationConfigOrBuilder extends
    * 
* * 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
@@ -65,10 +93,13 @@ public interface NotificationConfigOrBuilder extends
    * 
* * string etag = 7; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * The etag of the NotificationConfig.
    * If included in the metadata of GetNotificationConfigRequest, the operation
@@ -76,57 +107,69 @@ public interface NotificationConfigOrBuilder extends
    * 
* * 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.
@@ -136,6 +179,8 @@ public interface NotificationConfigOrBuilder extends
    */
   int getCustomAttributesCount();
   /**
+   *
+   *
    * 
    * A list of additional attributes to attach to each Pub/Sub
    * message published for this NotificationConfig.
@@ -143,15 +188,13 @@ public interface NotificationConfigOrBuilder extends
    *
    * 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.
@@ -159,9 +202,10 @@ boolean containsCustomAttributes(
    *
    * 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.
@@ -170,11 +214,13 @@ boolean containsCustomAttributes(
    * 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.
@@ -182,48 +228,57 @@ 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java similarity index 75% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java index 349a4f6890..4021fdef46 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -35,46 +53,47 @@ private Object() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Object(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + 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.MapField internalGetMapField(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
@@ -86,6 +105,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -94,14 +114,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Immutable. The name of this object. Nearly any sequence of unicode
    * characters is valid. See
@@ -113,16 +134,15 @@ 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 { @@ -131,14 +151,20 @@ public java.lang.String getName() { } 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 @@ -147,29 +173,31 @@ 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 { @@ -178,9 +206,12 @@ public java.lang.String getBucket() { } 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
@@ -189,6 +220,7 @@ public java.lang.String getBucket() {
    * 
* * string etag = 27; + * * @return The etag. */ @java.lang.Override @@ -197,14 +229,15 @@ 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
@@ -213,16 +246,15 @@ 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 { @@ -233,6 +265,8 @@ public java.lang.String getEtag() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_ = 0L; /** + * + * *
    * Immutable. The content generation of this object. Used for object
    * versioning. Attempting to set or update this field will result in a
@@ -240,6 +274,7 @@ public java.lang.String getEtag() {
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The generation. */ @java.lang.Override @@ -250,6 +285,8 @@ 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
@@ -259,6 +296,7 @@ public long getGeneration() {
    * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -267,14 +305,18 @@ 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 @@ -283,29 +325,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 { @@ -316,6 +358,8 @@ public java.lang.String getStorageClass() { 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].
@@ -324,6 +368,7 @@ public java.lang.String getStorageClass() {
    * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The size. */ @java.lang.Override @@ -332,15 +377,19 @@ 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 @@ -349,30 +398,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 { @@ -381,15 +430,19 @@ public java.lang.String getContentEncoding() { } 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 @@ -398,30 +451,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 { @@ -430,9 +483,12 @@ public java.lang.String getContentDisposition() { } 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].
@@ -441,6 +497,7 @@ public java.lang.String getContentDisposition() {
    * 
* * string cache_control = 9; + * * @return The cacheControl. */ @java.lang.Override @@ -449,14 +506,15 @@ 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].
@@ -465,16 +523,15 @@ 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 { @@ -483,9 +540,12 @@ public java.lang.String getCacheControl() { } 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
@@ -499,6 +559,8 @@ public java.util.List getAclList() {
     return acl_;
   }
   /**
+   *
+   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -508,11 +570,13 @@ 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
@@ -526,6 +590,8 @@ public int getAclCount() {
     return acl_.size();
   }
   /**
+   *
+   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -539,6 +605,8 @@ 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
@@ -548,21 +616,24 @@ 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 @@ -571,30 +642,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 { @@ -605,6 +676,8 @@ public java.lang.String getContentLanguage() { public static final int DELETE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -612,7 +685,9 @@ public java.lang.String getContentLanguage() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -620,6 +695,8 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -627,7 +704,9 @@ public boolean hasDeleteTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -635,6 +714,8 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -642,7 +723,8 @@ public com.google.protobuf.Timestamp getDeleteTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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() { @@ -650,9 +732,12 @@ 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].
@@ -661,6 +746,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string content_type = 13; + * * @return The contentType. */ @java.lang.Override @@ -669,14 +755,15 @@ 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].
@@ -685,16 +772,15 @@ 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 { @@ -705,13 +791,17 @@ public java.lang.String getContentType() { public static final int CREATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The creation time of the object.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -719,13 +809,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The creation time of the object.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -733,13 +827,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation time of the object.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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() { @@ -749,6 +846,8 @@ 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. Attempting to set or
@@ -757,6 +856,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The componentCount. */ @java.lang.Override @@ -767,12 +867,17 @@ 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 @@ -780,34 +885,49 @@ public boolean hasChecksums() { return checksums_ != null; } /** + * + * *
    * 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
@@ -819,7 +939,9 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -827,6 +949,8 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The modification time of the object metadata.
    * Set initially to object creation time and then updated whenever any
@@ -838,7 +962,9 @@ public boolean hasUpdateTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -846,6 +972,8 @@ 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
@@ -857,7 +985,8 @@ public com.google.protobuf.Timestamp getUpdateTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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() { @@ -865,15 +994,19 @@ 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 @@ -882,30 +1015,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 { @@ -916,6 +1049,8 @@ public java.lang.String getKmsKey() { 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.
@@ -923,7 +1058,10 @@ public java.lang.String getKmsKey() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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 @@ -931,6 +1069,8 @@ public boolean hasUpdateStorageClassTime() { return updateStorageClassTime_ != null; } /** + * + * *
    * 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.
@@ -938,14 +1078,21 @@ public boolean hasUpdateStorageClassTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
@@ -953,16 +1100,22 @@ public com.google.protobuf.Timestamp getUpdateStorageClassTime() {
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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
@@ -972,6 +1125,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
    * 
* * bool temporary_hold = 20; + * * @return The temporaryHold. */ @java.lang.Override @@ -982,6 +1136,8 @@ 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.
@@ -993,6 +1149,7 @@ public boolean getTemporaryHold() {
    * 
* * .google.protobuf.Timestamp retention_expire_time = 21; + * * @return Whether the retentionExpireTime field is set. */ @java.lang.Override @@ -1000,6 +1157,8 @@ public boolean hasRetentionExpireTime() { return retentionExpireTime_ != null; } /** + * + * *
    * A server-determined value that specifies the earliest time that the
    * object's retention period expires.
@@ -1011,13 +1170,18 @@ 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.
@@ -1032,36 +1196,40 @@ 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<
-        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,
-                "");
+    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,
+            "");
   }
+
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> metadata_;
-  private com.google.protobuf.MapField
-  internalGetMetadata() {
+  private com.google.protobuf.MapField 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.
    * 
@@ -1069,20 +1237,21 @@ 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.
    * 
@@ -1094,6 +1263,8 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
    * User-provided metadata, in key/value pairs.
    * 
@@ -1101,17 +1272,19 @@ 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.
    * 
@@ -1119,11 +1292,11 @@ java.lang.String getMetadataOrDefault( * 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(); } @@ -1133,6 +1306,8 @@ public java.lang.String getMetadataOrThrow( 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
@@ -1147,6 +1322,7 @@ public java.lang.String getMetadataOrThrow(
    * 
* * optional bool event_based_hold = 23; + * * @return Whether the eventBasedHold field is set. */ @java.lang.Override @@ -1154,6 +1330,8 @@ public boolean hasEventBasedHold() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Whether an object is under event-based hold.
    * An event-based hold is a way to force the retention of an object until
@@ -1168,6 +1346,7 @@ public boolean hasEventBasedHold() {
    * 
* * optional bool event_based_hold = 23; + * * @return The eventBasedHold. */ @java.lang.Override @@ -1178,6 +1357,8 @@ 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. Attempting to set or update this field will result in a
@@ -1185,6 +1366,7 @@ public boolean getEventBasedHold() {
    * 
* * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the owner field is set. */ @java.lang.Override @@ -1192,6 +1374,8 @@ public boolean hasOwner() { return owner_ != null; } /** + * + * *
    * Output only. The owner of the object. This will always be the uploader of
    * the object. Attempting to set or update this field will result in a
@@ -1199,6 +1383,7 @@ public boolean hasOwner() {
    * 
* * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The owner. */ @java.lang.Override @@ -1206,6 +1391,8 @@ 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. Attempting to set or update this field will result in a
@@ -1222,12 +1409,15 @@ 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 @@ -1235,19 +1425,26 @@ public boolean hasCustomerEncryption() { return customerEncryption_ != null; } /** + * + * *
    * 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.
@@ -1257,17 +1454,22 @@ 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 @@ -1275,11 +1477,14 @@ public boolean hasCustomTime() { return customTime_ != null; } /** + * + * *
    * A user-specified timestamp set on an object.
    * 
* * .google.protobuf.Timestamp custom_time = 26; + * * @return The customTime. */ @java.lang.Override @@ -1287,6 +1492,8 @@ public com.google.protobuf.Timestamp getCustomTime() { return customTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : customTime_; } /** + * + * *
    * A user-specified timestamp set on an object.
    * 
@@ -1299,6 +1506,7 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1310,8 +1518,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1375,12 +1582,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (retentionExpireTime_ != null) { output.writeMessage(21, getRetentionExpireTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 22); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 22); if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(23, eventBasedHold_); } @@ -1412,19 +1615,16 @@ 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_); @@ -1436,75 +1636,64 @@ 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()); + 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()); + 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()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getChecksums()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getUpdateTime()); + 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()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(19, getUpdateStorageClassTime()); } if (temporaryHold_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(20, temporaryHold_); + 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__); + 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_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, eventBasedHold_); } if (owner_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getOwner()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getOwner()); } if (customerEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getCustomerEncryption()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getCustomerEncryption()); } if (customTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getCustomTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getCustomTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, etag_); @@ -1517,96 +1706,69 @@ public int 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; @@ -1626,16 +1788,13 @@ 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; @@ -1675,8 +1834,7 @@ 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(); @@ -1687,8 +1845,7 @@ 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; @@ -1707,152 +1864,153 @@ 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.MapField internalGetMapField(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.MapField internalGetMutableMapField(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() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1930,8 +2088,7 @@ 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; } @@ -1953,7 +2110,9 @@ 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; } @@ -2006,46 +2165,40 @@ private void buildPartial0(com.google.storage.v2.Object result) { result.contentLanguage_ = contentLanguage_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); } 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(); } 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(); } if (((from_bitField0_ & 0x00020000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } 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(); } 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(); } if (((from_bitField0_ & 0x00400000) != 0)) { result.metadata_ = internalGetMetadata(); @@ -2057,19 +2210,16 @@ private void buildPartial0(com.google.storage.v2.Object result) { to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x01000000) != 0)) { - result.owner_ = ownerBuilder_ == null - ? owner_ - : ownerBuilder_.build(); + result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); } if (((from_bitField0_ & 0x02000000) != 0)) { - result.customerEncryption_ = customerEncryptionBuilder_ == null - ? customerEncryption_ - : customerEncryptionBuilder_.build(); + result.customerEncryption_ = + customerEncryptionBuilder_ == null + ? customerEncryption_ + : customerEncryptionBuilder_.build(); } if (((from_bitField0_ & 0x04000000) != 0)) { - result.customTime_ = customTimeBuilder_ == null - ? customTime_ - : customTimeBuilder_.build(); + result.customTime_ = customTimeBuilder_ == null ? customTime_ : customTimeBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -2078,38 +2228,39 @@ 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; @@ -2180,9 +2331,10 @@ 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_); } @@ -2227,8 +2379,7 @@ 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()); @@ -2268,177 +2419,191 @@ 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: + 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) { @@ -2448,10 +2613,13 @@ public Builder mergeFrom( } // 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
@@ -2463,13 +2631,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; @@ -2478,6 +2646,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of this object. Nearly any sequence of unicode
      * characters is valid. See
@@ -2489,15 +2659,14 @@ 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 { @@ -2505,6 +2674,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of this object. Nearly any sequence of unicode
      * characters is valid. See
@@ -2516,18 +2687,22 @@ public java.lang.String getName() {
      * 
* * 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
@@ -2539,6 +2714,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2548,6 +2724,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of this object. Nearly any sequence of unicode
      * characters is valid. See
@@ -2559,12 +2737,14 @@ 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; @@ -2574,18 +2754,22 @@ public Builder setNameBytes( 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; @@ -2594,20 +2778,23 @@ 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 { @@ -2615,28 +2802,39 @@ 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) = { ... } + * + * * @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() { @@ -2646,17 +2844,23 @@ 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; @@ -2666,6 +2870,8 @@ public Builder setBucketBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * The etag of the object.
      * If included in the metadata of an update or delete request message, the
@@ -2674,13 +2880,13 @@ public Builder setBucketBytes(
      * 
* * 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; @@ -2689,6 +2895,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * The etag of the object.
      * If included in the metadata of an update or delete request message, the
@@ -2697,15 +2905,14 @@ 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 { @@ -2713,6 +2920,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * The etag of the object.
      * If included in the metadata of an update or delete request message, the
@@ -2721,18 +2930,22 @@ public java.lang.String getEtag() {
      * 
* * 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
@@ -2741,6 +2954,7 @@ public Builder setEtag(
      * 
* * string etag = 27; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2750,6 +2964,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * The etag of the object.
      * If included in the metadata of an update or delete request message, the
@@ -2758,12 +2974,14 @@ 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; @@ -2771,8 +2989,10 @@ public Builder setEtagBytes( return this; } - private long generation_ ; + private long generation_; /** + * + * *
      * Immutable. The content generation of this object. Used for object
      * versioning. Attempting to set or update this field will result in a
@@ -2780,6 +3000,7 @@ public Builder setEtagBytes(
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The generation. */ @java.lang.Override @@ -2787,6 +3008,8 @@ public long getGeneration() { return generation_; } /** + * + * *
      * Immutable. The content generation of this object. Used for object
      * versioning. Attempting to set or update this field will result in a
@@ -2794,17 +3017,20 @@ public long getGeneration() {
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Immutable. The content generation of this object. Used for object
      * versioning. Attempting to set or update this field will result in a
@@ -2812,6 +3038,7 @@ public Builder setGeneration(long value) {
      * 
* * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -2821,8 +3048,10 @@ 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
@@ -2832,6 +3061,7 @@ public Builder clearGeneration() {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -2839,6 +3069,8 @@ 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
@@ -2848,17 +3080,20 @@ public long getMetageneration() {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The metageneration to set. * @return This builder for chaining. */ public Builder setMetageneration(long value) { - + metageneration_ = value; bitField0_ |= 0x00000010; onChanged(); 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
@@ -2868,6 +3103,7 @@ public Builder setMetageneration(long value) {
      * 
* * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -2879,18 +3115,20 @@ 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; @@ -2899,20 +3137,21 @@ 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 { @@ -2920,28 +3159,35 @@ public java.lang.String getStorageClass() { } } /** + * + * *
      * 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() { @@ -2951,17 +3197,21 @@ 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; @@ -2969,8 +3219,10 @@ public Builder setStorageClassBytes( 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].
@@ -2979,6 +3231,7 @@ public Builder setStorageClassBytes(
      * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The size. */ @java.lang.Override @@ -2986,6 +3239,8 @@ 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].
@@ -2994,17 +3249,20 @@ public long getSize() {
      * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { - + size_ = value; bitField0_ |= 0x00000040; onChanged(); 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].
@@ -3013,6 +3271,7 @@ public Builder setSize(long value) {
      * 
* * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSize() { @@ -3024,19 +3283,21 @@ 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; @@ -3045,21 +3306,22 @@ 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 { @@ -3067,30 +3329,37 @@ 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; + * * @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() { @@ -3100,18 +3369,22 @@ 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; @@ -3121,19 +3394,21 @@ public Builder setContentEncodingBytes( 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; @@ -3142,21 +3417,22 @@ 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 { @@ -3164,30 +3440,37 @@ public java.lang.String getContentDisposition() { } } /** + * + * *
      * 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() { @@ -3197,18 +3480,22 @@ 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; @@ -3218,6 +3505,8 @@ public Builder setContentDispositionBytes( 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].
@@ -3226,13 +3515,13 @@ public Builder setContentDispositionBytes(
      * 
* * 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; @@ -3241,6 +3530,8 @@ 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].
@@ -3249,15 +3540,14 @@ 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 { @@ -3265,6 +3555,8 @@ 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].
@@ -3273,18 +3565,22 @@ public java.lang.String getCacheControl() {
      * 
* * 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].
@@ -3293,6 +3589,7 @@ public Builder setCacheControl(
      * 
* * string cache_control = 9; + * * @return This builder for chaining. */ public Builder clearCacheControl() { @@ -3302,6 +3599,8 @@ 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].
@@ -3310,12 +3609,14 @@ 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; @@ -3324,18 +3625,24 @@ public Builder setCacheControlBytes( } 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
@@ -3352,6 +3659,8 @@ public java.util.List getAclList() {
       }
     }
     /**
+     *
+     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3368,6 +3677,8 @@ public int getAclCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3384,6 +3695,8 @@ 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
@@ -3392,8 +3705,7 @@ 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();
@@ -3407,6 +3719,8 @@ public Builder setAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3427,6 +3741,8 @@ public Builder setAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3449,6 +3765,8 @@ 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
@@ -3457,8 +3775,7 @@ 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();
@@ -3472,6 +3789,8 @@ public Builder addAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3480,8 +3799,7 @@ public Builder addAcl(
      *
      * 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());
@@ -3492,6 +3810,8 @@ public Builder addAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3512,6 +3832,8 @@ public Builder addAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3524,8 +3846,7 @@ 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);
@@ -3533,6 +3854,8 @@ public Builder addAllAcl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3552,6 +3875,8 @@ public Builder clearAcl() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3571,6 +3896,8 @@ public Builder removeAcl(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3579,11 +3906,12 @@ 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
@@ -3592,14 +3920,16 @@ public com.google.storage.v2.ObjectAccessControl.Builder getAclBuilder(
      *
      * 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
@@ -3608,8 +3938,8 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
      *
      * repeated .google.storage.v2.ObjectAccessControl acl = 10;
      */
-    public java.util.List 
-         getAclOrBuilderList() {
+    public java.util.List
+        getAclOrBuilderList() {
       if (aclBuilder_ != null) {
         return aclBuilder_.getMessageOrBuilderList();
       } else {
@@ -3617,6 +3947,8 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Access controls on the object.
      * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -3626,10 +3958,12 @@ public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
      * 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
@@ -3638,12 +3972,13 @@ 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
@@ -3652,20 +3987,22 @@ public com.google.storage.v2.ObjectAccessControl.Builder addAclBuilder(
      *
      * 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_;
@@ -3673,19 +4010,21 @@ public com.google.storage.v2.ObjectAccessControl.Builder addAclBuilder(
 
     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; @@ -3694,21 +4033,22 @@ 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 { @@ -3716,30 +4056,37 @@ 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; + * * @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() { @@ -3749,18 +4096,22 @@ 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; @@ -3770,8 +4121,13 @@ public Builder setContentLanguageBytes( 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. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -3779,13 +4135,18 @@ public Builder setContentLanguageBytes(
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -3793,17 +4154,24 @@ public boolean hasDeleteTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -3811,7 +4179,9 @@ public com.google.protobuf.Timestamp getDeleteTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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) { @@ -3827,6 +4197,8 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -3834,10 +4206,11 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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 { @@ -3848,6 +4221,8 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -3855,13 +4230,15 @@ public Builder setDeleteTime(
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -3874,6 +4251,8 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -3881,7 +4260,9 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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); @@ -3894,6 +4275,8 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -3901,7 +4284,9 @@ public Builder clearDeleteTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -3909,6 +4294,8 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -3916,17 +4303,22 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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. The deletion time of the object. Will be returned if and only
      * if this version of the object has been deleted. Attempting to set or update
@@ -3934,17 +4326,22 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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_; @@ -3952,6 +4349,8 @@ 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].
@@ -3960,13 +4359,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; @@ -3975,6 +4374,8 @@ 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].
@@ -3983,15 +4384,14 @@ 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 { @@ -3999,6 +4399,8 @@ 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].
@@ -4007,18 +4409,22 @@ public java.lang.String getContentType() {
      * 
* * 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].
@@ -4027,6 +4433,7 @@ public Builder setContentType(
      * 
* * string content_type = 13; + * * @return This builder for chaining. */ public Builder clearContentType() { @@ -4036,6 +4443,8 @@ 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].
@@ -4044,12 +4453,14 @@ 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; @@ -4059,45 +4470,64 @@ public Builder setContentTypeBytes( 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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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) { @@ -4113,16 +4543,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time of the object.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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 { @@ -4133,19 +4566,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation time of the object.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -4158,13 +4595,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time of the object.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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); @@ -4177,13 +4618,17 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation time of the object.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -4191,47 +4636,61 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation time of the object.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
      * Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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. Attempting to set or
@@ -4240,6 +4699,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The componentCount. */ @java.lang.Override @@ -4247,6 +4707,8 @@ public int getComponentCount() { return componentCount_; } /** + * + * *
      * Output only. Number of underlying components that make up this object.
      * Components are accumulated by compose operations. Attempting to set or
@@ -4255,17 +4717,20 @@ public int getComponentCount() {
      * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The componentCount to set. * @return This builder for chaining. */ public Builder setComponentCount(int value) { - + componentCount_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** + * + * *
      * Output only. Number of underlying components that make up this object.
      * Components are accumulated by compose operations. Attempting to set or
@@ -4274,6 +4739,7 @@ public Builder setComponentCount(int value) {
      * 
* * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearComponentCount() { @@ -4285,42 +4751,61 @@ 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) { @@ -4336,15 +4821,18 @@ 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 { @@ -4355,18 +4843,22 @@ public Builder setChecksums( 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; @@ -4379,12 +4871,16 @@ public Builder mergeChecksums(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 clearChecksums() { bitField0_ = (bitField0_ & ~0x00010000); @@ -4397,12 +4893,16 @@ 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; @@ -4410,38 +4910,50 @@ 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_; @@ -4449,8 +4961,13 @@ 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
@@ -4462,13 +4979,18 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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
@@ -4480,17 +5002,24 @@ public boolean hasUpdateTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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
@@ -4502,7 +5031,9 @@ public com.google.protobuf.Timestamp getUpdateTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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) { @@ -4518,6 +5049,8 @@ 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
@@ -4529,10 +5062,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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 { @@ -4543,6 +5077,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The modification time of the object metadata.
      * Set initially to object creation time and then updated whenever any
@@ -4554,13 +5090,15 @@ public Builder setUpdateTime(
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -4573,6 +5111,8 @@ public Builder mergeUpdateTime(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
@@ -4584,7 +5124,9 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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); @@ -4597,6 +5139,8 @@ 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
@@ -4608,7 +5152,9 @@ public Builder clearUpdateTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -4616,6 +5162,8 @@ 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
@@ -4627,17 +5175,22 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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
@@ -4649,17 +5202,22 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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_; @@ -4667,19 +5225,21 @@ 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; @@ -4688,21 +5248,22 @@ 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 { @@ -4710,30 +5271,37 @@ 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) = { ... } + * * @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() { @@ -4743,18 +5311,22 @@ 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; @@ -4764,8 +5336,13 @@ public Builder setKmsKeyBytes( 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.
@@ -4773,13 +5350,18 @@ public Builder setKmsKeyBytes(
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
@@ -4787,17 +5369,24 @@ public boolean hasUpdateStorageClassTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
@@ -4805,7 +5394,9 @@ public com.google.protobuf.Timestamp getUpdateStorageClassTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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) { @@ -4821,6 +5412,8 @@ 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.
@@ -4828,7 +5421,9 @@ public Builder setUpdateStorageClassTime(com.google.protobuf.Timestamp value) {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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) { @@ -4842,6 +5437,8 @@ 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.
@@ -4849,13 +5446,15 @@ public Builder setUpdateStorageClassTime(
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -4868,6 +5467,8 @@ public Builder mergeUpdateStorageClassTime(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.
@@ -4875,7 +5476,9 @@ public Builder mergeUpdateStorageClassTime(com.google.protobuf.Timestamp value)
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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); @@ -4888,6 +5491,8 @@ 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.
@@ -4895,7 +5500,9 @@ public Builder clearUpdateStorageClassTime() {
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -4903,6 +5510,8 @@ 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.
@@ -4910,17 +5519,22 @@ public com.google.protobuf.Timestamp.Builder getUpdateStorageClassTimeBuilder()
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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.
@@ -4928,24 +5542,31 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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
@@ -4955,6 +5576,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
      * 
* * bool temporary_hold = 20; + * * @return The temporaryHold. */ @java.lang.Override @@ -4962,6 +5584,8 @@ 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
@@ -4971,17 +5595,20 @@ public boolean getTemporaryHold() {
      * 
* * bool temporary_hold = 20; + * * @param value The temporaryHold to set. * @return This builder for chaining. */ public Builder setTemporaryHold(boolean value) { - + temporaryHold_ = value; bitField0_ |= 0x00100000; onChanged(); 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
@@ -4991,6 +5618,7 @@ public Builder setTemporaryHold(boolean value) {
      * 
* * bool temporary_hold = 20; + * * @return This builder for chaining. */ public Builder clearTemporaryHold() { @@ -5002,8 +5630,13 @@ 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.
@@ -5015,12 +5648,15 @@ 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.
@@ -5032,16 +5668,21 @@ 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.
@@ -5068,6 +5709,8 @@ 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.
@@ -5080,8 +5723,7 @@ 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 {
@@ -5092,6 +5734,8 @@ public Builder setRetentionExpireTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5106,9 +5750,9 @@ public Builder setRetentionExpireTime(
      */
     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;
@@ -5121,6 +5765,8 @@ public Builder mergeRetentionExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5144,6 +5790,8 @@ public Builder clearRetentionExpireTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A server-determined value that specifies the earliest time that the
      * object's retention period expires.
@@ -5162,6 +5810,8 @@ 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.
@@ -5178,11 +5828,14 @@ 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.
@@ -5196,34 +5849,36 @@ 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<
-        java.lang.String, java.lang.String> metadata_;
-    private com.google.protobuf.MapField
-        internalGetMetadata() {
+    private com.google.protobuf.MapField 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();
@@ -5232,10 +5887,13 @@ public com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder()
       onChanged();
       return metadata_;
     }
+
     public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
+     *
+     *
      * 
      * User-provided metadata, in key/value pairs.
      * 
@@ -5243,20 +5901,21 @@ 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.
      * 
@@ -5268,6 +5927,8 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
      * User-provided metadata, in key/value pairs.
      * 
@@ -5275,17 +5936,19 @@ 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.
      * 
@@ -5293,79 +5956,83 @@ java.lang.String getMetadataOrDefault( * 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
@@ -5380,6 +6047,7 @@ public Builder putAllMetadata(
      * 
* * optional bool event_based_hold = 23; + * * @return Whether the eventBasedHold field is set. */ @java.lang.Override @@ -5387,6 +6055,8 @@ 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
@@ -5401,6 +6071,7 @@ public boolean hasEventBasedHold() {
      * 
* * optional bool event_based_hold = 23; + * * @return The eventBasedHold. */ @java.lang.Override @@ -5408,6 +6079,8 @@ 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
@@ -5422,17 +6095,20 @@ public boolean getEventBasedHold() {
      * 
* * optional bool event_based_hold = 23; + * * @param value The eventBasedHold to set. * @return This builder for chaining. */ public Builder setEventBasedHold(boolean value) { - + eventBasedHold_ = value; bitField0_ |= 0x00800000; onChanged(); 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
@@ -5447,6 +6123,7 @@ public Builder setEventBasedHold(boolean value) {
      * 
* * optional bool event_based_hold = 23; + * * @return This builder for chaining. */ public Builder clearEventBasedHold() { @@ -5458,28 +6135,39 @@ 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. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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() { @@ -5490,13 +6178,16 @@ public com.google.storage.v2.Owner getOwner() { } } /** + * + * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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) { @@ -5512,16 +6203,18 @@ 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. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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 { @@ -5532,19 +6225,22 @@ public Builder setOwner( return this; } /** + * + * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -5557,13 +6253,16 @@ public Builder mergeOwner(com.google.storage.v2.Owner value) { return this; } /** + * + * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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); @@ -5576,13 +6275,16 @@ public Builder clearOwner() { return this; } /** + * + * *
      * Output only. The owner of the object. This will always be the uploader of
      * the object. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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; @@ -5590,40 +6292,48 @@ 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. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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. Attempting to set or update this field will result in a
      * [FieldViolation][google.rpc.BadRequest.FieldViolation].
      * 
* - * .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_; @@ -5631,36 +6341,49 @@ 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.
@@ -5682,6 +6405,8 @@ 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.
@@ -5701,6 +6426,8 @@ public Builder setCustomerEncryption(
       return this;
     }
     /**
+     *
+     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -5710,9 +6437,10 @@ 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;
@@ -5725,6 +6453,8 @@ public Builder mergeCustomerEncryption(com.google.storage.v2.CustomerEncryption
       return this;
     }
     /**
+     *
+     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -5743,6 +6473,8 @@ public Builder clearCustomerEncryption() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
      * such a key.
@@ -5756,6 +6488,8 @@ 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.
@@ -5767,11 +6501,14 @@ 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.
@@ -5780,14 +6517,17 @@ 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_;
@@ -5795,34 +6535,47 @@ 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.
      * 
@@ -5843,14 +6596,15 @@ 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 { @@ -5861,6 +6615,8 @@ public Builder setCustomTime( return this; } /** + * + * *
      * A user-specified timestamp set on an object.
      * 
@@ -5869,9 +6625,9 @@ public Builder setCustomTime( */ 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; @@ -5884,6 +6640,8 @@ public Builder mergeCustomTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * A user-specified timestamp set on an object.
      * 
@@ -5901,6 +6659,8 @@ public Builder clearCustomTime() { return this; } /** + * + * *
      * A user-specified timestamp set on an object.
      * 
@@ -5913,6 +6673,8 @@ public com.google.protobuf.Timestamp.Builder getCustomTimeBuilder() { return getCustomTimeFieldBuilder().getBuilder(); } /** + * + * *
      * A user-specified timestamp set on an object.
      * 
@@ -5923,11 +6685,14 @@ 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.
      * 
@@ -5935,21 +6700,24 @@ 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); } @@ -5959,12 +6727,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(); } @@ -5973,27 +6741,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; @@ -6008,6 +6776,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Object getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java index 5eb42e3233..659e6cded4 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControl.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -32,38 +50,43 @@ private ObjectAccessControl() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ObjectAccessControl(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } 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 @@ -72,29 +95,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 { @@ -103,14 +126,18 @@ public java.lang.String getRole() { } 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 @@ -119,29 +146,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 { @@ -150,9 +177,12 @@ public java.lang.String getId() { } 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}`
@@ -175,6 +205,7 @@ public java.lang.String getId() {
    * 
* * string entity = 3; + * * @return The entity. */ @java.lang.Override @@ -183,14 +214,15 @@ 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}`
@@ -213,16 +245,15 @@ 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 { @@ -231,15 +262,19 @@ public java.lang.String getEntity() { } 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 @@ -248,30 +283,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 { @@ -280,14 +315,18 @@ public java.lang.String getEntityAlt() { } 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 @@ -296,29 +335,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 { @@ -327,9 +366,12 @@ public java.lang.String getEntityId() { } 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
@@ -338,6 +380,7 @@ public java.lang.String getEntityId() {
    * 
* * string etag = 8; + * * @return The etag. */ @java.lang.Override @@ -346,14 +389,15 @@ 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
@@ -362,16 +406,15 @@ 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 { @@ -380,14 +423,18 @@ public java.lang.String getEtag() { } 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 @@ -396,29 +443,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 { @@ -427,14 +474,18 @@ public java.lang.String getEmail() { } 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 @@ -443,29 +494,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 { @@ -476,11 +527,14 @@ public java.lang.String getDomain() { 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 @@ -488,18 +542,25 @@ public boolean hasProjectTeam() { return projectTeam_ != null; } /** + * + * *
    * 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.
    * 
@@ -508,10 +569,13 @@ 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; @@ -523,8 +587,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } @@ -580,8 +643,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_); } if (projectTeam_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getProjectTeam()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProjectTeam()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); @@ -597,33 +659,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.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; @@ -661,130 +715,136 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -806,9 +866,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 @@ -827,8 +887,11 @@ 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; } @@ -860,9 +923,8 @@ private void buildPartial0(com.google.storage.v2.ObjectAccessControl result) { result.domain_ = domain_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.projectTeam_ = projectTeamBuilder_ == null - ? projectTeam_ - : projectTeamBuilder_.build(); + result.projectTeam_ = + projectTeamBuilder_ == null ? projectTeam_ : projectTeamBuilder_.build(); } } @@ -870,38 +932,39 @@ private void buildPartial0(com.google.storage.v2.ObjectAccessControl 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.ObjectAccessControl) { - return mergeFrom((com.google.storage.v2.ObjectAccessControl)other); + return mergeFrom((com.google.storage.v2.ObjectAccessControl) other); } else { super.mergeFrom(other); return this; @@ -979,59 +1042,67 @@ 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) { @@ -1041,22 +1112,25 @@ 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; @@ -1065,20 +1139,21 @@ 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 { @@ -1086,28 +1161,35 @@ public java.lang.String getRole() { } } /** + * + * *
      * 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() { @@ -1117,17 +1199,21 @@ 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; @@ -1137,18 +1223,20 @@ public Builder setRoleBytes( 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; @@ -1157,20 +1245,21 @@ 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 { @@ -1178,28 +1267,35 @@ public java.lang.String getId() { } } /** + * + * *
      * 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() { @@ -1209,17 +1305,21 @@ 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; @@ -1229,6 +1329,8 @@ public Builder setIdBytes( private java.lang.Object entity_ = ""; /** + * + * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1251,13 +1353,13 @@ public Builder setIdBytes(
      * 
* * 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; @@ -1266,6 +1368,8 @@ public java.lang.String getEntity() { } } /** + * + * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1288,15 +1392,14 @@ 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 { @@ -1304,6 +1407,8 @@ public java.lang.String getEntity() { } } /** + * + * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1326,18 +1431,22 @@ public java.lang.String getEntity() {
      * 
* * 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}`
@@ -1360,6 +1469,7 @@ public Builder setEntity(
      * 
* * string entity = 3; + * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1369,6 +1479,8 @@ public Builder clearEntity() { return this; } /** + * + * *
      * The entity holding the permission, in one of the following forms:
      * * `user-{userid}`
@@ -1391,12 +1503,14 @@ 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; @@ -1406,19 +1520,21 @@ public Builder setEntityBytes( 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; @@ -1427,21 +1543,22 @@ 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 { @@ -1449,30 +1566,37 @@ 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]; + * * @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() { @@ -1482,18 +1606,22 @@ 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; @@ -1503,18 +1631,20 @@ public Builder setEntityAltBytes( 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; @@ -1523,20 +1653,21 @@ 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 { @@ -1544,28 +1675,35 @@ public java.lang.String getEntityId() { } } /** + * + * *
      * 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() { @@ -1575,17 +1713,21 @@ 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; @@ -1595,6 +1737,8 @@ public Builder setEntityIdBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * The etag of the ObjectAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1603,13 +1747,13 @@ public Builder setEntityIdBytes(
      * 
* * 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; @@ -1618,6 +1762,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * The etag of the ObjectAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1626,15 +1772,14 @@ 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 { @@ -1642,6 +1787,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * The etag of the ObjectAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1650,18 +1797,22 @@ public java.lang.String getEtag() {
      * 
* * 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
@@ -1670,6 +1821,7 @@ public Builder setEtag(
      * 
* * string etag = 8; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1679,6 +1831,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * The etag of the ObjectAccessControl.
      * If included in the metadata of an update or delete request message, the
@@ -1687,12 +1841,14 @@ 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; @@ -1702,18 +1858,20 @@ public Builder setEtagBytes( 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; @@ -1722,20 +1880,21 @@ 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 { @@ -1743,28 +1902,35 @@ public java.lang.String getEmail() { } } /** + * + * *
      * 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() { @@ -1774,17 +1940,21 @@ 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; @@ -1794,18 +1964,20 @@ public Builder setEmailBytes( 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; @@ -1814,20 +1986,21 @@ 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 { @@ -1835,28 +2008,35 @@ public java.lang.String getDomain() { } } /** + * + * *
      * 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() { @@ -1866,17 +2046,21 @@ 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; @@ -1886,34 +2070,47 @@ public Builder setDomainBytes( 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.
      * 
@@ -1934,14 +2131,15 @@ 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 { @@ -1952,6 +2150,8 @@ public Builder setProjectTeam( return this; } /** + * + * *
      * The project team associated with the entity, if any.
      * 
@@ -1960,9 +2160,9 @@ public Builder setProjectTeam( */ 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; @@ -1975,6 +2175,8 @@ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** + * + * *
      * The project team associated with the entity, if any.
      * 
@@ -1992,6 +2194,8 @@ public Builder clearProjectTeam() { return this; } /** + * + * *
      * The project team associated with the entity, if any.
      * 
@@ -2004,6 +2208,8 @@ public com.google.storage.v2.ProjectTeam.Builder getProjectTeamBuilder() { return getProjectTeamFieldBuilder().getBuilder(); } /** + * + * *
      * The project team associated with the entity, if any.
      * 
@@ -2014,11 +2220,14 @@ 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.
      * 
@@ -2026,21 +2235,24 @@ 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); } @@ -2050,12 +2262,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(); } @@ -2064,27 +2276,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; @@ -2099,6 +2311,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ObjectAccessControl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java similarity index 81% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java index dfb08835cc..20ee2c6a38 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java @@ -1,53 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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}`
@@ -70,10 +98,13 @@ public interface ObjectAccessControlOrBuilder extends
    * 
* * string entity = 3; + * * @return The entity. */ java.lang.String getEntity(); /** + * + * *
    * The entity holding the permission, in one of the following forms:
    * * `user-{userid}`
@@ -96,54 +127,66 @@ public interface ObjectAccessControlOrBuilder extends
    * 
* * 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
@@ -152,10 +195,13 @@ public interface ObjectAccessControlOrBuilder extends
    * 
* * 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
@@ -164,70 +210,88 @@ public interface ObjectAccessControlOrBuilder extends
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java index df0185239d..5ad9fc37bf 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java @@ -1,57 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.
@@ -60,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * optional fixed32 crc32c = 1; + * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -67,6 +89,8 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * CRC32C digest of the object data. Computed by the Cloud Storage service for
    * all written objects.
@@ -75,6 +99,7 @@ public boolean hasCrc32C() {
    * 
* * optional fixed32 crc32c = 1; + * * @return The crc32c. */ @java.lang.Override @@ -85,6 +110,8 @@ 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
@@ -96,6 +123,7 @@ public int getCrc32C() {
    * 
* * bytes md5_hash = 2; + * * @return The md5Hash. */ @java.lang.Override @@ -104,6 +132,7 @@ public com.google.protobuf.ByteString getMd5Hash() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,8 +144,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeFixed32(1, crc32C_); } @@ -133,12 +161,10 @@ 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; @@ -148,7 +174,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); @@ -157,11 +183,9 @@ 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; } @@ -184,130 +208,135 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -318,9 +347,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 @@ -339,8 +368,11 @@ 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; } @@ -362,38 +394,39 @@ 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; @@ -434,22 +467,25 @@ 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) { @@ -459,10 +495,13 @@ 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.
@@ -471,6 +510,7 @@ public Builder mergeFrom(
      * 
* * optional fixed32 crc32c = 1; + * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -478,6 +518,8 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * CRC32C digest of the object data. Computed by the Cloud Storage service for
      * all written objects.
@@ -486,6 +528,7 @@ public boolean hasCrc32C() {
      * 
* * optional fixed32 crc32c = 1; + * * @return The crc32c. */ @java.lang.Override @@ -493,6 +536,8 @@ public int getCrc32C() { return crc32C_; } /** + * + * *
      * CRC32C digest of the object data. Computed by the Cloud Storage service for
      * all written objects.
@@ -501,17 +546,20 @@ public int getCrc32C() {
      * 
* * optional fixed32 crc32c = 1; + * * @param value The crc32c to set. * @return This builder for chaining. */ public Builder setCrc32C(int value) { - + crc32C_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * CRC32C digest of the object data. Computed by the Cloud Storage service for
      * all written objects.
@@ -520,6 +568,7 @@ public Builder setCrc32C(int value) {
      * 
* * optional fixed32 crc32c = 1; + * * @return This builder for chaining. */ public Builder clearCrc32C() { @@ -531,6 +580,8 @@ 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
@@ -542,6 +593,7 @@ public Builder clearCrc32C() {
      * 
* * bytes md5_hash = 2; + * * @return The md5Hash. */ @java.lang.Override @@ -549,6 +601,8 @@ 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
@@ -560,17 +614,22 @@ 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
@@ -582,6 +641,7 @@ public Builder setMd5Hash(com.google.protobuf.ByteString value) {
      * 
* * bytes md5_hash = 2; + * * @return This builder for chaining. */ public Builder clearMd5Hash() { @@ -590,9 +650,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); } @@ -602,12 +662,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(); } @@ -616,27 +676,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; @@ -651,6 +711,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ObjectChecksums getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java index f9fc30f0fe..f65c591723 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.
@@ -16,10 +34,13 @@ public interface ObjectChecksumsOrBuilder extends
    * 
* * 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.
@@ -28,11 +49,14 @@ public interface ObjectChecksumsOrBuilder extends
    * 
* * 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
@@ -44,6 +68,7 @@ public interface ObjectChecksumsOrBuilder extends
    * 
* * bytes md5_hash = 2; + * * @return The md5Hash. */ com.google.protobuf.ByteString getMd5Hash(); diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java similarity index 85% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java index 3fab5a779a..b9d77b6967 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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
@@ -19,10 +37,13 @@ public interface ObjectOrBuilder extends
    * 
* * 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
@@ -34,32 +55,43 @@ public interface ObjectOrBuilder extends
    * 
* * 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
@@ -68,10 +100,13 @@ public interface ObjectOrBuilder extends
    * 
* * 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
@@ -80,12 +115,14 @@ public interface ObjectOrBuilder extends
    * 
* * 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. Attempting to set or update this field will result in a
@@ -93,11 +130,14 @@ public interface ObjectOrBuilder extends
    * 
* * 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
@@ -107,31 +147,39 @@ public interface ObjectOrBuilder extends
    * 
* * 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].
@@ -140,55 +188,68 @@ public interface ObjectOrBuilder extends
    * 
* * 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].
@@ -197,10 +258,13 @@ public interface ObjectOrBuilder extends
    * 
* * 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].
@@ -209,12 +273,14 @@ public interface ObjectOrBuilder extends
    * 
* * 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
@@ -223,9 +289,10 @@ public interface ObjectOrBuilder extends
    *
    * 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
@@ -236,6 +303,8 @@ public interface ObjectOrBuilder extends
    */
   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
@@ -246,6 +315,8 @@ public interface ObjectOrBuilder extends
    */
   int getAclCount();
   /**
+   *
+   *
    * 
    * Access controls on the object.
    * If iam_config.uniform_bucket_level_access is enabled on the parent
@@ -254,9 +325,11 @@ public interface ObjectOrBuilder extends
    *
    * 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
@@ -265,32 +338,38 @@ public interface ObjectOrBuilder extends
    *
    * 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. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -298,11 +377,15 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -310,11 +393,15 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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. The deletion time of the object. Will be returned if and only
    * if this version of the object has been deleted. Attempting to set or update
@@ -322,11 +409,14 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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].
@@ -335,10 +425,13 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * 
* * 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].
@@ -347,45 +440,58 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * 
* * 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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
    * Attempting to set or update this field will result in a
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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. Attempting to set or
@@ -394,41 +500,58 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * 
* * 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
@@ -440,11 +563,15 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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
@@ -456,11 +583,15 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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
@@ -472,33 +603,41 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
@@ -506,11 +645,16 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
@@ -518,11 +662,16 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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.
@@ -530,11 +679,15 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * [FieldViolation][google.rpc.BadRequest.FieldViolation].
    * 
* - * .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
@@ -544,11 +697,14 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * 
* * 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.
@@ -560,10 +716,13 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * 
* * .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.
@@ -575,10 +734,13 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
    * 
* * .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.
@@ -594,6 +756,8 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
   com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * User-provided metadata, in key/value pairs.
    * 
@@ -602,30 +766,31 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder( */ 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.
    * 
@@ -633,21 +798,24 @@ boolean containsMetadata( * 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
@@ -662,10 +830,13 @@ java.lang.String getMetadataOrThrow(
    * 
* * 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
@@ -680,11 +851,14 @@ java.lang.String getMetadataOrThrow(
    * 
* * 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. Attempting to set or update this field will result in a
@@ -692,10 +866,13 @@ java.lang.String getMetadataOrThrow(
    * 
* * .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. Attempting to set or update this field will result in a
@@ -703,10 +880,13 @@ java.lang.String getMetadataOrThrow(
    * 
* * .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. Attempting to set or update this field will result in a
@@ -718,26 +898,34 @@ java.lang.String getMetadataOrThrow(
   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.
@@ -748,24 +936,32 @@ java.lang.String getMetadataOrThrow(
   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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java index cc0244cb3d..0d1ff3e141 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Owner.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -26,38 +44,41 @@ private Owner() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Owner(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + 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 @@ -66,29 +87,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 { @@ -97,14 +118,18 @@ public java.lang.String getEntity() { } 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 @@ -113,29 +138,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 { @@ -144,6 +169,7 @@ public java.lang.String getEntityId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_); } @@ -186,17 +211,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -217,130 +240,133 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,8 +377,7 @@ 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; } @@ -373,7 +398,9 @@ 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; } @@ -392,38 +419,39 @@ 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; @@ -468,22 +496,25 @@ 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) { @@ -493,22 +524,25 @@ 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; @@ -517,20 +551,21 @@ 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 { @@ -538,28 +573,35 @@ public java.lang.String getEntity() { } } /** + * + * *
      * 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() { @@ -569,17 +611,21 @@ 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; @@ -589,18 +635,20 @@ public Builder setEntityBytes( 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; @@ -609,20 +657,21 @@ 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 { @@ -630,28 +679,35 @@ public java.lang.String getEntityId() { } } /** + * + * *
      * 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() { @@ -661,26 +717,30 @@ 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); } @@ -690,12 +750,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(); } @@ -704,27 +764,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; @@ -739,6 +799,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Owner getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java similarity index 53% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java index d4d78b5497..4caffe13d6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java index 2f00269ade..981ebb3d38 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeam.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -26,38 +44,43 @@ private ProjectTeam() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProjectTeam(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -66,29 +89,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 { @@ -97,14 +120,18 @@ public java.lang.String getProjectNumber() { } 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 @@ -113,29 +140,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 { @@ -144,6 +171,7 @@ public java.lang.String getTeam() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectNumber_); } @@ -186,17 +213,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.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; } @@ -217,130 +242,135 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +381,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 @@ -373,7 +403,9 @@ 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; } @@ -392,38 +424,39 @@ 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; @@ -468,22 +501,25 @@ 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) { @@ -493,22 +529,25 @@ 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; @@ -517,20 +556,21 @@ 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 { @@ -538,28 +578,35 @@ public java.lang.String getProjectNumber() { } } /** + * + * *
      * 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() { @@ -569,17 +616,21 @@ 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; @@ -589,18 +640,20 @@ public Builder setProjectNumberBytes( 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; @@ -609,20 +662,21 @@ 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 { @@ -630,28 +684,35 @@ public java.lang.String getTeam() { } } /** + * + * *
      * 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() { @@ -661,26 +722,30 @@ 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); } @@ -690,12 +755,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(); } @@ -704,27 +769,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; @@ -739,6 +804,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ProjectTeam getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java similarity index 51% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java index 1544bb7527..3af551ee1e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java index fb6267f7ff..12833ca516 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java @@ -1,63 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } 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 @@ -66,30 +89,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 { @@ -100,11 +123,14 @@ public java.lang.String getUploadId() { 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 @@ -112,18 +138,25 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** + * + * *
    * 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.
    * 
@@ -131,11 +164,15 @@ 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; @@ -147,8 +184,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } @@ -168,8 +204,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadId_); } if (commonObjectRequestParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCommonObjectRequestParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,19 +216,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; @@ -215,130 +252,136 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +396,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 @@ -374,8 +417,11 @@ 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; } @@ -386,9 +432,10 @@ private void buildPartial0(com.google.storage.v2.QueryWriteStatusRequest result) result.uploadId_ = uploadId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = + commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); } } @@ -396,38 +443,39 @@ private void buildPartial0(com.google.storage.v2.QueryWriteStatusRequest 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.QueryWriteStatusRequest) { - return mergeFrom((com.google.storage.v2.QueryWriteStatusRequest)other); + return mergeFrom((com.google.storage.v2.QueryWriteStatusRequest) other); } else { super.mergeFrom(other); return this; @@ -470,24 +518,26 @@ 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) { @@ -497,23 +547,26 @@ 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; @@ -522,21 +575,22 @@ 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 { @@ -544,30 +598,37 @@ 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]; + * * @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() { @@ -577,18 +638,22 @@ 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; @@ -598,41 +663,55 @@ public Builder setUploadIdBytes( 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(); @@ -646,6 +725,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -664,17 +745,21 @@ 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; @@ -687,6 +772,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -704,33 +791,42 @@ 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.
      * 
@@ -738,21 +834,24 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR * .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); } @@ -762,12 +861,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(); } @@ -776,27 +875,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; @@ -811,6 +910,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.QueryWriteStatusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java index 898a21ec1c..f56814f69d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java index b0c912fd6e..add6cb63a2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponse.java @@ -1,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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; 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; } @@ -71,25 +92,30 @@ 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
@@ -98,6 +124,7 @@ public int getNumber() {
    * 
* * int64 persisted_size = 1; + * * @return Whether the persistedSize field is set. */ @java.lang.Override @@ -105,6 +132,8 @@ 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
@@ -113,6 +142,7 @@ public boolean hasPersistedSize() {
    * 
* * int64 persisted_size = 1; + * * @return The persistedSize. */ @java.lang.Override @@ -125,12 +155,15 @@ 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 @@ -138,22 +171,27 @@ 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.
@@ -164,12 +202,13 @@ 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;
@@ -181,11 +220,9 @@ 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_);
@@ -200,13 +237,14 @@ 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;
@@ -216,22 +254,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.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:
@@ -250,8 +287,7 @@ 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;
@@ -265,130 +301,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -402,9 +444,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 @@ -423,8 +465,11 @@ 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; @@ -437,8 +482,7 @@ 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(); } } @@ -447,38 +491,39 @@ 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; @@ -488,17 +533,20 @@ 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(); @@ -526,24 +574,25 @@ 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) { @@ -553,12 +602,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() { @@ -571,6 +620,8 @@ 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
@@ -579,12 +630,15 @@ 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
@@ -593,6 +647,7 @@ public boolean hasPersistedSize() {
      * 
* * int64 persisted_size = 1; + * * @return The persistedSize. */ public long getPersistedSize() { @@ -602,6 +657,8 @@ 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
@@ -610,17 +667,20 @@ public long getPersistedSize() {
      * 
* * int64 persisted_size = 1; + * * @param value The persistedSize to set. * @return This builder for chaining. */ public Builder setPersistedSize(long value) { - + writeStatusCase_ = 1; writeStatus_ = value; onChanged(); 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
@@ -629,6 +689,7 @@ public Builder setPersistedSize(long value) {
      * 
* * int64 persisted_size = 1; + * * @return This builder for chaining. */ public Builder clearPersistedSize() { @@ -641,14 +702,20 @@ 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 @@ -656,12 +723,15 @@ 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 @@ -679,6 +749,8 @@ public com.google.storage.v2.Object getResource() { } } /** + * + * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -700,6 +772,8 @@ 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.
@@ -707,8 +781,7 @@ 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();
@@ -719,6 +792,8 @@ public Builder setResource(
       return this;
     }
     /**
+     *
+     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -728,10 +803,12 @@ public Builder setResource(
      */
     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;
         }
@@ -747,6 +824,8 @@ 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.
@@ -771,6 +850,8 @@ public Builder clearResource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -782,6 +863,8 @@ 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.
@@ -801,6 +884,8 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -809,26 +894,29 @@ 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);
     }
 
@@ -838,12 +926,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();
   }
@@ -852,27 +940,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;
@@ -887,6 +975,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.QueryWriteStatusResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
index 537856a71e..27f5c79b52 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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
@@ -16,10 +34,13 @@ public interface QueryWriteStatusResponseOrBuilder extends
    * 
* * 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
@@ -28,31 +49,40 @@ public interface QueryWriteStatusResponseOrBuilder extends
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
similarity index 76%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
index 9e317905f8..32cfe8db51 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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_ = ""; @@ -26,39 +44,46 @@ private ReadObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadObjectRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -67,29 +92,31 @@ 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 { @@ -98,14 +125,18 @@ public java.lang.String getBucket() { } 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 @@ -114,29 +145,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 { @@ -147,12 +178,15 @@ public java.lang.String getObject() { 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 @@ -163,6 +197,8 @@ 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.
@@ -175,6 +211,7 @@ public long getGeneration() {
    * 
* * int64 read_offset = 4; + * * @return The readOffset. */ @java.lang.Override @@ -185,6 +222,8 @@ 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
@@ -195,6 +234,7 @@ public long getReadOffset() {
    * 
* * int64 read_limit = 5; + * * @return The readLimit. */ @java.lang.Override @@ -205,6 +245,8 @@ 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
@@ -212,6 +254,7 @@ public long getReadLimit() {
    * 
* * optional int64 if_generation_match = 6; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -219,6 +262,8 @@ 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
@@ -226,6 +271,7 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 6; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -236,6 +282,8 @@ 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
@@ -244,6 +292,7 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 7; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -251,6 +300,8 @@ 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
@@ -259,6 +310,7 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 7; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -269,12 +321,15 @@ 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 @@ -282,12 +337,15 @@ 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 @@ -298,12 +356,15 @@ 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 @@ -311,12 +372,15 @@ 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 @@ -327,11 +391,14 @@ 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 @@ -339,18 +406,25 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** + * + * *
    * 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.
    * 
@@ -358,13 +432,18 @@ 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.
@@ -374,6 +453,7 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR
    * 
* * optional .google.protobuf.FieldMask read_mask = 12; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -381,6 +461,8 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
    * Mask specifying which fields to read.
    * The checksummed_data field and its children will always be present.
@@ -390,6 +472,7 @@ public boolean hasReadMask() {
    * 
* * optional .google.protobuf.FieldMask read_mask = 12; + * * @return The readMask. */ @java.lang.Override @@ -397,6 +480,8 @@ 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.
@@ -413,6 +498,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -424,8 +510,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_);
     }
@@ -475,40 +560,33 @@ 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_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, ifMetagenerationNotMatch_);
     }
     if (commonObjectRequestParams_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, getCommonObjectRequestParams());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              10, getCommonObjectRequestParams());
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(12, getReadMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getReadMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -518,52 +596,42 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.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;
@@ -581,33 +649,26 @@ 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;
@@ -622,118 +683,127 @@ 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() @@ -741,18 +811,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(); @@ -780,9 +850,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 @@ -801,8 +871,11 @@ 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; } @@ -842,14 +915,13 @@ 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(); } if (((from_bitField0_ & 0x00000400) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; @@ -859,38 +931,39 @@ 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; @@ -962,71 +1035,80 @@ 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) { @@ -1036,22 +1118,27 @@ 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; @@ -1060,20 +1147,23 @@ 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 { @@ -1081,28 +1171,39 @@ 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) = { ... } + * + * * @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() { @@ -1112,17 +1213,23 @@ 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; @@ -1132,18 +1239,20 @@ public Builder setBucketBytes( 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; @@ -1152,20 +1261,21 @@ 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 { @@ -1173,28 +1283,35 @@ public java.lang.String getObject() { } } /** + * + * *
      * 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() { @@ -1204,17 +1321,21 @@ 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; @@ -1222,14 +1343,17 @@ public Builder setObjectBytes( 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 @@ -1237,29 +1361,35 @@ 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. */ public Builder setGeneration(long value) { - + generation_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -1269,8 +1399,10 @@ 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.
@@ -1283,6 +1415,7 @@ public Builder clearGeneration() {
      * 
* * int64 read_offset = 4; + * * @return The readOffset. */ @java.lang.Override @@ -1290,6 +1423,8 @@ public long getReadOffset() { return readOffset_; } /** + * + * *
      * The offset for the first byte to return in the read, relative to the start
      * of the object.
@@ -1302,17 +1437,20 @@ public long getReadOffset() {
      * 
* * int64 read_offset = 4; + * * @param value The readOffset to set. * @return This builder for chaining. */ public Builder setReadOffset(long value) { - + readOffset_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The offset for the first byte to return in the read, relative to the start
      * of the object.
@@ -1325,6 +1463,7 @@ public Builder setReadOffset(long value) {
      * 
* * int64 read_offset = 4; + * * @return This builder for chaining. */ public Builder clearReadOffset() { @@ -1334,8 +1473,10 @@ 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
@@ -1346,6 +1487,7 @@ public Builder clearReadOffset() {
      * 
* * int64 read_limit = 5; + * * @return The readLimit. */ @java.lang.Override @@ -1353,6 +1495,8 @@ 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
@@ -1363,17 +1507,20 @@ public long getReadLimit() {
      * 
* * int64 read_limit = 5; + * * @param value The readLimit to set. * @return This builder for chaining. */ public Builder setReadLimit(long value) { - + readLimit_ = value; bitField0_ |= 0x00000010; onChanged(); 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
@@ -1384,6 +1531,7 @@ public Builder setReadLimit(long value) {
      * 
* * int64 read_limit = 5; + * * @return This builder for chaining. */ public Builder clearReadLimit() { @@ -1393,8 +1541,10 @@ 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
@@ -1402,6 +1552,7 @@ public Builder clearReadLimit() {
      * 
* * optional int64 if_generation_match = 6; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1409,6 +1560,8 @@ 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
@@ -1416,6 +1569,7 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 6; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1423,6 +1577,8 @@ 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
@@ -1430,17 +1586,20 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 6; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000020; onChanged(); 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
@@ -1448,6 +1607,7 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 6; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1457,8 +1617,10 @@ 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
@@ -1467,6 +1629,7 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 7; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1474,6 +1637,8 @@ 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
@@ -1482,6 +1647,7 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 7; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1489,6 +1655,8 @@ 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
@@ -1497,17 +1665,20 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 7; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000040; onChanged(); 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
@@ -1516,6 +1687,7 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 7; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1525,14 +1697,17 @@ 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 @@ -1540,12 +1715,15 @@ 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 @@ -1553,29 +1731,35 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000080; onChanged(); 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() { @@ -1585,14 +1769,17 @@ 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 @@ -1600,12 +1787,15 @@ 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 @@ -1613,29 +1803,35 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000100; onChanged(); 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() { @@ -1647,41 +1843,55 @@ 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(); @@ -1695,6 +1905,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1713,17 +1925,21 @@ 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; @@ -1736,6 +1952,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1753,33 +1971,42 @@ 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.
      * 
@@ -1787,14 +2014,17 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR * .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_; @@ -1802,8 +2032,13 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR 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.
@@ -1813,12 +2048,15 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR
      * 
* * 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.
@@ -1828,6 +2066,7 @@ public boolean hasReadMask() {
      * 
* * optional .google.protobuf.FieldMask read_mask = 12; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1838,6 +2077,8 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -1862,6 +2103,8 @@ 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.
@@ -1872,8 +2115,7 @@ 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 {
@@ -1884,6 +2126,8 @@ public Builder setReadMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -1896,9 +2140,9 @@ public Builder setReadMask(
      */
     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;
@@ -1911,6 +2155,8 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -1932,6 +2178,8 @@ public Builder clearReadMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Mask specifying which fields to read.
      * The checksummed_data field and its children will always be present.
@@ -1948,6 +2196,8 @@ 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.
@@ -1962,11 +2212,12 @@ 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.
@@ -1978,21 +2229,24 @@ 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);
     }
 
@@ -2002,12 +2256,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();
   }
@@ -2016,27 +2270,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;
@@ -2051,6 +2305,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.ReadObjectRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
similarity index 85%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
index 89179cdfc9..1296982fd0 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
@@ -1,64 +1,99 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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 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.
@@ -71,11 +106,14 @@ public interface ReadObjectRequestOrBuilder extends
    * 
* * 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
@@ -86,11 +124,14 @@ public interface ReadObjectRequestOrBuilder extends
    * 
* * 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
@@ -98,10 +139,13 @@ public interface ReadObjectRequestOrBuilder extends
    * 
* * 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
@@ -109,11 +153,14 @@ public interface ReadObjectRequestOrBuilder extends
    * 
* * 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
@@ -122,10 +169,13 @@ public interface ReadObjectRequestOrBuilder extends
    * 
* * 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
@@ -134,71 +184,92 @@ public interface ReadObjectRequestOrBuilder extends
    * 
* * 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.
    * 
@@ -208,6 +279,8 @@ public interface ReadObjectRequestOrBuilder extends com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder(); /** + * + * *
    * Mask specifying which fields to read.
    * The checksummed_data field and its children will always be present.
@@ -217,10 +290,13 @@ public interface ReadObjectRequestOrBuilder extends
    * 
* * 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.
@@ -230,10 +306,13 @@ public interface ReadObjectRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
similarity index 73%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
index 1902d9226d..d567a99ae3 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
@@ -1,55 +1,75 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } 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
@@ -58,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.storage.v2.ChecksummedData checksummed_data = 1; + * * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -65,6 +86,8 @@ public boolean hasChecksummedData() { return checksummedData_ != null; } /** + * + * *
    * 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,13 +96,18 @@ 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
@@ -91,12 +119,16 @@ 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. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -104,6 +136,7 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; + * * @return Whether the objectChecksums field is set. */ @java.lang.Override @@ -111,6 +144,8 @@ public boolean hasObjectChecksums() { return objectChecksums_ != null; } /** + * + * *
    * The checksums of the complete object. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -118,13 +153,18 @@ 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. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -135,12 +175,16 @@ 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
@@ -148,6 +192,7 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
    * 
* * .google.storage.v2.ContentRange content_range = 3; + * * @return Whether the contentRange field is set. */ @java.lang.Override @@ -155,6 +200,8 @@ public boolean hasContentRange() { return contentRange_ != null; } /** + * + * *
    * If read_offset and or read_limit was specified on the
    * ReadObjectRequest, ContentRange will be populated on the first
@@ -162,13 +209,18 @@ 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
@@ -179,18 +231,23 @@ 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 @@ -198,12 +255,15 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * 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 @@ -211,6 +271,8 @@ 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.
@@ -224,6 +286,7 @@ public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -235,8 +298,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (checksummedData_ != null) {
       output.writeMessage(1, getChecksummedData());
     }
@@ -259,20 +321,16 @@ public int getSerializedSize() {
 
     size = 0;
     if (checksummedData_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getChecksummedData());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getChecksummedData());
     }
     if (objectChecksums_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getObjectChecksums());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjectChecksums());
     }
     if (contentRange_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getContentRange());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getContentRange());
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -282,7 +340,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);
@@ -291,23 +349,19 @@ 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;
@@ -341,130 +395,136 @@ 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() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -493,9 +553,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 @@ -514,8 +574,11 @@ 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; } @@ -523,24 +586,19 @@ public com.google.storage.v2.ReadObjectResponse buildPartial() { private void buildPartial0(com.google.storage.v2.ReadObjectResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.checksummedData_ = checksummedDataBuilder_ == null - ? checksummedData_ - : checksummedDataBuilder_.build(); + result.checksummedData_ = + checksummedDataBuilder_ == null ? checksummedData_ : checksummedDataBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.objectChecksums_ = objectChecksumsBuilder_ == null - ? objectChecksums_ - : objectChecksumsBuilder_.build(); + result.objectChecksums_ = + objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.contentRange_ = contentRangeBuilder_ == null - ? contentRange_ - : contentRangeBuilder_.build(); + result.contentRange_ = + contentRangeBuilder_ == null ? contentRange_ : contentRangeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } } @@ -548,38 +606,39 @@ private void buildPartial0(com.google.storage.v2.ReadObjectResponse 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.ReadObjectResponse) { - return mergeFrom((com.google.storage.v2.ReadObjectResponse)other); + return mergeFrom((com.google.storage.v2.ReadObjectResponse) other); } else { super.mergeFrom(other); return this; @@ -626,40 +685,37 @@ 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) { @@ -669,12 +725,18 @@ 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
@@ -683,12 +745,15 @@ 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
@@ -697,16 +762,21 @@ 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
@@ -730,6 +800,8 @@ 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
@@ -751,6 +823,8 @@ 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
@@ -762,9 +836,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;
@@ -777,6 +851,8 @@ public Builder mergeChecksummedData(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
@@ -797,6 +873,8 @@ 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
@@ -812,6 +890,8 @@ 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
@@ -825,11 +905,14 @@ 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
@@ -840,14 +923,17 @@ 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_;
@@ -855,8 +941,13 @@ 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. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -864,12 +955,15 @@ 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. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -877,16 +971,21 @@ 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. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -909,6 +1008,8 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The checksums of the complete object. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -929,6 +1030,8 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
+     *
+     *
      * 
      * The checksums of the complete object. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -939,9 +1042,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;
@@ -954,6 +1057,8 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The checksums of the complete object. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -973,6 +1078,8 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The checksums of the complete object. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -987,6 +1094,8 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
       return getObjectChecksumsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The checksums of the complete object. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -999,11 +1108,14 @@ 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. The client should compute one of
      * these checksums over the downloaded object and compare it against the value
@@ -1013,14 +1125,17 @@ 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_;
@@ -1028,8 +1143,13 @@ 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
@@ -1037,12 +1157,15 @@ 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
@@ -1050,16 +1173,21 @@ 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
@@ -1082,6 +1210,8 @@ 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
@@ -1090,8 +1220,7 @@ 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 {
@@ -1102,6 +1231,8 @@ public Builder setContentRange(
       return this;
     }
     /**
+     *
+     *
      * 
      * If read_offset and or read_limit was specified on the
      * ReadObjectRequest, ContentRange will be populated on the first
@@ -1112,9 +1243,9 @@ public Builder setContentRange(
      */
     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;
@@ -1127,6 +1258,8 @@ public Builder mergeContentRange(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
@@ -1146,6 +1279,8 @@ public Builder clearContentRange() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If read_offset and or read_limit was specified on the
      * ReadObjectRequest, ContentRange will be populated on the first
@@ -1160,6 +1295,8 @@ 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
@@ -1172,11 +1309,14 @@ 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
@@ -1186,14 +1326,17 @@ 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_;
@@ -1201,26 +1344,35 @@ 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() { @@ -1231,6 +1383,8 @@ 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.
@@ -1252,6 +1406,8 @@ 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.
@@ -1259,8 +1415,7 @@ 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 {
@@ -1271,6 +1426,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
@@ -1280,9 +1437,9 @@ public Builder setMetadata(
      */
     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;
@@ -1295,6 +1452,8 @@ public Builder mergeMetadata(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.
@@ -1313,6 +1472,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Metadata of the object whose media is being returned.
      * Only populated in the first response in the stream.
@@ -1326,6 +1487,8 @@ 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.
@@ -1337,11 +1500,12 @@ 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.
@@ -1350,21 +1514,24 @@ 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);
     }
 
@@ -1374,12 +1541,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();
   }
@@ -1388,27 +1555,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;
@@ -1423,6 +1590,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.ReadObjectResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
similarity index 85%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
index 7a20c3d418..6fea82c9bf 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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
@@ -16,10 +34,13 @@ public interface ReadObjectResponseOrBuilder extends
    * 
* * .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
@@ -28,10 +49,13 @@ public interface ReadObjectResponseOrBuilder extends
    * 
* * .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
@@ -44,6 +68,8 @@ public interface ReadObjectResponseOrBuilder extends
   com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder();
 
   /**
+   *
+   *
    * 
    * The checksums of the complete object. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -51,10 +77,13 @@ public interface ReadObjectResponseOrBuilder extends
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; + * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** + * + * *
    * The checksums of the complete object. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -62,10 +91,13 @@ public interface ReadObjectResponseOrBuilder extends
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 2; + * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** + * + * *
    * The checksums of the complete object. The client should compute one of
    * these checksums over the downloaded object and compare it against the value
@@ -77,6 +109,8 @@ public interface ReadObjectResponseOrBuilder extends
   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
@@ -84,10 +118,13 @@ public interface ReadObjectResponseOrBuilder extends
    * 
* * .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
@@ -95,10 +132,13 @@ public interface ReadObjectResponseOrBuilder extends
    * 
* * .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
@@ -110,26 +150,34 @@ public interface ReadObjectResponseOrBuilder extends
   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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java
similarity index 77%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java
index f493a6c89f..243137217a 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 package com.google.storage.v2;
 
 /**
+ *
+ *
  * 
  * Request message for RewriteObject.
  * If the source object is encrypted using a Customer-Supplied Encryption Key
@@ -17,15 +34,16 @@
  *
  * 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_ = "";
@@ -41,34 +59,38 @@ private RewriteObjectRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RewriteObjectRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.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
@@ -79,7 +101,10 @@ protected java.lang.Object newInstance(
    * (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 @@ -88,14 +113,15 @@ 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
@@ -106,17 +132,18 @@ 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 { @@ -125,15 +152,21 @@ public java.lang.String getDestinationName() { } 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 @@ -142,30 +175,32 @@ 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 { @@ -174,9 +209,12 @@ public java.lang.String getDestinationBucket() { } 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.
@@ -186,6 +224,7 @@ public java.lang.String getDestinationBucket() {
    * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } + * * @return The destinationKmsKey. */ @java.lang.Override @@ -194,14 +233,15 @@ 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.
@@ -211,16 +251,15 @@ 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 { @@ -231,6 +270,8 @@ public java.lang.String getDestinationKmsKey() { 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
@@ -242,6 +283,7 @@ public java.lang.String getDestinationKmsKey() {
    * 
* * .google.storage.v2.Object destination = 1; + * * @return Whether the destination field is set. */ @java.lang.Override @@ -249,6 +291,8 @@ public boolean hasDestination() { return destination_ != null; } /** + * + * *
    * Properties of the destination, post-rewrite object.
    * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -260,6 +304,7 @@ public boolean hasDestination() {
    * 
* * .google.storage.v2.Object destination = 1; + * * @return The destination. */ @java.lang.Override @@ -267,6 +312,8 @@ 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
@@ -285,14 +332,20 @@ 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 @@ -301,29 +354,31 @@ 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 { @@ -332,14 +387,18 @@ public java.lang.String getSourceBucket() { } 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 @@ -348,29 +407,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 { @@ -381,12 +440,15 @@ public java.lang.String getSourceObject() { 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 @@ -395,9 +457,12 @@ 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
@@ -407,6 +472,7 @@ public long getSourceGeneration() {
    * 
* * string rewrite_token = 5; + * * @return The rewriteToken. */ @java.lang.Override @@ -415,14 +481,15 @@ 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
@@ -432,16 +499,15 @@ 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 { @@ -450,9 +516,12 @@ public java.lang.String getRewriteToken() { } 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",
@@ -460,6 +529,7 @@ public java.lang.String getRewriteToken() {
    * 
* * string destination_predefined_acl = 28; + * * @return The destinationPredefinedAcl. */ @java.lang.Override @@ -468,14 +538,15 @@ 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",
@@ -483,16 +554,15 @@ 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 { @@ -503,6 +573,8 @@ public java.lang.String getDestinationPredefinedAcl() { 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
@@ -510,6 +582,7 @@ public java.lang.String getDestinationPredefinedAcl() {
    * 
* * optional int64 if_generation_match = 7; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -517,6 +590,8 @@ 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
@@ -524,6 +599,7 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 7; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -534,6 +610,8 @@ 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
@@ -542,6 +620,7 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 8; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -549,6 +628,8 @@ 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
@@ -557,6 +638,7 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 8; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -567,12 +649,15 @@ 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 @@ -580,12 +665,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 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 @@ -596,12 +684,15 @@ 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 @@ -609,12 +700,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 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 @@ -625,12 +719,15 @@ 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 @@ -638,12 +735,15 @@ public boolean hasIfSourceGenerationMatch() { return ((bitField0_ & 0x00000010) != 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 @@ -654,12 +754,15 @@ 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 @@ -667,12 +770,15 @@ public boolean hasIfSourceGenerationNotMatch() { return ((bitField0_ & 0x00000020) != 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 @@ -683,12 +789,15 @@ 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 @@ -696,12 +805,15 @@ public boolean hasIfSourceMetagenerationMatch() { return ((bitField0_ & 0x00000040) != 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 @@ -712,12 +824,15 @@ 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 @@ -725,12 +840,15 @@ public boolean hasIfSourceMetagenerationNotMatch() { return ((bitField0_ & 0x00000080) != 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 @@ -741,6 +859,8 @@ 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
@@ -753,6 +873,7 @@ public long getIfSourceMetagenerationNotMatch() {
    * 
* * int64 max_bytes_rewritten_per_call = 15; + * * @return The maxBytesRewrittenPerCall. */ @java.lang.Override @@ -761,15 +882,19 @@ 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 @@ -778,30 +903,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 { @@ -810,8 +935,11 @@ public java.lang.String getCopySourceEncryptionAlgorithm() { } 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
@@ -819,6 +947,7 @@ public java.lang.String getCopySourceEncryptionAlgorithm() {
    * 
* * bytes copy_source_encryption_key_bytes = 21; + * * @return The copySourceEncryptionKeyBytes. */ @java.lang.Override @@ -827,8 +956,11 @@ 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
@@ -836,6 +968,7 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes() {
    * 
* * bytes copy_source_encryption_key_sha256_bytes = 22; + * * @return The copySourceEncryptionKeySha256Bytes. */ @java.lang.Override @@ -846,11 +979,14 @@ 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 @@ -858,18 +994,25 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** + * + * *
    * 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.
    * 
@@ -877,19 +1020,25 @@ 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 @@ -897,19 +1046,26 @@ public boolean hasObjectChecksums() { return objectChecksums_ != null; } /** + * + * *
    * 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.
@@ -919,10 +1075,13 @@ 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;
@@ -934,8 +1093,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (destination_ != null) {
       output.writeMessage(1, getDestination());
     }
@@ -979,7 +1137,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       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) {
       output.writeMessage(19, getCommonObjectRequestParams());
@@ -1015,8 +1174,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (destination_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getDestination());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDestination());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBucket_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceBucket_);
@@ -1025,62 +1183,60 @@ 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_);
+      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(8, ifGenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(9, ifMetagenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, ifMetagenerationMatch_);
     }
     if (((bitField0_ & 0x00000008) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(10, ifMetagenerationNotMatch_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, ifMetagenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(11, ifSourceGenerationMatch_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, ifSourceGenerationMatch_);
     }
     if (((bitField0_ & 0x00000020) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(12, ifSourceGenerationNotMatch_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeInt64Size(12, ifSourceGenerationNotMatch_);
     }
     if (((bitField0_ & 0x00000040) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(13, ifSourceMetagenerationMatch_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeInt64Size(13, ifSourceMetagenerationMatch_);
     }
     if (((bitField0_ & 0x00000080) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(14, ifSourceMetagenerationNotMatch_);
+      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());
+      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_);
@@ -1092,11 +1248,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());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getObjectChecksums());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1106,91 +1262,75 @@ public int 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;
@@ -1218,55 +1358,46 @@ 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;
@@ -1286,97 +1417,104 @@ 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
@@ -1390,33 +1528,32 @@ protected Builder newBuilderForType(
    *
    * 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() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1460,9 +1597,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
@@ -1481,8 +1618,11 @@ 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;
     }
@@ -1499,9 +1639,8 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
         result.destinationKmsKey_ = destinationKmsKey_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.destination_ = destinationBuilder_ == null
-            ? destination_
-            : destinationBuilder_.build();
+        result.destination_ =
+            destinationBuilder_ == null ? destination_ : destinationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.sourceBucket_ = sourceBucket_;
@@ -1564,14 +1703,14 @@ 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();
       }
       if (((from_bitField0_ & 0x00400000) != 0)) {
-        result.objectChecksums_ = objectChecksumsBuilder_ == null
-            ? objectChecksums_
-            : objectChecksumsBuilder_.build();
+        result.objectChecksums_ =
+            objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build();
       }
       result.bitField0_ |= to_bitField0_;
     }
@@ -1580,38 +1719,39 @@ 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;
@@ -1731,133 +1871,152 @@ 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:
+            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) {
@@ -1867,10 +2026,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object destinationName_ = "";
     /**
+     *
+     *
      * 
      * Required. Immutable. The name of the destination object.
      * See the
@@ -1881,14 +2043,16 @@ 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; @@ -1897,6 +2061,8 @@ public java.lang.String getDestinationName() { } } /** + * + * *
      * Required. Immutable. The name of the destination object.
      * See the
@@ -1907,16 +2073,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. */ - 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 { @@ -1924,6 +2091,8 @@ public java.lang.String getDestinationName() { } } /** + * + * *
      * Required. Immutable. The name of the destination object.
      * See the
@@ -1934,19 +2103,25 @@ 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]; + * + * * @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
@@ -1957,7 +2132,10 @@ public Builder setDestinationName(
      * (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() { @@ -1967,6 +2145,8 @@ public Builder clearDestinationName() { return this; } /** + * + * *
      * Required. Immutable. The name of the destination object.
      * See the
@@ -1977,13 +2157,17 @@ 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; @@ -1993,19 +2177,23 @@ public Builder setDestinationNameBytes( 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; @@ -2014,21 +2202,24 @@ 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 { @@ -2036,30 +2227,41 @@ 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) = { ... } + * + * * @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() { @@ -2069,18 +2271,24 @@ 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; @@ -2090,6 +2298,8 @@ public Builder setDestinationBucketBytes( 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.
@@ -2099,13 +2309,13 @@ public Builder setDestinationBucketBytes(
      * 
* * 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; @@ -2114,6 +2324,8 @@ 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.
@@ -2123,15 +2335,14 @@ 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 { @@ -2139,6 +2350,8 @@ 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.
@@ -2148,18 +2361,22 @@ public java.lang.String getDestinationKmsKey() {
      * 
* * 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.
@@ -2169,6 +2386,7 @@ public Builder setDestinationKmsKey(
      * 
* * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDestinationKmsKey() { @@ -2178,6 +2396,8 @@ 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.
@@ -2187,12 +2407,14 @@ 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; @@ -2202,8 +2424,13 @@ public Builder setDestinationKmsKeyBytes( 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
@@ -2215,12 +2442,15 @@ public Builder setDestinationKmsKeyBytes(
      * 
* * .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
@@ -2232,16 +2462,21 @@ 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
@@ -2268,6 +2503,8 @@ 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
@@ -2280,8 +2517,7 @@ 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 {
@@ -2292,6 +2528,8 @@ public Builder setDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * Properties of the destination, post-rewrite object.
      * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -2306,9 +2544,9 @@ public Builder setDestination(
      */
     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;
@@ -2321,6 +2559,8 @@ public Builder mergeDestination(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
@@ -2344,6 +2584,8 @@ public Builder clearDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Properties of the destination, post-rewrite object.
      * The `name`, `bucket` and `kms_key` fields must not be populated (these
@@ -2362,6 +2604,8 @@ 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
@@ -2378,11 +2622,14 @@ 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
@@ -2396,14 +2643,17 @@ 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_;
@@ -2411,18 +2661,22 @@ 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; @@ -2431,20 +2685,23 @@ 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 { @@ -2452,28 +2709,39 @@ 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) = { ... } + * + * * @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() { @@ -2483,17 +2751,23 @@ 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; @@ -2503,18 +2777,20 @@ public Builder setSourceBucketBytes( 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; @@ -2523,20 +2799,21 @@ 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 { @@ -2544,28 +2821,35 @@ public java.lang.String getSourceObject() { } } /** + * + * *
      * 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() { @@ -2575,17 +2859,21 @@ 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; @@ -2593,14 +2881,17 @@ public Builder setSourceObjectBytes( 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 @@ -2608,29 +2899,35 @@ 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. */ public Builder setSourceGeneration(long value) { - + sourceGeneration_ = value; bitField0_ |= 0x00000040; onChanged(); 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() { @@ -2642,6 +2939,8 @@ 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
@@ -2651,13 +2950,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; @@ -2666,6 +2965,8 @@ 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
@@ -2675,15 +2976,14 @@ 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 { @@ -2691,6 +2991,8 @@ 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
@@ -2700,18 +3002,22 @@ public java.lang.String getRewriteToken() {
      * 
* * 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
@@ -2721,6 +3027,7 @@ public Builder setRewriteToken(
      * 
* * string rewrite_token = 5; + * * @return This builder for chaining. */ public Builder clearRewriteToken() { @@ -2730,6 +3037,8 @@ 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
@@ -2739,12 +3048,14 @@ 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; @@ -2754,6 +3065,8 @@ public Builder setRewriteTokenBytes( private java.lang.Object destinationPredefinedAcl_ = ""; /** + * + * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -2761,13 +3074,13 @@ public Builder setRewriteTokenBytes(
      * 
* * 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; @@ -2776,6 +3089,8 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -2783,15 +3098,14 @@ 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 { @@ -2799,6 +3113,8 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -2806,18 +3122,22 @@ public java.lang.String getDestinationPredefinedAcl() {
      * 
* * 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",
@@ -2825,6 +3145,7 @@ public Builder setDestinationPredefinedAcl(
      * 
* * string destination_predefined_acl = 28; + * * @return This builder for chaining. */ public Builder clearDestinationPredefinedAcl() { @@ -2834,6 +3155,8 @@ public Builder clearDestinationPredefinedAcl() { return this; } /** + * + * *
      * Apply a predefined set of access controls to the destination object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -2841,12 +3164,14 @@ 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; @@ -2854,8 +3179,10 @@ public Builder setDestinationPredefinedAclBytes( 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
@@ -2863,6 +3190,7 @@ public Builder setDestinationPredefinedAclBytes(
      * 
* * optional int64 if_generation_match = 7; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -2870,6 +3198,8 @@ 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
@@ -2877,6 +3207,7 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 7; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -2884,6 +3215,8 @@ 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
@@ -2891,17 +3224,20 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 7; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000200; onChanged(); 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
@@ -2909,6 +3245,7 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 7; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -2918,8 +3255,10 @@ 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
@@ -2928,6 +3267,7 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 8; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -2935,6 +3275,8 @@ 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
@@ -2943,6 +3285,7 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 8; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -2950,6 +3293,8 @@ 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
@@ -2958,17 +3303,20 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 8; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000400; onChanged(); 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
@@ -2977,6 +3325,7 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 8; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -2986,14 +3335,17 @@ 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 @@ -3001,12 +3353,15 @@ 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 @@ -3014,29 +3369,35 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000800; onChanged(); 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() { @@ -3046,14 +3407,17 @@ 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 @@ -3061,12 +3425,15 @@ 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 @@ -3074,29 +3441,35 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00001000; onChanged(); 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() { @@ -3106,14 +3479,17 @@ 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 @@ -3121,12 +3497,15 @@ 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 @@ -3134,29 +3513,35 @@ 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. */ public Builder setIfSourceGenerationMatch(long value) { - + ifSourceGenerationMatch_ = value; bitField0_ |= 0x00002000; onChanged(); 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() { @@ -3166,14 +3551,17 @@ 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 @@ -3181,12 +3569,15 @@ 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 @@ -3194,29 +3585,35 @@ 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. */ public Builder setIfSourceGenerationNotMatch(long value) { - + ifSourceGenerationNotMatch_ = value; bitField0_ |= 0x00004000; onChanged(); 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() { @@ -3226,14 +3623,17 @@ 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 @@ -3241,12 +3641,15 @@ 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 @@ -3254,29 +3657,35 @@ 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. */ public Builder setIfSourceMetagenerationMatch(long value) { - + ifSourceMetagenerationMatch_ = value; bitField0_ |= 0x00008000; onChanged(); 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() { @@ -3286,14 +3695,17 @@ 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 @@ -3301,12 +3713,15 @@ 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 @@ -3314,29 +3729,35 @@ 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. */ public Builder setIfSourceMetagenerationNotMatch(long value) { - + ifSourceMetagenerationNotMatch_ = value; bitField0_ |= 0x00010000; onChanged(); 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() { @@ -3346,8 +3767,10 @@ 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
@@ -3360,6 +3783,7 @@ public Builder clearIfSourceMetagenerationNotMatch() {
      * 
* * int64 max_bytes_rewritten_per_call = 15; + * * @return The maxBytesRewrittenPerCall. */ @java.lang.Override @@ -3367,6 +3791,8 @@ public long getMaxBytesRewrittenPerCall() { return maxBytesRewrittenPerCall_; } /** + * + * *
      * The maximum number of bytes that will be rewritten per rewrite request.
      * Most callers
@@ -3379,17 +3805,20 @@ public long getMaxBytesRewrittenPerCall() {
      * 
* * int64 max_bytes_rewritten_per_call = 15; + * * @param value The maxBytesRewrittenPerCall to set. * @return This builder for chaining. */ public Builder setMaxBytesRewrittenPerCall(long value) { - + maxBytesRewrittenPerCall_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** + * + * *
      * The maximum number of bytes that will be rewritten per rewrite request.
      * Most callers
@@ -3402,6 +3831,7 @@ public Builder setMaxBytesRewrittenPerCall(long value) {
      * 
* * int64 max_bytes_rewritten_per_call = 15; + * * @return This builder for chaining. */ public Builder clearMaxBytesRewrittenPerCall() { @@ -3413,19 +3843,21 @@ 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; @@ -3434,21 +3866,22 @@ 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 { @@ -3456,30 +3889,37 @@ 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; + * * @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() { @@ -3489,18 +3929,22 @@ 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; @@ -3508,8 +3952,11 @@ public Builder setCopySourceEncryptionAlgorithmBytes( 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
@@ -3517,6 +3964,7 @@ public Builder setCopySourceEncryptionAlgorithmBytes(
      * 
* * bytes copy_source_encryption_key_bytes = 21; + * * @return The copySourceEncryptionKeyBytes. */ @java.lang.Override @@ -3524,6 +3972,8 @@ 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
@@ -3531,17 +3981,22 @@ 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
@@ -3549,6 +4004,7 @@ public Builder setCopySourceEncryptionKeyBytes(com.google.protobuf.ByteString va
      * 
* * bytes copy_source_encryption_key_bytes = 21; + * * @return This builder for chaining. */ public Builder clearCopySourceEncryptionKeyBytes() { @@ -3558,8 +4014,11 @@ 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
@@ -3567,6 +4026,7 @@ public Builder clearCopySourceEncryptionKeyBytes() {
      * 
* * bytes copy_source_encryption_key_sha256_bytes = 22; + * * @return The copySourceEncryptionKeySha256Bytes. */ @java.lang.Override @@ -3574,6 +4034,8 @@ 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
@@ -3581,17 +4043,22 @@ 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
@@ -3599,52 +4066,68 @@ 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(); @@ -3658,6 +4141,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -3676,17 +4161,21 @@ 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; @@ -3699,6 +4188,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -3716,33 +4207,42 @@ 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.
      * 
@@ -3750,14 +4250,17 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR * .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_; @@ -3765,36 +4268,49 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR 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.
@@ -3816,6 +4332,8 @@ 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.
@@ -3835,6 +4353,8 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
+     *
+     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
@@ -3844,9 +4364,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;
@@ -3859,6 +4379,8 @@ public Builder mergeObjectChecksums(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.
@@ -3877,6 +4399,8 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The checksums of the complete object. This will be used to validate the
      * destination object after rewriting.
@@ -3890,6 +4414,8 @@ 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.
@@ -3901,11 +4427,14 @@ 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.
@@ -3914,21 +4443,24 @@ 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);
     }
 
@@ -3938,12 +4470,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();
   }
@@ -3952,27 +4484,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;
@@ -3987,6 +4519,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.RewriteObjectRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
similarity index 86%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
index 06fb82121e..808c42ad55 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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
@@ -18,11 +36,16 @@ public interface RewriteObjectRequestOrBuilder extends
    * (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
@@ -33,35 +56,48 @@ public interface RewriteObjectRequestOrBuilder extends
    * (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.
@@ -71,10 +107,13 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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.
@@ -84,12 +123,14 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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
@@ -101,10 +142,13 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * .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
@@ -116,10 +160,13 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * .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
@@ -135,57 +182,76 @@ public interface RewriteObjectRequestOrBuilder extends
   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
@@ -195,10 +261,13 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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
@@ -208,12 +277,14 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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",
@@ -221,10 +292,13 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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",
@@ -232,12 +306,14 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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
@@ -245,10 +321,13 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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
@@ -256,11 +335,14 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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
@@ -269,10 +351,13 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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
@@ -281,137 +366,176 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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
@@ -424,33 +548,41 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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
@@ -458,11 +590,14 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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
@@ -470,29 +605,38 @@ public interface RewriteObjectRequestOrBuilder extends
    * 
* * 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.
    * 
@@ -502,26 +646,34 @@ public interface RewriteObjectRequestOrBuilder extends 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
similarity index 72%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
index 68d8dde5ea..eadfc372f2 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
@@ -1,62 +1,84 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } 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 @@ -67,12 +89,15 @@ 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 @@ -83,12 +108,15 @@ 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 @@ -97,15 +125,19 @@ 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 @@ -114,30 +146,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 { @@ -148,12 +180,15 @@ public java.lang.String getRewriteToken() { 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 @@ -161,12 +196,15 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * 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 @@ -174,6 +212,8 @@ 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.
@@ -187,6 +227,7 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -198,8 +239,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (totalBytesRewritten_ != 0L) {
       output.writeInt64(1, totalBytesRewritten_);
     }
@@ -225,23 +265,19 @@ 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());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResource());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -251,25 +287,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.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;
@@ -283,14 +314,11 @@ 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()) {
@@ -302,130 +330,135 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +476,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 @@ -464,8 +497,11 @@ 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; } @@ -485,9 +521,7 @@ private void buildPartial0(com.google.storage.v2.RewriteResponse result) { result.rewriteToken_ = rewriteToken_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.resource_ = resourceBuilder_ == null - ? resource_ - : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); } } @@ -495,38 +529,39 @@ private void buildPartial0(com.google.storage.v2.RewriteResponse 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.RewriteResponse) { - return mergeFrom((com.google.storage.v2.RewriteResponse)other); + return mergeFrom((com.google.storage.v2.RewriteResponse) other); } else { super.mergeFrom(other); return this; @@ -578,39 +613,43 @@ 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) { @@ -620,16 +659,20 @@ 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 @@ -637,29 +680,35 @@ 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. */ public Builder setTotalBytesRewritten(long value) { - + totalBytesRewritten_ = value; bitField0_ |= 0x00000001; onChanged(); 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() { @@ -669,14 +718,17 @@ 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 @@ -684,29 +736,35 @@ 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. */ public Builder setObjectSize(long value) { - + objectSize_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { @@ -716,14 +774,17 @@ 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 @@ -731,29 +792,35 @@ 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. */ public Builder setDone(boolean value) { - + done_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -765,19 +832,21 @@ 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; @@ -786,21 +855,22 @@ 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 { @@ -808,30 +878,37 @@ 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; + * * @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() { @@ -841,18 +918,22 @@ 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; @@ -862,26 +943,35 @@ public Builder setRewriteTokenBytes( 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() { @@ -892,6 +982,8 @@ 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.
@@ -913,6 +1005,8 @@ 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.
@@ -920,8 +1014,7 @@ 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 {
@@ -932,6 +1025,8 @@ public Builder setResource(
       return this;
     }
     /**
+     *
+     *
      * 
      * A resource containing the metadata for the copied-to object. This property
      * is present in the response only when copying completes.
@@ -941,9 +1036,9 @@ public Builder setResource(
      */
     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;
@@ -956,6 +1051,8 @@ public Builder mergeResource(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.
@@ -974,6 +1071,8 @@ 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.
@@ -987,6 +1086,8 @@ 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.
@@ -998,11 +1099,12 @@ 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.
@@ -1011,21 +1113,24 @@ 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);
     }
 
@@ -1035,12 +1140,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();
   }
@@ -1049,27 +1154,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;
@@ -1084,6 +1189,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.RewriteResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
similarity index 76%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
index 479ae23c80..3e38750e35 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
@@ -1,88 +1,126 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
similarity index 65%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
index 7998ecc4c6..46f5c03ffe 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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
@@ -12,53 +29,59 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.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 @@ -67,29 +90,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 { @@ -98,6 +121,7 @@ public java.lang.String getEmailAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, emailAddress_); } @@ -134,15 +157,14 @@ public int 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; } @@ -161,97 +183,103 @@ 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
@@ -260,33 +288,32 @@ protected Builder newBuilderForType(
    *
    * 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) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +323,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
@@ -318,7 +345,9 @@ 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;
     }
@@ -334,38 +363,39 @@ 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;
@@ -405,17 +435,19 @@ 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) {
@@ -425,22 +457,25 @@ 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; @@ -449,20 +484,21 @@ 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 { @@ -470,28 +506,35 @@ public java.lang.String getEmailAddress() { } } /** + * + * *
      * 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() { @@ -501,26 +544,30 @@ 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); } @@ -530,12 +577,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(); } @@ -544,27 +591,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; @@ -579,6 +626,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ServiceAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 0000000000..d6637ee207 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java index 59fb0870b6..94fe31fa2e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstants.java @@ -1,62 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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; /** + * + * *
  * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.
      * 
@@ -65,6 +86,8 @@ public enum Values */ VALUES_UNSPECIFIED(0, 0), /** + * + * *
      * The maximum size chunk that can will be returned in a single
      * ReadRequest.
@@ -75,6 +98,8 @@ public enum Values
      */
     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.
@@ -85,6 +110,8 @@ public enum Values
      */
     MAX_OBJECT_SIZE_MB(3, 5242880),
     /**
+     *
+     *
      * 
      * The maximum length field name that can be sent in a single
      * custom metadata field.
@@ -95,6 +122,8 @@ public enum Values
      */
     MAX_CUSTOM_METADATA_FIELD_NAME_BYTES(4, 1024),
     /**
+     *
+     *
      * 
      * The maximum length field value that can be sent in a single
      * custom_metadata field.
@@ -105,6 +134,8 @@ public enum Values
      */
     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.
@@ -115,6 +146,8 @@ public enum Values
      */
     MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES(6, 8192),
     /**
+     *
+     *
      * 
      * The maximum total bytes that can be populated into all bucket metadata
      * fields.
@@ -125,6 +158,8 @@ public enum Values
      */
     MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES(7, 20480),
     /**
+     *
+     *
      * 
      * The maximum number of NotificationConfigs that can be registered
      * for a given bucket.
@@ -134,6 +169,8 @@ public enum Values
      */
     MAX_NOTIFICATION_CONFIGS_PER_BUCKET(8, 100),
     /**
+     *
+     *
      * 
      * The maximum number of custom attributes per NotificationConfigs.
      * 
@@ -142,6 +179,8 @@ public enum Values */ MAX_NOTIFICATION_CUSTOM_ATTRIBUTES(10, 5), /** + * + * *
      * The maximum length of a custom attribute key included in
      * NotificationConfig.
@@ -151,6 +190,8 @@ public enum Values
      */
     MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH(11, 256),
     /**
+     *
+     *
      * 
      * The maximum number of key/value entries per bucket label.
      * 
@@ -159,6 +200,8 @@ public enum Values */ MAX_LABELS_ENTRIES_COUNT(13, 64), /** + * + * *
      * The maximum character length of the key or value in a bucket
      * label map.
@@ -168,6 +211,8 @@ public enum Values
      */
     MAX_LABELS_KEY_VALUE_LENGTH(14, 63),
     /**
+     *
+     *
      * 
      * The maximum byte size of the key or value in a bucket label
      * map.
@@ -177,6 +222,8 @@ public enum Values
      */
     MAX_LABELS_KEY_VALUE_BYTES(15, 128),
     /**
+     *
+     *
      * 
      * The maximum number of object IDs that can be included in a
      * DeleteObjectsRequest.
@@ -186,6 +233,8 @@ public enum Values
      */
     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.
@@ -198,6 +247,8 @@ public enum Values
     ;
 
     /**
+     *
+     *
      * 
      * The maximum size chunk that can be sent in a single WriteObjectRequest.
      * 2 MiB.
@@ -207,6 +258,8 @@ public enum Values
      */
     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.
@@ -216,6 +269,8 @@ public enum Values
      */
     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.
@@ -223,8 +278,11 @@ public enum Values
      *
      * 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.
      * 
@@ -233,6 +291,8 @@ public enum Values */ public static final int VALUES_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The maximum size chunk that can will be returned in a single
      * ReadRequest.
@@ -243,6 +303,8 @@ public enum Values
      */
     public static final int MAX_READ_CHUNK_BYTES_VALUE = 2097152;
     /**
+     *
+     *
      * 
      * The maximum size chunk that can be sent in a single WriteObjectRequest.
      * 2 MiB.
@@ -252,6 +314,8 @@ public enum Values
      */
     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.
@@ -262,6 +326,8 @@ public enum Values
      */
     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.
@@ -272,6 +338,8 @@ public enum Values
      */
     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.
@@ -282,6 +350,8 @@ public enum Values
      */
     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.
@@ -292,6 +362,8 @@ public enum Values
      */
     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.
@@ -302,6 +374,8 @@ public enum Values
      */
     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.
@@ -311,6 +385,8 @@ public enum Values
      */
     public static final int MAX_NOTIFICATION_CONFIGS_PER_BUCKET_VALUE = 100;
     /**
+     *
+     *
      * 
      * The maximum number of LifecycleRules that can be registered for a given
      * bucket.
@@ -320,6 +396,8 @@ public enum Values
      */
     public static final int MAX_LIFECYCLE_RULES_PER_BUCKET_VALUE = 100;
     /**
+     *
+     *
      * 
      * The maximum number of custom attributes per NotificationConfigs.
      * 
@@ -328,6 +406,8 @@ public enum Values */ public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTES_VALUE = 5; /** + * + * *
      * The maximum length of a custom attribute key included in
      * NotificationConfig.
@@ -337,6 +417,8 @@ public enum Values
      */
     public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH_VALUE = 256;
     /**
+     *
+     *
      * 
      * The maximum length of a custom attribute value included in a
      * NotificationConfig.
@@ -346,6 +428,8 @@ public enum Values
      */
     public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH_VALUE = 1024;
     /**
+     *
+     *
      * 
      * The maximum number of key/value entries per bucket label.
      * 
@@ -354,6 +438,8 @@ public enum Values */ public static final int MAX_LABELS_ENTRIES_COUNT_VALUE = 64; /** + * + * *
      * The maximum character length of the key or value in a bucket
      * label map.
@@ -363,6 +449,8 @@ public enum Values
      */
     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.
@@ -372,6 +460,8 @@ public enum Values
      */
     public static final int MAX_LABELS_KEY_VALUE_BYTES_VALUE = 128;
     /**
+     *
+     *
      * 
      * The maximum number of object IDs that can be included in a
      * DeleteObjectsRequest.
@@ -381,6 +471,8 @@ public enum Values
      */
     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.
@@ -390,7 +482,6 @@ public enum Values
      */
     public static final int SPLIT_TOKEN_MAX_VALID_DAYS_VALUE = 14;
 
-
     public final int getNumber() {
       if (index == -1) {
         throw new java.lang.IllegalArgumentException(
@@ -415,65 +506,96 @@ 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);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    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() {
       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;
@@ -493,6 +615,7 @@ private Values(int index, int value) {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -504,8 +627,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getUnknownFields().writeTo(output);
   }
 
@@ -523,7 +645,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);
@@ -546,130 +668,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -677,9 +805,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 @@ -698,7 +826,8 @@ 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; } @@ -707,38 +836,39 @@ 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; @@ -773,12 +903,13 @@ 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) { @@ -788,9 +919,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); } @@ -800,12 +931,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(); } @@ -814,27 +945,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; @@ -849,6 +980,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ServiceConstants getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 0000000000..9722940ed4 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java index 255fb87cb7..91fb45e200 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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); } 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 @@ -63,39 +86,55 @@ public boolean hasWriteObjectSpec() { return writeObjectSpec_ != null; } /** + * + * *
    * 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 @@ -103,18 +142,25 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** + * + * *
    * 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.
    * 
@@ -122,13 +168,18 @@ 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
@@ -137,6 +188,7 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 5; + * * @return Whether the objectChecksums field is set. */ @java.lang.Override @@ -144,6 +196,8 @@ public boolean hasObjectChecksums() { return objectChecksums_ != null; } /** + * + * *
    * The checksums of the complete object. This will be used to validate the
    * uploaded object. For each upload, object_checksums can be provided with
@@ -152,13 +206,18 @@ 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
@@ -170,10 +229,13 @@ 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;
@@ -185,8 +247,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (writeObjectSpec_ != null) {
       output.writeMessage(1, getWriteObjectSpec());
     }
@@ -206,16 +267,15 @@ public int getSerializedSize() {
 
     size = 0;
     if (writeObjectSpec_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getWriteObjectSpec());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWriteObjectSpec());
     }
     if (commonObjectRequestParams_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getCommonObjectRequestParams());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, getCommonObjectRequestParams());
     }
     if (objectChecksums_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getObjectChecksums());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getObjectChecksums());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -225,27 +285,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.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;
@@ -275,130 +334,136 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +487,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 @@ -443,8 +508,11 @@ 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; } @@ -452,19 +520,18 @@ public com.google.storage.v2.StartResumableWriteRequest buildPartial() { private void buildPartial0(com.google.storage.v2.StartResumableWriteRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.writeObjectSpec_ = writeObjectSpecBuilder_ == null - ? writeObjectSpec_ - : writeObjectSpecBuilder_.build(); + result.writeObjectSpec_ = + writeObjectSpecBuilder_ == null ? writeObjectSpec_ : writeObjectSpecBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = + commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectChecksums_ = objectChecksumsBuilder_ == null - ? objectChecksums_ - : objectChecksumsBuilder_.build(); + result.objectChecksums_ = + objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); } } @@ -472,38 +539,39 @@ private void buildPartial0(com.google.storage.v2.StartResumableWriteRequest 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.v2.StartResumableWriteRequest) { - return mergeFrom((com.google.storage.v2.StartResumableWriteRequest)other); + return mergeFrom((com.google.storage.v2.StartResumableWriteRequest) other); } else { super.mergeFrom(other); return this; @@ -511,7 +579,8 @@ 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()); } @@ -547,33 +616,32 @@ 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) { @@ -583,46 +651,66 @@ 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) { @@ -638,12 +726,16 @@ 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) { @@ -657,18 +749,22 @@ 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; @@ -681,12 +777,16 @@ public Builder mergeWriteObjectSpec(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 clearWriteObjectSpec() { bitField0_ = (bitField0_ & ~0x00000001); @@ -699,12 +799,16 @@ 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; @@ -712,38 +816,50 @@ 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_; @@ -751,41 +867,55 @@ 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(); @@ -799,6 +929,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -817,17 +949,21 @@ 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; @@ -840,6 +976,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -857,33 +995,42 @@ 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.
      * 
@@ -891,14 +1038,17 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR * .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_; @@ -906,8 +1056,13 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR 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
@@ -916,12 +1071,15 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR
      * 
* * .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
@@ -930,16 +1088,21 @@ 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
@@ -963,6 +1126,8 @@ 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
@@ -984,6 +1149,8 @@ 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
@@ -995,9 +1162,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;
@@ -1010,6 +1177,8 @@ public Builder mergeObjectChecksums(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
@@ -1030,6 +1199,8 @@ 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
@@ -1045,6 +1216,8 @@ 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
@@ -1058,11 +1231,14 @@ 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
@@ -1073,21 +1249,24 @@ 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);
     }
 
@@ -1097,12 +1276,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();
   }
@@ -1111,27 +1290,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;
@@ -1146,6 +1325,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.storage.v2.StartResumableWriteRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
index 040be6937c..fb2c88680d 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
@@ -1,61 +1,99 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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 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.
    * 
@@ -65,6 +103,8 @@ public interface StartResumableWriteRequestOrBuilder extends 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
@@ -73,10 +113,13 @@ public interface StartResumableWriteRequestOrBuilder extends
    * 
* * .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
@@ -85,10 +128,13 @@ public interface StartResumableWriteRequestOrBuilder extends
    * 
* * .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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
similarity index 66%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
index 7e7d2ac849..641eb718f6 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
@@ -1,63 +1,86 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -66,30 +89,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 { @@ -98,6 +121,7 @@ public java.lang.String getUploadId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } @@ -134,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -162,129 +185,135 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.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 @@ -315,8 +344,11 @@ 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; } @@ -332,38 +364,39 @@ 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; @@ -371,7 +404,8 @@ 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; @@ -403,17 +437,19 @@ 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) { @@ -423,23 +459,26 @@ 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; @@ -448,21 +487,22 @@ 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 { @@ -470,30 +510,37 @@ 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; + * * @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() { @@ -503,27 +550,31 @@ 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); } @@ -533,12 +584,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(); } @@ -547,27 +598,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; @@ -582,6 +633,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.storage.v2.StartResumableWriteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java similarity index 52% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java index 56551004a1..4936df9ca2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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/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 new file mode 100644 index 0000000000..6cfe391602 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java @@ -0,0 +1,1742 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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_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_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_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\"5\n\033CancelResumable" + + "WriteRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002\"\036\n\034" + + "CancelResumableWriteResponse\"\272\004\n\021ReadObj" + + "ectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035stor" + + "age.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_offse" + + "t\030\004 \001(\003\022\022\n\nread_limit\030\005 \001(\003\022 \n\023if_genera" + + "tion_match\030\006 \001(\003H\000\210\001\001\022$\n\027if_generation_n" + + "ot_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_n" + + "ot_match\030\t \001(\003H\003\210\001\001\022R\n\034common_object_req" + + "uest_params\030\n \001(\0132,.google.storage.v2.Co" + + "mmonObjectRequestParams\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_generation_no" + + "t_matchB\032\n\030_if_metageneration_matchB\036\n\034_" + + "if_metageneration_not_matchB\014\n\n_read_mas" + + "k\"\220\004\n\020GetObjectRequest\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\340A\002\022\022\n\ngeneration\030\003 \001(\003\022 " + + "\n\023if_generation_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_g" + + "eneration_not_match\030\005 \001(\003H\001\210\001\001\022$\n\027if_met" + + "ageneration_match\030\006 \001(\003H\002\210\001\001\022(\n\033if_metag" + + "eneration_not_match\030\007 \001(\003H\003\210\001\001\022R\n\034common" + + "_object_request_params\030\010 \001(\0132,.google.st" + + "orage.v2.CommonObjectRequestParams\0222\n\tre" + + "ad_mask\030\n \001(\0132\032.google.protobuf.FieldMas" + + "kH\004\210\001\001B\026\n\024_if_generation_matchB\032\n\030_if_ge" + + "neration_not_matchB\032\n\030_if_metageneration" + + "_matchB\036\n\034_if_metageneration_not_matchB\014" + + "\n\n_read_mask\"\365\001\n\022ReadObjectResponse\022<\n\020c" + + "hecksummed_data\030\001 \001(\0132\".google.storage.v" + + "2.ChecksummedData\022<\n\020object_checksums\030\002 " + + "\001(\0132\".google.storage.v2.ObjectChecksums\022" + + "6\n\rcontent_range\030\003 \001(\0132\037.google.storage." + + "v2.ContentRange\022+\n\010metadata\030\004 \001(\0132\031.goog" + + "le.storage.v2.Object\"\215\003\n\017WriteObjectSpec" + + "\0220\n\010resource\030\001 \001(\0132\031.google.storage.v2.O" + + "bjectB\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\027if_gener" + + "ation_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_metagen" + + "eration_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_metagener" + + "ation_not_match\030\006 \001(\003H\003\210\001\001\022\030\n\013object_siz" + + "e\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_metagene" + + "ration_matchB\036\n\034_if_metageneration_not_m" + + "atchB\016\n\014_object_size\"\206\003\n\022WriteObjectRequ" + + "est\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_object" + + "_spec\030\002 \001(\0132\".google.storage.v2.WriteObj" + + "ectSpecH\000\022\031\n\014write_offset\030\003 \001(\003B\003\340A\002\022>\n\020" + + "checksummed_data\030\004 \001(\0132\".google.storage." + + "v2.ChecksummedDataH\001\022<\n\020object_checksums" + + "\030\006 \001(\0132\".google.storage.v2.ObjectChecksu" + + "ms\022\024\n\014finish_write\030\007 \001(\010\022R\n\034common_objec" + + "t_request_params\030\010 \001(\0132,.google.storage." + + "v2.CommonObjectRequestParamsB\017\n\rfirst_me" + + "ssageB\006\n\004data\"n\n\023WriteObjectResponse\022\030\n\016" + + "persisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\013" + + "2\031.google.storage.v2.ObjectH\000B\016\n\014write_s" + + "tatus\"\317\002\n\022ListObjectsRequest\0225\n\006parent\030\001" + + " \001(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Buc" + + "ket\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_trailin" + + "g_delimiter\030\005 \001(\010\022\016\n\006prefix\030\006 \001(\t\022\020\n\010ver" + + "sions\030\007 \001(\010\0222\n\tread_mask\030\010 \001(\0132\032.google." + + "protobuf.FieldMaskH\000\210\001\001\022 \n\023lexicographic" + + "_start\030\n \001(\tB\003\340A\001\022\036\n\021lexicographic_end\030\013" + + " \001(\tB\003\340A\001B\014\n\n_read_mask\"\205\001\n\027QueryWriteSt" + + "atusRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002\022R\n\034c" + + "ommon_object_request_params\030\002 \001(\0132,.goog" + + "le.storage.v2.CommonObjectRequestParams\"" + + "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\020destination_nam" + + "e\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.googleapis.com/B" + + "ucket\022C\n\023destination_kms_key\030\033 \001(\tB&\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022.\n\013de" + + "stination\030\001 \001(\0132\031.google.storage.v2.Obje" + + "ct\022<\n\rsource_bucket\030\002 \001(\tB%\340A\002\372A\037\n\035stora" + + "ge.googleapis.com/Bucket\022\032\n\rsource_objec" + + "t\030\003 \001(\tB\003\340A\002\022\031\n\021source_generation\030\004 \001(\003\022" + + "\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032destination_pr" + + "edefined_acl\030\034 \001(\t\022 \n\023if_generation_matc" + + "h\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_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_generation_match" + + "\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_generation_not_" + + "match\030\014 \001(\003H\005\210\001\001\022+\n\036if_source_metagenera" + + "tion_match\030\r \001(\003H\006\210\001\001\022/\n\"if_source_metag" + + "eneration_not_match\030\016 \001(\003H\007\210\001\001\022$\n\034max_by" + + "tes_rewritten_per_call\030\017 \001(\003\022(\n copy_sou" + + "rce_encryption_algorithm\030\020 \001(\t\022(\n copy_s" + + "ource_encryption_key_bytes\030\025 \001(\014\022/\n\'copy" + + "_source_encryption_key_sha256_bytes\030\026 \001(" + + "\014\022R\n\034common_object_request_params\030\023 \001(\0132" + + ",.google.storage.v2.CommonObjectRequestP" + + "arams\022<\n\020object_checksums\030\035 \001(\0132\".google" + + ".storage.v2.ObjectChecksumsB\026\n\024_if_gener" + + "ation_matchB\032\n\030_if_generation_not_matchB" + + "\032\n\030_if_metageneration_matchB\036\n\034_if_metag" + + "eneration_not_matchB\035\n\033_if_source_genera" + + "tion_matchB!\n\037_if_source_generation_not_" + + "matchB!\n\037_if_source_metageneration_match" + + "B%\n#_if_source_metageneration_not_match\"" + + "\227\001\n\017RewriteResponse\022\035\n\025total_bytes_rewri" + + "tten\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.Object\"\362\001\n\032St" + + "artResumableWriteRequest\022B\n\021write_object" + + "_spec\030\001 \001(\0132\".google.storage.v2.WriteObj" + + "ectSpecB\003\340A\002\022R\n\034common_object_request_pa" + + "rams\030\003 \001(\0132,.google.storage.v2.CommonObj" + + "ectRequestParams\022<\n\020object_checksums\030\005 \001" + + "(\0132\".google.storage.v2.ObjectChecksums\"0" + + "\n\033StartResumableWriteResponse\022\021\n\tupload_" + + "id\030\001 \001(\t\"\357\003\n\023UpdateObjectRequest\022.\n\006obje" + + "ct\030\001 \001(\0132\031.google.storage.v2.ObjectB\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_m" + + "etageneration_match\030\004 \001(\003H\002\210\001\001\022(\n\033if_met" + + "ageneration_not_match\030\005 \001(\003H\003\210\001\001\022\026\n\016pred" + + "efined_acl\030\n \001(\t\0224\n\013update_mask\030\007 \001(\0132\032." + + "google.protobuf.FieldMaskB\003\340A\002\022R\n\034common" + + "_object_request_params\030\010 \001(\0132,.google.st" + + "orage.v2.CommonObjectRequestParamsB\026\n\024_i" + + "f_generation_matchB\032\n\030_if_generation_not" + + "_matchB\032\n\030_if_metageneration_matchB\036\n\034_i" + + "f_metageneration_not_match\"`\n\030GetService" + + "AccountRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Pro" + + "ject\"\200\001\n\024CreateHmacKeyRequest\022D\n\007project" + + "\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goo" + + "gleapis.com/Project\022\"\n\025service_account_e" + + "mail\030\002 \001(\tB\003\340A\002\"g\n\025CreateHmacKeyResponse" + + "\0224\n\010metadata\030\001 \001(\0132\".google.storage.v2.H" + + "macKeyMetadata\022\030\n\020secret_key_bytes\030\003 \001(\014" + + "\"t\n\024DeleteHmacKeyRequest\022\026\n\taccess_id\030\001 " + + "\001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-\n+cloud" + + "resourcemanager.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+cloudresou" + + "rcemanager.googleapis.com/Project\"\274\001\n\023Li" + + "stHmacKeysRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372" + + "A-\n+cloudresourcemanager.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_account_email\030\004 \001(\t\022\031\n" + + "\021show_deleted_keys\030\005 \001(\010\"f\n\024ListHmacKeys" + + "Response\0225\n\thmac_keys\030\001 \003(\0132\".google.sto" + + "rage.v2.HmacKeyMetadata\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\202\001\n\024UpdateHmacKeyRequest\0229\n\010hma" + + "c_key\030\001 \001(\0132\".google.storage.v2.HmacKeyM" + + "etadataB\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.goog" + + "le.protobuf.FieldMask\"|\n\031CommonObjectReq" + + "uestParams\022\034\n\024encryption_algorithm\030\001 \001(\t" + + "\022\034\n\024encryption_key_bytes\030\004 \001(\014\022#\n\033encryp" + + "tion_key_sha256_bytes\030\005 \001(\014\"\312\005\n\020ServiceC" + + "onstants\"\265\005\n\006Values\022\026\n\022VALUES_UNSPECIFIE" + + "D\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_SIZ" + + "E_MB\020\200\200\300\002\022)\n$MAX_CUSTOM_METADATA_FIELD_N" + + "AME_BYTES\020\200\010\022*\n%MAX_CUSTOM_METADATA_FIEL" + + "D_VALUE_BYTES\020\200 \022)\n$MAX_CUSTOM_METADATA_" + + "TOTAL_SIZE_BYTES\020\200@\022*\n$MAX_BUCKET_METADA" + + "TA_TOTAL_SIZE_BYTES\020\200\240\001\022\'\n#MAX_NOTIFICAT" + + "ION_CONFIGS_PER_BUCKET\020d\022\"\n\036MAX_LIFECYCL" + + "E_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_N" + + "OTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGT" + + "H\020\200\010\022\034\n\030MAX_LABELS_ENTRIES_COUNT\020@\022\037\n\033MA" + + "X_LABELS_KEY_VALUE_LENGTH\020?\022\037\n\032MAX_LABEL" + + "S_KEY_VALUE_BYTES\020\200\001\022.\n)MAX_OBJECT_IDS_P" + + "ER_DELETE_OBJECTS_REQUEST\020\350\007\022\036\n\032SPLIT_TO" + + "KEN_MAX_VALID_DAYS\020\016\032\002\020\001\"\322\027\n\006Bucket\022\021\n\004n" + + "ame\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(\tB3\340A\005\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\033\n\016metageneration\030\004 \001(\003B\003\340A\003\022\025\n\010locat" + + "ion\030\005 \001(\tB\003\340A\005\022\032\n\rlocation_type\030\006 \001(\tB\003\340" + + "A\003\022\025\n\rstorage_class\030\007 \001(\t\022\013\n\003rpo\030\033 \001(\t\0223" + + "\n\003acl\030\010 \003(\0132&.google.storage.v2.BucketAc" + + "cessControl\022B\n\022default_object_acl\030\t \003(\0132" + + "&.google.storage.v2.ObjectAccessControl\022" + + "6\n\tlifecycle\030\n \001(\0132#.google.storage.v2.B" + + "ucket.Lifecycle\0224\n\013create_time\030\013 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022,\n\004cors\030\014 " + + "\003(\0132\036.google.storage.v2.Bucket.Cors\0224\n\013u" + + "pdate_time\030\r \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022 \n\030default_event_based_hold\030\016 " + + "\001(\010\0225\n\006labels\030\017 \003(\0132%.google.storage.v2." + + "Bucket.LabelsEntry\0222\n\007website\030\020 \001(\0132!.go" + + "ogle.storage.v2.Bucket.Website\0228\n\nversio" + + "ning\030\021 \001(\0132$.google.storage.v2.Bucket.Ve" + + "rsioning\0222\n\007logging\030\022 \001(\0132!.google.stora" + + "ge.v2.Bucket.Logging\022,\n\005owner\030\023 \001(\0132\030.go" + + "ogle.storage.v2.OwnerB\003\340A\003\0228\n\nencryption" + + "\030\024 \001(\0132$.google.storage.v2.Bucket.Encryp" + + "tion\0222\n\007billing\030\025 \001(\0132!.google.storage.v" + + "2.Bucket.Billing\022C\n\020retention_policy\030\026 \001" + + "(\0132).google.storage.v2.Bucket.RetentionP" + + "olicy\0227\n\niam_config\030\027 \001(\0132#.google.stora" + + "ge.v2.Bucket.IamConfig\022\025\n\rsatisfies_pzs\030" + + "\031 \001(\010\022P\n\027custom_placement_config\030\032 \001(\0132/" + + ".google.storage.v2.Bucket.CustomPlacemen" + + "tConfig\0226\n\tautoclass\030\034 \001(\0132#.google.stor" + + "age.v2.Bucket.Autoclass\032!\n\007Billing\022\026\n\016re" + + "quester_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\nEncrypti" + + "on\022?\n\017default_kms_key\030\001 \001(\tB&\372A#\n!cloudk" + + "ms.googleapis.com/CryptoKey\032\354\001\n\tIamConfi" + + "g\022a\n\033uniform_bucket_level_access\030\001 \001(\0132<" + + ".google.storage.v2.Bucket.IamConfig.Unif" + + "ormBucketLevelAccess\022 \n\030public_access_pr" + + "evention\030\003 \001(\t\032Z\n\030UniformBucketLevelAcce" + + "ss\022\017\n\007enabled\030\001 \001(\010\022-\n\tlock_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\032\363\005\n\tLifecycle" + + "\0226\n\004rule\030\001 \003(\0132(.google.storage.v2.Bucke" + + "t.Lifecycle.Rule\032\255\005\n\004Rule\022?\n\006action\030\001 \001(" + + "\0132/.google.storage.v2.Bucket.Lifecycle.R" + + "ule.Action\022E\n\tcondition\030\002 \001(\01322.google.s" + + "torage.v2.Bucket.Lifecycle.Rule.Conditio" + + "n\032-\n\006Action\022\014\n\004type\030\001 \001(\t\022\025\n\rstorage_cla" + + "ss\030\002 \001(\t\032\355\003\n\tCondition\022\025\n\010age_days\030\001 \001(\005" + + "H\000\210\001\001\022)\n\016created_before\030\002 \001(\0132\021.google.t" + + "ype.Date\022\024\n\007is_live\030\003 \001(\010H\001\210\001\001\022\037\n\022num_ne" + + "wer_versions\030\004 \001(\005H\002\210\001\001\022\035\n\025matches_stora" + + "ge_class\030\005 \003(\t\022#\n\026days_since_custom_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_noncurr" + + "ent_time\030\t \001(\005H\004\210\001\001\0221\n\026noncurrent_time_b" + + "efore\030\n \001(\0132\021.google.type.Date\022\026\n\016matche" + + "s_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_ve" + + "rsionsB\031\n\027_days_since_custom_timeB\035\n\033_da" + + "ys_since_noncurrent_time\0328\n\007Logging\022\022\n\nl" + + "og_bucket\030\001 \001(\t\022\031\n\021log_object_prefix\030\002 \001" + + "(\t\032\217\001\n\017RetentionPolicy\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.protobuf.Duration\032\035\n\nVersioni" + + "ng\022\017\n\007enabled\030\001 \001(\010\032;\n\007Website\022\030\n\020main_p" + + "age_suffix\030\001 \001(\t\022\026\n\016not_found_page\030\002 \001(\t" + + "\032/\n\025CustomPlacementConfig\022\026\n\016data_locati" + + "ons\030\001 \003(\t\032R\n\tAutoclass\022\017\n\007enabled\030\001 \001(\010\022" + + "4\n\013toggle_time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001:G\352AD\n\035storage.googl" + + "eapis.com/Bucket\022#projects/{project}/buc" + + "kets/{bucket}\"\316\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" + + "\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\006doma" + + "in\030\006 \001(\t\0224\n\014project_team\030\007 \001(\0132\036.google." + + "storage.v2.ProjectTeam\"F\n\017ChecksummedDat" + + "a\022\023\n\007content\030\001 \001(\014B\002\010\001\022\023\n\006crc32c\030\002 \001(\007H\000" + + "\210\001\001B\t\n\007_crc32c\"C\n\017ObjectChecksums\022\023\n\006crc" + + "32c\030\001 \001(\007H\000\210\001\001\022\020\n\010md5_hash\030\002 \001(\014B\t\n\007_crc" + + "32c\"\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+cloudresourcemanager.googleap" + + "is.com/Project\022\"\n\025service_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\022" + + "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\014\n\004etag\030\010 \001(\t\"\247\003\n\022Notifica" + + "tionConfig\022\021\n\004name\030\001 \001(\tB\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_attributes\030\004 \003(\0132;.google" + + ".storage.v2.NotificationConfig.CustomAtt" + + "ributesEntry\022\032\n\022object_name_prefix\030\005 \001(\t" + + "\022\033\n\016payload_format\030\006 \001(\tB\003\340A\002\0327\n\025CustomA" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001:}\352Az\n)storage.googleapis.com/Noti" + + "ficationConfig\022Mprojects/{project}/bucke" + + "ts/{bucket}/notificationConfigs/{notific" + + "ation_config}\"L\n\022CustomerEncryption\022\034\n\024e" + + "ncryption_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.googl" + + "eapis.com/Bucket\022\014\n\004etag\030\033 \001(\t\022\027\n\ngenera" + + "tion\030\003 \001(\003B\003\340A\005\022\033\n\016metageneration\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_encoding\030\007 \001(\t\022\033\n\023cont" + + "ent_disposition\030\010 \001(\t\022\025\n\rcache_control\030\t" + + " \001(\t\0223\n\003acl\030\n \003(\0132&.google.storage.v2.Ob" + + "jectAccessControl\022\030\n\020content_language\030\013 " + + "\001(\t\0224\n\013delete_time\030\014 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022\024\n\014content_type\030\r \001(\t\022" + + "4\n\013create_time\030\016 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\034\n\017component_count\030\017 \001(\005B\003" + + "\340A\003\022:\n\tchecksums\030\020 \001(\0132\".google.storage." + + "v2.ObjectChecksumsB\003\340A\003\0224\n\013update_time\030\021" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0227\n" + + "\007kms_key\030\022 \001(\tB&\372A#\n!cloudkms.googleapis" + + ".com/CryptoKey\022B\n\031update_storage_class_t" + + "ime\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\026\n\016temporary_hold\030\024 \001(\010\0229\n\025retention_" + + "expire_time\030\025 \001(\0132\032.google.protobuf.Time" + + "stamp\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_encryp" + + "tion\030\031 \001(\0132%.google.storage.v2.CustomerE" + + "ncryption\022/\n\013custom_time\030\032 \001(\0132\032.google.", + "protobuf.Timestamp\032/\n\rMetadataEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\023\n\021_event_ba" + + "sed_hold\"\316\001\n\023ObjectAccessControl\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\027\n\nen" + + "tity_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.stora" + + "ge.v2.ProjectTeam\"l\n\023ListObjectsResponse" + + "\022*\n\007objects\030\001 \003(\0132\031.google.storage.v2.Ob" + + "ject\022\020\n\010prefixes\030\002 \003(\t\022\027\n\017next_page_toke" + + "n\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\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\014ContentRang" + + "e\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\022\027\n\017complet" + + "e_length\030\003 \001(\0032\230&\n\007Storage\022r\n\014DeleteBuck" + + "et\022&.google.storage.v2.DeleteBucketReque" + + "st\032\026.google.protobuf.Empty\"\"\212\323\344\223\002\025\022\023\n\004na" + + "me\022\013{bucket=**}\332A\004name\022o\n\tGetBucket\022#.go" + + "ogle.storage.v2.GetBucketRequest\032\031.googl" + + "e.storage.v2.Bucket\"\"\212\323\344\223\002\025\022\023\n\004name\022\013{bu" + + "cket=**}\332A\004name\022\253\001\n\014CreateBucket\022&.googl" + + "e.storage.v2.CreateBucketRequest\032\031.googl" + + "e.storage.v2.Bucket\"X\212\323\344\223\0028\022\026\n\006parent\022\014{" + + "project=**}\022\036\n\016bucket.project\022\014{project=" + + "**}\332A\027parent,bucket,bucket_id\022\205\001\n\013ListBu" + + "ckets\022%.google.storage.v2.ListBucketsReq" + + "uest\032&.google.storage.v2.ListBucketsResp" + + "onse\"\'\212\323\344\223\002\030\022\026\n\006parent\022\014{project=**}\332A\006p" + + "arent\022\223\001\n\031LockBucketRetentionPolicy\0223.go" + + "ogle.storage.v2.LockBucketRetentionPolic" + + "yRequest\032\031.google.storage.v2.Bucket\"&\212\323\344" + + "\223\002\027\022\025\n\006bucket\022\013{bucket=**}\332A\006bucket\022\253\001\n\014" + + "GetIamPolicy\022\".google.iam.v1.GetIamPolic" + + "yRequest\032\025.google.iam.v1.Policy\"`\212\323\344\223\002O\022" + + "\027\n\010resource\022\013{bucket=**}\0224\n\010resource\022({b" + + "ucket=projects/*/buckets/*}/objects/**\332A" + + "\010resource\022\262\001\n\014SetIamPolicy\022\".google.iam." + + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\"g\212\323\344\223\002O\022\027\n\010resource\022\013{bucket=**}\0224" + + "\n\010resource\022({bucket=projects/*/buckets/*" + + "}/objects/**\332A\017resource,policy\022\327\001\n\022TestI" + + "amPermissions\022(.google.iam.v1.TestIamPer" + + "missionsRequest\032).google.iam.v1.TestIamP" + + "ermissionsResponse\"l\212\323\344\223\002O\022\027\n\010resource\022\013" + + "{bucket=**}\0224\n\010resource\022({bucket=project" + + "s/*/buckets/*}/objects/**\332A\024resource,per" + + "missions\022\212\001\n\014UpdateBucket\022&.google.stora" + + "ge.v2.UpdateBucketRequest\032\031.google.stora" + + "ge.v2.Bucket\"7\212\323\344\223\002\034\022\032\n\013bucket.name\022\013{bu" + + "cket=**}\332A\022bucket,update_mask\022\237\001\n\030Delete" + + "NotificationConfig\0222.google.storage.v2.D" + + "eleteNotificationConfigRequest\032\026.google." + + "protobuf.Empty\"7\212\323\344\223\002*\022(\n\004name\022 {bucket=" + + "projects/*/buckets/*}/**\332A\004name\022\250\001\n\025GetN" + + "otificationConfig\022/.google.storage.v2.Ge" + + "tNotificationConfigRequest\032%.google.stor" + + "age.v2.NotificationConfig\"7\212\323\344\223\002*\022(\n\004nam" + + "e\022 {bucket=projects/*/buckets/*}/**\332A\004na" + + "me\022\261\001\n\030CreateNotificationConfig\0222.google" + + ".storage.v2.CreateNotificationConfigRequ" + + "est\032%.google.storage.v2.NotificationConf" + + "ig\":\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\332A\032pare" + + "nt,notification_config\022\250\001\n\027ListNotificat" + + "ionConfigs\0221.google.storage.v2.ListNotif" + + "icationConfigsRequest\0322.google.storage.v" + + "2.ListNotificationConfigsResponse\"&\212\323\344\223\002" + + "\027\022\025\n\006parent\022\013{bucket=**}\332A\006parent\022~\n\rCom" + + "poseObject\022\'.google.storage.v2.ComposeOb" + + "jectRequest\032\031.google.storage.v2.Object\")" + + "\212\323\344\223\002#\022!\n\022destination.bucket\022\013{bucket=**" + + "}\022\230\001\n\014DeleteObject\022&.google.storage.v2.D" + + "eleteObjectRequest\032\026.google.protobuf.Emp" + + "ty\"H\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\332A\rbuck" + + "et,object\332A\030bucket,object,generation\022\272\001\n" + + "\024CancelResumableWrite\022..google.storage.v" + + "2.CancelResumableWriteRequest\032/.google.s" + + "torage.v2.CancelResumableWriteResponse\"A" + + "\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=projects/*/" + + "buckets/*}/**\332A\tupload_id\022\225\001\n\tGetObject\022" + + "#.google.storage.v2.GetObjectRequest\032\031.g" + + "oogle.storage.v2.Object\"H\212\323\344\223\002\027\022\025\n\006bucke" + + "t\022\013{bucket=**}\332A\rbucket,object\332A\030bucket," + + "object,generation\022\245\001\n\nReadObject\022$.googl" + + "e.storage.v2.ReadObjectRequest\032%.google." + + "storage.v2.ReadObjectResponse\"H\212\323\344\223\002\027\022\025\n" + + "\006bucket\022\013{bucket=**}\332A\rbucket,object\332A\030b" + + "ucket,object,generation0\001\022\214\001\n\014UpdateObje" + + "ct\022&.google.storage.v2.UpdateObjectReque" + + "st\032\031.google.storage.v2.Object\"9\212\323\344\223\002\036\022\034\n" + + "\robject.bucket\022\013{bucket=**}\332A\022object,upd" + + "ate_mask\022`\n\013WriteObject\022%.google.storage" + + ".v2.WriteObjectRequest\032&.google.storage." + + "v2.WriteObjectResponse\"\000(\001\022\204\001\n\013ListObjec" + + "ts\022%.google.storage.v2.ListObjectsReques" + + "t\032&.google.storage.v2.ListObjectsRespons" + + "e\"&\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\332A\006paren" + + "t\022\230\001\n\rRewriteObject\022\'.google.storage.v2." + + "RewriteObjectRequest\032\".google.storage.v2" + + ".RewriteResponse\":\212\323\344\223\0024\022\017\n\rsource_bucke" + + "t\022!\n\022destination_bucket\022\013{bucket=**}\022\256\001\n" + + "\023StartResumableWrite\022-.google.storage.v2" + + ".StartResumableWriteRequest\032..google.sto" + + "rage.v2.StartResumableWriteResponse\"8\212\323\344" + + "\223\0022\0220\n!write_object_spec.resource.bucket" + + "\022\013{bucket=**}\022\256\001\n\020QueryWriteStatus\022*.goo" + + "gle.storage.v2.QueryWriteStatusRequest\032+" + + ".google.storage.v2.QueryWriteStatusRespo" + + "nse\"A\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=projec" + + "ts/*/buckets/*}/**\332A\tupload_id\022\200\001\n\021GetSe" + + "rviceAccount\022+.google.storage.v2.GetServ" + + "iceAccountRequest\032!.google.storage.v2.Se" + + "rviceAccount\"\033\212\323\344\223\002\013\022\t\n\007project\332A\007projec" + + "t\022\225\001\n\rCreateHmacKey\022\'.google.storage.v2." + + "CreateHmacKeyRequest\032(.google.storage.v2" + + ".CreateHmacKeyResponse\"1\212\323\344\223\002\013\022\t\n\007projec" + + "t\332A\035project,service_account_email\022w\n\rDel" + + "eteHmacKey\022\'.google.storage.v2.DeleteHma" + + "cKeyRequest\032\026.google.protobuf.Empty\"%\212\323\344" + + "\223\002\013\022\t\n\007project\332A\021access_id,project\022}\n\nGe" + + "tHmacKey\022$.google.storage.v2.GetHmacKeyR" + + "equest\032\".google.storage.v2.HmacKeyMetada" + + "ta\"%\212\323\344\223\002\013\022\t\n\007project\332A\021access_id,projec" + + "t\022|\n\014ListHmacKeys\022&.google.storage.v2.Li" + + "stHmacKeysRequest\032\'.google.storage.v2.Li" + + "stHmacKeysResponse\"\033\212\323\344\223\002\013\022\t\n\007project\332A\007" + + "project\022\235\001\n\rUpdateHmacKey\022\'.google.stora" + + "ge.v2.UpdateHmacKeyRequest\032\".google.stor" + + "age.v2.HmacKeyMetadata\"?\212\323\344\223\002\"\022 \n\020hmac_k" + + "ey.project\022\014{project=**}\332A\024hmac_key,upda" + + "te_mask\032\247\002\312A\026storage.googleapis.com\322A\212\002h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform,https://www.googleapis.com/auth/cl" + + "oud-platform.read-only,https://www.googl" + + "eapis.com/auth/devstorage.full_control,h" + + "ttps://www.googleapis.com/auth/devstorag" + + "e.read_only,https://www.googleapis.com/a" + + "uth/devstorage.read_writeB\334\001\n\025com.google" + + ".storage.v2B\014StorageProtoP\001Z8google.gola" + + "ng.org/genproto/googleapis/storage/v2;st" + + "orage\352Ax\n!cloudkms.googleapis.com/Crypto" + + "Key\022Sprojects/{project}/locations/{locat" + + "ion}/keyRings/{key_ring}/cryptoKeys/{cry" + + "pto_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_CancelResumableWriteRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + 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(15); + 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(16); + 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(17); + 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", + "IfGenerationMatch", + "IfGenerationNotMatch", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "CommonObjectRequestParams", + "ReadMask", + "IfGenerationMatch", + "IfGenerationNotMatch", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "ReadMask", + }); + internal_static_google_storage_v2_ReadObjectResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + 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(19); + 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(20); + 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(21); + 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_ListObjectsRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + 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", + "ReadMask", + }); + internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + 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(24); + 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(25); + 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(26); + 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(27); + 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(28); + 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(29); + 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(30); + 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(31); + 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(32); + 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(33); + 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(34); + 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(35); + 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(36); + 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(37); + 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(38); + 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(39); + 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(40); + 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", + }); + 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_Versioning_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(7); + 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(8); + 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(9); + 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(10); + 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", + }); + internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(11); + 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(41); + 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(42); + 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(43); + 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(44); + 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(45); + 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(46); + 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(47); + 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(48); + 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(49); + 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(50); + 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(51); + 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(52); + 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(53); + 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java similarity index 75% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java index 5cb6c235f7..13b7dd08f4 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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_ = ""; @@ -26,39 +44,43 @@ private UpdateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBucketRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -66,12 +88,15 @@ public boolean hasBucket() { return bucket_ != null; } /** + * + * *
    * 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 @@ -79,6 +104,8 @@ 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.
@@ -94,12 +121,15 @@ 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 @@ -107,12 +137,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 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 @@ -123,12 +156,15 @@ 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 @@ -136,12 +172,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 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 @@ -150,9 +189,12 @@ 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",
@@ -160,6 +202,7 @@ public long getIfMetagenerationNotMatch() {
    * 
* * string predefined_acl = 8; + * * @return The predefinedAcl. */ @java.lang.Override @@ -168,14 +211,15 @@ 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",
@@ -183,16 +227,15 @@ 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 { @@ -201,9 +244,12 @@ public java.lang.String getPredefinedAcl() { } 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",
@@ -211,6 +257,7 @@ public java.lang.String getPredefinedAcl() {
    * 
* * string predefined_default_object_acl = 9; + * * @return The predefinedDefaultObjectAcl. */ @java.lang.Override @@ -219,14 +266,15 @@ 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",
@@ -234,16 +282,15 @@ 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 { @@ -254,6 +301,8 @@ public java.lang.String getPredefinedDefaultObjectAcl() { public static final int UPDATE_MASK_FIELD_NUMBER = 6; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -263,7 +312,9 @@ public java.lang.String getPredefinedDefaultObjectAcl() {
    * 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 @@ -271,6 +322,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -280,7 +333,9 @@ 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 @@ -288,6 +343,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -297,7 +354,8 @@ 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() { @@ -305,6 +363,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,8 +375,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (bucket_ != null) { output.writeMessage(1, getBucket()); } @@ -346,26 +404,23 @@ public int getSerializedSize() { size = 0; if (bucket_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBucket()); + 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.computeInt64Size(2, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationNotMatch_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateMask()); + 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; @@ -375,36 +430,32 @@ public int 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; @@ -423,13 +474,11 @@ 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(); @@ -444,130 +493,136 @@ 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() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -590,9 +645,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 @@ -611,8 +666,11 @@ 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; } @@ -620,9 +678,7 @@ public com.google.storage.v2.UpdateBucketRequest buildPartial() { private void buildPartial0(com.google.storage.v2.UpdateBucketRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.bucket_ = bucketBuilder_ == null - ? bucket_ - : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -640,9 +696,7 @@ 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(); } result.bitField0_ |= to_bitField0_; } @@ -651,38 +705,39 @@ 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; @@ -739,46 +794,49 @@ 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) { @@ -788,30 +846,40 @@ 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() { @@ -822,6 +890,8 @@ public com.google.storage.v2.Bucket getBucket() { } } /** + * + * *
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
@@ -843,6 +913,8 @@ 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.
@@ -850,8 +922,7 @@ 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 {
@@ -862,6 +933,8 @@ public Builder setBucket(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
@@ -871,9 +944,9 @@ public Builder setBucket(
      */
     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;
@@ -886,6 +959,8 @@ public Builder mergeBucket(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.
@@ -904,6 +979,8 @@ public Builder clearBucket() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The bucket to update.
      * The bucket's `name` field will be used to identify the bucket.
@@ -917,6 +994,8 @@ 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.
@@ -928,11 +1007,12 @@ 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.
@@ -941,27 +1021,33 @@ 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 @@ -969,12 +1055,15 @@ 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 @@ -982,29 +1071,35 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000002; onChanged(); 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() { @@ -1014,14 +1109,17 @@ 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 @@ -1029,12 +1127,15 @@ 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 @@ -1042,29 +1143,35 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000004; onChanged(); 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() { @@ -1076,6 +1183,8 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object predefinedAcl_ = ""; /** + * + * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1083,13 +1192,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; @@ -1098,6 +1207,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1105,15 +1216,14 @@ 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 { @@ -1121,6 +1231,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1128,18 +1240,22 @@ public java.lang.String getPredefinedAcl() {
      * 
* * 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",
@@ -1147,6 +1263,7 @@ public Builder setPredefinedAcl(
      * 
* * string predefined_acl = 8; + * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1156,6 +1273,8 @@ public Builder clearPredefinedAcl() { return this; } /** + * + * *
      * Apply a predefined set of access controls to this bucket.
      * Valid values are "authenticatedRead", "private", "projectPrivate",
@@ -1163,12 +1282,14 @@ 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; @@ -1178,6 +1299,8 @@ public Builder setPredefinedAclBytes( private java.lang.Object predefinedDefaultObjectAcl_ = ""; /** + * + * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1185,13 +1308,13 @@ public Builder setPredefinedAclBytes(
      * 
* * 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; @@ -1200,6 +1323,8 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** + * + * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1207,15 +1332,14 @@ 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 { @@ -1223,6 +1347,8 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** + * + * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1230,18 +1356,22 @@ public java.lang.String getPredefinedDefaultObjectAcl() {
      * 
* * 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",
@@ -1249,6 +1379,7 @@ public Builder setPredefinedDefaultObjectAcl(
      * 
* * string predefined_default_object_acl = 9; + * * @return This builder for chaining. */ public Builder clearPredefinedDefaultObjectAcl() { @@ -1258,6 +1389,8 @@ public Builder clearPredefinedDefaultObjectAcl() { return this; } /** + * + * *
      * Apply a predefined set of default object access controls to this bucket.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1265,12 +1398,14 @@ 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; @@ -1280,8 +1415,13 @@ public Builder setPredefinedDefaultObjectAclBytes( 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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1291,13 +1431,17 @@ public Builder setPredefinedDefaultObjectAclBytes(
      * 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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1307,17 +1451,23 @@ 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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1327,7 +1477,8 @@ 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) { @@ -1343,6 +1494,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1352,10 +1505,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 { @@ -1366,6 +1519,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1375,13 +1530,14 @@ public Builder setUpdateMask(
      * 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; @@ -1394,6 +1550,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1403,7 +1561,8 @@ 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); @@ -1416,6 +1575,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1425,7 +1586,8 @@ 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; @@ -1433,6 +1595,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1442,17 +1606,21 @@ 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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1462,24 +1630,28 @@ 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); } @@ -1489,12 +1661,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(); } @@ -1503,27 +1675,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; @@ -1538,6 +1710,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.UpdateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java similarity index 82% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java index f5d5abaed5..7962303a98 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.
@@ -38,48 +62,62 @@ public interface UpdateBucketRequestOrBuilder extends
   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",
@@ -87,10 +125,13 @@ public interface UpdateBucketRequestOrBuilder extends
    * 
* * 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",
@@ -98,12 +139,14 @@ public interface UpdateBucketRequestOrBuilder extends
    * 
* * 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",
@@ -111,10 +154,13 @@ public interface UpdateBucketRequestOrBuilder extends
    * 
* * 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",
@@ -122,12 +168,14 @@ public interface UpdateBucketRequestOrBuilder extends
    * 
* * 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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -137,11 +185,15 @@ public interface UpdateBucketRequestOrBuilder extends
    * 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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -151,11 +203,15 @@ public interface UpdateBucketRequestOrBuilder extends
    * 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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -165,7 +221,8 @@ public interface UpdateBucketRequestOrBuilder extends
    * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java index 997f95bd04..694745176f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto package com.google.storage.v2; /** + * + * *
  * Request object to update an HMAC key state.
  * HmacKeyMetadata.state is required and the only writable field in
@@ -13,46 +30,49 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.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);
   }
 
   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.
@@ -60,7 +80,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -68,6 +91,8 @@ public boolean hasHmacKey() { return hmacKey_ != null; } /** + * + * *
    * Required. The HMAC key to update.
    * If present, the hmac_key's `id` field will be used to identify the key.
@@ -75,7 +100,10 @@ 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 @@ -83,6 +111,8 @@ 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.
@@ -90,7 +120,9 @@ 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() { @@ -100,6 +132,8 @@ 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
@@ -107,6 +141,7 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -114,6 +149,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Update mask for hmac_key.
    * Not specifying any fields will mean only the `state` field is updated to
@@ -121,6 +158,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ @java.lang.Override @@ -128,6 +166,8 @@ 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
@@ -142,6 +182,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -153,8 +194,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (hmacKey_ != null) {
       output.writeMessage(1, getHmacKey());
     }
@@ -171,12 +211,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (hmacKey_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getHmacKey());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHmacKey());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -186,22 +224,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.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;
@@ -227,97 +264,104 @@ 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
@@ -327,33 +371,32 @@ protected Builder newBuilderForType(
    *
    * 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() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -372,9 +415,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
@@ -393,8 +436,11 @@ 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;
     }
@@ -402,14 +448,10 @@ public com.google.storage.v2.UpdateHmacKeyRequest buildPartial() {
     private void buildPartial0(com.google.storage.v2.UpdateHmacKeyRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.hmacKey_ = hmacKeyBuilder_ == null
-            ? hmacKey_
-            : hmacKeyBuilder_.build();
+        result.hmacKey_ = hmacKeyBuilder_ == null ? hmacKey_ : hmacKeyBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
     }
 
@@ -417,38 +459,39 @@ private void buildPartial0(com.google.storage.v2.UpdateHmacKeyRequest 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.UpdateHmacKeyRequest) {
-        return mergeFrom((com.google.storage.v2.UpdateHmacKeyRequest)other);
+        return mergeFrom((com.google.storage.v2.UpdateHmacKeyRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -489,26 +532,25 @@ 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) {
@@ -518,12 +560,18 @@ 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.
@@ -531,13 +579,18 @@ 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.
@@ -545,17 +598,24 @@ 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.
@@ -563,7 +623,9 @@ 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) { @@ -579,6 +641,8 @@ 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.
@@ -586,10 +650,11 @@ 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 { @@ -600,6 +665,8 @@ public Builder setHmacKey( return this; } /** + * + * *
      * Required. The HMAC key to update.
      * If present, the hmac_key's `id` field will be used to identify the key.
@@ -607,13 +674,15 @@ public Builder setHmacKey(
      * 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; @@ -626,6 +695,8 @@ public Builder mergeHmacKey(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.
@@ -633,7 +704,9 @@ 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); @@ -646,6 +719,8 @@ 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.
@@ -653,7 +728,9 @@ 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; @@ -661,6 +738,8 @@ 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.
@@ -668,17 +747,22 @@ 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.
@@ -686,17 +770,22 @@ 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_; @@ -704,8 +793,13 @@ 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
@@ -713,12 +807,15 @@ 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
@@ -726,16 +823,21 @@ 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
@@ -758,6 +860,8 @@ 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
@@ -766,8 +870,7 @@ 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 {
@@ -778,6 +881,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -788,9 +893,9 @@ public Builder setUpdateMask(
      */
     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;
@@ -803,6 +908,8 @@ public Builder mergeUpdateMask(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
@@ -822,6 +929,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Update mask for hmac_key.
      * Not specifying any fields will mean only the `state` field is updated to
@@ -836,6 +945,8 @@ 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
@@ -848,11 +959,14 @@ 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
@@ -862,21 +976,24 @@ 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);
     }
 
@@ -886,12 +1003,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();
   }
@@ -900,27 +1017,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;
@@ -935,6 +1052,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.UpdateHmacKeyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
similarity index 67%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
index e2cfa7151b..6dddfc06ed 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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.
@@ -15,11 +33,16 @@ public interface UpdateHmacKeyRequestOrBuilder extends
    * 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.
@@ -27,11 +50,16 @@ public interface UpdateHmacKeyRequestOrBuilder extends
    * 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.
@@ -39,11 +67,15 @@ public interface UpdateHmacKeyRequestOrBuilder extends
    * 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
@@ -51,10 +83,13 @@ public interface UpdateHmacKeyRequestOrBuilder extends
    * 
* * .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
@@ -62,10 +97,13 @@ public interface UpdateHmacKeyRequestOrBuilder extends
    * 
* * .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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
similarity index 77%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
index 8a1840e4d4..627697ea3e 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
@@ -1,57 +1,78 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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
@@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the object field is set. */ @java.lang.Override @@ -68,6 +90,8 @@ public boolean hasObject() { return object_ != null; } /** + * + * *
    * Required. The object to update.
    * The object's bucket and name fields are used to identify the object to
@@ -77,6 +101,7 @@ public boolean hasObject() {
    * 
* * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The object. */ @java.lang.Override @@ -84,6 +109,8 @@ 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
@@ -102,6 +129,8 @@ 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
@@ -109,6 +138,7 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
    * 
* * optional int64 if_generation_match = 2; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -116,6 +146,8 @@ 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
@@ -123,6 +155,7 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 2; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -133,6 +166,8 @@ 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
@@ -141,6 +176,7 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 3; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -148,6 +184,8 @@ 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
@@ -156,6 +194,7 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 3; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -166,12 +205,15 @@ 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 @@ -179,12 +221,15 @@ 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 = 4; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -195,12 +240,15 @@ 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 @@ -208,12 +256,15 @@ 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 = 5; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -222,9 +273,12 @@ 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",
@@ -232,6 +286,7 @@ public long getIfMetagenerationNotMatch() {
    * 
* * string predefined_acl = 10; + * * @return The predefinedAcl. */ @java.lang.Override @@ -240,14 +295,15 @@ 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",
@@ -255,16 +311,15 @@ 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 { @@ -275,6 +330,8 @@ public java.lang.String getPredefinedAcl() { public static final int UPDATE_MASK_FIELD_NUMBER = 7; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -284,7 +341,9 @@ public java.lang.String getPredefinedAcl() {
    * 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 @@ -292,6 +351,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -301,7 +362,9 @@ 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 @@ -309,6 +372,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. List of fields to be updated.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -318,7 +383,8 @@ 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() { @@ -328,11 +394,14 @@ 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 @@ -340,18 +409,25 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** + * + * *
    * 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.
    * 
@@ -359,11 +435,15 @@ 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; @@ -375,8 +455,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (object_ != null) { output.writeMessage(1, getObject()); } @@ -411,32 +490,27 @@ public int getSerializedSize() { size = 0; if (object_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getObject()); + 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.computeInt64Size(2, ifGenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationNotMatch_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateMask()); } if (commonObjectRequestParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCommonObjectRequestParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getCommonObjectRequestParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedAcl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, predefinedAcl_); @@ -449,49 +523,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.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; @@ -510,23 +578,19 @@ 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(); @@ -543,130 +607,136 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -695,9 +765,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 @@ -716,8 +786,11 @@ 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; } @@ -725,9 +798,7 @@ public com.google.storage.v2.UpdateObjectRequest buildPartial() { private void buildPartial0(com.google.storage.v2.UpdateObjectRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null - ? object_ - : objectBuilder_.build(); + result.object_ = objectBuilder_ == null ? object_ : objectBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -750,14 +821,13 @@ private void buildPartial0(com.google.storage.v2.UpdateObjectRequest result) { result.predefinedAcl_ = predefinedAcl_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = + commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -766,38 +836,39 @@ 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; @@ -858,58 +929,62 @@ 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) { @@ -919,12 +994,18 @@ 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
@@ -934,12 +1015,15 @@ 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
@@ -949,6 +1033,7 @@ public boolean hasObject() {
      * 
* * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The object. */ public com.google.storage.v2.Object getObject() { @@ -959,6 +1044,8 @@ 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
@@ -983,6 +1070,8 @@ 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
@@ -993,8 +1082,7 @@ 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 {
@@ -1005,6 +1093,8 @@ public Builder setObject(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
@@ -1017,9 +1107,9 @@ public Builder setObject(
      */
     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;
@@ -1032,6 +1122,8 @@ public Builder mergeObject(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
@@ -1053,6 +1145,8 @@ public Builder clearObject() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The object to update.
      * The object's bucket and name fields are used to identify the object to
@@ -1069,6 +1163,8 @@ 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
@@ -1083,11 +1179,12 @@ 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
@@ -1099,21 +1196,26 @@ 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
@@ -1121,6 +1223,7 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
      * 
* * optional int64 if_generation_match = 2; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1128,6 +1231,8 @@ 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
@@ -1135,6 +1240,7 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 2; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1142,6 +1248,8 @@ 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
@@ -1149,17 +1257,20 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 2; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000002; onChanged(); 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
@@ -1167,6 +1278,7 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 2; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1176,8 +1288,10 @@ 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
@@ -1186,6 +1300,7 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 3; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1193,6 +1308,8 @@ 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
@@ -1201,6 +1318,7 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 3; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1208,6 +1326,8 @@ 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
@@ -1216,17 +1336,20 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 3; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000004; onChanged(); 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
@@ -1235,6 +1358,7 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 3; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1244,14 +1368,17 @@ 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 @@ -1259,12 +1386,15 @@ 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 @@ -1272,29 +1402,35 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000008; onChanged(); 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() { @@ -1304,14 +1440,17 @@ 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 @@ -1319,12 +1458,15 @@ 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 @@ -1332,29 +1474,35 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000010; onChanged(); 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() { @@ -1366,6 +1514,8 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object predefinedAcl_ = ""; /** + * + * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1373,13 +1523,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; @@ -1388,6 +1538,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1395,15 +1547,14 @@ 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 { @@ -1411,6 +1562,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1418,18 +1571,22 @@ public java.lang.String getPredefinedAcl() {
      * 
* * 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",
@@ -1437,6 +1594,7 @@ public Builder setPredefinedAcl(
      * 
* * string predefined_acl = 10; + * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1446,6 +1604,8 @@ public Builder clearPredefinedAcl() { return this; } /** + * + * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1453,12 +1613,14 @@ 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; @@ -1468,8 +1630,13 @@ public Builder setPredefinedAclBytes( 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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1479,13 +1646,17 @@ public Builder setPredefinedAclBytes(
      * 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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1495,17 +1666,23 @@ 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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1515,7 +1692,8 @@ 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) { @@ -1531,6 +1709,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1540,10 +1720,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 { @@ -1554,6 +1734,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1563,13 +1745,14 @@ public Builder setUpdateMask(
      * 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; @@ -1582,6 +1765,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1591,7 +1776,8 @@ 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); @@ -1604,6 +1790,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1613,7 +1801,8 @@ 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; @@ -1621,6 +1810,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. List of fields to be updated.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1630,17 +1821,21 @@ 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.
      * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -1650,17 +1845,21 @@ 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_; @@ -1668,41 +1867,55 @@ 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(); @@ -1716,6 +1929,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1734,17 +1949,21 @@ 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; @@ -1757,6 +1976,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1774,33 +1995,42 @@ 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.
      * 
@@ -1808,21 +2038,24 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR * .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); } @@ -1832,12 +2065,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(); } @@ -1846,27 +2079,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; @@ -1881,6 +2114,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.UpdateObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java similarity index 87% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java index 1c3a39d2bf..1e2ec6c8df 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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
@@ -17,10 +35,13 @@ public interface UpdateObjectRequestOrBuilder extends
    * 
* * .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
@@ -30,10 +51,13 @@ public interface UpdateObjectRequestOrBuilder extends
    * 
* * .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
@@ -47,6 +71,8 @@ public interface UpdateObjectRequestOrBuilder extends
   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
@@ -54,10 +80,13 @@ public interface UpdateObjectRequestOrBuilder extends
    * 
* * 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
@@ -65,11 +94,14 @@ public interface UpdateObjectRequestOrBuilder extends
    * 
* * 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
@@ -78,10 +110,13 @@ public interface UpdateObjectRequestOrBuilder extends
    * 
* * 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
@@ -90,53 +125,68 @@ public interface UpdateObjectRequestOrBuilder extends
    * 
* * 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",
@@ -144,10 +194,13 @@ public interface UpdateObjectRequestOrBuilder extends
    * 
* * 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",
@@ -155,12 +208,14 @@ public interface UpdateObjectRequestOrBuilder extends
    * 
* * 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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -170,11 +225,15 @@ public interface UpdateObjectRequestOrBuilder extends
    * 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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -184,11 +243,15 @@ public interface UpdateObjectRequestOrBuilder extends
    * 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.
    * To specify ALL fields, equivalent to the JSON API's "update" function,
@@ -198,29 +261,38 @@ public interface UpdateObjectRequestOrBuilder extends
    * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java similarity index 75% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java index 13aa2ba06b..a51af321d6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java @@ -1,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 firstMessageCase_ = 0; 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; } @@ -71,31 +92,37 @@ 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; 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; } @@ -111,42 +138,50 @@ 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() { @@ -157,8 +192,7 @@ 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; @@ -167,24 +201,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. */ - 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; } @@ -196,12 +231,15 @@ public java.lang.String getUploadId() { 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 @@ -209,22 +247,27 @@ 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.
@@ -235,7 +278,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();
   }
@@ -243,6 +286,8 @@ 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.
@@ -257,6 +302,7 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
    * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The writeOffset. */ @java.lang.Override @@ -266,12 +312,15 @@ 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 @@ -279,22 +328,27 @@ 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.
@@ -305,7 +359,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();
   }
@@ -313,6 +367,8 @@ 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 specifified checksums the call will fail. May only be
@@ -321,6 +377,7 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
    * 
* * .google.storage.v2.ObjectChecksums object_checksums = 6; + * * @return Whether the objectChecksums field is set. */ @java.lang.Override @@ -328,6 +385,8 @@ public boolean hasObjectChecksums() { return objectChecksums_ != null; } /** + * + * *
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specifified checksums the call will fail. May only be
@@ -336,13 +395,18 @@ 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 specifified checksums the call will fail. May only be
@@ -354,12 +418,16 @@ 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`
@@ -370,6 +438,7 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
    * 
* * bool finish_write = 7; + * * @return The finishWrite. */ @java.lang.Override @@ -380,11 +449,14 @@ 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 @@ -392,18 +464,25 @@ public boolean hasCommonObjectRequestParams() { return commonObjectRequestParams_ != null; } /** + * + * *
    * 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.
    * 
@@ -411,11 +490,15 @@ 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; @@ -427,8 +510,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (firstMessageCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firstMessage_); } @@ -463,28 +545,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()); + 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()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -494,36 +576,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.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: @@ -531,8 +608,7 @@ 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: @@ -549,15 +625,13 @@ 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(); @@ -587,130 +661,136 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -741,9 +821,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 @@ -762,8 +842,11 @@ 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; @@ -775,31 +858,29 @@ private void buildPartial0(com.google.storage.v2.WriteObjectRequest result) { result.writeOffset_ = writeOffset_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.objectChecksums_ = objectChecksumsBuilder_ == null - ? objectChecksums_ - : objectChecksumsBuilder_.build(); + result.objectChecksums_ = + objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); } 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(); } } 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(); } } @@ -808,38 +889,39 @@ 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; @@ -861,28 +943,33 @@ 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(); @@ -910,56 +997,57 @@ 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) { @@ -969,12 +1057,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() { @@ -986,10 +1074,9 @@ 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() { @@ -1002,12 +1089,15 @@ 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 @@ -1015,12 +1105,15 @@ 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 @@ -1030,8 +1123,7 @@ 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; @@ -1042,25 +1134,26 @@ 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; } @@ -1070,30 +1163,37 @@ public java.lang.String getUploadId() { } } /** + * + * *
      * 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() { @@ -1105,18 +1205,22 @@ 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; @@ -1125,14 +1229,20 @@ public Builder setUploadIdBytes( } 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 @@ -1140,12 +1250,15 @@ 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 @@ -1163,6 +1276,8 @@ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { } } /** + * + * *
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1184,6 +1299,8 @@ 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.
@@ -1203,6 +1320,8 @@ public Builder setWriteObjectSpec(
       return this;
     }
     /**
+     *
+     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1212,10 +1331,13 @@ 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;
         }
@@ -1231,6 +1353,8 @@ 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.
@@ -1255,6 +1379,8 @@ public Builder clearWriteObjectSpec() {
       return this;
     }
     /**
+     *
+     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1266,6 +1392,8 @@ 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.
@@ -1285,6 +1413,8 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * For non-resumable uploads. Describes the overall upload, including the
      * destination bucket and object name, preconditions, etc.
@@ -1293,14 +1423,19 @@ 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());
@@ -1311,8 +1446,10 @@ 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.
@@ -1327,6 +1464,7 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The writeOffset. */ @java.lang.Override @@ -1334,6 +1472,8 @@ public long getWriteOffset() { return writeOffset_; } /** + * + * *
      * Required. The offset from the beginning of the object at which the data
      * should be written.
@@ -1348,17 +1488,20 @@ public long getWriteOffset() {
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The writeOffset to set. * @return This builder for chaining. */ public Builder setWriteOffset(long value) { - + writeOffset_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The offset from the beginning of the object at which the data
      * should be written.
@@ -1373,6 +1516,7 @@ public Builder setWriteOffset(long value) {
      * 
* * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWriteOffset() { @@ -1383,14 +1527,20 @@ 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 @@ -1398,12 +1548,15 @@ 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 @@ -1421,6 +1574,8 @@ 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.
@@ -1442,6 +1597,8 @@ 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.
@@ -1461,6 +1618,8 @@ 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.
@@ -1470,10 +1629,12 @@ 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;
         }
@@ -1489,6 +1650,8 @@ 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.
@@ -1513,6 +1676,8 @@ 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.
@@ -1524,6 +1689,8 @@ 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.
@@ -1543,6 +1710,8 @@ 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.
@@ -1551,17 +1720,20 @@ 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;
@@ -1571,8 +1743,13 @@ 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 specifified checksums the call will fail. May only be
@@ -1581,12 +1758,15 @@ 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 specifified checksums the call will fail. May only be
@@ -1595,16 +1775,21 @@ 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 specifified checksums the call will fail. May only be
@@ -1628,6 +1813,8 @@ 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 specifified checksums the call will fail. May only be
@@ -1649,6 +1836,8 @@ public Builder setObjectChecksums(
       return this;
     }
     /**
+     *
+     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specifified checksums the call will fail. May only be
@@ -1660,9 +1849,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;
@@ -1675,6 +1864,8 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specifified checksums the call will fail. May only be
@@ -1695,6 +1886,8 @@ public Builder clearObjectChecksums() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Checksums for the complete object. If the checksums computed by the service
      * don't match the specifified checksums the call will fail. May only be
@@ -1710,6 +1903,8 @@ 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 specifified checksums the call will fail. May only be
@@ -1723,11 +1918,14 @@ 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 specifified checksums the call will fail. May only be
@@ -1738,21 +1936,26 @@ 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`
@@ -1763,6 +1966,7 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
      * 
* * bool finish_write = 7; + * * @return The finishWrite. */ @java.lang.Override @@ -1770,6 +1974,8 @@ 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`
@@ -1780,17 +1986,20 @@ public boolean getFinishWrite() {
      * 
* * bool finish_write = 7; + * * @param value The finishWrite to set. * @return This builder for chaining. */ public Builder setFinishWrite(boolean value) { - + finishWrite_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * If `true`, this indicates that the write is complete. Sending any
      * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
@@ -1801,6 +2010,7 @@ public Builder setFinishWrite(boolean value) {
      * 
* * bool finish_write = 7; + * * @return This builder for chaining. */ public Builder clearFinishWrite() { @@ -1812,41 +2022,55 @@ 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(); @@ -1860,6 +2084,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1878,17 +2104,21 @@ 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; @@ -1901,6 +2131,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
      * A set of parameters common to Storage API requests concerning an object.
      * 
@@ -1918,33 +2150,42 @@ 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.
      * 
@@ -1952,21 +2193,24 @@ public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectR * .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); } @@ -1976,12 +2220,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(); } @@ -1990,27 +2234,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; @@ -2025,6 +2269,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.WriteObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java similarity index 87% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java index a77e3f1b76..799717bb15 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java @@ -1,65 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.
@@ -70,6 +102,8 @@ public interface WriteObjectRequestOrBuilder extends
   com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. The offset from the beginning of the object at which the data
    * should be written.
@@ -84,31 +118,40 @@ public interface WriteObjectRequestOrBuilder extends
    * 
* * 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.
@@ -119,6 +162,8 @@ public interface WriteObjectRequestOrBuilder extends
   com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder();
 
   /**
+   *
+   *
    * 
    * Checksums for the complete object. If the checksums computed by the service
    * don't match the specifified checksums the call will fail. May only be
@@ -127,10 +172,13 @@ public interface WriteObjectRequestOrBuilder extends
    * 
* * .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 specifified checksums the call will fail. May only be
@@ -139,10 +187,13 @@ public interface WriteObjectRequestOrBuilder extends
    * 
* * .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 specifified checksums the call will fail. May only be
@@ -155,6 +206,8 @@ public interface WriteObjectRequestOrBuilder extends
   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`
@@ -165,29 +218,38 @@ public interface WriteObjectRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java index 080f4bd7bf..bb9b386132 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java @@ -1,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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; 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; } @@ -71,31 +92,37 @@ 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 @@ -103,12 +130,15 @@ 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 @@ -121,12 +151,15 @@ 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 @@ -134,22 +167,27 @@ 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.
@@ -160,12 +198,13 @@ 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;
@@ -177,11 +216,9 @@ 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_);
@@ -196,13 +233,14 @@ 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;
@@ -212,22 +250,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.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:
@@ -246,8 +283,7 @@ 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;
@@ -261,130 +297,136 @@ 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) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +440,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 @@ -419,8 +461,11 @@ 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; @@ -433,8 +478,7 @@ 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(); } } @@ -443,38 +487,39 @@ 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; @@ -484,17 +529,20 @@ 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(); @@ -522,24 +570,25 @@ 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) { @@ -549,12 +598,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() { @@ -567,24 +616,30 @@ 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() { @@ -594,29 +649,35 @@ 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. */ public Builder setPersistedSize(long value) { - + writeStatusCase_ = 1; writeStatus_ = value; onChanged(); 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() { @@ -629,14 +690,20 @@ 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 @@ -644,12 +711,15 @@ 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 @@ -667,6 +737,8 @@ public com.google.storage.v2.Object getResource() { } } /** + * + * *
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -688,6 +760,8 @@ 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.
@@ -695,8 +769,7 @@ 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();
@@ -707,6 +780,8 @@ public Builder setResource(
       return this;
     }
     /**
+     *
+     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -716,10 +791,12 @@ public Builder setResource(
      */
     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;
         }
@@ -735,6 +812,8 @@ 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.
@@ -759,6 +838,8 @@ public Builder clearResource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -770,6 +851,8 @@ 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.
@@ -789,6 +872,8 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A resource containing the metadata for the uploaded object. Only set if
      * the upload has finalized.
@@ -797,26 +882,29 @@ 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);
     }
 
@@ -826,12 +914,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();
   }
@@ -840,27 +928,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;
@@ -875,6 +963,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.storage.v2.WriteObjectResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
index 3eca514b01..fe718a7761 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
@@ -1,54 +1,84 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
similarity index 77%
rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
index bb3407b46b..2532f47a84 100644
--- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
+++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpec.java
@@ -1,62 +1,84 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/storage/v2/storage.proto
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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 @@ -64,11 +86,14 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * 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 @@ -76,6 +101,8 @@ 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.
    * 
@@ -88,9 +115,12 @@ 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",
@@ -98,6 +128,7 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
    * 
* * string predefined_acl = 7; + * * @return The predefinedAcl. */ @java.lang.Override @@ -106,14 +137,15 @@ 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",
@@ -121,16 +153,15 @@ 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 { @@ -141,6 +172,8 @@ public java.lang.String getPredefinedAcl() { 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
@@ -148,6 +181,7 @@ public java.lang.String getPredefinedAcl() {
    * 
* * optional int64 if_generation_match = 3; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -155,6 +189,8 @@ 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
@@ -162,6 +198,7 @@ public boolean hasIfGenerationMatch() {
    * 
* * optional int64 if_generation_match = 3; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -172,6 +209,8 @@ 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
@@ -180,6 +219,7 @@ public long getIfGenerationMatch() {
    * 
* * optional int64 if_generation_not_match = 4; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -187,6 +227,8 @@ 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
@@ -195,6 +237,7 @@ public boolean hasIfGenerationNotMatch() {
    * 
* * optional int64 if_generation_not_match = 4; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -205,12 +248,15 @@ 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 @@ -218,12 +264,15 @@ 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 = 5; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -234,12 +283,15 @@ 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 @@ -247,12 +299,15 @@ 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 = 6; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -263,6 +318,8 @@ 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
@@ -274,6 +331,7 @@ public long getIfMetagenerationNotMatch() {
    * 
* * optional int64 object_size = 8; + * * @return Whether the objectSize field is set. */ @java.lang.Override @@ -281,6 +339,8 @@ public boolean hasObjectSize() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
    * The expected final object size being uploaded.
    * If this value is set, closing the stream after writing fewer or more than
@@ -292,6 +352,7 @@ public boolean hasObjectSize() {
    * 
* * optional int64 object_size = 8; + * * @return The objectSize. */ @java.lang.Override @@ -300,6 +361,7 @@ public long getObjectSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,8 +373,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (resource_ != null) { output.writeMessage(1, getResource()); } @@ -344,31 +405,25 @@ public int getSerializedSize() { size = 0; if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResource()); + 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.computeInt64Size(3, ifGenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, ifMetagenerationNotMatch_); + 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_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, objectSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -378,7 +433,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); @@ -387,35 +442,28 @@ 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; @@ -436,158 +484,158 @@ 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() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -607,9 +655,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 @@ -628,8 +676,11 @@ 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; } @@ -637,9 +688,7 @@ public com.google.storage.v2.WriteObjectSpec buildPartial() { private void buildPartial0(com.google.storage.v2.WriteObjectSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.resource_ = resourceBuilder_ == null - ? resource_ - : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.predefinedAcl_ = predefinedAcl_; @@ -672,38 +721,39 @@ 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; @@ -761,49 +811,55 @@ 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) { @@ -813,28 +869,40 @@ 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() { @@ -845,11 +913,14 @@ 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) { @@ -865,14 +936,16 @@ 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 { @@ -883,17 +956,20 @@ public Builder setResource( 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; @@ -906,11 +982,14 @@ public Builder mergeResource(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 clearResource() { bitField0_ = (bitField0_ & ~0x00000001); @@ -923,11 +1002,14 @@ 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; @@ -935,36 +1017,44 @@ 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_; @@ -972,6 +1062,8 @@ 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",
@@ -979,13 +1071,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; @@ -994,6 +1086,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1001,15 +1095,14 @@ 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 { @@ -1017,6 +1110,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1024,18 +1119,22 @@ public java.lang.String getPredefinedAcl() {
      * 
* * 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",
@@ -1043,6 +1142,7 @@ public Builder setPredefinedAcl(
      * 
* * string predefined_acl = 7; + * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1052,6 +1152,8 @@ public Builder clearPredefinedAcl() { return this; } /** + * + * *
      * Apply a predefined set of access controls to this object.
      * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -1059,12 +1161,14 @@ 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; @@ -1072,8 +1176,10 @@ public Builder setPredefinedAclBytes( 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
@@ -1081,6 +1187,7 @@ public Builder setPredefinedAclBytes(
      * 
* * optional int64 if_generation_match = 3; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1088,6 +1195,8 @@ 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
@@ -1095,6 +1204,7 @@ public boolean hasIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 3; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1102,6 +1212,8 @@ 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
@@ -1109,17 +1221,20 @@ public long getIfGenerationMatch() {
      * 
* * optional int64 if_generation_match = 3; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationMatch(long value) { - + ifGenerationMatch_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Makes the operation conditional on whether the object's current
      * generation matches the given value. Setting to 0 makes the operation
@@ -1127,6 +1242,7 @@ public Builder setIfGenerationMatch(long value) {
      * 
* * optional int64 if_generation_match = 3; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1136,8 +1252,10 @@ 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
@@ -1146,6 +1264,7 @@ public Builder clearIfGenerationMatch() {
      * 
* * optional int64 if_generation_not_match = 4; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1153,6 +1272,8 @@ 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
@@ -1161,6 +1282,7 @@ public boolean hasIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 4; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1168,6 +1290,8 @@ 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
@@ -1176,17 +1300,20 @@ public long getIfGenerationNotMatch() {
      * 
* * optional int64 if_generation_not_match = 4; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ public Builder setIfGenerationNotMatch(long value) { - + ifGenerationNotMatch_ = value; bitField0_ |= 0x00000008; onChanged(); 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
@@ -1195,6 +1322,7 @@ public Builder setIfGenerationNotMatch(long value) {
      * 
* * optional int64 if_generation_not_match = 4; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1204,14 +1332,17 @@ 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 @@ -1219,12 +1350,15 @@ 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 @@ -1232,29 +1366,35 @@ 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. */ public Builder setIfMetagenerationMatch(long value) { - + ifMetagenerationMatch_ = value; bitField0_ |= 0x00000010; onChanged(); 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() { @@ -1264,14 +1404,17 @@ 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 @@ -1279,12 +1422,15 @@ 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 @@ -1292,29 +1438,35 @@ 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. */ public Builder setIfMetagenerationNotMatch(long value) { - + ifMetagenerationNotMatch_ = value; bitField0_ |= 0x00000020; onChanged(); 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() { @@ -1324,8 +1476,10 @@ 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
@@ -1337,6 +1491,7 @@ public Builder clearIfMetagenerationNotMatch() {
      * 
* * optional int64 object_size = 8; + * * @return Whether the objectSize field is set. */ @java.lang.Override @@ -1344,6 +1499,8 @@ 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
@@ -1355,6 +1512,7 @@ public boolean hasObjectSize() {
      * 
* * optional int64 object_size = 8; + * * @return The objectSize. */ @java.lang.Override @@ -1362,6 +1520,8 @@ 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
@@ -1373,17 +1533,20 @@ public long getObjectSize() {
      * 
* * optional int64 object_size = 8; + * * @param value The objectSize to set. * @return This builder for chaining. */ public Builder setObjectSize(long value) { - + objectSize_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * The expected final object size being uploaded.
      * If this value is set, closing the stream after writing fewer or more than
@@ -1395,6 +1558,7 @@ public Builder setObjectSize(long value) {
      * 
* * optional int64 object_size = 8; + * * @return This builder for chaining. */ public Builder clearObjectSize() { @@ -1403,9 +1567,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); } @@ -1415,12 +1579,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(); } @@ -1429,27 +1593,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; @@ -1464,6 +1628,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.WriteObjectSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java similarity index 86% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java index d063457a8f..63ddc9749d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto 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.
    * 
@@ -35,6 +59,8 @@ public interface WriteObjectSpecOrBuilder extends com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder(); /** + * + * *
    * Apply a predefined set of access controls to this object.
    * Valid values are "authenticatedRead", "bucketOwnerFullControl",
@@ -42,10 +68,13 @@ public interface WriteObjectSpecOrBuilder extends
    * 
* * 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",
@@ -53,12 +82,14 @@ public interface WriteObjectSpecOrBuilder extends
    * 
* * 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
@@ -66,10 +97,13 @@ public interface WriteObjectSpecOrBuilder extends
    * 
* * 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
@@ -77,11 +111,14 @@ public interface WriteObjectSpecOrBuilder extends
    * 
* * 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
@@ -90,10 +127,13 @@ public interface WriteObjectSpecOrBuilder extends
    * 
* * 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
@@ -102,53 +142,68 @@ public interface WriteObjectSpecOrBuilder extends
    * 
* * 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
@@ -160,10 +215,13 @@ public interface WriteObjectSpecOrBuilder extends
    * 
* * 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
@@ -175,6 +233,7 @@ public interface WriteObjectSpecOrBuilder extends
    * 
* * optional int64 object_size = 8; + * * @return The objectSize. */ long getObjectSize(); diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto b/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto rename to proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto